public static interface PolicyDetails.Builder extends SdkPojo, CopyableBuilder<PolicyDetails.Builder,PolicyDetails>
| Modifier and Type | Method and Description |
|---|---|
PolicyDetails.Builder |
actions(Action... actions)
The actions to be performed when the event-based policy is triggered.
|
PolicyDetails.Builder |
actions(Collection<Action> actions)
The actions to be performed when the event-based policy is triggered.
|
PolicyDetails.Builder |
actions(Consumer<Action.Builder>... actions)
The actions to be performed when the event-based policy is triggered.
|
default PolicyDetails.Builder |
eventSource(Consumer<EventSource.Builder> eventSource)
The event that triggers the event-based policy.
|
PolicyDetails.Builder |
eventSource(EventSource eventSource)
The event that triggers the event-based policy.
|
default PolicyDetails.Builder |
parameters(Consumer<Parameters.Builder> parameters)
A set of optional parameters for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
parameters(Parameters parameters)
A set of optional parameters for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
policyType(PolicyTypeValues policyType)
The valid target resource types and actions a policy can manage.
|
PolicyDetails.Builder |
policyType(String policyType)
The valid target resource types and actions a policy can manage.
|
PolicyDetails.Builder |
resourceLocations(Collection<ResourceLocationValues> resourceLocations)
The location of the resources to backup.
|
PolicyDetails.Builder |
resourceLocations(ResourceLocationValues... resourceLocations)
The location of the resources to backup.
|
PolicyDetails.Builder |
resourceLocationsWithStrings(Collection<String> resourceLocations)
The location of the resources to backup.
|
PolicyDetails.Builder |
resourceLocationsWithStrings(String... resourceLocations)
The location of the resources to backup.
|
PolicyDetails.Builder |
resourceTypes(Collection<ResourceTypeValues> resourceTypes)
The target resource type for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
resourceTypes(ResourceTypeValues... resourceTypes)
The target resource type for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
resourceTypesWithStrings(Collection<String> resourceTypes)
The target resource type for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
resourceTypesWithStrings(String... resourceTypes)
The target resource type for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
schedules(Collection<Schedule> schedules)
The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
schedules(Consumer<Schedule.Builder>... schedules)
The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
schedules(Schedule... schedules)
The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
|
PolicyDetails.Builder |
targetTags(Collection<Tag> targetTags)
The single tag that identifies targeted resources for this policy.
|
PolicyDetails.Builder |
targetTags(Consumer<Tag.Builder>... targetTags)
The single tag that identifies targeted resources for this policy.
|
PolicyDetails.Builder |
targetTags(Tag... targetTags)
The single tag that identifies targeted resources for this policy.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPolicyDetails.Builder policyType(String 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 Amazon Web Services account.
The default is EBS_SNAPSHOT_MANAGEMENT.
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 Amazon Web Services account.
The default is EBS_SNAPSHOT_MANAGEMENT.
PolicyTypeValues,
PolicyTypeValuesPolicyDetails.Builder policyType(PolicyTypeValues 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 Amazon Web Services account.
The default is EBS_SNAPSHOT_MANAGEMENT.
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 Amazon Web Services account.
The default is EBS_SNAPSHOT_MANAGEMENT.
PolicyTypeValues,
PolicyTypeValuesPolicyDetails.Builder resourceTypesWithStrings(Collection<String> 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.
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.
PolicyDetails.Builder resourceTypesWithStrings(String... 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.
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.
PolicyDetails.Builder resourceTypes(Collection<ResourceTypeValues> 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.
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.
PolicyDetails.Builder resourceTypes(ResourceTypeValues... 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.
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.
PolicyDetails.Builder resourceLocationsWithStrings(Collection<String> resourceLocations)
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,
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.
resourceLocations - 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,
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.
PolicyDetails.Builder resourceLocationsWithStrings(String... resourceLocations)
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,
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.
resourceLocations - 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,
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.
PolicyDetails.Builder resourceLocations(Collection<ResourceLocationValues> resourceLocations)
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,
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.
resourceLocations - 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,
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.
PolicyDetails.Builder resourceLocations(ResourceLocationValues... resourceLocations)
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,
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.
resourceLocations - 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,
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.
PolicyDetails.Builder targetTags(Collection<Tag> 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.
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.
PolicyDetails.Builder targetTags(Tag... 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.
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.
PolicyDetails.Builder targetTags(Consumer<Tag.Builder>... 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 is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #targetTags(List) .targetTags - a consumer that will call methods on List.Builder #targetTags(List) PolicyDetails.Builder schedules(Collection<Schedule> 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.
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.
PolicyDetails.Builder schedules(Schedule... 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.
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.
PolicyDetails.Builder schedules(Consumer<Schedule.Builder>... 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 is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #schedules(List) .schedules - a consumer that will call methods on List.Builder #schedules(List) PolicyDetails.Builder parameters(Parameters 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.
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.
default PolicyDetails.Builder parameters(Consumer<Parameters.Builder> 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.
This is a convenience that creates an instance of theParameters.Builder avoiding the need to create
one manually via Parameters.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to parameters(Parameters).parameters - a consumer that will call methods on Parameters.Builderparameters(Parameters)PolicyDetails.Builder eventSource(EventSource 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.
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.
default PolicyDetails.Builder eventSource(Consumer<EventSource.Builder> 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 is a convenience that creates an instance of theEventSource.Builder avoiding the need to create
one manually via EventSource.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to eventSource(EventSource).eventSource - a consumer that will call methods on EventSource.BuildereventSource(EventSource)PolicyDetails.Builder actions(Collection<Action> 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.
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.
PolicyDetails.Builder actions(Action... 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.
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.
PolicyDetails.Builder actions(Consumer<Action.Builder>... 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 is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #actions(List) .actions - a consumer that will call methods on List.Builder #actions(List) Copyright © 2021. All rights reserved.