aws-cdk-lib.aws_config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty

interface OrganizationCustomRuleMetadataProperty

LanguageType name
.NETAmazon.CDK.AWS.Config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsconfig#CfnOrganizationConfigRule_OrganizationCustomRuleMetadataProperty
Javasoftware.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty
Pythonaws_cdk.aws_config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty
TypeScript aws-cdk-lib » aws_config » CfnOrganizationConfigRule » OrganizationCustomRuleMetadataProperty

organization custom rule metadata such as resource type, resource ID of AWS resource, Lambda function ARN, and organization trigger types that trigger AWS Config to evaluate your AWS resources against a rule.

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

Example

// 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 organizationCustomRuleMetadataProperty: config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty = {
  lambdaFunctionArn: 'lambdaFunctionArn',
  organizationConfigRuleTriggerTypes: ['organizationConfigRuleTriggerTypes'],

  // the properties below are optional
  description: 'description',
  inputParameters: 'inputParameters',
  maximumExecutionFrequency: 'maximumExecutionFrequency',
  resourceIdScope: 'resourceIdScope',
  resourceTypesScope: ['resourceTypesScope'],
  tagKeyScope: 'tagKeyScope',
  tagValueScope: 'tagValueScope',
};

Properties

NameTypeDescription
lambdaFunctionArnstringThe lambda function ARN.
organizationConfigRuleTriggerTypesstring[]The type of notification that triggers AWS Config to run an evaluation for a rule.
description?stringThe description that you provide for your organization AWS Config rule.
inputParameters?stringA string, in JSON format, that is passed to your organization AWS Config rule Lambda function.
maximumExecutionFrequency?stringThe maximum frequency with which AWS Config runs evaluations for a rule.
resourceIdScope?stringThe ID of the AWS resource that was evaluated.
resourceTypesScope?string[]The type of the AWS resource that was evaluated.
tagKeyScope?stringOne part of a key-value pair that make up a tag.
tagValueScope?stringThe optional part of a key-value pair that make up a tag.

lambdaFunctionArn

Type: string

The lambda function ARN.


organizationConfigRuleTriggerTypes

Type: string[]

The type of notification that triggers AWS Config to run an evaluation for a rule.

You can specify the following notification types:

  • ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers a configuration item as a result of a resource change.
  • OversizedConfigurationItemChangeNotification - Triggers an evaluation when AWS Config delivers an oversized configuration item. AWS Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.
  • ScheduledNotification - Triggers a periodic evaluation at the frequency specified for MaximumExecutionFrequency .

description?

Type: string (optional)

The description that you provide for your organization AWS Config rule.


inputParameters?

Type: string (optional)

A string, in JSON format, that is passed to your organization AWS Config rule Lambda function.


maximumExecutionFrequency?

Type: string (optional)

The maximum frequency with which AWS Config runs evaluations for a rule.

Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties .

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


resourceIdScope?

Type: string (optional)

The ID of the AWS resource that was evaluated.


resourceTypesScope?

Type: string[] (optional)

The type of the AWS resource that was evaluated.


tagKeyScope?

Type: string (optional)

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.


tagValueScope?

Type: string (optional)

The optional part of a key-value pair that make up a tag.

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