@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExclusionByResourceTypes extends Object implements Serializable, Cloneable, StructuredPojo
Specifies whether the configuration recorder excludes certain resource types from being recorded. Use the
resourceTypes
field to enter a comma-separated list of resource types you want to exclude from
recording.
By default, when Config adds support for a new resource type in the Region where you set up the configuration recorder, including global resource types, Config starts recording resources of that type automatically.
How to use the exclusion recording strategy
To use this option, you must set the useOnly
field of RecordingStrategy to
EXCLUSION_BY_RESOURCE_TYPES
.
Config will then record configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded.
Global resource types and the exclusion recording strategy
Unless specifically listed as exclusions, AWS::RDS::GlobalCluster
will be recorded automatically in all
supported Config Regions were the configuration recorder is enabled.
IAM users, groups, roles, and customer managed policies will be recorded in the Region where you set up the configuration recorder if that is a Region where Config was available before February 2022. You cannot be record the global IAM resouce types in Regions supported by Config after February 2022. This list where you cannot record the global IAM resource types includes the following Regions:
Asia Pacific (Hyderabad)
Asia Pacific (Melbourne)
Canada West (Calgary)
Europe (Spain)
Europe (Zurich)
Israel (Tel Aviv)
Middle East (UAE)
Constructor and Description |
---|
ExclusionByResourceTypes() |
Modifier and Type | Method and Description |
---|---|
ExclusionByResourceTypes |
clone() |
boolean |
equals(Object obj) |
List<String> |
getResourceTypes()
A comma-separated list of resource types to exclude from recording by the configuration recorder.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceTypes(Collection<String> resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
|
String |
toString()
Returns a string representation of this object.
|
ExclusionByResourceTypes |
withResourceTypes(Collection<String> resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
|
ExclusionByResourceTypes |
withResourceTypes(ResourceType... resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
|
ExclusionByResourceTypes |
withResourceTypes(String... resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
|
public List<String> getResourceTypes()
A comma-separated list of resource types to exclude from recording by the configuration recorder.
ResourceType
public void setResourceTypes(Collection<String> resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
resourceTypes
- A comma-separated list of resource types to exclude from recording by the configuration recorder.ResourceType
public ExclusionByResourceTypes withResourceTypes(String... resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- A comma-separated list of resource types to exclude from recording by the configuration recorder.ResourceType
public ExclusionByResourceTypes withResourceTypes(Collection<String> resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
resourceTypes
- A comma-separated list of resource types to exclude from recording by the configuration recorder.ResourceType
public ExclusionByResourceTypes withResourceTypes(ResourceType... resourceTypes)
A comma-separated list of resource types to exclude from recording by the configuration recorder.
resourceTypes
- A comma-separated list of resource types to exclude from recording by the configuration recorder.ResourceType
public String toString()
toString
in class Object
Object.toString()
public ExclusionByResourceTypes clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.