Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cfg.getAggregateCompliancePacks
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cfg.getAggregateCompliancePacks({
aggregatorId: "ca-3a9b626622af001d****",
ids: ["cp-152a626622af00bc****"],
nameRegex: "the_resource_name",
});
export const firstConfigAggregateCompliancePackId = example.then(example => example.packs?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cfg.get_aggregate_compliance_packs(aggregator_id="ca-3a9b626622af001d****",
ids=["cp-152a626622af00bc****"],
name_regex="the_resource_name")
pulumi.export("firstConfigAggregateCompliancePackId", example.packs[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.GetAggregateCompliancePacks(ctx, &cfg.GetAggregateCompliancePacksArgs{
AggregatorId: "ca-3a9b626622af001d****",
Ids: []string{
"cp-152a626622af00bc****",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstConfigAggregateCompliancePackId", example.Packs[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Cfg.GetAggregateCompliancePacks.Invoke(new()
{
AggregatorId = "ca-3a9b626622af001d****",
Ids = new[]
{
"cp-152a626622af00bc****",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstConfigAggregateCompliancePackId"] = example.Apply(getAggregateCompliancePacksResult => getAggregateCompliancePacksResult.Packs[0]?.Id),
};
});
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()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:cfg:getAggregateCompliancePacks
Arguments:
aggregatorId: ca-3a9b626622af001d****
ids:
- cp-152a626622af00bc****
nameRegex: the_resource_name
outputs:
firstConfigAggregateCompliancePackId: ${example.packs[0].id}
Using getAggregateCompliancePacks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAggregateCompliancePacks(args: GetAggregateCompliancePacksArgs, opts?: InvokeOptions): Promise<GetAggregateCompliancePacksResult>
function getAggregateCompliancePacksOutput(args: GetAggregateCompliancePacksOutputArgs, opts?: InvokeOptions): Output<GetAggregateCompliancePacksResult>
def get_aggregate_compliance_packs(aggregator_id: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAggregateCompliancePacksResult
def get_aggregate_compliance_packs_output(aggregator_id: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAggregateCompliancePacksResult]
func GetAggregateCompliancePacks(ctx *Context, args *GetAggregateCompliancePacksArgs, opts ...InvokeOption) (*GetAggregateCompliancePacksResult, error)
func GetAggregateCompliancePacksOutput(ctx *Context, args *GetAggregateCompliancePacksOutputArgs, opts ...InvokeOption) GetAggregateCompliancePacksResultOutput
> Note: This function is named GetAggregateCompliancePacks
in the Go SDK.
public static class GetAggregateCompliancePacks
{
public static Task<GetAggregateCompliancePacksResult> InvokeAsync(GetAggregateCompliancePacksArgs args, InvokeOptions? opts = null)
public static Output<GetAggregateCompliancePacksResult> Invoke(GetAggregateCompliancePacksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAggregateCompliancePacksResult> getAggregateCompliancePacks(GetAggregateCompliancePacksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cfg/getAggregateCompliancePacks:getAggregateCompliancePacks
arguments:
# arguments dictionary
The following arguments are supported:
- Aggregator
Id string - The ID of aggregator.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Aggregate Compliance Pack IDs.
- Name
Regex string - A regex string to filter results by Aggregate Compliance Pack name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- Aggregator
Id string - The ID of aggregator.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Aggregate Compliance Pack IDs.
- Name
Regex string - A regex string to filter results by Aggregate Compliance Pack name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- aggregator
Id String - The ID of aggregator.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Aggregate Compliance Pack IDs.
- name
Regex String - A regex string to filter results by Aggregate Compliance Pack name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- aggregator
Id string - The ID of aggregator.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Aggregate Compliance Pack IDs.
- name
Regex string - A regex string to filter results by Aggregate Compliance Pack name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- aggregator_
id str - The ID of aggregator.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Aggregate Compliance Pack IDs.
- name_
regex str - A regex string to filter results by Aggregate Compliance Pack name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- aggregator
Id String - The ID of aggregator.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Aggregate Compliance Pack IDs.
- name
Regex String - A regex string to filter results by Aggregate Compliance Pack name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
getAggregateCompliancePacks Result
The following output properties are available:
- Aggregator
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Config Aggregate Compliance Pack names.
- Packs
List<Pulumi.
Ali Cloud. Cfg. Outputs. Get Aggregate Compliance Packs Pack> - A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- The status of the resource.
- Aggregator
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Config Aggregate Compliance Pack names.
- Packs
[]Get
Aggregate Compliance Packs Pack - A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string - Status string
- The status of the resource.
- aggregator
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Config Aggregate Compliance Pack names.
- packs
List<Get
Aggregate Compliance Packs Pack> - A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - output
File String - status String
- The status of the resource.
- aggregator
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Config Aggregate Compliance Pack names.
- packs
Get
Aggregate Compliance Packs Pack[] - A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- enable
Details boolean - name
Regex string - output
File string - status string
- The status of the resource.
- aggregator_
id str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Config Aggregate Compliance Pack names.
- packs
Sequence[Get
Aggregate Compliance Packs Pack] - A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- enable_
details bool - name_
regex str - output_
file str - status str
- The status of the resource.
- aggregator
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Config Aggregate Compliance Pack names.
- packs List<Property Map>
- A list of Config Aggregate Compliance Packs. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - output
File String - status String
- The status of the resource.
Supporting Types
GetAggregateCompliancePacksPack
- Account
Id string - The Aliyun User Id.
- Aggregate
Compliance stringPack Name - The Aggregate Compliance Package Name.
- Aggregator
Compliance stringPack Id - The Aggregate Compliance Package Id.
- Compliance
Pack stringTemplate Id - The template ID of the Compliance Package.
- Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Get Aggregate Compliance Packs Pack Config Rule> - A list of The Aggregate Compliance Package Rules.
- Description string
- The description of aggregate compliance pack.
- Id string
- The ID of the Aggregate Compliance Pack.
- Risk
Level int - The Risk Level.
- Status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- Account
Id string - The Aliyun User Id.
- Aggregate
Compliance stringPack Name - The Aggregate Compliance Package Name.
- Aggregator
Compliance stringPack Id - The Aggregate Compliance Package Id.
- Compliance
Pack stringTemplate Id - The template ID of the Compliance Package.
- Config
Rules []GetAggregate Compliance Packs Pack Config Rule - A list of The Aggregate Compliance Package Rules.
- Description string
- The description of aggregate compliance pack.
- Id string
- The ID of the Aggregate Compliance Pack.
- Risk
Level int - The Risk Level.
- Status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- account
Id String - The Aliyun User Id.
- aggregate
Compliance StringPack Name - The Aggregate Compliance Package Name.
- aggregator
Compliance StringPack Id - The Aggregate Compliance Package Id.
- compliance
Pack StringTemplate Id - The template ID of the Compliance Package.
- config
Rules List<GetAggregate Compliance Packs Pack Config Rule> - A list of The Aggregate Compliance Package Rules.
- description String
- The description of aggregate compliance pack.
- id String
- The ID of the Aggregate Compliance Pack.
- risk
Level Integer - The Risk Level.
- status String
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- account
Id string - The Aliyun User Id.
- aggregate
Compliance stringPack Name - The Aggregate Compliance Package Name.
- aggregator
Compliance stringPack Id - The Aggregate Compliance Package Id.
- compliance
Pack stringTemplate Id - The template ID of the Compliance Package.
- config
Rules GetAggregate Compliance Packs Pack Config Rule[] - A list of The Aggregate Compliance Package Rules.
- description string
- The description of aggregate compliance pack.
- id string
- The ID of the Aggregate Compliance Pack.
- risk
Level number - The Risk Level.
- status string
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- account_
id str - The Aliyun User Id.
- aggregate_
compliance_ strpack_ name - The Aggregate Compliance Package Name.
- aggregator_
compliance_ strpack_ id - The Aggregate Compliance Package Id.
- compliance_
pack_ strtemplate_ id - The template ID of the Compliance Package.
- config_
rules Sequence[GetAggregate Compliance Packs Pack Config Rule] - A list of The Aggregate Compliance Package Rules.
- description str
- The description of aggregate compliance pack.
- id str
- The ID of the Aggregate Compliance Pack.
- risk_
level int - The Risk Level.
- status str
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
- account
Id String - The Aliyun User Id.
- aggregate
Compliance StringPack Name - The Aggregate Compliance Package Name.
- aggregator
Compliance StringPack Id - The Aggregate Compliance Package Id.
- compliance
Pack StringTemplate Id - The template ID of the Compliance Package.
- config
Rules List<Property Map> - A list of The Aggregate Compliance Package Rules.
- description String
- The description of aggregate compliance pack.
- id String
- The ID of the Aggregate Compliance Pack.
- risk
Level Number - The Risk Level.
- status String
- The status of the resource. Valid values
ACTIVE
,CREATING
,INACTIVE
.
GetAggregateCompliancePacksPackConfigRule
- Config
Rule stringId - The ID of the rule.
- Config
Rule List<Pulumi.Parameters Ali Cloud. Cfg. Inputs. Get Aggregate Compliance Packs Pack Config Rule Config Rule Parameter> - A list of parameter rules.
- Managed
Rule stringIdentifier - Managed Rule Identifier.
- Config
Rule stringId - The ID of the rule.
- Config
Rule []GetParameters Aggregate Compliance Packs Pack Config Rule Config Rule Parameter - A list of parameter rules.
- Managed
Rule stringIdentifier - Managed Rule Identifier.
- config
Rule StringId - The ID of the rule.
- config
Rule List<GetParameters Aggregate Compliance Packs Pack Config Rule Config Rule Parameter> - A list of parameter rules.
- managed
Rule StringIdentifier - Managed Rule Identifier.
- config
Rule stringId - The ID of the rule.
- config
Rule GetParameters Aggregate Compliance Packs Pack Config Rule Config Rule Parameter[] - A list of parameter rules.
- managed
Rule stringIdentifier - Managed Rule Identifier.
- config_
rule_ strid - The ID of the rule.
- config_
rule_ Sequence[Getparameters Aggregate Compliance Packs Pack Config Rule Config Rule Parameter] - A list of parameter rules.
- managed_
rule_ stridentifier - Managed Rule Identifier.
- config
Rule StringId - The ID of the rule.
- config
Rule List<Property Map>Parameters - A list of parameter rules.
- managed
Rule StringIdentifier - Managed Rule Identifier.
GetAggregateCompliancePacksPackConfigRuleConfigRuleParameter
- Parameter
Name string - The Parameter Name.
- Parameter
Value string - The Parameter Value.
- Required bool
- Required.
- Parameter
Name string - The Parameter Name.
- Parameter
Value string - The Parameter Value.
- Required bool
- Required.
- parameter
Name String - The Parameter Name.
- parameter
Value String - The Parameter Value.
- required Boolean
- Required.
- parameter
Name string - The Parameter Name.
- parameter
Value string - The Parameter Value.
- required boolean
- Required.
- parameter_
name str - The Parameter Name.
- parameter_
value str - The Parameter Value.
- required bool
- Required.
- parameter
Name String - The Parameter Name.
- parameter
Value String - The Parameter Value.
- required Boolean
- Required.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.