All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.config.model.RecordingStrategy Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.config.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies the recording strategy of the configuration recorder. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecordingStrategy implements Serializable, Cloneable, StructuredPojo { /** *

* The recording strategy for the configuration recorder. *

*
    *
  • *

    * If you set this option to ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all * supported resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup to * true. When Config adds support for a new 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 the resourceTypes field 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 the * resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of RecordingGroup to * true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording in the * resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types will * still be automatically recorded in this option unless those resource types are specifically listed as exclusions * in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
*
*/ private String 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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup to * true. When Config adds support for a new 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 the resourceTypes field 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 the * resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of RecordingGroup to * true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording in the * resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types will * still be automatically recorded in this option unless those resource types are specifically listed as exclusions * in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
*
* * @param 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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup * to true. When Config adds support for a new 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 the resourceTypes field 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 the resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of * RecordingGroup * to true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording * in the resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types * will still be automatically recorded in this option unless those resource types are specifically listed as * exclusions in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
* @see RecordingStrategyType */ public void setUseOnly(String useOnly) { this.useOnly = 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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup to * true. When Config adds support for a new 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 the resourceTypes field 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 the * resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of RecordingGroup to * true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording in the * resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types will * still be automatically recorded in this option unless those resource types are specifically listed as exclusions * in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
*
* * @return The recording strategy for the configuration recorder.

*
    *
  • *

    * If you set this option to ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes * for all supported resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup * to true. When Config adds support for a new 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 the resourceTypes field 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 the resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of * RecordingGroup * to true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording * in the resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types * will still be automatically recorded in this option unless those resource types are specifically listed * as exclusions in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
* @see RecordingStrategyType */ public String getUseOnly() { return this.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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup to * true. When Config adds support for a new 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 the resourceTypes field 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 the * resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of RecordingGroup to * true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording in the * resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types will * still be automatically recorded in this option unless those resource types are specifically listed as exclusions * in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
*
* * @param 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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup * to true. When Config adds support for a new 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 the resourceTypes field 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 the resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of * RecordingGroup * to true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording * in the resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types * will still be automatically recorded in this option unless those resource types are specifically listed as * exclusions in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. * @see RecordingStrategyType */ public RecordingStrategy withUseOnly(String useOnly) { setUseOnly(useOnly); return this; } /** *

* The recording strategy for the configuration recorder. *

*
    *
  • *

    * If you set this option to ALL_SUPPORTED_RESOURCE_TYPES, Config records configuration changes for all * supported resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup to * true. When Config adds support for a new 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 the resourceTypes field 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 the * resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of RecordingGroup to * true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording in the * resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types will * still be automatically recorded in this option unless those resource types are specifically listed as exclusions * in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
*
* * @param 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 resource types, excluding the global IAM resource types. You also must set the * allSupported field of RecordingGroup * to true. When Config adds support for a new 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 the resourceTypes field 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 the resourceTypes field of ExclusionByResourceTypes. *

    *
  • *
* *

* Required and optional fields *

*

* The recordingStrategy field is optional when you set the allSupported field of * RecordingGroup * to true. *

*

* The recordingStrategy field is optional when you list resource types in the * resourceTypes field of RecordingGroup. *

*

* The recordingStrategy field is required if you list resource types to exclude from recording * in the resourceTypes field of ExclusionByResourceTypes. *

*
*

* Overriding fields *

*

* If you choose EXCLUSION_BY_RESOURCE_TYPES for the recording strategy, the * exclusionByResourceTypes field will override other properties in the request. *

*

* For example, even if you set includeGlobalResourceTypes to false, global IAM resource types * will still be automatically recorded in this option unless those resource types are specifically listed as * exclusions in the resourceTypes field of exclusionByResourceTypes. *

*
*

* Global resource types and the exclusion recording strategy *

*

* By default, if you choose the EXCLUSION_BY_RESOURCE_TYPES recording 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. *

*

* 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) *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. * @see RecordingStrategyType */ public RecordingStrategy withUseOnly(RecordingStrategyType useOnly) { this.useOnly = useOnly.toString(); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUseOnly() != null) sb.append("UseOnly: ").append(getUseOnly()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RecordingStrategy == false) return false; RecordingStrategy other = (RecordingStrategy) obj; if (other.getUseOnly() == null ^ this.getUseOnly() == null) return false; if (other.getUseOnly() != null && other.getUseOnly().equals(this.getUseOnly()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUseOnly() == null) ? 0 : getUseOnly().hashCode()); return hashCode; } @Override public RecordingStrategy clone() { try { return (RecordingStrategy) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.config.model.transform.RecordingStrategyMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy