Class CfnConfigRule.ScopeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnConfigRule.ScopeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigRule.ScopeProperty>
- Enclosing interface:
- CfnConfigRule.ScopeProperty
@Stability(Stable)
public static final class CfnConfigRule.ScopeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigRule.ScopeProperty>
A builder for
CfnConfigRule.ScopeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.complianceResourceId(String complianceResourceId) Sets the value ofCfnConfigRule.ScopeProperty.getComplianceResourceId()complianceResourceTypes(List<String> complianceResourceTypes) Sets the value ofCfnConfigRule.ScopeProperty.getComplianceResourceTypes()Sets the value ofCfnConfigRule.ScopeProperty.getTagKey()Sets the value ofCfnConfigRule.ScopeProperty.getTagValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
complianceResourceId
@Stability(Stable) public CfnConfigRule.ScopeProperty.Builder complianceResourceId(String complianceResourceId) Sets the value ofCfnConfigRule.ScopeProperty.getComplianceResourceId()- Parameters:
complianceResourceId- The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type forComplianceResourceTypes.- Returns:
this
-
complianceResourceTypes
@Stability(Stable) public CfnConfigRule.ScopeProperty.Builder complianceResourceTypes(List<String> complianceResourceTypes) Sets the value ofCfnConfigRule.ScopeProperty.getComplianceResourceTypes()- Parameters:
complianceResourceTypes- The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID forComplianceResourceId.- Returns:
this
-
tagKey
Sets the value ofCfnConfigRule.ScopeProperty.getTagKey()- Parameters:
tagKey- The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.- Returns:
this
-
tagValue
Sets the value ofCfnConfigRule.ScopeProperty.getTagValue()- Parameters:
tagValue- The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value forTagValue, you must also specify a value forTagKey.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigRule.ScopeProperty>- Returns:
- a new instance of
CfnConfigRule.ScopeProperty - Throws:
NullPointerException- if any required attribute was not provided
-