Skip to content
v2.278.0

OrganizationManagedRuleMetadataProperty Struct ​

An object that specifies organization managed rule metadata such as resource type and ID of AWS resource along with the rule identifier.

It also provides the frequency with which you want AWS Config to run evaluations for the rule if the trigger type is periodic.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const organizationManagedRuleMetadataProperty: config.CfnOrganizationConfigRule.OrganizationManagedRuleMetadataProperty = {
  ruleIdentifier: 'ruleIdentifier',

  // the properties below are optional
  description: 'description',
  inputParameters: 'inputParameters',
  maximumExecutionFrequency: 'maximumExecutionFrequency',
  resourceIdScope: 'resourceIdScope',
  resourceTypesScope: ['resourceTypesScope'],
  tagKeyScope: 'tagKeyScope',
  tagValueScope: 'tagValueScope',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config

organization_managed_rule_metadata_property = config.CfnOrganizationConfigRule.OrganizationManagedRuleMetadataProperty(
    rule_identifier="ruleIdentifier",

    # the properties below are optional
    description="description",
    input_parameters="inputParameters",
    maximum_execution_frequency="maximumExecutionFrequency",
    resource_id_scope="resourceIdScope",
    resource_types_scope=["resourceTypesScope"],
    tag_key_scope="tagKeyScope",
    tag_value_scope="tagValueScope"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;

OrganizationManagedRuleMetadataProperty organizationManagedRuleMetadataProperty = OrganizationManagedRuleMetadataProperty.builder()
        .ruleIdentifier("ruleIdentifier")

        // the properties below are optional
        .description("description")
        .inputParameters("inputParameters")
        .maximumExecutionFrequency("maximumExecutionFrequency")
        .resourceIdScope("resourceIdScope")
        .resourceTypesScope(List.of("resourceTypesScope"))
        .tagKeyScope("tagKeyScope")
        .tagValueScope("tagValueScope")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;

var organizationManagedRuleMetadataProperty = new OrganizationManagedRuleMetadataProperty {
    RuleIdentifier = "ruleIdentifier",

    // the properties below are optional
    Description = "description",
    InputParameters = "inputParameters",
    MaximumExecutionFrequency = "maximumExecutionFrequency",
    ResourceIdScope = "resourceIdScope",
    ResourceTypesScope = new [] { "resourceTypesScope" },
    TagKeyScope = "tagKeyScope",
    TagValueScope = "tagValueScope"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

organizationManagedRuleMetadataProperty := &OrganizationManagedRuleMetadataProperty{
	RuleIdentifier: jsii.String("ruleIdentifier"),

	// the properties below are optional
	Description: jsii.String("description"),
	InputParameters: jsii.String("inputParameters"),
	MaximumExecutionFrequency: jsii.String("maximumExecutionFrequency"),
	ResourceIdScope: jsii.String("resourceIdScope"),
	ResourceTypesScope: []*string{
		jsii.String("resourceTypesScope"),
	},
	TagKeyScope: jsii.String("tagKeyScope"),
	TagValueScope: jsii.String("tagValueScope"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description that you provide for your organization AWS Config rule.
inputParametersoptionalstringinput_parametersoptionalstrinputParametersoptionalStringInputParametersoptionalstringInputParametersoptional*string #
A string, in JSON format, that is passed to your organization AWS Config rule Lambda function.
maximumExecutionFrequencyoptionalstringmaximum_execution_frequencyoptionalstrmaximumExecutionFrequencyoptionalStringMaximumExecutionFrequencyoptionalstringMaximumExecutionFrequencyoptional*string #
The maximum frequency with which AWS Config runs evaluations for a rule.
notes

This is for an AWS Config managed rule that is triggered at a periodic frequency.

By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.

resourceIdScopeoptionalstringresource_id_scopeoptionalstrresourceIdScopeoptionalStringResourceIdScopeoptionalstringResourceIdScopeoptional*string #
The ID of the AWS resource that was evaluated.
resourceTypesScopeoptionalstring[]resource_types_scopeoptionaltyping.List[str]resourceTypesScopeoptionalList<String>ResourceTypesScopeoptionalstring[]ResourceTypesScopeoptional*[]*string #
The type of the AWS resource that was evaluated.
ruleIdentifierstringrule_identifierstrruleIdentifierStringRuleIdentifierstringRuleIdentifier*string required #
For organization config managed rules, a predefined identifier from a list.

For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Config managed rules .

tagKeyScopeoptionalstringtag_key_scopeoptionalstrtagKeyScopeoptionalStringTagKeyScopeoptionalstringTagKeyScopeoptional*string #
One part of a key-value pair that make up a tag.

A key is a general label that acts like a category for more specific tag values.

tagValueScopeoptionalstringtag_value_scopeoptionalstrtagValueScopeoptionalStringTagValueScopeoptionalstringTagValueScopeoptional*string #
The optional part of a key-value pair that make up a tag.

A value acts as a descriptor within a tag category (key).