get Aggregate Compliance Packs
This data source provides the Config Aggregate Compliance Packs of the current Alibaba Cloud user.
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.CfgFunctions;
import com.pulumi.alicloud.cfg.inputs.GetAggregateCompliancePacksArgs;
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.getAggregateCompliancePacks(GetAggregateCompliancePacksArgs.builder()
.aggregatorId("ca-3a9b626622af001d****")
.ids("cp-152a626622af00bc****")
.nameRegex("the_resource_name")
.build());
ctx.export("firstConfigAggregateCompliancePackId", example.applyValue(getAggregateCompliancePacksResult -> getAggregateCompliancePacksResult.packs()[0].id()));
}
}
Return
A collection of values returned by getAggregateCompliancePacks.
Parameters
A collection of arguments for invoking getAggregateCompliancePacks.
Return
A collection of values returned by getAggregateCompliancePacks.
See also
Parameters
The ID of aggregator.
Default to false
. Set it to true
can output more details about resource attributes.
A list of Aggregate Compliance Pack IDs.
A regex string to filter results by Aggregate Compliance Pack name.
The status of the resource. Valid values ACTIVE
, CREATING
, INACTIVE
.
Return
A collection of values returned by getAggregateCompliancePacks.
See also
Parameters
Builder for com.pulumi.alicloud.cfg.kotlin.inputs.GetAggregateCompliancePacksPlainArgs.