1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. getDeliveryChannels
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.cfg.getDeliveryChannels

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    DEPRECATED: This resource is based on Config’s old version OpenAPI, and it has been deprecated from version 1.173.0. Please use new datasource alicloud.cfg.getDeliveries instead.

    This data source provides the Config Delivery Channels of the current Alibaba Cloud user.

    NOTE: Available in 1.99.0+.

    NOTE: The Cloud Config region only support cn-shanghai and ap-southeast-1.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.cfg.getDeliveryChannels({
        ids: ["cdc-49a2ad756057********"],
        nameRegex: "tftest",
    });
    export const firstConfigDeliveryChannelId = example.then(example => example.channels?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cfg.get_delivery_channels(ids=["cdc-49a2ad756057********"],
        name_regex="tftest")
    pulumi.export("firstConfigDeliveryChannelId", example.channels[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := cfg.GetDeliveryChannels(ctx, &cfg.GetDeliveryChannelsArgs{
    			Ids: []string{
    				"cdc-49a2ad756057********",
    			},
    			NameRegex: pulumi.StringRef("tftest"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstConfigDeliveryChannelId", example.Channels[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Cfg.GetDeliveryChannels.Invoke(new()
        {
            Ids = new[]
            {
                "cdc-49a2ad756057********",
            },
            NameRegex = "tftest",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstConfigDeliveryChannelId"] = example.Apply(getDeliveryChannelsResult => getDeliveryChannelsResult.Channels[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cfg.CfgFunctions;
    import com.pulumi.alicloud.cfg.inputs.GetDeliveryChannelsArgs;
    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 example = CfgFunctions.getDeliveryChannels(GetDeliveryChannelsArgs.builder()
                .ids("cdc-49a2ad756057********")
                .nameRegex("tftest")
                .build());
    
            ctx.export("firstConfigDeliveryChannelId", example.applyValue(getDeliveryChannelsResult -> getDeliveryChannelsResult.channels()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:cfg:getDeliveryChannels
          Arguments:
            ids:
              - cdc-49a2ad756057********
            nameRegex: tftest
    outputs:
      firstConfigDeliveryChannelId: ${example.channels[0].id}
    

    Using getDeliveryChannels

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDeliveryChannels(args: GetDeliveryChannelsArgs, opts?: InvokeOptions): Promise<GetDeliveryChannelsResult>
    function getDeliveryChannelsOutput(args: GetDeliveryChannelsOutputArgs, opts?: InvokeOptions): Output<GetDeliveryChannelsResult>
    def get_delivery_channels(ids: Optional[Sequence[str]] = None,
                              name_regex: Optional[str] = None,
                              output_file: Optional[str] = None,
                              status: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDeliveryChannelsResult
    def get_delivery_channels_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              name_regex: Optional[pulumi.Input[str]] = None,
                              output_file: Optional[pulumi.Input[str]] = None,
                              status: Optional[pulumi.Input[int]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDeliveryChannelsResult]
    func GetDeliveryChannels(ctx *Context, args *GetDeliveryChannelsArgs, opts ...InvokeOption) (*GetDeliveryChannelsResult, error)
    func GetDeliveryChannelsOutput(ctx *Context, args *GetDeliveryChannelsOutputArgs, opts ...InvokeOption) GetDeliveryChannelsResultOutput

    > Note: This function is named GetDeliveryChannels in the Go SDK.

    public static class GetDeliveryChannels 
    {
        public static Task<GetDeliveryChannelsResult> InvokeAsync(GetDeliveryChannelsArgs args, InvokeOptions? opts = null)
        public static Output<GetDeliveryChannelsResult> Invoke(GetDeliveryChannelsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeliveryChannelsResult> getDeliveryChannels(GetDeliveryChannelsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cfg/getDeliveryChannels:getDeliveryChannels
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Config Delivery Channel IDs.
    NameRegex string
    A regex string to filter results by delivery channel name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    Ids []string
    A list of Config Delivery Channel IDs.
    NameRegex string
    A regex string to filter results by delivery channel name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    ids List<String>
    A list of Config Delivery Channel IDs.
    nameRegex String
    A regex string to filter results by delivery channel name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status Integer
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    ids string[]
    A list of Config Delivery Channel IDs.
    nameRegex string
    A regex string to filter results by delivery channel name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status number
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    ids Sequence[str]
    A list of Config Delivery Channel IDs.
    name_regex str
    A regex string to filter results by delivery channel name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    ids List<String>
    A list of Config Delivery Channel IDs.
    nameRegex String
    A regex string to filter results by delivery channel name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status Number
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.

    getDeliveryChannels Result

    The following output properties are available:

    Channels List<Pulumi.AliCloud.Cfg.Outputs.GetDeliveryChannelsChannel>
    A list of Config Delivery Channels. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Config Delivery Channel IDs.
    Names List<string>
    A list of Config Delivery Channel names.
    NameRegex string
    OutputFile string
    Status int
    The status of the delivery channel.
    Channels []GetDeliveryChannelsChannel
    A list of Config Delivery Channels. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Config Delivery Channel IDs.
    Names []string
    A list of Config Delivery Channel names.
    NameRegex string
    OutputFile string
    Status int
    The status of the delivery channel.
    channels List<GetDeliveryChannelsChannel>
    A list of Config Delivery Channels. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Config Delivery Channel IDs.
    names List<String>
    A list of Config Delivery Channel names.
    nameRegex String
    outputFile String
    status Integer
    The status of the delivery channel.
    channels GetDeliveryChannelsChannel[]
    A list of Config Delivery Channels. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Config Delivery Channel IDs.
    names string[]
    A list of Config Delivery Channel names.
    nameRegex string
    outputFile string
    status number
    The status of the delivery channel.
    channels Sequence[GetDeliveryChannelsChannel]
    A list of Config Delivery Channels. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Config Delivery Channel IDs.
    names Sequence[str]
    A list of Config Delivery Channel names.
    name_regex str
    output_file str
    status int
    The status of the delivery channel.
    channels List<Property Map>
    A list of Config Delivery Channels. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Config Delivery Channel IDs.
    names List<String>
    A list of Config Delivery Channel names.
    nameRegex String
    outputFile String
    status Number
    The status of the delivery channel.

    Supporting Types

    GetDeliveryChannelsChannel

    DeliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    DeliveryChannelCondition string
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    DeliveryChannelId string
    The ID of the delivery channel.
    DeliveryChannelName string
    The name of the delivery channel.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.
    DeliveryChannelType string
    The type of the delivery channel.
    Description string
    The description of the delivery channel.
    Id string
    The ID of the Config Delivery Channel.
    Status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    DeliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    DeliveryChannelCondition string
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    DeliveryChannelId string
    The ID of the delivery channel.
    DeliveryChannelName string
    The name of the delivery channel.
    DeliveryChannelTargetArn string
    The ARN of the delivery destination.
    DeliveryChannelType string
    The type of the delivery channel.
    Description string
    The description of the delivery channel.
    Id string
    The ID of the Config Delivery Channel.
    Status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    deliveryChannelAssumeRoleArn String
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    deliveryChannelCondition String
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    deliveryChannelId String
    The ID of the delivery channel.
    deliveryChannelName String
    The name of the delivery channel.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.
    deliveryChannelType String
    The type of the delivery channel.
    description String
    The description of the delivery channel.
    id String
    The ID of the Config Delivery Channel.
    status Integer
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    deliveryChannelAssumeRoleArn string
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    deliveryChannelCondition string
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    deliveryChannelId string
    The ID of the delivery channel.
    deliveryChannelName string
    The name of the delivery channel.
    deliveryChannelTargetArn string
    The ARN of the delivery destination.
    deliveryChannelType string
    The type of the delivery channel.
    description string
    The description of the delivery channel.
    id string
    The ID of the Config Delivery Channel.
    status number
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    delivery_channel_assume_role_arn str
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    delivery_channel_condition str
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    delivery_channel_id str
    The ID of the delivery channel.
    delivery_channel_name str
    The name of the delivery channel.
    delivery_channel_target_arn str
    The ARN of the delivery destination.
    delivery_channel_type str
    The type of the delivery channel.
    description str
    The description of the delivery channel.
    id str
    The ID of the Config Delivery Channel.
    status int
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.
    deliveryChannelAssumeRoleArn String
    The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
    deliveryChannelCondition String
    The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
    deliveryChannelId String
    The ID of the delivery channel.
    deliveryChannelName String
    The name of the delivery channel.
    deliveryChannelTargetArn String
    The ARN of the delivery destination.
    deliveryChannelType String
    The type of the delivery channel.
    description String
    The description of the delivery channel.
    id String
    The ID of the Config Delivery Channel.
    status Number
    The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.

    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi