getDeliveryChannels

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
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.