Class CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty>
- Enclosing interface:
CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty
@Stability(Stable)
public static final class CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.debugLogDeliveryAccounts
(List<String> debugLogDeliveryAccounts) description
(String description) inputParameters
(String inputParameters) maximumExecutionFrequency
(String maximumExecutionFrequency) organizationConfigRuleTriggerTypes
(List<String> organizationConfigRuleTriggerTypes) policyText
(String policyText) resourceIdScope
(String resourceIdScope) resourceTypesScope
(List<String> resourceTypesScope) tagKeyScope
(String tagKeyScope) tagValueScope
(String tagValueScope)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyText
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder policyText(String policyText) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getPolicyText()
- Parameters:
policyText
- The policy definition containing the logic for your organization AWS Config Custom Policy rule. This parameter is required.- Returns:
this
-
runtime
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder runtime(String runtime) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getRuntime()
- Parameters:
runtime
- The runtime system for your organization AWS Config Custom Policy rules. This parameter is required. Guard is a policy-as-code language that allows you to write policies that are enforced by AWS Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository .- Returns:
this
-
debugLogDeliveryAccounts
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder debugLogDeliveryAccounts(List<String> debugLogDeliveryAccounts) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getDebugLogDeliveryAccounts()
- Parameters:
debugLogDeliveryAccounts
- A list of accounts that you can enable debug logging for your organization AWS Config Custom Policy rule. List is null when debug logging is enabled for all accounts.- Returns:
this
-
description
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder description(String description) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getDescription()
- Parameters:
description
- The description that you provide for your organization AWS Config Custom Policy rule.- Returns:
this
-
inputParameters
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder inputParameters(String inputParameters) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getInputParameters()
- Parameters:
inputParameters
- A string, in JSON format, that is passed to your organization AWS Config Custom Policy rule.- Returns:
this
-
maximumExecutionFrequency
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder maximumExecutionFrequency(String maximumExecutionFrequency) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getMaximumExecutionFrequency()
- Parameters:
maximumExecutionFrequency
- The maximum frequency with which AWS Config runs evaluations for a rule. Your AWS Config Custom Policy rule is triggered when AWS Config delivers the configuration snapshot. For more information, seeConfigSnapshotDeliveryProperties
.- Returns:
this
-
organizationConfigRuleTriggerTypes
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder organizationConfigRuleTriggerTypes(List<String> organizationConfigRuleTriggerTypes) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getOrganizationConfigRuleTriggerTypes()
- Parameters:
organizationConfigRuleTriggerTypes
- The type of notification that initiates AWS Config to run an evaluation for a rule. For AWS Config Custom Policy rules, AWS Config supports change-initiated notification types:ConfigurationItemChangeNotification
- Initiates an evaluation when AWS Config delivers a configuration item as a result of a resource change.OversizedConfigurationItemChangeNotification
- Initiates 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.
- Returns:
this
-
resourceIdScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder resourceIdScope(String resourceIdScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getResourceIdScope()
- Parameters:
resourceIdScope
- The ID of the AWS resource that was evaluated.- Returns:
this
-
resourceTypesScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder resourceTypesScope(List<String> resourceTypesScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getResourceTypesScope()
- Parameters:
resourceTypesScope
- The type of the AWS resource that was evaluated.- Returns:
this
-
tagKeyScope
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.Builder tagKeyScope(String tagKeyScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.getTagKeyScope()
- 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.OrganizationCustomPolicyRuleMetadataProperty.Builder tagValueScope(String tagValueScope) Sets the value ofCfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty.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
@Stability(Stable) public CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty>
- Returns:
- a new instance of
CfnOrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-