getDeliveryChannels

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

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()));
}
}

Return

A collection of values returned by getDeliveryChannels.

Parameters

argument

A collection of arguments for invoking getDeliveryChannels.


suspend fun getDeliveryChannels(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, status: Int? = null): GetDeliveryChannelsResult

Return

A collection of values returned by getDeliveryChannels.

See also

Parameters

ids

A list of Config Delivery Channel IDs.

nameRegex

A regex string to filter results by delivery channel name.

outputFile

File name where to save data source results (after running pulumi preview).

status

The status of the config delivery channel. Valid values 0: Disable delivery channel, 1: Enable delivery channel.


Return

A collection of values returned by getDeliveryChannels.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cfg.kotlin.inputs.GetDeliveryChannelsPlainArgs.