Class CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.ScheduleProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.ScheduleProperty
CfnLifecyclePolicyPropsMixin.ScheduleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getArchiveRule()archiveRule(IResolvable archiveRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getArchiveRule()build()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCopyTags()copyTags(IResolvable copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCopyTags()Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCreateRule()createRule(IResolvable createRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCreateRule()crossRegionCopyRules(List<? extends Object> crossRegionCopyRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCrossRegionCopyRules()crossRegionCopyRules(IResolvable crossRegionCopyRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCrossRegionCopyRules()deprecateRule(CfnLifecyclePolicyPropsMixin.DeprecateRuleProperty deprecateRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getDeprecateRule()deprecateRule(IResolvable deprecateRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getDeprecateRule()fastRestoreRule(CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty fastRestoreRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getFastRestoreRule()fastRestoreRule(IResolvable fastRestoreRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getFastRestoreRule()Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getName()Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getRetainRule()retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getRetainRule()shareRules(List<? extends Object> shareRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getShareRules()shareRules(IResolvable shareRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getShareRules()Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getTagsToAdd()tagsToAdd(IResolvable tagsToAdd) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getTagsToAdd()variableTags(List<? extends Object> variableTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getVariableTags()variableTags(IResolvable variableTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getVariableTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
archiveRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder archiveRule(IResolvable archiveRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getArchiveRule()- Parameters:
archiveRule- [Custom snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies .
- Returns:
this
-
archiveRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder archiveRule(CfnLifecyclePolicyPropsMixin.ArchiveRuleProperty archiveRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getArchiveRule()- Parameters:
archiveRule- [Custom snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies .
- Returns:
this
-
copyTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder copyTags(Boolean copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCopyTags()- Parameters:
copyTags- Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder copyTags(IResolvable copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCopyTags()- Parameters:
copyTags- Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.- Returns:
this
-
createRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder createRule(IResolvable createRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCreateRule()- Parameters:
createRule- The creation rule.- Returns:
this
-
createRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder createRule(CfnLifecyclePolicyPropsMixin.CreateRuleProperty createRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCreateRule()- Parameters:
createRule- The creation rule.- Returns:
this
-
crossRegionCopyRules
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder crossRegionCopyRules(IResolvable crossRegionCopyRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCrossRegionCopyRules()- Parameters:
crossRegionCopyRules- Specifies a rule for copying snapshots or AMIs across Regions.You can't specify cross-Region copy rules for policies that create snapshots on an Outpost or in a Local Zone. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
- Returns:
this
-
crossRegionCopyRules
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder crossRegionCopyRules(List<? extends Object> crossRegionCopyRules) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getCrossRegionCopyRules()- Parameters:
crossRegionCopyRules- Specifies a rule for copying snapshots or AMIs across Regions.You can't specify cross-Region copy rules for policies that create snapshots on an Outpost or in a Local Zone. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
- Returns:
this
-
deprecateRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder deprecateRule(IResolvable deprecateRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getDeprecateRule()- Parameters:
deprecateRule- [Custom AMI policies only] The AMI deprecation rule for the schedule.- Returns:
this
-
deprecateRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder deprecateRule(CfnLifecyclePolicyPropsMixin.DeprecateRuleProperty deprecateRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getDeprecateRule()- Parameters:
deprecateRule- [Custom AMI policies only] The AMI deprecation rule for the schedule.- Returns:
this
-
fastRestoreRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder fastRestoreRule(IResolvable fastRestoreRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getFastRestoreRule()- Parameters:
fastRestoreRule- [Custom snapshot policies only] The rule for enabling fast snapshot restore.- Returns:
this
-
fastRestoreRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder fastRestoreRule(CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty fastRestoreRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getFastRestoreRule()- Parameters:
fastRestoreRule- [Custom snapshot policies only] The rule for enabling fast snapshot restore.- Returns:
this
-
name
Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getName()- Parameters:
name- The name of the schedule.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getRetainRule()- Parameters:
retainRule- The retention rule for snapshots or AMIs created by the policy.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder retainRule(CfnLifecyclePolicyPropsMixin.RetainRuleProperty retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getRetainRule()- Parameters:
retainRule- The retention rule for snapshots or AMIs created by the policy.- Returns:
this
-
tagsToAdd
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder tagsToAdd(IResolvable tagsToAdd) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getTagsToAdd()- Parameters:
tagsToAdd- The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS -added lifecycle tags.- Returns:
this
-
tagsToAdd
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder tagsToAdd(List<? extends Object> tagsToAdd) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getTagsToAdd()- Parameters:
tagsToAdd- The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS -added lifecycle tags.- Returns:
this
-
variableTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder variableTags(IResolvable variableTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getVariableTags()- Parameters:
variableTags- [AMI policies and snapshot policies that target instances only] A collection of key/value pairs with values determined dynamically when the policy is executed. 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.- Returns:
this
-
variableTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.ScheduleProperty.Builder variableTags(List<? extends Object> variableTags) Sets the value ofCfnLifecyclePolicyPropsMixin.ScheduleProperty.getVariableTags()- Parameters:
variableTags- [AMI policies and snapshot policies that target instances only] A collection of key/value pairs with values determined dynamically when the policy is executed. 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.ScheduleProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.ScheduleProperty - Throws:
NullPointerException- if any required attribute was not provided
-