public static interface CrossRegionCopyRule.Builder extends SdkPojo, CopyableBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>
| Modifier and Type | Method and Description |
|---|---|
CrossRegionCopyRule.Builder |
cmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption.
|
CrossRegionCopyRule.Builder |
copyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
|
CrossRegionCopyRule.Builder |
encrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
default CrossRegionCopyRule.Builder |
retainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)
The retention rule.
|
CrossRegionCopyRule.Builder |
retainRule(CrossRegionCopyRetainRule retainRule)
The retention rule.
|
CrossRegionCopyRule.Builder |
target(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
|
CrossRegionCopyRule.Builder |
targetRegion(String targetRegion)
The target Region for the snapshot copies.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCrossRegionCopyRule.Builder targetRegion(String targetRegion)
The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
targetRegion - The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
CrossRegionCopyRule.Builder target(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
target - The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
CrossRegionCopyRule.Builder encrypted(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.
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.CrossRegionCopyRule.Builder cmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this parameter is not specified, your AWS managed CMK for EBS is used.
cmkArn - The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If
this parameter is not specified, your AWS managed CMK for EBS is used.CrossRegionCopyRule.Builder copyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
copyTags - Copy all user-defined tags from the source snapshot to the copied snapshot.CrossRegionCopyRule.Builder retainRule(CrossRegionCopyRetainRule retainRule)
The retention rule.
retainRule - The retention rule.default CrossRegionCopyRule.Builder retainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)
The retention rule.
This is a convenience that creates an instance of theCrossRegionCopyRetainRule.Builder avoiding the
need to create one manually via CrossRegionCopyRetainRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to retainRule(CrossRegionCopyRetainRule).retainRule - a consumer that will call methods on CrossRegionCopyRetainRule.BuilderretainRule(CrossRegionCopyRetainRule)Copyright © 2021. All rights reserved.