Class CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty>
- Enclosing interface:
CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty
@Stability(Stable)
public static final class CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) inputParameters
(String inputParameters) lambdaFunctionArn
(String lambdaFunctionArn) maximumExecutionFrequency
(String maximumExecutionFrequency) organizationConfigRuleTriggerTypes
(List<String> organizationConfigRuleTriggerTypes) resourceIdScope
(String resourceIdScope) resourceTypesScope
(List<String> resourceTypesScope) tagKeyScope
(String tagKeyScope) tagValueScope
(String tagValueScope)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunctionArn
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder lambdaFunctionArn(String lambdaFunctionArn) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getLambdaFunctionArn()
- Parameters:
lambdaFunctionArn
- The lambda function ARN. This parameter is required.- Returns:
this
-
organizationConfigRuleTriggerTypes
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder organizationConfigRuleTriggerTypes(List<String> organizationConfigRuleTriggerTypes) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getOrganizationConfigRuleTriggerTypes()
- Parameters:
organizationConfigRuleTriggerTypes
- The type of notification that triggers AWS Config to run an evaluation for a rule. This parameter is required. 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 forMaximumExecutionFrequency
.
- Returns:
this
-
description
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder description(String description) - Parameters:
description
- The description that you provide for your organization AWS Config rule.- Returns:
this
-
inputParameters
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder inputParameters(String inputParameters) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getInputParameters()
- Parameters:
inputParameters
- A string, in JSON format, that is passed to your organization AWS Config rule Lambda function.- Returns:
this
-
maximumExecutionFrequency
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder maximumExecutionFrequency(String maximumExecutionFrequency) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getMaximumExecutionFrequency()
- Parameters:
maximumExecutionFrequency
- 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, seeConfigSnapshotDeliveryProperties
.By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequency
parameter.- Returns:
this
-
resourceIdScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder resourceIdScope(String resourceIdScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getResourceIdScope()
- Parameters:
resourceIdScope
- The ID of the AWS resource that was evaluated.- Returns:
this
-
resourceTypesScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder resourceTypesScope(List<String> resourceTypesScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getResourceTypesScope()
- Parameters:
resourceTypesScope
- The type of the AWS resource that was evaluated.- Returns:
this
-
tagKeyScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder tagKeyScope(String tagKeyScope) - Parameters:
tagKeyScope
- 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.- Returns:
this
-
tagValueScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.Builder tagValueScope(String tagValueScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty.getTagValueScope()
- Parameters:
tagValueScope
- The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty>
- Returns:
- a new instance of
CfnOrganizationConfigRule.OrganizationCustomRuleMetadataProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-