Interface PolicyDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyDetails.Builder,
,PolicyDetails> SdkBuilder<PolicyDetails.Builder,
,PolicyDetails> SdkPojo
- Enclosing class:
PolicyDetails
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<Action> actions) [Event-based policies only] The actions to be performed when the event-based policy is activated.actions
(Consumer<Action.Builder>... actions) [Event-based policies only] The actions to be performed when the event-based policy is activated.[Event-based policies only] The actions to be performed when the event-based policy is activated.default PolicyDetails.Builder
eventSource
(Consumer<EventSource.Builder> eventSource) [Event-based policies only] The event that activates the event-based policy.eventSource
(EventSource eventSource) [Event-based policies only] The event that activates the event-based policy.default PolicyDetails.Builder
parameters
(Consumer<Parameters.Builder> parameters) [Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.parameters
(Parameters parameters) [Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.policyType
(String policyType) [All policy types] The valid target resource types and actions a policy can manage.policyType
(PolicyTypeValues policyType) [All policy types] The valid target resource types and actions a policy can manage.resourceLocations
(Collection<ResourceLocationValues> resourceLocations) [Snapshot and AMI policies only] The location of the resources to backup.resourceLocations
(ResourceLocationValues... resourceLocations) [Snapshot and AMI policies only] The location of the resources to backup.resourceLocationsWithStrings
(String... resourceLocations) [Snapshot and AMI policies only] The location of the resources to backup.resourceLocationsWithStrings
(Collection<String> resourceLocations) [Snapshot and AMI policies only] The location of the resources to backup.resourceTypes
(Collection<ResourceTypeValues> resourceTypes) [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies.resourceTypes
(ResourceTypeValues... resourceTypes) [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies.resourceTypesWithStrings
(String... resourceTypes) [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies.resourceTypesWithStrings
(Collection<String> resourceTypes) [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies.schedules
(Collection<Schedule> schedules) [Snapshot and AMI policies only] The schedules of policy-defined actions for snapshot and AMI lifecycle policies.schedules
(Consumer<Schedule.Builder>... schedules) [Snapshot and AMI policies only] The schedules of policy-defined actions for snapshot and AMI lifecycle policies.[Snapshot and AMI policies only] The schedules of policy-defined actions for snapshot and AMI lifecycle policies.targetTags
(Collection<Tag> targetTags) [Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.targetTags
(Consumer<Tag.Builder>... targetTags) [Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.targetTags
(Tag... targetTags) [Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
policyType
[All policy types] 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. SpecifyIMAGE_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. SpecifyEVENT_BASED_POLICY
to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.The default is
EBS_SNAPSHOT_MANAGEMENT
.- Parameters:
policyType
- [All policy types] The valid target resource types and actions a policy can manage. SpecifyEBS_SNAPSHOT_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. SpecifyIMAGE_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. SpecifyEVENT_BASED_POLICY
to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.The default is
EBS_SNAPSHOT_MANAGEMENT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
[All policy types] 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. SpecifyIMAGE_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. SpecifyEVENT_BASED_POLICY
to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.The default is
EBS_SNAPSHOT_MANAGEMENT
.- Parameters:
policyType
- [All policy types] The valid target resource types and actions a policy can manage. SpecifyEBS_SNAPSHOT_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. SpecifyIMAGE_MANAGEMENT
to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. SpecifyEVENT_BASED_POLICY
to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.The default is
EBS_SNAPSHOT_MANAGEMENT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceTypesWithStrings
[Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. Use
VOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Parameters:
resourceTypes
- [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. UseVOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypesWithStrings
[Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. Use
VOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Parameters:
resourceTypes
- [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. UseVOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
[Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. Use
VOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Parameters:
resourceTypes
- [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. UseVOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
[Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. Use
VOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Parameters:
resourceTypes
- [Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. UseVOLUME
to create snapshots of individual volumes or useINSTANCE
to create multi-volume snapshots from the volumes for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceLocationsWithStrings
[Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify
CLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Parameters:
resourceLocations
- [Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specifyCLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceLocationsWithStrings
[Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify
CLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Parameters:
resourceLocations
- [Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specifyCLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceLocations
[Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify
CLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Parameters:
resourceLocations
- [Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specifyCLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceLocations
[Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify
CLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Parameters:
resourceLocations
- [Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specifyCLOUD
. If the source resources are located on an Outpost in your account, specifyOUTPOST
.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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTags
[Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.
- Parameters:
targetTags
- [Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTags
[Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.
- Parameters:
targetTags
- [Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTags
[Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetTags(List<Tag>)
.- Parameters:
targetTags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schedules
[Snapshot and AMI policies only] 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.
- Parameters:
schedules
- [Snapshot and AMI policies only] 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedules
[Snapshot and AMI policies only] 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.
- Parameters:
schedules
- [Snapshot and AMI policies only] 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedules
[Snapshot and AMI policies only] 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 is a convenience method that creates an instance of theSchedule.Builder
avoiding the need to create one manually viaSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedules(List<Schedule>)
.- Parameters:
schedules
- a consumer that will call methods onSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parameters
[Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.
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.
- Parameters:
parameters
- [Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
[Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.
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.
Parameters.Builder
avoiding the need to create one manually viaParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparameters(Parameters)
.- Parameters:
parameters
- a consumer that will call methods onParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventSource
[Event-based policies only] The event that activates the event-based policy.
- Parameters:
eventSource
- [Event-based policies only] The event that activates the event-based policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSource
[Event-based policies only] The event that activates the event-based policy.
This is a convenience method that creates an instance of theEventSource.Builder
avoiding the need to create one manually viaEventSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventSource(EventSource)
.- Parameters:
eventSource
- a consumer that will call methods onEventSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actions
[Event-based policies only] The actions to be performed when the event-based policy is activated. You can specify only one action per policy.
- Parameters:
actions
- [Event-based policies only] The actions to be performed when the event-based policy is activated. You can specify only one action per policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
[Event-based policies only] The actions to be performed when the event-based policy is activated. You can specify only one action per policy.
- Parameters:
actions
- [Event-based policies only] The actions to be performed when the event-based policy is activated. You can specify only one action per policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
[Event-based policies only] The actions to be performed when the event-based policy is activated. You can specify only one action per policy.
This is a convenience method that creates an instance of theAction.Builder
avoiding the need to create one manually viaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<Action>)
.- Parameters:
actions
- a consumer that will call methods onAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-