Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.cfg.getDeliveryChannels
Explore with Pulumi AI
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+.
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)
public static Output<GetDeliveryChannelsResult> getDeliveryChannels(GetDeliveryChannelsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:cfg/getDeliveryChannels:getDeliveryChannels
  arguments:
    # arguments dictionaryThe 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.Ali Cloud. Cfg. Outputs. Get Delivery Channels Channel> 
- 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
[]GetDelivery Channels Channel 
- 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<GetDelivery Channels Channel> 
- 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
GetDelivery Channels Channel[] 
- 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[GetDelivery Channels Channel] 
- 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   
- DeliveryChannel stringAssume Role Arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- DeliveryChannel stringCondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- DeliveryChannel stringId 
- The ID of the delivery channel.
- DeliveryChannel stringName 
- The name of the delivery channel.
- DeliveryChannel stringTarget Arn 
- The ARN of the delivery destination.
- DeliveryChannel stringType 
- 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.
- DeliveryChannel stringAssume Role Arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- DeliveryChannel stringCondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- DeliveryChannel stringId 
- The ID of the delivery channel.
- DeliveryChannel stringName 
- The name of the delivery channel.
- DeliveryChannel stringTarget Arn 
- The ARN of the delivery destination.
- DeliveryChannel stringType 
- 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.
- deliveryChannel StringAssume Role Arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- deliveryChannel StringCondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- deliveryChannel StringId 
- The ID of the delivery channel.
- deliveryChannel StringName 
- The name of the delivery channel.
- deliveryChannel StringTarget Arn 
- The ARN of the delivery destination.
- deliveryChannel StringType 
- 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.
- deliveryChannel stringAssume Role Arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- deliveryChannel stringCondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- deliveryChannel stringId 
- The ID of the delivery channel.
- deliveryChannel stringName 
- The name of the delivery channel.
- deliveryChannel stringTarget Arn 
- The ARN of the delivery destination.
- deliveryChannel stringType 
- 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_ strassume_ role_ arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- delivery_channel_ strcondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- delivery_channel_ strid 
- The ID of the delivery channel.
- delivery_channel_ strname 
- The name of the delivery channel.
- delivery_channel_ strtarget_ arn 
- The ARN of the delivery destination.
- delivery_channel_ strtype 
- 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.
- deliveryChannel StringAssume Role Arn 
- The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- deliveryChannel StringCondition 
- The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- deliveryChannel StringId 
- The ID of the delivery channel.
- deliveryChannel StringName 
- The name of the delivery channel.
- deliveryChannel StringTarget Arn 
- The ARN of the delivery destination.
- deliveryChannel StringType 
- 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 alicloudTerraform Provider.