1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. Delivery
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cfg.Delivery

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 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 thisAccount = alicloud.getAccount({});
    const thisRegions = alicloud.getRegions({
        current: true,
    });
    const defaultProject = new alicloud.log.Project("defaultProject", {});
    const defaultStore = new alicloud.log.Store("defaultStore", {project: defaultProject.name});
    const defaultDelivery = new alicloud.cfg.Delivery("defaultDelivery", {
        configurationItemChangeNotification: true,
        nonCompliantNotification: true,
        deliveryChannelName: name,
        deliveryChannelTargetArn: pulumi.all([thisRegions, thisAccount, defaultProject.name, defaultStore.name]).apply(([thisRegions, thisAccount, defaultProjectName, defaultStoreName]) => `acs:log:${thisRegions.ids?.[0]}:${thisAccount.id}:project/${defaultProjectName}/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_account = alicloud.get_account()
    this_regions = alicloud.get_regions(current=True)
    default_project = alicloud.log.Project("defaultProject")
    default_store = alicloud.log.Store("defaultStore", project=default_project.name)
    default_delivery = alicloud.cfg.Delivery("defaultDelivery",
        configuration_item_change_notification=True,
        non_compliant_notification=True,
        delivery_channel_name=name,
        delivery_channel_target_arn=pulumi.Output.all(default_project.name, default_store.name).apply(lambda defaultProjectName, defaultStoreName: f"acs:log:{this_regions.ids[0]}:{this_account.id}:project/{default_project_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
    		}
    		thisAccount, err := alicloud.GetAccount(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		thisRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultProject, err := log.NewProject(ctx, "defaultProject", nil)
    		if err != nil {
    			return err
    		}
    		defaultStore, err := log.NewStore(ctx, "defaultStore", &log.StoreArgs{
    			Project: defaultProject.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewDelivery(ctx, "defaultDelivery", &cfg.DeliveryArgs{
    			ConfigurationItemChangeNotification: pulumi.Bool(true),
    			NonCompliantNotification:            pulumi.Bool(true),
    			DeliveryChannelName:                 pulumi.String(name),
    			DeliveryChannelTargetArn: pulumi.All(defaultProject.Name, defaultStore.Name).ApplyT(func(_args []interface{}) (string, error) {
    				defaultProjectName := _args[0].(string)
    				defaultStoreName := _args[1].(string)
    				return fmt.Sprintf("acs:log:%v:%v:project/%v/logstore/%v", thisRegions.Ids[0], thisAccount.Id, defaultProjectName, 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 thisAccount = AliCloud.GetAccount.Invoke();
    
        var thisRegions = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var defaultProject = new AliCloud.Log.Project("defaultProject");
    
        var defaultStore = new AliCloud.Log.Store("defaultStore", new()
        {
            Project = defaultProject.Name,
        });
    
        var defaultDelivery = new AliCloud.Cfg.Delivery("defaultDelivery", new()
        {
            ConfigurationItemChangeNotification = true,
            NonCompliantNotification = true,
            DeliveryChannelName = name,
            DeliveryChannelTargetArn = Output.Tuple(thisRegions, thisAccount, defaultProject.Name, defaultStore.Name).Apply(values =>
            {
                var thisRegions = values.Item1;
                var thisAccount = values.Item2;
                var defaultProjectName = values.Item3;
                var defaultStoreName = values.Item4;
                return $"acs:log:{thisRegions.Apply(getRegionsResult => getRegionsResult.Ids[0])}:{thisAccount.Apply(getAccountResult => getAccountResult.Id)}:project/{defaultProjectName}/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.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 thisAccount = AlicloudFunctions.getAccount();
    
            final var thisRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var defaultProject = new Project("defaultProject");
    
            var defaultStore = new Store("defaultStore", StoreArgs.builder()        
                .project(defaultProject.name())
                .build());
    
            var defaultDelivery = new Delivery("defaultDelivery", DeliveryArgs.builder()        
                .configurationItemChangeNotification(true)
                .nonCompliantNotification(true)
                .deliveryChannelName(name)
                .deliveryChannelTargetArn(Output.tuple(defaultProject.name(), defaultStore.name()).applyValue(values -> {
                    var defaultProjectName = values.t1;
                    var defaultStoreName = values.t2;
                    return String.format("acs:log:%s:%s:project/%s/logstore/%s", thisRegions.applyValue(getRegionsResult -> getRegionsResult.ids()[0]),thisAccount.applyValue(getAccountResult -> getAccountResult.id()),defaultProjectName,defaultStoreName);
                }))
                .deliveryChannelType("SLS")
                .description(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example-sls
    resources:
      defaultProject:
        type: alicloud:log:Project
      defaultStore:
        type: alicloud:log:Store
        properties:
          project: ${defaultProject.name}
      defaultDelivery:
        type: alicloud:cfg:Delivery
        properties:
          configurationItemChangeNotification: true
          nonCompliantNotification: true
          deliveryChannelName: ${name}
          deliveryChannelTargetArn: acs:log:${thisRegions.ids[0]}:${thisAccount.id}:project/${defaultProject.name}/logstore/${defaultStore.name}
          deliveryChannelType: SLS
          description: ${name}
    variables:
      thisAccount:
        fn::invoke:
          Function: alicloud:getAccount
          Arguments: {}
      thisRegions:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    Create Delivery Resource

    new Delivery(name: string, args: DeliveryArgs, opts?: CustomResourceOptions);
    @overload
    def Delivery(resource_name: 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)
    @overload
    def Delivery(resource_name: str,
                 args: DeliveryArgs,
                 opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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>
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi