@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecordingGroup extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the types of Amazon Web Services resource for which Config records configuration changes.
In the recording group, you specify whether all supported types or specific types of resources are recorded.
By default, Config records configuration changes for all supported types of regional resources that Config discovers in the region in which it is running. Regional resources are tied to a region and can be used only in that region. Examples of regional resources are EC2 instances and EBS volumes.
You can also have Config record configuration changes for supported types of global resources (for example, IAM resources). Global resources are not tied to an individual region and can be used in all regions.
The configuration details for any global resource are the same in all regions. If you customize Config in multiple regions to record global resources, it will create multiple configuration items each time a global resource changes: one configuration item for each region. These configuration items will contain identical data. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources, unless you want the configuration items to be available in multiple regions.
If you don't want Config to record all resources, you can specify which types of resources it will record with the
resourceTypes
parameter.
For a list of supported resource types, see Supported Resource Types.
For more information, see Selecting Which Resources Config Records.
Constructor and Description |
---|
RecordingGroup() |
Modifier and Type | Method and Description |
---|---|
RecordingGroup |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllSupported()
Specifies whether Config records configuration changes for every supported type of regional resource.
|
Boolean |
getIncludeGlobalResourceTypes()
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the
resources that it records.
|
List<String> |
getResourceTypes()
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example,
AWS::EC2::Instance or AWS::CloudTrail::Trail ). |
int |
hashCode() |
Boolean |
isAllSupported()
Specifies whether Config records configuration changes for every supported type of regional resource.
|
Boolean |
isIncludeGlobalResourceTypes()
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the
resources that it records.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllSupported(Boolean allSupported)
Specifies whether Config records configuration changes for every supported type of regional resource.
|
void |
setIncludeGlobalResourceTypes(Boolean includeGlobalResourceTypes)
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the
resources that it records.
|
void |
setResourceTypes(Collection<String> resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example,
AWS::EC2::Instance or AWS::CloudTrail::Trail ). |
String |
toString()
Returns a string representation of this object.
|
RecordingGroup |
withAllSupported(Boolean allSupported)
Specifies whether Config records configuration changes for every supported type of regional resource.
|
RecordingGroup |
withIncludeGlobalResourceTypes(Boolean includeGlobalResourceTypes)
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the
resources that it records.
|
RecordingGroup |
withResourceTypes(Collection<String> resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example,
AWS::EC2::Instance or AWS::CloudTrail::Trail ). |
RecordingGroup |
withResourceTypes(ResourceType... resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example,
AWS::EC2::Instance or AWS::CloudTrail::Trail ). |
RecordingGroup |
withResourceTypes(String... resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example,
AWS::EC2::Instance or AWS::CloudTrail::Trail ). |
public void setAllSupported(Boolean allSupported)
Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource, it
starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
allSupported
- Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource,
it starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
public Boolean getAllSupported()
Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource, it
starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
If you set this option to true
, when Config adds support for a new type of regional
resource, it starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
public RecordingGroup withAllSupported(Boolean allSupported)
Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource, it
starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
allSupported
- Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource,
it starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
public Boolean isAllSupported()
Specifies whether Config records configuration changes for every supported type of regional resource.
If you set this option to true
, when Config adds support for a new type of regional resource, it
starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
If you set this option to true
, when Config adds support for a new type of regional
resource, it starts recording resources of that type automatically.
If you set this option to true
, you cannot enumerate a list of resourceTypes
.
public void setIncludeGlobalResourceTypes(Boolean includeGlobalResourceTypes)
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource, it
starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
includeGlobalResourceTypes
- Specifies whether Config includes all supported types of global resources (for example, IAM resources)
with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource,
it starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
public Boolean getIncludeGlobalResourceTypes()
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource, it
starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource,
it starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
public RecordingGroup withIncludeGlobalResourceTypes(Boolean includeGlobalResourceTypes)
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource, it
starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
includeGlobalResourceTypes
- Specifies whether Config includes all supported types of global resources (for example, IAM resources)
with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource,
it starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
public Boolean isIncludeGlobalResourceTypes()
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource, it
starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
Before you can set this option to true
, you must set the allSupported
option to
true
.
If you set this option to true
, when Config adds support for a new type of global resource,
it starts recording resources of that type automatically.
The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing Config in only one region to record global resources.
public List<String> getResourceTypes()
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to true
.
If you set this option to false
, when Config adds support for a new type of resource, it will not
record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
AWS::EC2::Instance
or
AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to
true
.
If you set this option to false
, when Config adds support for a new type of resource, it
will not record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
ResourceType
public void setResourceTypes(Collection<String> resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to true
.
If you set this option to false
, when Config adds support for a new type of resource, it will not
record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
resourceTypes
- A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to
true
.
If you set this option to false
, when Config adds support for a new type of resource, it will
not record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
ResourceType
public RecordingGroup withResourceTypes(String... resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to true
.
If you set this option to false
, when Config adds support for a new type of resource, it will not
record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
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 that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to
true
.
If you set this option to false
, when Config adds support for a new type of resource, it will
not record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
ResourceType
public RecordingGroup withResourceTypes(Collection<String> resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to true
.
If you set this option to false
, when Config adds support for a new type of resource, it will not
record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
resourceTypes
- A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to
true
.
If you set this option to false
, when Config adds support for a new type of resource, it will
not record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
ResourceType
public RecordingGroup withResourceTypes(ResourceType... resourceTypes)
A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to true
.
If you set this option to false
, when Config adds support for a new type of resource, it will not
record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
resourceTypes
- A comma-separated list that specifies the types of Amazon Web Services resources for which Config records
configuration changes (for example, AWS::EC2::Instance
or AWS::CloudTrail::Trail
).
To record all configuration changes, you must set the allSupported
option to
true
.
If you set this option to false
, when Config adds support for a new type of resource, it will
not record resources of that type unless you manually add that type to your recording group.
For a list of valid resourceTypes
values, see the resourceType Value column in Supported Amazon Web Services resource Types.
ResourceType
public String toString()
toString
in class Object
Object.toString()
public RecordingGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.