@Generated(value="software.amazon.awssdk:codegen") public final class RecordingGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecordingGroup.Builder,RecordingGroup>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecordingGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allSupported()
Specifies whether Config records configuration changes for every supported type of regional resource.
|
static RecordingGroup.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResourceTypes()
For responses, this returns true if the service returned a value for the ResourceTypes property.
|
Boolean |
includeGlobalResourceTypes()
Specifies whether Config includes all supported types of global resources (for example, IAM resources) with the
resources that it records.
|
List<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). |
List<String> |
resourceTypesAsStrings()
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). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecordingGroup.Builder> |
serializableBuilderClass() |
RecordingGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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 final 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.
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 final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceTypes() method.
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.
public final boolean hasResourceTypes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> resourceTypesAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceTypes() method.
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.
public RecordingGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecordingGroup.Builder,RecordingGroup>public static RecordingGroup.Builder builder()
public static Class<? extends RecordingGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.