@Generated(value="software.amazon.awssdk:codegen") public final class Scope extends Object implements StructuredPojo, ToCopyableBuilder<Scope.Builder,Scope>
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 | Class and Description |
---|---|
static interface |
Scope.Builder |
Modifier and Type | Method and Description |
---|---|
static Scope.Builder |
builder() |
String |
complianceResourceId()
The IDs of the only AWS resource that you want to trigger an evaluation for the rule.
|
List<String> |
complianceResourceTypes()
The resource types of only those AWS resources that you want to trigger an evaluation for the rule.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Scope.Builder> |
serializableBuilderClass() |
String |
tagKey()
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
String |
tagValue()
The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule.
|
Scope.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public List<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
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ComplianceResourceId
.public String tagKey()
The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.
public 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
, you must also specify a value for TagKey
.public 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
.
ComplianceResourceTypes
.public Scope.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Scope.Builder,Scope>
public static Scope.Builder builder()
public static Class<? extends Scope.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.