public class Scope extends Object implements Serializable, Cloneable
Defines which resources AWS Config evaluates against a 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 or more resource IDs. Specify a scope to constrain the resources to be evaluated. If you do not specify a scope, all resources in your recording group are evaluated against the rule.
Constructor and Description |
---|
Scope() |
Modifier and Type | Method and Description |
---|---|
Scope |
clone() |
boolean |
equals(Object obj) |
String |
getComplianceResourceId()
The IDs of only those AWS resources that you want AWS Config to evaluate
against the rule.
|
List<String> |
getComplianceResourceTypes()
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule.
|
String |
getTagKey()
The tag key that is applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
String |
getTagValue()
The tag value applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
int |
hashCode() |
void |
setComplianceResourceId(String complianceResourceId)
The IDs of only those AWS resources that you want AWS Config to evaluate
against the rule.
|
void |
setComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule.
|
void |
setTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
void |
setTagValue(String tagValue)
The tag value applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Scope |
withComplianceResourceId(String complianceResourceId)
The IDs of only those AWS resources that you want AWS Config to evaluate
against the rule.
|
Scope |
withComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule.
|
Scope |
withComplianceResourceTypes(String... complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule.
|
Scope |
withTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
Scope |
withTagValue(String tagValue)
The tag value applied to only those AWS resources that you want AWS
Config to evaluate against the rule.
|
public List<String> getComplianceResourceTypes()
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule. You can specify only one type if you also
specify resource IDs for ComplianceResourceId
.
ComplianceResourceId
.public void setComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule. You can specify only one type if you also
specify resource IDs for ComplianceResourceId
.
complianceResourceTypes
- The resource types of only those AWS resources that you want AWS
Config to evaluate against the rule. You can specify only one type
if you also specify resource IDs for
ComplianceResourceId
.public Scope withComplianceResourceTypes(String... complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule. You can specify only one type if you also
specify resource IDs 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 AWS
Config to evaluate against the rule. You can specify only one type
if you also specify resource IDs for
ComplianceResourceId
.public Scope withComplianceResourceTypes(Collection<String> complianceResourceTypes)
The resource types of only those AWS resources that you want AWS Config
to evaluate against the rule. You can specify only one type if you also
specify resource IDs for ComplianceResourceId
.
complianceResourceTypes
- The resource types of only those AWS resources that you want AWS
Config to evaluate against the rule. You can specify only one type
if you also specify resource IDs for
ComplianceResourceId
.public void setTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want AWS Config to evaluate against the rule.
tagKey
- The tag key that is applied to only those AWS resources that you
want AWS Config to evaluate against the rule.public String getTagKey()
The tag key that is applied to only those AWS resources that you want AWS Config to evaluate against the rule.
public Scope withTagKey(String tagKey)
The tag key that is applied to only those AWS resources that you want AWS Config to evaluate against the rule.
tagKey
- The tag key that is applied to only those AWS resources that you
want AWS Config to evaluate against the rule.public void setTagValue(String tagValue)
The tag value applied to only those AWS resources that you want AWS
Config to evaluate against 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
AWS Config to evaluate against 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 AWS
Config to evaluate against 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 AWS
Config to evaluate against 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
AWS Config to evaluate against 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 only those AWS resources that you want AWS Config to evaluate
against the rule. If you specify a resource ID, you must specify one
resource type for ComplianceResourceTypes
.
complianceResourceId
- The IDs of only those AWS resources that you want AWS Config to
evaluate against the rule. If you specify a resource ID, you must
specify one resource type for ComplianceResourceTypes
.public String getComplianceResourceId()
The IDs of only those AWS resources that you want AWS Config to evaluate
against 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 only those AWS resources that you want AWS Config to evaluate
against the rule. If you specify a resource ID, you must specify one
resource type for ComplianceResourceTypes
.
complianceResourceId
- The IDs of only those AWS resources that you want AWS Config to
evaluate against 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()
Copyright © 2015. All rights reserved.