@Stability(value=Stable)
public static interface CfnLifecyclePolicy.ScheduleProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;
ScheduleProperty scheduleProperty = ScheduleProperty.builder()
.copyTags(false)
.createRule(CreateRuleProperty.builder()
.cronExpression("cronExpression")
.interval(123)
.intervalUnit("intervalUnit")
.location("location")
.times(List.of("times"))
.build())
.crossRegionCopyRules(List.of(CrossRegionCopyRuleProperty.builder()
.encrypted(false)
// the properties below are optional
.cmkArn("cmkArn")
.copyTags(false)
.deprecateRule(CrossRegionCopyDeprecateRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.retainRule(CrossRegionCopyRetainRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.target("target")
.targetRegion("targetRegion")
.build()))
.deprecateRule(DeprecateRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.fastRestoreRule(FastRestoreRuleProperty.builder()
.availabilityZones(List.of("availabilityZones"))
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.name("name")
.retainRule(RetainRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.shareRules(List.of(ShareRuleProperty.builder()
.targetAccounts(List.of("targetAccounts"))
.unshareInterval(123)
.unshareIntervalUnit("unshareIntervalUnit")
.build()))
.tagsToAdd(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variableTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.ScheduleProperty.Builder
A builder for
CfnLifecyclePolicy.ScheduleProperty |
static class |
CfnLifecyclePolicy.ScheduleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.ScheduleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.ScheduleProperty.Builder |
builder() |
default Object |
getCopyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
default Object |
getCreateRule()
The creation rule.
|
default Object |
getCrossRegionCopyRules()
The rule for cross-Region snapshot copies.
|
default Object |
getDeprecateRule()
The AMI deprecation rule for the schedule.
|
default Object |
getFastRestoreRule()
The rule for enabling fast snapshot restore.
|
default String |
getName()
The name of the schedule.
|
default Object |
getRetainRule()
The retention rule.
|
default Object |
getShareRules()
The rule for sharing snapshots with other AWS accounts .
|
default Object |
getTagsToAdd()
The tags to apply to policy-created resources.
|
default Object |
getVariableTags()
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
@Stability(value=Stable) @Nullable default Object getCopyTags()
@Stability(value=Stable) @Nullable default Object getCreateRule()
@Stability(value=Stable) @Nullable default Object getCrossRegionCopyRules()
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
@Stability(value=Stable) @Nullable default Object getDeprecateRule()
@Stability(value=Stable) @Nullable default Object getFastRestoreRule()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default Object getRetainRule()
@Stability(value=Stable) @Nullable default Object getShareRules()
@Stability(value=Stable) @Nullable default Object getTagsToAdd()
These user-defined tags are in addition to the AWS -added lifecycle tags.
@Stability(value=Stable) @Nullable default Object getVariableTags()
Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id) or $(timestamp) . Variable tags are only valid for EBS Snapshot Management – Instance policies.
@Stability(value=Stable) static CfnLifecyclePolicy.ScheduleProperty.Builder builder()
Copyright © 2022. All rights reserved.