AggregatorArgs

data class AggregatorArgs(val aggregatorAccounts: Output<List<AggregatorAggregatorAccountArgs>>? = null, val aggregatorName: Output<String>? = null, val aggregatorType: Output<String>? = null, val description: Output<String>? = null) : ConvertibleToJava<AggregatorArgs>

Provides a Cloud Config Aggregator resource. For information about Cloud Config Aggregate Config Rule and how to use it, see What is Aggregator.

NOTE: Available in v1.124.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cfg.Aggregator;
import com.pulumi.alicloud.cfg.AggregatorArgs;
import com.pulumi.alicloud.cfg.inputs.AggregatorAggregatorAccountArgs;
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) {
var example = new Aggregator("example", AggregatorArgs.builder()
.aggregatorAccounts(AggregatorAggregatorAccountArgs.builder()
.accountId("123968452689****")
.accountName("tf-testacc1234")
.accountType("ResourceDirectory")
.build())
.aggregatorName("tf-testaccConfigAggregator1234")
.description("tf-testaccConfigAggregator1234")
.build());
}
}

Import

Cloud Config Aggregator can be imported using the id, e.g.

$ pulumi import alicloud:cfg/aggregator:Aggregator example <id>

Constructors

Link copied to clipboard
fun AggregatorArgs(aggregatorAccounts: Output<List<AggregatorAggregatorAccountArgs>>? = null, aggregatorName: Output<String>? = null, aggregatorType: Output<String>? = null, description: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AggregatorArgs

Properties

Link copied to clipboard

The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. NOTE: the field aggregator_accounts is not required from version 1.148.0.

Link copied to clipboard
val aggregatorName: Output<String>? = null

The name of aggregator.

Link copied to clipboard
val aggregatorType: Output<String>? = null

The type of aggregator. Valid values: CUSTOM, RD. The Default value: CUSTOM.

Link copied to clipboard
val description: Output<String>? = null

The description of aggregator.