1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. getRules
Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi

alicloud.cfg.getRules

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi

    This data source provides the Config Rules 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

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Cfg.GetRules.Invoke(new()
        {
            Ids = new[]
            {
                "cr-ed4bad756057********",
            },
            NameRegex = "tftest",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstConfigRuleId"] = example.Apply(getRulesResult => getRulesResult.Rules[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.GetRules(ctx, &cfg.GetRulesArgs{
    			Ids: []string{
    				"cr-ed4bad756057********",
    			},
    			NameRegex: pulumi.StringRef("tftest"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstConfigRuleId", example.Rules[0].Id)
    		return nil
    	})
    }
    
    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.GetRulesArgs;
    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.getRules(GetRulesArgs.builder()
                .ids("cr-ed4bad756057********")
                .nameRegex("tftest")
                .build());
    
            ctx.export("firstConfigRuleId", example.applyValue(getRulesResult -> getRulesResult.rules()[0].id()));
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cfg.get_rules(ids=["cr-ed4bad756057********"],
        name_regex="tftest")
    pulumi.export("firstConfigRuleId", example.rules[0].id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.cfg.getRules({
        ids: ["cr-ed4bad756057********"],
        nameRegex: "tftest",
    });
    export const firstConfigRuleId = example.then(example => example.rules?.[0]?.id);
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:cfg:getRules
          Arguments:
            ids:
              - cr-ed4bad756057********
            nameRegex: tftest
    outputs:
      firstConfigRuleId: ${example.rules[0].id}
    

    Using getRules

    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 getRules(args: GetRulesArgs, opts?: InvokeOptions): Promise<GetRulesResult>
    function getRulesOutput(args: GetRulesOutputArgs, opts?: InvokeOptions): Output<GetRulesResult>
    def get_rules(config_rule_state: Optional[str] = None,
                  enable_details: Optional[bool] = None,
                  ids: Optional[Sequence[str]] = None,
                  name_regex: Optional[str] = None,
                  output_file: Optional[str] = None,
                  risk_level: Optional[int] = None,
                  rule_name: Optional[str] = None,
                  status: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetRulesResult
    def get_rules_output(config_rule_state: 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,
                  risk_level: Optional[pulumi.Input[int]] = None,
                  rule_name: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetRulesResult]
    func GetRules(ctx *Context, args *GetRulesArgs, opts ...InvokeOption) (*GetRulesResult, error)
    func GetRulesOutput(ctx *Context, args *GetRulesOutputArgs, opts ...InvokeOption) GetRulesResultOutput

    > Note: This function is named GetRules in the Go SDK.

    public static class GetRules 
    {
        public static Task<GetRulesResult> InvokeAsync(GetRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetRulesResult> Invoke(GetRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRulesResult> getRules(GetRulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cfg/getRules:getRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConfigRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids List<string>
    A list of Config Rule IDs.
    NameRegex string
    A regex string to filter results by rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    RiskLevel int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    RuleName string
    The name of config rule.
    Status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    ConfigRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    Ids []string
    A list of Config Rule IDs.
    NameRegex string
    A regex string to filter results by rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    RiskLevel int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    RuleName string
    The name of config rule.
    Status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    configRuleState String
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Config Rule IDs.
    nameRegex String
    A regex string to filter results by rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    riskLevel Integer
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName String
    The name of config rule.
    status String
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    configRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids string[]
    A list of Config Rule IDs.
    nameRegex string
    A regex string to filter results by rule name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    riskLevel number
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName string
    The name of config rule.
    status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    config_rule_state str
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    ids Sequence[str]
    A list of Config Rule IDs.
    name_regex str
    A regex string to filter results by rule name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    risk_level int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    rule_name str
    The name of config rule.
    status str
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    configRuleState String
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    ids List<String>
    A list of Config Rule IDs.
    nameRegex String
    A regex string to filter results by rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    riskLevel Number
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName String
    The name of config rule.
    status String
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.

    getRules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Config Rule IDs.
    Names List<string>
    A list of Config Rule names.
    Rules List<Pulumi.AliCloud.Cfg.Outputs.GetRulesRule>
    A list of Config Rules. Each element contains the following attributes:
    ConfigRuleState string
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    EnableDetails bool
    NameRegex string
    OutputFile string
    RiskLevel int
    The risk level of the Config Rule.
    RuleName string
    The name of the Config Rule.
    Status string
    (Available in 1.124.1+) The status of config rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Config Rule IDs.
    Names []string
    A list of Config Rule names.
    Rules []GetRulesRule
    A list of Config Rules. Each element contains the following attributes:
    ConfigRuleState string
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    EnableDetails bool
    NameRegex string
    OutputFile string
    RiskLevel int
    The risk level of the Config Rule.
    RuleName string
    The name of the Config Rule.
    Status string
    (Available in 1.124.1+) The status of config rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Config Rule IDs.
    names List<String>
    A list of Config Rule names.
    rules List<GetRulesRule>
    A list of Config Rules. Each element contains the following attributes:
    configRuleState String
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails Boolean
    nameRegex String
    outputFile String
    riskLevel Integer
    The risk level of the Config Rule.
    ruleName String
    The name of the Config Rule.
    status String
    (Available in 1.124.1+) The status of config rule.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Config Rule IDs.
    names string[]
    A list of Config Rule names.
    rules GetRulesRule[]
    A list of Config Rules. Each element contains the following attributes:
    configRuleState string
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails boolean
    nameRegex string
    outputFile string
    riskLevel number
    The risk level of the Config Rule.
    ruleName string
    The name of the Config Rule.
    status string
    (Available in 1.124.1+) The status of config rule.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Config Rule IDs.
    names Sequence[str]
    A list of Config Rule names.
    rules Sequence[GetRulesRule]
    A list of Config Rules. Each element contains the following attributes:
    config_rule_state str
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enable_details bool
    name_regex str
    output_file str
    risk_level int
    The risk level of the Config Rule.
    rule_name str
    The name of the Config Rule.
    status str
    (Available in 1.124.1+) The status of config rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Config Rule IDs.
    names List<String>
    A list of Config Rule names.
    rules List<Property Map>
    A list of Config Rules. Each element contains the following attributes:
    configRuleState String
    The state of the Config Rule.

    Deprecated:Field 'config_rule_state' has been deprecated from provider version 1.124.1. New field 'status' instead.

    enableDetails Boolean
    nameRegex String
    outputFile String
    riskLevel Number
    The risk level of the Config Rule.
    ruleName String
    The name of the Config Rule.
    status String
    (Available in 1.124.1+) The status of config rule.

    Supporting Types

    GetRulesRule

    AccountId string
    The ID of the Alicloud account.
    CompliancePackId string
    Compliances List<Pulumi.AliCloud.Cfg.Inputs.GetRulesRuleCompliance>
    The information about the compliance evaluations based on the rule.
    ConfigRuleArn string
    The ARN of the Config Rule.
    ConfigRuleId string
    The ID of the Config Rule.
    ConfigRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    ConfigRuleTriggerTypes string
    (Available in 1.124.1+) A list of trigger types of config rule.
    Description string
    The description of the Config Rule.
    EventSource string
    Event source of the Config Rule.
    ExcludeResourceIdsScope string
    (Available in 1.124.1+) The scope of exclude of resource ids.
    Id string
    The ID of the Config Rule.
    InputParameters Dictionary<string, object>
    The input parameters of the Config Rule.
    MaximumExecutionFrequency string
    (Available in 1.124.1+) The frequency of maximum execution.
    ModifiedTimestamp string
    the timestamp of the Config Rule modified.
    RegionIdsScope string
    (Available in 1.124.1+) The scope of region ids.
    ResourceGroupIdsScope string
    (Available in 1.124.1+) The scope of resource group ids.
    ResourceTypesScopes List<string>
    (Available in 1.124.1+) The scope of resource types.
    RiskLevel int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    RuleName string
    The name of config rule.
    ScopeComplianceResourceTypes List<string>
    The types of the resources to be evaluated against the rule.
    SourceDetailMessageType string
    Rule trigger mechanism.
    SourceIdentifier string
    The identifier of the managed rule or the arn of the custom function.
    SourceMaximumExecutionFrequency string
    Rule execution cycle.
    SourceOwner string
    The source owner of the Config Rule.
    Status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    TagKeyScope string
    (Available in 1.124.1+) The scope of tag key.
    TagValueScope string
    (Available in 1.124.1+) The scope of tag value.
    AccountId string
    The ID of the Alicloud account.
    CompliancePackId string
    Compliances []GetRulesRuleCompliance
    The information about the compliance evaluations based on the rule.
    ConfigRuleArn string
    The ARN of the Config Rule.
    ConfigRuleId string
    The ID of the Config Rule.
    ConfigRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    ConfigRuleTriggerTypes string
    (Available in 1.124.1+) A list of trigger types of config rule.
    Description string
    The description of the Config Rule.
    EventSource string
    Event source of the Config Rule.
    ExcludeResourceIdsScope string
    (Available in 1.124.1+) The scope of exclude of resource ids.
    Id string
    The ID of the Config Rule.
    InputParameters map[string]interface{}
    The input parameters of the Config Rule.
    MaximumExecutionFrequency string
    (Available in 1.124.1+) The frequency of maximum execution.
    ModifiedTimestamp string
    the timestamp of the Config Rule modified.
    RegionIdsScope string
    (Available in 1.124.1+) The scope of region ids.
    ResourceGroupIdsScope string
    (Available in 1.124.1+) The scope of resource group ids.
    ResourceTypesScopes []string
    (Available in 1.124.1+) The scope of resource types.
    RiskLevel int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    RuleName string
    The name of config rule.
    ScopeComplianceResourceTypes []string
    The types of the resources to be evaluated against the rule.
    SourceDetailMessageType string
    Rule trigger mechanism.
    SourceIdentifier string
    The identifier of the managed rule or the arn of the custom function.
    SourceMaximumExecutionFrequency string
    Rule execution cycle.
    SourceOwner string
    The source owner of the Config Rule.
    Status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    TagKeyScope string
    (Available in 1.124.1+) The scope of tag key.
    TagValueScope string
    (Available in 1.124.1+) The scope of tag value.
    accountId String
    The ID of the Alicloud account.
    compliancePackId String
    compliances List<GetRulesRuleCompliance>
    The information about the compliance evaluations based on the rule.
    configRuleArn String
    The ARN of the Config Rule.
    configRuleId String
    The ID of the Config Rule.
    configRuleState String
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    configRuleTriggerTypes String
    (Available in 1.124.1+) A list of trigger types of config rule.
    description String
    The description of the Config Rule.
    eventSource String
    Event source of the Config Rule.
    excludeResourceIdsScope String
    (Available in 1.124.1+) The scope of exclude of resource ids.
    id String
    The ID of the Config Rule.
    inputParameters Map<String,Object>
    The input parameters of the Config Rule.
    maximumExecutionFrequency String
    (Available in 1.124.1+) The frequency of maximum execution.
    modifiedTimestamp String
    the timestamp of the Config Rule modified.
    regionIdsScope String
    (Available in 1.124.1+) The scope of region ids.
    resourceGroupIdsScope String
    (Available in 1.124.1+) The scope of resource group ids.
    resourceTypesScopes List<String>
    (Available in 1.124.1+) The scope of resource types.
    riskLevel Integer
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName String
    The name of config rule.
    scopeComplianceResourceTypes List<String>
    The types of the resources to be evaluated against the rule.
    sourceDetailMessageType String
    Rule trigger mechanism.
    sourceIdentifier String
    The identifier of the managed rule or the arn of the custom function.
    sourceMaximumExecutionFrequency String
    Rule execution cycle.
    sourceOwner String
    The source owner of the Config Rule.
    status String
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    tagKeyScope String
    (Available in 1.124.1+) The scope of tag key.
    tagValueScope String
    (Available in 1.124.1+) The scope of tag value.
    accountId string
    The ID of the Alicloud account.
    compliancePackId string
    compliances GetRulesRuleCompliance[]
    The information about the compliance evaluations based on the rule.
    configRuleArn string
    The ARN of the Config Rule.
    configRuleId string
    The ID of the Config Rule.
    configRuleState string
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    configRuleTriggerTypes string
    (Available in 1.124.1+) A list of trigger types of config rule.
    description string
    The description of the Config Rule.
    eventSource string
    Event source of the Config Rule.
    excludeResourceIdsScope string
    (Available in 1.124.1+) The scope of exclude of resource ids.
    id string
    The ID of the Config Rule.
    inputParameters {[key: string]: any}
    The input parameters of the Config Rule.
    maximumExecutionFrequency string
    (Available in 1.124.1+) The frequency of maximum execution.
    modifiedTimestamp string
    the timestamp of the Config Rule modified.
    regionIdsScope string
    (Available in 1.124.1+) The scope of region ids.
    resourceGroupIdsScope string
    (Available in 1.124.1+) The scope of resource group ids.
    resourceTypesScopes string[]
    (Available in 1.124.1+) The scope of resource types.
    riskLevel number
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName string
    The name of config rule.
    scopeComplianceResourceTypes string[]
    The types of the resources to be evaluated against the rule.
    sourceDetailMessageType string
    Rule trigger mechanism.
    sourceIdentifier string
    The identifier of the managed rule or the arn of the custom function.
    sourceMaximumExecutionFrequency string
    Rule execution cycle.
    sourceOwner string
    The source owner of the Config Rule.
    status string
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    tagKeyScope string
    (Available in 1.124.1+) The scope of tag key.
    tagValueScope string
    (Available in 1.124.1+) The scope of tag value.
    account_id str
    The ID of the Alicloud account.
    compliance_pack_id str
    compliances Sequence[GetRulesRuleCompliance]
    The information about the compliance evaluations based on the rule.
    config_rule_arn str
    The ARN of the Config Rule.
    config_rule_id str
    The ID of the Config Rule.
    config_rule_state str
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    config_rule_trigger_types str
    (Available in 1.124.1+) A list of trigger types of config rule.
    description str
    The description of the Config Rule.
    event_source str
    Event source of the Config Rule.
    exclude_resource_ids_scope str
    (Available in 1.124.1+) The scope of exclude of resource ids.
    id str
    The ID of the Config Rule.
    input_parameters Mapping[str, Any]
    The input parameters of the Config Rule.
    maximum_execution_frequency str
    (Available in 1.124.1+) The frequency of maximum execution.
    modified_timestamp str
    the timestamp of the Config Rule modified.
    region_ids_scope str
    (Available in 1.124.1+) The scope of region ids.
    resource_group_ids_scope str
    (Available in 1.124.1+) The scope of resource group ids.
    resource_types_scopes Sequence[str]
    (Available in 1.124.1+) The scope of resource types.
    risk_level int
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    rule_name str
    The name of config rule.
    scope_compliance_resource_types Sequence[str]
    The types of the resources to be evaluated against the rule.
    source_detail_message_type str
    Rule trigger mechanism.
    source_identifier str
    The identifier of the managed rule or the arn of the custom function.
    source_maximum_execution_frequency str
    Rule execution cycle.
    source_owner str
    The source owner of the Config Rule.
    status str
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    tag_key_scope str
    (Available in 1.124.1+) The scope of tag key.
    tag_value_scope str
    (Available in 1.124.1+) The scope of tag value.
    accountId String
    The ID of the Alicloud account.
    compliancePackId String
    compliances List<Property Map>
    The information about the compliance evaluations based on the rule.
    configRuleArn String
    The ARN of the Config Rule.
    configRuleId String
    The ID of the Config Rule.
    configRuleState String
    Field config_rule_state has been deprecated from provider version 1.124.1. New field status instead.
    configRuleTriggerTypes String
    (Available in 1.124.1+) A list of trigger types of config rule.
    description String
    The description of the Config Rule.
    eventSource String
    Event source of the Config Rule.
    excludeResourceIdsScope String
    (Available in 1.124.1+) The scope of exclude of resource ids.
    id String
    The ID of the Config Rule.
    inputParameters Map<Any>
    The input parameters of the Config Rule.
    maximumExecutionFrequency String
    (Available in 1.124.1+) The frequency of maximum execution.
    modifiedTimestamp String
    the timestamp of the Config Rule modified.
    regionIdsScope String
    (Available in 1.124.1+) The scope of region ids.
    resourceGroupIdsScope String
    (Available in 1.124.1+) The scope of resource group ids.
    resourceTypesScopes List<String>
    (Available in 1.124.1+) The scope of resource types.
    riskLevel Number
    The risk level of Config Rule. Valid values: 1: Critical ,2: Warning , 3: Info.
    ruleName String
    The name of config rule.
    scopeComplianceResourceTypes List<String>
    The types of the resources to be evaluated against the rule.
    sourceDetailMessageType String
    Rule trigger mechanism.
    sourceIdentifier String
    The identifier of the managed rule or the arn of the custom function.
    sourceMaximumExecutionFrequency String
    Rule execution cycle.
    sourceOwner String
    The source owner of the Config Rule.
    status String
    The status of the config rule, valid values: ACTIVE, DELETING, EVALUATING and INACTIVE.
    tagKeyScope String
    (Available in 1.124.1+) The scope of tag key.
    tagValueScope String
    (Available in 1.124.1+) The scope of tag value.

    GetRulesRuleCompliance

    ComplianceType string
    The compliance evaluation result of the target resources.
    Count int
    The number of resources with the specified compliance evaluation result.
    ComplianceType string
    The compliance evaluation result of the target resources.
    Count int
    The number of resources with the specified compliance evaluation result.
    complianceType String
    The compliance evaluation result of the target resources.
    count Integer
    The number of resources with the specified compliance evaluation result.
    complianceType string
    The compliance evaluation result of the target resources.
    count number
    The number of resources with the specified compliance evaluation result.
    compliance_type str
    The compliance evaluation result of the target resources.
    count int
    The number of resources with the specified compliance evaluation result.
    complianceType String
    The compliance evaluation result of the target resources.
    count Number
    The number of resources with the specified compliance evaluation result.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.49.1 published on Wednesday, Feb 28, 2024 by Pulumi