alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.cfg.getDeliveryChannels

Example Usage

using System.Collections.Generic;
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 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
	})
}
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()));
    }
}
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)
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);
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
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
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
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
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
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
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.