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 KMS key to use for EBS encryption.
|
CrossRegionCopyRule.Builder |
copyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
default CrossRegionCopyRule.Builder |
deprecateRule(Consumer<CrossRegionCopyDeprecateRule.Builder> deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
CrossRegionCopyRule.Builder |
deprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the 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.
|
default CrossRegionCopyRule.Builder |
retainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
CrossRegionCopyRule.Builder |
retainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
CrossRegionCopyRule.Builder |
target(String target)
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
CrossRegionCopyRule.Builder |
targetRegion(String targetRegion)
Avoid using this parameter when creating new policies.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCrossRegionCopyRule.Builder targetRegion(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.
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.
CrossRegionCopyRule.Builder target(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.
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.
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 KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
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.CrossRegionCopyRule.Builder copyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
copyTags - Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot
copy.CrossRegionCopyRule.Builder retainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
retainRule - The retention rule that indicates how long snapshot copies are to be retained in the destination
Region.default CrossRegionCopyRule.Builder retainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
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)CrossRegionCopyRule.Builder deprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
deprecateRule - The AMI deprecation rule for cross-Region AMI copies created by the rule.default CrossRegionCopyRule.Builder deprecateRule(Consumer<CrossRegionCopyDeprecateRule.Builder> deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
This is a convenience that creates an instance of theCrossRegionCopyDeprecateRule.Builder avoiding
the need to create one manually via CrossRegionCopyDeprecateRule.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to deprecateRule(CrossRegionCopyDeprecateRule).deprecateRule - a consumer that will call methods on CrossRegionCopyDeprecateRule.BuilderdeprecateRule(CrossRegionCopyDeprecateRule)Copyright © 2021. All rights reserved.