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+.
NOTE: The Cloud Config region only support
cn-shanghai
andap-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.
- Name
Regex string - A regex string to filter results by delivery channel name.
- Output
File 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.
- Name
Regex string - A regex string to filter results by delivery channel name.
- Output
File 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.
- name
Regex String - A regex string to filter results by delivery channel name.
- output
File 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.
- name
Regex string - A regex string to filter results by delivery channel name.
- output
File 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.
- name
Regex String - A regex string to filter results by delivery channel name.
- output
File 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.
- Name
Regex string - Output
File string - Status int
- The status of the delivery channel.
- Channels
[]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 []string
- A list of Config Delivery Channel IDs.
- Names []string
- A list of Config Delivery Channel names.
- Name
Regex string - Output
File string - Status int
- The status of the delivery channel.
- channels
List<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.
- name
Regex String - output
File String - status Integer
- The status of the delivery channel.
- channels
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 string[]
- A list of Config Delivery Channel IDs.
- names string[]
- A list of Config Delivery Channel names.
- name
Regex string - output
File string - status number
- The status of the delivery channel.
- channels
Sequence[Get
Delivery 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.
- name
Regex String - output
File String - status Number
- The status of the delivery channel.
Supporting Types
GetDeliveryChannelsChannel
- Delivery
Channel stringAssume Role Arn - The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- Delivery
Channel stringCondition - The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- Delivery
Channel stringId - The ID of the delivery channel.
- Delivery
Channel stringName - The name of the delivery channel.
- Delivery
Channel stringTarget Arn - The ARN of the delivery destination.
- Delivery
Channel 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.
- Delivery
Channel stringAssume Role Arn - The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- Delivery
Channel stringCondition - The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- Delivery
Channel stringId - The ID of the delivery channel.
- Delivery
Channel stringName - The name of the delivery channel.
- Delivery
Channel stringTarget Arn - The ARN of the delivery destination.
- Delivery
Channel 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.
- delivery
Channel StringAssume Role Arn - The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- delivery
Channel StringCondition - The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- delivery
Channel StringId - The ID of the delivery channel.
- delivery
Channel StringName - The name of the delivery channel.
- delivery
Channel StringTarget Arn - The ARN of the delivery destination.
- delivery
Channel 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.
- delivery
Channel stringAssume Role Arn - The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- delivery
Channel stringCondition - The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- delivery
Channel stringId - The ID of the delivery channel.
- delivery
Channel stringName - The name of the delivery channel.
- delivery
Channel stringTarget Arn - The ARN of the delivery destination.
- delivery
Channel 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.
- delivery
Channel StringAssume Role Arn - The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method.
- delivery
Channel StringCondition - The rule attached to the delivery method. This parameter is applicable only to delivery methods of the Message Service (MNS) type.
- delivery
Channel StringId - The ID of the delivery channel.
- delivery
Channel StringName - The name of the delivery channel.
- delivery
Channel StringTarget Arn - The ARN of the delivery destination.
- delivery
Channel 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
alicloud
Terraform Provider.