get Delivery Channels
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)
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 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.channels()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:cfg:getDeliveryChannels
arguments:
ids:
- cdc-49a2ad756057********
nameRegex: tftest
outputs:
firstConfigDeliveryChannelId: ${example.channels[0].id}
Return
A collection of values returned by getDeliveryChannels.
Parameters
A collection of arguments for invoking getDeliveryChannels.
Return
A collection of values returned by getDeliveryChannels.
Parameters
A list of Config Delivery Channel IDs.
A regex string to filter results by delivery channel name.
File name where to save data source results (after running pulumi preview
).
The status of the config delivery channel. Valid values 0
: Disable delivery channel, 1
: Enable delivery channel.
See also
Return
A collection of values returned by getDeliveryChannels.
Parameters
Builder for com.pulumi.alicloud.cfg.kotlin.inputs.GetDeliveryChannelsPlainArgs.