@Generated(value="software.amazon.awssdk:codegen") public final class CrossRegionCopyRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>
Specifies a rule for cross-Region snapshot copies.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CrossRegionCopyRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CrossRegionCopyRule.Builder |
builder() |
String |
cmkArn()
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
Boolean |
copyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
CrossRegionCopyDeprecateRule |
deprecateRule()
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
Boolean |
encrypted()
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
CrossRegionCopyRetainRule |
retainRule()
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CrossRegionCopyRule.Builder> |
serializableBuilderClass() |
String |
target()
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
String |
targetRegion()
Avoid using this parameter when creating new policies.
|
CrossRegionCopyRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String targetRegion()
Avoid using this parameter when creating new policies. Instead, use Target to specify a target Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
public final String target()
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
Use this parameter instead of TargetRegion. Do not specify both.
public final Boolean encrypted()
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
public final String cmkArn()
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
public final Boolean copyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
public final CrossRegionCopyRetainRule retainRule()
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
public final CrossRegionCopyDeprecateRule deprecateRule()
The AMI deprecation rule for cross-Region AMI copies created by the rule.
public CrossRegionCopyRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>public static CrossRegionCopyRule.Builder builder()
public static Class<? extends CrossRegionCopyRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.