1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. Delivery
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.cfg.Delivery

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Cloud Config Delivery resource.

    For information about Cloud Config Delivery and how to use it, see What is Delivery.

    NOTE: Available since v1.171.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example-sls";
    const this = alicloud.getAccount({});
    const thisGetRegions = alicloud.getRegions({
        current: true,
    });
    const _default = new alicloud.log.Project("default", {name: name});
    const defaultStore = new alicloud.log.Store("default", {
        name: name,
        project: _default.name,
    });
    const defaultDelivery = new alicloud.cfg.Delivery("default", {
        configurationItemChangeNotification: true,
        nonCompliantNotification: true,
        deliveryChannelName: name,
        deliveryChannelTargetArn: pulumi.all([thisGetRegions, _this, _default.name, defaultStore.name]).apply(([thisGetRegions, _this, defaultName, defaultStoreName]) => `acs:log:${thisGetRegions.ids?.[0]}:${_this.id}:project/${defaultName}/logstore/${defaultStoreName}`),
        deliveryChannelType: "SLS",
        description: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example-sls"
    this = alicloud.get_account()
    this_get_regions = alicloud.get_regions(current=True)
    default = alicloud.log.Project("default", name=name)
    default_store = alicloud.log.Store("default",
        name=name,
        project=default.name)
    default_delivery = alicloud.cfg.Delivery("default",
        configuration_item_change_notification=True,
        non_compliant_notification=True,
        delivery_channel_name=name,
        delivery_channel_target_arn=pulumi.Output.all(default.name, default_store.name).apply(lambda defaultName, defaultStoreName: f"acs:log:{this_get_regions.ids[0]}:{this.id}:project/{default_name}/logstore/{default_store_name}"),
        delivery_channel_type="SLS",
        description=name)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example-sls"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		this, err := alicloud.GetAccount(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		thisGetRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = log.NewProject(ctx, "default", &log.ProjectArgs{
    			Name: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultStore, err := log.NewStore(ctx, "default", &log.StoreArgs{
    			Name:    pulumi.String(name),
    			Project: _default.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewDelivery(ctx, "default", &cfg.DeliveryArgs{
    			ConfigurationItemChangeNotification: pulumi.Bool(true),
    			NonCompliantNotification:            pulumi.Bool(true),
    			DeliveryChannelName:                 pulumi.String(name),
    			DeliveryChannelTargetArn: pulumi.All(_default.Name, defaultStore.Name).ApplyT(func(_args []interface{}) (string, error) {
    				defaultName := _args[0].(string)
    				defaultStoreName := _args[1].(string)
    				return fmt.Sprintf("acs:log:%v:%v:project/%v/logstore/%v", thisGetRegions.Ids[0], this.Id, defaultName, defaultStoreName), nil
    			}).(pulumi.StringOutput),
    			DeliveryChannelType: pulumi.String("SLS"),
    			Description:         pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example-sls";
        var @this = AliCloud.GetAccount.Invoke();
    
        var thisGetRegions = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var @default = new AliCloud.Log.Project("default", new()
        {
            Name = name,
        });
    
        var defaultStore = new AliCloud.Log.Store("default", new()
        {
            Name = name,
            Project = @default.Name,
        });
    
        var defaultDelivery = new AliCloud.Cfg.Delivery("default", new()
        {
            ConfigurationItemChangeNotification = true,
            NonCompliantNotification = true,
            DeliveryChannelName = name,
            DeliveryChannelTargetArn = Output.Tuple(thisGetRegions, @this, @default.Name, defaultStore.Name).Apply(values =>
            {
                var thisGetRegions = values.Item1;
                var @this = values.Item2;
                var defaultName = values.Item3;
                var defaultStoreName = values.Item4;
                return $"acs:log:{thisGetRegions.Apply(getRegionsResult => getRegionsResult.Ids[0])}:{@this.Apply(getAccountResult => getAccountResult.Id)}:project/{defaultName}/logstore/{defaultStoreName}";
            }),
            DeliveryChannelType = "SLS",
            Description = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.log.Project;
    import com.pulumi.alicloud.log.ProjectArgs;
    import com.pulumi.alicloud.log.Store;
    import com.pulumi.alicloud.log.StoreArgs;
    import com.pulumi.alicloud.cfg.Delivery;
    import com.pulumi.alicloud.cfg.DeliveryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example-sls");
            final var this = AlicloudFunctions.getAccount();
    
            final var thisGetRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var default_ = new Project("default", ProjectArgs.builder()
                .name(name)
                .build());
    
            var defaultStore = new Store("defaultStore", StoreArgs.builder()
                .name(name)
                .project(default_.name())
                .build());
    
            var defaultDelivery = new Delivery("defaultDelivery", DeliveryArgs.builder()
                .configurationItemChangeNotification(true)
                .nonCompliantNotification(true)
                .deliveryChannelName(name)
                .deliveryChannelTargetArn(Output.tuple(default_.name(), defaultStore.name()).applyValue(values -> {
                    var defaultName = values.t1;
                    var defaultStoreName = values.t2;
                    return String.format("acs:log:%s:%s:project/%s/logstore/%s", thisGetRegions.applyValue(getRegionsResult -> getRegionsResult.ids()[0]),this_.id(),defaultName,defaultStoreName);
                }))
                .deliveryChannelType("SLS")
                .description(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example-sls
    resources:
      default:
        type: alicloud:log:Project
        properties:
          name: ${name}
      defaultStore:
        type: alicloud:log:Store
        name: default
        properties:
          name: ${name}
          project: ${default.name}
      defaultDelivery:
        type: alicloud:cfg:Delivery
        name: default
        properties:
          configurationItemChangeNotification: true
          nonCompliantNotification: true
          deliveryChannelName: ${name}
          deliveryChannelTargetArn: acs:log:${thisGetRegions.ids[0]}:${this.id}:project/${default.name}/logstore/${defaultStore.name}
          deliveryChannelType: SLS
          description: ${name}
    variables:
      this:
        fn::invoke:
          Function: alicloud:getAccount
          Arguments: {}
      thisGetRegions:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    Create Delivery Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Delivery(name: string, args: DeliveryArgs, opts?: CustomResourceOptions);
    @overload
    def Delivery(resource_name: str,
                 args: DeliveryArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Delivery(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 delivery_channel_target_arn: Optional[str] = None,
                 delivery_channel_type: Optional[str] = None,
                 configuration_item_change_notification: Optional[bool] = None,
                 configuration_snapshot: Optional[bool] = None,
                 delivery_channel_condition: Optional[str] = None,
                 delivery_channel_name: Optional[str] = None,
                 description: Optional[str] = None,
                 non_compliant_notification: Optional[bool] = None,
                 oversized_data_oss_target_arn: Optional[str] = None,
                 status: Optional[int] = None)
    func NewDelivery(ctx *Context, name string, args DeliveryArgs, opts ...ResourceOption) (*Delivery, error)
    public Delivery(string name, DeliveryArgs args, CustomResourceOptions? opts = null)
    public Delivery(String name, DeliveryArgs args)
    public Delivery(String name, DeliveryArgs args, CustomResourceOptions options)
    
    type: alicloud:cfg:Delivery
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DeliveryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DeliveryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DeliveryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeliveryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeliveryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var deliveryResource = new AliCloud.Cfg.Delivery("deliveryResource", new()
    {
        DeliveryChannelTargetArn = "string",
        DeliveryChannelType = "string",
        ConfigurationItemChangeNotification = false,
        ConfigurationSnapshot = false,
        DeliveryChannelCondition = "string",
        DeliveryChannelName = "string",
        Description = "string",
        NonCompliantNotification = false,
        OversizedDataOssTargetArn = "string",
        Status = 0,
    });
    
    example, err := cfg.NewDelivery(ctx, "deliveryResource", &cfg.DeliveryArgs{
    	DeliveryChannelTargetArn:            pulumi.String("string"),
    	DeliveryChannelType:                 pulumi.String("string"),
    	ConfigurationItemChangeNotification: pulumi.Bool(false),
    	ConfigurationSnapshot:               pulumi.Bool(false),
    	DeliveryChannelCondition:            pulumi.String("string"),
    	DeliveryChannelName:                 pulumi.String("string"),
    	Description:                         pulumi.String("string"),
    	NonCompliantNotification:            pulumi.Bool(false),
    	OversizedDataOssTargetArn:           pulumi.String("string"),
    	Status:                              pulumi.Int(0),
    })
    
    var deliveryResource = new Delivery("deliveryResource", DeliveryArgs.builder()
        .deliveryChannelTargetArn("string")
        .deliveryChannelType("string")
        .configurationItemChangeNotification(false)
        .configurationSnapshot(false)
        .deliveryChannelCondition("string")
        .deliveryChannelName("string")
        .description("string")
        .nonCompliantNotification(false)
        .oversizedDataOssTargetArn("string")
        .status(0)
        .build());
    
    delivery_resource = alicloud.cfg.Delivery("deliveryResource",
        delivery_channel_target_arn="string",
        delivery_channel_type="string",
        configuration_item_change_notification=False,
        configuration_snapshot=False,
        delivery_channel_condition="string",
        delivery_channel_name="string",
        description="string",
        non_compliant_notification=False,
        oversized_data_oss_target_arn="string",
        status=0)
    
    const deliveryResource = new alicloud.cfg.Delivery("deliveryResource", {
        deliveryChannelTargetArn: "string",
        deliveryChannelType: "string",
        configurationItemChangeNotification: false,
        configurationSnapshot: false,
        deliveryChannelCondition: "string",
        deliveryChannelName: "string",
        description: "string",
        nonCompliantNotification: false,
        oversizedDataOssTargetArn: "string",
        status: 0,
    });
    
    type: alicloud:cfg:Delivery
    properties:
        configurationItemChangeNotification: false
        configurationSnapshot: false
        deliveryChannelCondition: string
        deliveryChannelName: string
        deliveryChannelTargetArn: string
        deliveryChannelType: string
        description: string
        nonCompliantNotification: false
        oversizedDataOssTargetArn: string
        status: 0
    

    Delivery Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Delivery resource accepts the following input properties:

    DeliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history. true: open, false: close.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    DeliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    DeliveryChannelName string
    The name of the delivery method.
    Description string
    The description of the delivery method.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history. true: open, false: close.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    DeliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    DeliveryChannelName string
    The name of the delivery method.
    Description string
    The description of the delivery method.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    deliveryChannelTargetArn String
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType String
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition String
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName String
    The name of the delivery method.
    description String
    The description of the delivery method.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status Integer
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    deliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    configurationItemChangeNotification boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName string
    The name of the delivery method.
    description string
    The description of the delivery method.
    nonCompliantNotification boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    delivery_channel_target_arn str
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    delivery_channel_type str
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    configuration_item_change_notification bool
    Open or close delivery configuration change history. true: open, false: close.
    configuration_snapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    delivery_channel_condition str
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    delivery_channel_name str
    The name of the delivery method.
    description str
    The description of the delivery method.
    non_compliant_notification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversized_data_oss_target_arn str
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    deliveryChannelTargetArn String
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType String
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition String
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName String
    The name of the delivery method.
    description String
    The description of the delivery method.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status Number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Delivery resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Delivery Resource

    Get an existing Delivery resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DeliveryState, opts?: CustomResourceOptions): Delivery
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configuration_item_change_notification: Optional[bool] = None,
            configuration_snapshot: Optional[bool] = None,
            delivery_channel_condition: Optional[str] = None,
            delivery_channel_name: Optional[str] = None,
            delivery_channel_target_arn: Optional[str] = None,
            delivery_channel_type: Optional[str] = None,
            description: Optional[str] = None,
            non_compliant_notification: Optional[bool] = None,
            oversized_data_oss_target_arn: Optional[str] = None,
            status: Optional[int] = None) -> Delivery
    func GetDelivery(ctx *Context, name string, id IDInput, state *DeliveryState, opts ...ResourceOption) (*Delivery, error)
    public static Delivery Get(string name, Input<string> id, DeliveryState? state, CustomResourceOptions? opts = null)
    public static Delivery get(String name, Output<String> id, DeliveryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history. true: open, false: close.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    DeliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    DeliveryChannelName string
    The name of the delivery method.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    Description string
    The description of the delivery method.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    ConfigurationItemChangeNotification bool
    Open or close delivery configuration change history. true: open, false: close.
    ConfigurationSnapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    DeliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    DeliveryChannelName string
    The name of the delivery method.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    Description string
    The description of the delivery method.
    NonCompliantNotification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    OversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    Status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition String
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName String
    The name of the delivery method.
    deliveryChannelTargetArn String
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType String
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    description String
    The description of the delivery method.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status Integer
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    configurationItemChangeNotification boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition string
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName string
    The name of the delivery method.
    deliveryChannelTargetArn string
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType string
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    description string
    The description of the delivery method.
    nonCompliantNotification boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn string
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    configuration_item_change_notification bool
    Open or close delivery configuration change history. true: open, false: close.
    configuration_snapshot bool
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    delivery_channel_condition str
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    delivery_channel_name str
    The name of the delivery method.
    delivery_channel_target_arn str
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    delivery_channel_type str
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    description str
    The description of the delivery method.
    non_compliant_notification bool
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversized_data_oss_target_arn str
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status int
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.
    configurationItemChangeNotification Boolean
    Open or close delivery configuration change history. true: open, false: close.
    configurationSnapshot Boolean
    Open or close timed snapshot of shipping resources. NOTE: The attribute is valid when the attribute delivery_channel_type is OSS.
    deliveryChannelCondition String
    The rule attached to the delivery method. Please refer to api CreateConfigDeliveryChannel for example format. NOTE: The attribute is valid when the attribute delivery_channel_type is MNS.
    deliveryChannelName String
    The name of the delivery method.
    deliveryChannelTargetArn String
    The ARN of the delivery destination. The value must be in one of the following formats:

    • acs:oss:{RegionId}:{Aliuid}:{bucketName}: if your delivery destination is an Object Storage Service (OSS) bucket.
    • acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}: if your delivery destination is a Message Service (MNS) topic.
    • acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}: if your delivery destination is a Log Service Logstore.
    deliveryChannelType String
    The type of the delivery method. Valid values: OSS: Object Storage, MNS: Message Service, SLS: Log Service.
    description String
    The description of the delivery method.
    nonCompliantNotification Boolean
    Open or close non-compliance events of delivery resources. NOTE: The attribute is valid when the attribute delivery_channel_type is SLS or MNS.
    oversizedDataOssTargetArn String
    The oss ARN of the delivery channel when the value data oversized limit.

    • The value must be in one of the following formats: acs:oss:{RegionId}:{accountId}:{bucketName}, if your delivery destination is an Object Storage Service (OSS) bucket.
    • Only delivery channels SLS and MNS are supported. The delivery channel limit for Log Service SLS is 1 MB, and the delivery channel limit for Message Service MNS is 64 KB.
    status Number
    The status of the delivery method. Valid values: 0: The delivery method is disabled. 1: The delivery destination is enabled. This is the default value.

    Import

    Cloud Config Delivery can be imported using the id, e.g.

    $ pulumi import alicloud:cfg/delivery:Delivery example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi