@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Scope extends Object implements Serializable, Cloneable, StructuredPojo
Defines which resources trigger an evaluation for an AWS Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.
Constructor and Description |
---|
Scope() |
Modifier and Type | Method and Description |
---|---|
Scope |
clone() |
boolean |
equals(Object obj) |
String |
getComplianceResourceId()
The IDs of the only AWS resource that you want to trigger an evaluation for the rule.
|
List<String> |
getComplianceResourceTypes()
The resource types of only those AWS resources that you want to trigger an evaluation for the rule.
|
String |
getTagKey()
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
String |
getTagValue()
The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComplianceResourceId(String complianceResourceId)
The IDs of the only AWS resource that you want to trigger an evaluation for the rule.
|
void |
setComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger an evaluation for the rule.
|
void |
setTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
void |
setTagValue(String tagValue)
The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Scope |
withComplianceResourceId(String complianceResourceId)
The IDs of the only AWS resource that you want to trigger an evaluation for the rule.
|
Scope |
withComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger an evaluation for the rule.
|
Scope |
withComplianceResourceTypes(String... complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger an evaluation for the rule.
|
Scope |
withTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
Scope |
withTagValue(String tagValue)
The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
public List<String> getComplianceResourceTypes()
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 for ComplianceResourceId
.
ComplianceResourceId
.public void setComplianceResourceTypes(Collection<String> 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 for ComplianceResourceId
.
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 for ComplianceResourceId
.public Scope withComplianceResourceTypes(String... 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 for ComplianceResourceId
.
NOTE: This method appends the values to the existing list (if any). Use
setComplianceResourceTypes(java.util.Collection)
or
withComplianceResourceTypes(java.util.Collection)
if you want to override the existing values.
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 for ComplianceResourceId
.public Scope withComplianceResourceTypes(Collection<String> 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 for ComplianceResourceId
.
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 for ComplianceResourceId
.public void setTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
tagKey
- The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the
rule.public String getTagKey()
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
public Scope withTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
tagKey
- The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the
rule.public void setTagValue(String 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 for TagValue
, you must also specify a value for TagKey
.
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 for TagValue
, you must also specify a value for TagKey
.public String getTagValue()
The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you
specify a value for TagValue
, you must also specify a value for TagKey
.
TagValue
, you must also specify a value for TagKey
.public Scope withTagValue(String 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 for TagValue
, you must also specify a value for TagKey
.
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 for TagValue
, you must also specify a value for TagKey
.public void setComplianceResourceId(String complianceResourceId)
The IDs 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 for ComplianceResourceTypes
.
complianceResourceId
- The IDs 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 for ComplianceResourceTypes
.public String getComplianceResourceId()
The IDs 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 for ComplianceResourceTypes
.
ComplianceResourceTypes
.public Scope withComplianceResourceId(String complianceResourceId)
The IDs 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 for ComplianceResourceTypes
.
complianceResourceId
- The IDs 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 for ComplianceResourceTypes
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.