1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cfg
  5. Delivery
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cfg.Delivery

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Provides a Config Delivery resource.

    Delivery channel of current account.

    For information about 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", {projectName: name});
    const defaultStore = new alicloud.log.Store("default", {
        logstoreName: name,
        projectName: _default.projectName,
    });
    const defaultDelivery = new alicloud.cfg.Delivery("default", {
        configurationItemChangeNotification: true,
        nonCompliantNotification: true,
        deliveryChannelName: name,
        deliveryChannelTargetArn: pulumi.all([thisGetRegions, _this, _default.projectName, defaultStore.logstoreName]).apply(([thisGetRegions, _this, projectName, logstoreName]) => `acs:log:${thisGetRegions.ids?.[0]}:${_this.id}:project/${projectName}/logstore/${logstoreName}`),
        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", project_name=name)
    default_store = alicloud.log.Store("default",
        logstore_name=name,
        project_name=default.project_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(
            project_name=default.project_name,
            logstore_name=default_store.logstore_name
    ).apply(lambda resolved_outputs: f"acs:log:{this_get_regions.ids[0]}:{this.id}:project/{resolved_outputs['project_name']}/logstore/{resolved_outputs['logstore_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{
    			ProjectName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultStore, err := log.NewStore(ctx, "default", &log.StoreArgs{
    			LogstoreName: pulumi.String(name),
    			ProjectName:  _default.ProjectName,
    		})
    		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.ProjectName, defaultStore.LogstoreName).ApplyT(func(_args []interface{}) (string, error) {
    				projectName := _args[0].(string)
    				logstoreName := _args[1].(string)
    				return fmt.Sprintf("acs:log:%v:%v:project/%v/logstore/%v", thisGetRegions.Ids[0], this.Id, projectName, logstoreName), 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()
        {
            ProjectName = name,
        });
    
        var defaultStore = new AliCloud.Log.Store("default", new()
        {
            LogstoreName = name,
            ProjectName = @default.ProjectName,
        });
    
        var defaultDelivery = new AliCloud.Cfg.Delivery("default", new()
        {
            ConfigurationItemChangeNotification = true,
            NonCompliantNotification = true,
            DeliveryChannelName = name,
            DeliveryChannelTargetArn = Output.Tuple(thisGetRegions, @this, @default.ProjectName, defaultStore.LogstoreName).Apply(values =>
            {
                var thisGetRegions = values.Item1;
                var @this = values.Item2;
                var projectName = values.Item3;
                var logstoreName = values.Item4;
                return $"acs:log:{thisGetRegions.Apply(getRegionsResult => getRegionsResult.Ids[0])}:{@this.Apply(getAccountResult => getAccountResult.Id)}:project/{projectName}/logstore/{logstoreName}";
            }),
            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()
                .projectName(name)
                .build());
    
            var defaultStore = new Store("defaultStore", StoreArgs.builder()
                .logstoreName(name)
                .projectName(default_.projectName())
                .build());
    
            var defaultDelivery = new Delivery("defaultDelivery", DeliveryArgs.builder()
                .configurationItemChangeNotification(true)
                .nonCompliantNotification(true)
                .deliveryChannelName(name)
                .deliveryChannelTargetArn(Output.tuple(default_.projectName(), defaultStore.logstoreName()).applyValue(values -> {
                    var projectName = values.t1;
                    var logstoreName = values.t2;
                    return String.format("acs:log:%s:%s:project/%s/logstore/%s", thisGetRegions.applyValue(getRegionsResult -> getRegionsResult.ids()[0]),this_.id(),projectName,logstoreName);
                }))
                .deliveryChannelType("SLS")
                .description(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example-sls
    resources:
      default:
        type: alicloud:log:Project
        properties:
          projectName: ${name}
      defaultStore:
        type: alicloud:log:Store
        name: default
        properties:
          logstoreName: ${name}
          projectName: ${default.projectName}
      defaultDelivery:
        type: alicloud:cfg:Delivery
        name: default
        properties:
          configurationItemChangeNotification: true
          nonCompliantNotification: true
          deliveryChannelName: ${name}
          deliveryChannelTargetArn: acs:log:${thisGetRegions.ids[0]}:${this.id}:project/${default.projectName}/logstore/${defaultStore.logstoreName}
          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.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    ConfigurationItemChangeNotification bool
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    ConfigurationSnapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    DeliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    DeliveryChannelName string
    The name of the delivery channel.
    Description string
    The description of the delivery channel.
    NonCompliantNotification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    Status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    ConfigurationItemChangeNotification bool
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    ConfigurationSnapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    DeliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    DeliveryChannelName string
    The name of the delivery channel.
    Description string
    The description of the delivery channel.
    NonCompliantNotification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    Status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType String
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    configurationItemChangeNotification Boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot Boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition String

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName String
    The name of the delivery channel.
    description String
    The description of the delivery channel.
    nonCompliantNotification Boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status Integer
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    deliveryChannelTargetArn string
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    configurationItemChangeNotification boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName string
    The name of the delivery channel.
    description string
    The description of the delivery channel.
    nonCompliantNotification boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status number
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    delivery_channel_target_arn str
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    delivery_channel_type str
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    configuration_item_change_notification bool
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configuration_snapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    delivery_channel_condition str

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    delivery_channel_name str
    The name of the delivery channel.
    description str
    The description of the delivery channel.
    non_compliant_notification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType String
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    configurationItemChangeNotification Boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot Boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition String

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName String
    The name of the delivery channel.
    description String
    The description of the delivery channel.
    nonCompliantNotification Boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status Number
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.

    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
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    ConfigurationSnapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    DeliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    DeliveryChannelName string
    The name of the delivery channel.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    Description string
    The description of the delivery channel.
    NonCompliantNotification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    Status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    ConfigurationItemChangeNotification bool
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    ConfigurationSnapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    DeliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    DeliveryChannelName string
    The name of the delivery channel.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    DeliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    Description string
    The description of the delivery channel.
    NonCompliantNotification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    Status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    configurationItemChangeNotification Boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot Boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition String

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName String
    The name of the delivery channel.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType String
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    description String
    The description of the delivery channel.
    nonCompliantNotification Boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status Integer
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    configurationItemChangeNotification boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition string

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName string
    The name of the delivery channel.
    deliveryChannelTargetArn string
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType string
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    description string
    The description of the delivery channel.
    nonCompliantNotification boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status number
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    configuration_item_change_notification bool
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configuration_snapshot bool
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    delivery_channel_condition str

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    delivery_channel_name str
    The name of the delivery channel.
    delivery_channel_target_arn str
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    delivery_channel_type str
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    description str
    The description of the delivery channel.
    non_compliant_notification bool
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status int
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.
    configurationItemChangeNotification Boolean
    Indicates whether the specified destination receives resource change logs. If the value of this parameter is true, Cloud Config delivers the resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:

    • true: The specified destination receives resource change logs.
    • false: The specified destination does not receive resource change logs.
    configurationSnapshot Boolean
    Indicates whether the specified destination receives scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at 04:00Z and 16:00Z to OSS, MNS, or Log Service every day. The time is displayed in UTC. Valid values:

    • true: The specified destination receives scheduled resource snapshots.
    • false: The specified destination does not receive scheduled resource snapshots.
    deliveryChannelCondition String

    The rule that is attached to the delivery channel.

    This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.

    If you specify the risk level or resource types for subscription events, this is as follows:

    The lowest risk level of the events to which you want to subscribe is in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}, The value field indicates the risk level of the events to which you want to subscribe. Valid values: 1, 2, and 3. The value 1 indicates the high risk level, the value 2 indicates the medium risk level, and the value 3 indicates the low risk level.

    The setting of the resource types of the events to which you want to subscribe is in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}, The values field indicates the resource types of the events to which you want to subscribe. The value of the field is a JSON array.

    Examples:[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}].

    deliveryChannelName String
    The name of the delivery channel.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.

    • If the value of the DeliveryChannelType parameter is OSS, the value of this parameter is the ARN of the destination OSS bucket.
    • If the value of the DeliveryChannelType parameter is MNS, the value of this parameter is the ARN of the destination MNS topic.
    • If the value of the DeliveryChannelType parameter is SLS, the value of this parameter is the ARN of the destination Log Service Logstore.
    deliveryChannelType String
    The type of the delivery channel. Valid values:

    • OSS: Object Storage Service (OSS)
    • MNS: Message Service (MNS)
    • SLS: Log Service
    description String
    The description of the delivery channel.
    nonCompliantNotification Boolean
    Indicates whether the specified destination receives resource non-compliance events. If the value of this parameter is true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are evaluated as non-compliant. Valid values:

    • true: The specified destination receives resource non-compliance events.
    • false: The specified destination does not receive resource non-compliance events.
    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}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.
    status Number
    The status of the delivery channel. Valid values:

    • 0: The delivery channel is disabled.
    • 1: The delivery channel is enabled.

    Import

    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.62.1 published on Monday, Sep 16, 2024 by Pulumi