@Stability(value=Stable) public static final class CfnLifecyclePolicy.PolicyDetailsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLifecyclePolicy.PolicyDetailsProperty>
CfnLifecyclePolicy.PolicyDetailsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder actions(IResolvable actions)
CfnLifecyclePolicy.PolicyDetailsProperty.getActions()actions - The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.
This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder actions(List<? extends Object> actions)
CfnLifecyclePolicy.PolicyDetailsProperty.getActions()actions - The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.
This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder eventSource(CfnLifecyclePolicy.EventSourceProperty eventSource)
CfnLifecyclePolicy.PolicyDetailsProperty.getEventSource()eventSource - The event that triggers the event-based policy.
This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder eventSource(IResolvable eventSource)
CfnLifecyclePolicy.PolicyDetailsProperty.getEventSource()eventSource - The event that triggers the event-based policy.
This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder parameters(CfnLifecyclePolicy.ParametersProperty parameters)
CfnLifecyclePolicy.PolicyDetailsProperty.getParameters()parameters - A set of optional parameters for snapshot and AMI lifecycle policies.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.
If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can't omit this parameter or set its values to null.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder parameters(IResolvable parameters)
CfnLifecyclePolicy.PolicyDetailsProperty.getParameters()parameters - A set of optional parameters for snapshot and AMI lifecycle policies.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.
If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can't omit this parameter or set its values to null.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder policyType(String policyType)
CfnLifecyclePolicy.PolicyDetailsProperty.getPolicyType()policyType - The valid target resource types and actions a policy can manage.
Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your AWS account .
The default is EBS_SNAPSHOT_MANAGEMENT .
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder resourceLocations(List<String> resourceLocations)
CfnLifecyclePolicy.PolicyDetailsProperty.getResourceLocations()resourceLocations - The location of the resources to backup.
If the source resources are located in an AWS Region , specify CLOUD . If the source resources are located on an Outpost in your account, specify OUTPOST .
If you specify OUTPOST , Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder resourceTypes(List<String> resourceTypes)
CfnLifecyclePolicy.PolicyDetailsProperty.getResourceTypes()resourceTypes - The target resource type for snapshot and AMI lifecycle policies.
Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder schedules(IResolvable schedules)
CfnLifecyclePolicy.PolicyDetailsProperty.getSchedules()schedules - The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder schedules(List<? extends Object> schedules)
CfnLifecyclePolicy.PolicyDetailsProperty.getSchedules()schedules - The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.
this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder targetTags(IResolvable targetTags)
CfnLifecyclePolicy.PolicyDetailsProperty.getTargetTags()targetTags - The single tag that identifies targeted resources for this policy.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty.Builder targetTags(List<? extends Object> targetTags)
CfnLifecyclePolicy.PolicyDetailsProperty.getTargetTags()targetTags - The single tag that identifies targeted resources for this policy.
This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.this@Stability(value=Stable) public CfnLifecyclePolicy.PolicyDetailsProperty build()
build in interface software.amazon.jsii.Builder<CfnLifecyclePolicy.PolicyDetailsProperty>CfnLifecyclePolicy.PolicyDetailsPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.