public class Scope
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
complianceResourceId
The IDs of the only AWS resource that you want to trigger an evaluation
for the rule.
|
private SdkInternalList<java.lang.String> |
complianceResourceTypes
The resource types of only those AWS resources that you want to trigger
an evaluation for the rule.
|
private java.lang.String |
tagKey
The tag key that is applied to only those AWS resources that you want you
want to trigger an evaluation for the rule.
|
private java.lang.String |
tagValue
The tag value applied to only those AWS resources that you want to
trigger an evaluation for the rule.
|
Constructor and Description |
---|
Scope() |
Modifier and Type | Method and Description |
---|---|
Scope |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComplianceResourceId()
The IDs of the only AWS resource that you want to trigger an evaluation
for the rule.
|
java.util.List<java.lang.String> |
getComplianceResourceTypes()
The resource types of only those AWS resources that you want to trigger
an evaluation for the rule.
|
java.lang.String |
getTagKey()
The tag key that is applied to only those AWS resources that you want you
want to trigger an evaluation for the rule.
|
java.lang.String |
getTagValue()
The tag value applied to only those AWS resources that you want to
trigger an evaluation for the rule.
|
int |
hashCode() |
void |
setComplianceResourceId(java.lang.String complianceResourceId)
The IDs of the only AWS resource that you want to trigger an evaluation
for the rule.
|
void |
setComplianceResourceTypes(java.util.Collection<java.lang.String> complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger
an evaluation for the rule.
|
void |
setTagKey(java.lang.String tagKey)
The tag key that is applied to only those AWS resources that you want you
want to trigger an evaluation for the rule.
|
void |
setTagValue(java.lang.String tagValue)
The tag value applied to only those AWS resources that you want to
trigger an evaluation for the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Scope |
withComplianceResourceId(java.lang.String complianceResourceId)
The IDs of the only AWS resource that you want to trigger an evaluation
for the rule.
|
Scope |
withComplianceResourceTypes(java.util.Collection<java.lang.String> complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger
an evaluation for the rule.
|
Scope |
withComplianceResourceTypes(java.lang.String... complianceResourceTypes)
The resource types of only those AWS resources that you want to trigger
an evaluation for the rule.
|
Scope |
withTagKey(java.lang.String tagKey)
The tag key that is applied to only those AWS resources that you want you
want to trigger an evaluation for the rule.
|
Scope |
withTagValue(java.lang.String tagValue)
The tag value applied to only those AWS resources that you want to
trigger an evaluation for the rule.
|
private SdkInternalList<java.lang.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
.
private java.lang.String tagKey
The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
private java.lang.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
.
private java.lang.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
.
public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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(java.lang.String tagKey)
The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
tagKey
- The tag key that is applied to only those AWS resources that you
want you want to trigger an evaluation for the rule.public java.lang.String getTagKey()
The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
public Scope withTagKey(java.lang.String tagKey)
The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.
tagKey
- The tag key that is applied to only those AWS resources that you
want you want to trigger an evaluation for the rule.public void setTagValue(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Scope clone()
clone
in class java.lang.Object