Class RecordingStrategy
- java.lang.Object
-
- software.amazon.awssdk.services.config.model.RecordingStrategy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RecordingStrategy.Builder,RecordingStrategy>
@Generated("software.amazon.awssdk:codegen") public final class RecordingStrategy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecordingStrategy.Builder,RecordingStrategy>
Specifies the recording strategy of the configuration recorder.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRecordingStrategy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordingStrategy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends RecordingStrategy.Builder>serializableBuilderClass()RecordingStrategy.BuildertoBuilder()StringtoString()Returns a string representation of this object.RecordingStrategyTypeuseOnly()The recording strategy for the configuration recorder.StringuseOnlyAsString()The recording strategy for the configuration recorder.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
useOnly
public final RecordingStrategyType useOnly()
The recording strategy for the configuration recorder.
-
If you set this option to
ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all supported regionally recorded resource types. You also must set theallSupportedfield of RecordingGroup totrue. When Config adds support for a new regionally recorded resource type, Config automatically starts recording resources of that type. For a list of supported resource types, see Supported Resource Types in the Config developer guide. -
If you set this option to
INCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for only the resource types that you specify in theresourceTypesfield of RecordingGroup. -
If you set this option to
EXCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded in theresourceTypesfield of ExclusionByResourceTypes.
Required and optional fields
The
recordingStrategyfield is optional when you set theallSupportedfield of RecordingGroup totrue.The
recordingStrategyfield is optional when you list resource types in theresourceTypesfield of RecordingGroup.The
recordingStrategyfield is required if you list resource types to exclude from recording in theresourceTypesfield of ExclusionByResourceTypes.Overriding fields
If you choose
EXCLUSION_BY_RESOURCE_TYPESfor the recording strategy, theexclusionByResourceTypesfield will override other properties in the request.For example, even if you set
includeGlobalResourceTypesto false, globally recorded IAM resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in theresourceTypesfield ofexclusionByResourceTypes.Global resource types and the exclusion recording strategy
By default, if you choose the
EXCLUSION_BY_RESOURCE_TYPESrecording strategy, 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.In addition, unless specifically listed as exclusions,
AWS::RDS::GlobalClusterwill 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 automatically in all enabled Config Regions where Config was available before February 2022. This list does not include the following Regions:-
Asia Pacific (Hyderabad)
-
Asia Pacific (Melbourne)
-
Europe (Spain)
-
Europe (Zurich)
-
Israel (Tel Aviv)
-
Middle East (UAE)
If the service returns an enum value that is not available in the current SDK version,
useOnlywill returnRecordingStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromuseOnlyAsString().- Returns:
- The recording strategy for the configuration recorder.
-
If you set this option to
ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all supported regionally recorded resource types. You also must set theallSupportedfield of RecordingGroup totrue. When Config adds support for a new regionally recorded resource type, Config automatically starts recording resources of that type. For a list of supported resource types, see Supported Resource Types in the Config developer guide. -
If you set this option to
INCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for only the resource types that you specify in theresourceTypesfield of RecordingGroup. -
If you set this option to
EXCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded in theresourceTypesfield of ExclusionByResourceTypes.
Required and optional fields
The
recordingStrategyfield is optional when you set theallSupportedfield of RecordingGroup totrue.The
recordingStrategyfield is optional when you list resource types in theresourceTypesfield of RecordingGroup.The
recordingStrategyfield is required if you list resource types to exclude from recording in theresourceTypesfield of ExclusionByResourceTypes.Overriding fields
If you choose
EXCLUSION_BY_RESOURCE_TYPESfor the recording strategy, theexclusionByResourceTypesfield will override other properties in the request.For example, even if you set
includeGlobalResourceTypesto false, globally recorded IAM resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in theresourceTypesfield ofexclusionByResourceTypes.Global resource types and the exclusion recording strategy
By default, if you choose the
EXCLUSION_BY_RESOURCE_TYPESrecording strategy, 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.In addition, unless specifically listed as exclusions,
AWS::RDS::GlobalClusterwill 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 automatically in all enabled Config Regions where Config was available before February 2022. This list does not include the following Regions:-
Asia Pacific (Hyderabad)
-
Asia Pacific (Melbourne)
-
Europe (Spain)
-
Europe (Zurich)
-
Israel (Tel Aviv)
-
Middle East (UAE)
-
- See Also:
RecordingStrategyType
-
-
useOnlyAsString
public final String useOnlyAsString()
The recording strategy for the configuration recorder.
-
If you set this option to
ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all supported regionally recorded resource types. You also must set theallSupportedfield of RecordingGroup totrue. When Config adds support for a new regionally recorded resource type, Config automatically starts recording resources of that type. For a list of supported resource types, see Supported Resource Types in the Config developer guide. -
If you set this option to
INCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for only the resource types that you specify in theresourceTypesfield of RecordingGroup. -
If you set this option to
EXCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded in theresourceTypesfield of ExclusionByResourceTypes.
Required and optional fields
The
recordingStrategyfield is optional when you set theallSupportedfield of RecordingGroup totrue.The
recordingStrategyfield is optional when you list resource types in theresourceTypesfield of RecordingGroup.The
recordingStrategyfield is required if you list resource types to exclude from recording in theresourceTypesfield of ExclusionByResourceTypes.Overriding fields
If you choose
EXCLUSION_BY_RESOURCE_TYPESfor the recording strategy, theexclusionByResourceTypesfield will override other properties in the request.For example, even if you set
includeGlobalResourceTypesto false, globally recorded IAM resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in theresourceTypesfield ofexclusionByResourceTypes.Global resource types and the exclusion recording strategy
By default, if you choose the
EXCLUSION_BY_RESOURCE_TYPESrecording strategy, 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.In addition, unless specifically listed as exclusions,
AWS::RDS::GlobalClusterwill 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 automatically in all enabled Config Regions where Config was available before February 2022. This list does not include the following Regions:-
Asia Pacific (Hyderabad)
-
Asia Pacific (Melbourne)
-
Europe (Spain)
-
Europe (Zurich)
-
Israel (Tel Aviv)
-
Middle East (UAE)
If the service returns an enum value that is not available in the current SDK version,
useOnlywill returnRecordingStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromuseOnlyAsString().- Returns:
- The recording strategy for the configuration recorder.
-
If you set this option to
ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all supported regionally recorded resource types. You also must set theallSupportedfield of RecordingGroup totrue. When Config adds support for a new regionally recorded resource type, Config automatically starts recording resources of that type. For a list of supported resource types, see Supported Resource Types in the Config developer guide. -
If you set this option to
INCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for only the resource types that you specify in theresourceTypesfield of RecordingGroup. -
If you set this option to
EXCLUSION_BY_RESOURCE_TYPES, Config records configuration changes for all supported resource types, except the resource types that you specify to exclude from being recorded in theresourceTypesfield of ExclusionByResourceTypes.
Required and optional fields
The
recordingStrategyfield is optional when you set theallSupportedfield of RecordingGroup totrue.The
recordingStrategyfield is optional when you list resource types in theresourceTypesfield of RecordingGroup.The
recordingStrategyfield is required if you list resource types to exclude from recording in theresourceTypesfield of ExclusionByResourceTypes.Overriding fields
If you choose
EXCLUSION_BY_RESOURCE_TYPESfor the recording strategy, theexclusionByResourceTypesfield will override other properties in the request.For example, even if you set
includeGlobalResourceTypesto false, globally recorded IAM resource types will still be automatically recorded in this option unless those resource types are specifically listed as exclusions in theresourceTypesfield ofexclusionByResourceTypes.Global resource types and the exclusion recording strategy
By default, if you choose the
EXCLUSION_BY_RESOURCE_TYPESrecording strategy, 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.In addition, unless specifically listed as exclusions,
AWS::RDS::GlobalClusterwill 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 automatically in all enabled Config Regions where Config was available before February 2022. This list does not include the following Regions:-
Asia Pacific (Hyderabad)
-
Asia Pacific (Melbourne)
-
Europe (Spain)
-
Europe (Zurich)
-
Israel (Tel Aviv)
-
Middle East (UAE)
-
- See Also:
RecordingStrategyType
-
-
toBuilder
public RecordingStrategy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecordingStrategy.Builder,RecordingStrategy>
-
builder
public static RecordingStrategy.Builder builder()
-
serializableBuilderClass
public static Class<? extends RecordingStrategy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-