@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLifecyclePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLifecyclePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLifecyclePolicyRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateLifecyclePolicyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateLifecyclePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getCopyTags()
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI.
|
Integer |
getCreateInterval()
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs.
|
List<CrossRegionCopyTarget> |
getCrossRegionCopyTargets()
[Default policies only] Specifies destination Regions for snapshot or AMI copies.
|
String |
getDefaultPolicy()
[Default policies only] Specify the type of default policy to create.
|
String |
getDescription()
A description of the lifecycle policy.
|
Exclusions |
getExclusions()
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want
to create snapshots or AMIs.
|
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
Boolean |
getExtendDeletion()
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume
or instance is deleted, or if the policy enters the error, disabled, or deleted state.
|
PolicyDetails |
getPolicyDetails()
The configuration details of the lifecycle policy.
|
Integer |
getRetainInterval()
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting
them.
|
String |
getState()
The activation state of the lifecycle policy after creation.
|
Map<String,String> |
getTags()
The tags to apply to the lifecycle policy during creation.
|
int |
hashCode() |
Boolean |
isCopyTags()
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI.
|
Boolean |
isExtendDeletion()
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume
or instance is deleted, or if the policy enters the error, disabled, or deleted state.
|
void |
setCopyTags(Boolean copyTags)
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI.
|
void |
setCreateInterval(Integer createInterval)
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs.
|
void |
setCrossRegionCopyTargets(Collection<CrossRegionCopyTarget> crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies.
|
void |
setDefaultPolicy(String defaultPolicy)
[Default policies only] Specify the type of default policy to create.
|
void |
setDescription(String description)
A description of the lifecycle policy.
|
void |
setExclusions(Exclusions exclusions)
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want
to create snapshots or AMIs.
|
void |
setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
void |
setExtendDeletion(Boolean extendDeletion)
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume
or instance is deleted, or if the policy enters the error, disabled, or deleted state.
|
void |
setPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
|
void |
setRetainInterval(Integer retainInterval)
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting
them.
|
void |
setState(String state)
The activation state of the lifecycle policy after creation.
|
void |
setTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
|
String |
toString()
Returns a string representation of this object.
|
CreateLifecyclePolicyRequest |
withCopyTags(Boolean copyTags)
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI.
|
CreateLifecyclePolicyRequest |
withCreateInterval(Integer createInterval)
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs.
|
CreateLifecyclePolicyRequest |
withCrossRegionCopyTargets(Collection<CrossRegionCopyTarget> crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies.
|
CreateLifecyclePolicyRequest |
withCrossRegionCopyTargets(CrossRegionCopyTarget... crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies.
|
CreateLifecyclePolicyRequest |
withDefaultPolicy(DefaultPolicyTypeValues defaultPolicy)
[Default policies only] Specify the type of default policy to create.
|
CreateLifecyclePolicyRequest |
withDefaultPolicy(String defaultPolicy)
[Default policies only] Specify the type of default policy to create.
|
CreateLifecyclePolicyRequest |
withDescription(String description)
A description of the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withExclusions(Exclusions exclusions)
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want
to create snapshots or AMIs.
|
CreateLifecyclePolicyRequest |
withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withExtendDeletion(Boolean extendDeletion)
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume
or instance is deleted, or if the policy enters the error, disabled, or deleted state.
|
CreateLifecyclePolicyRequest |
withPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
|
CreateLifecyclePolicyRequest |
withRetainInterval(Integer retainInterval)
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting
them.
|
CreateLifecyclePolicyRequest |
withState(SettablePolicyStateValues state)
The activation state of the lifecycle policy after creation.
|
CreateLifecyclePolicyRequest |
withState(String state)
The activation state of the lifecycle policy after creation.
|
CreateLifecyclePolicyRequest |
withTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle
policy.public String getExecutionRoleArn()
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
public CreateLifecyclePolicyRequest withExecutionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle
policy.public void setDescription(String description)
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
description
- A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.public String getDescription()
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
public CreateLifecyclePolicyRequest withDescription(String description)
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
description
- A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.public void setState(String state)
The activation state of the lifecycle policy after creation.
state
- The activation state of the lifecycle policy after creation.SettablePolicyStateValues
public String getState()
The activation state of the lifecycle policy after creation.
SettablePolicyStateValues
public CreateLifecyclePolicyRequest withState(String state)
The activation state of the lifecycle policy after creation.
state
- The activation state of the lifecycle policy after creation.SettablePolicyStateValues
public CreateLifecyclePolicyRequest withState(SettablePolicyStateValues state)
The activation state of the lifecycle policy after creation.
state
- The activation state of the lifecycle policy after creation.SettablePolicyStateValues
public void setPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
policyDetails
- The configuration details of the lifecycle policy. If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
public PolicyDetails getPolicyDetails()
The configuration details of the lifecycle policy.
If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
public CreateLifecyclePolicyRequest withPolicyDetails(PolicyDetails policyDetails)
The configuration details of the lifecycle policy.
If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
policyDetails
- The configuration details of the lifecycle policy. If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
public Map<String,String> getTags()
The tags to apply to the lifecycle policy during creation.
public void setTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
tags
- The tags to apply to the lifecycle policy during creation.public CreateLifecyclePolicyRequest withTags(Map<String,String> tags)
The tags to apply to the lifecycle policy during creation.
tags
- The tags to apply to the lifecycle policy during creation.public CreateLifecyclePolicyRequest addTagsEntry(String key, String value)
public CreateLifecyclePolicyRequest clearTagsEntries()
public void setDefaultPolicy(String defaultPolicy)
[Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not
have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region
that do not have recent backups, specify INSTANCE
.
defaultPolicy
- [Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do
not have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the
Region that do not have recent backups, specify INSTANCE
.
DefaultPolicyTypeValues
public String getDefaultPolicy()
[Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not
have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region
that do not have recent backups, specify INSTANCE
.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do
not have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the
Region that do not have recent backups, specify INSTANCE
.
DefaultPolicyTypeValues
public CreateLifecyclePolicyRequest withDefaultPolicy(String defaultPolicy)
[Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not
have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region
that do not have recent backups, specify INSTANCE
.
defaultPolicy
- [Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do
not have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the
Region that do not have recent backups, specify INSTANCE
.
DefaultPolicyTypeValues
public CreateLifecyclePolicyRequest withDefaultPolicy(DefaultPolicyTypeValues defaultPolicy)
[Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not
have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region
that do not have recent backups, specify INSTANCE
.
defaultPolicy
- [Default policies only] Specify the type of default policy to create.
To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do
not have recent backups, specify VOLUME
.
To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the
Region that do not have recent backups, specify INSTANCE
.
DefaultPolicyTypeValues
public void setCreateInterval(Integer createInterval)
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
Default: 1
createInterval
- [Default policies only] Specifies how often the policy should run and create snapshots or AMIs. The
creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
Default: 1
public Integer getCreateInterval()
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
Default: 1
Default: 1
public CreateLifecyclePolicyRequest withCreateInterval(Integer createInterval)
[Default policies only] Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
Default: 1
createInterval
- [Default policies only] Specifies how often the policy should run and create snapshots or AMIs. The
creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
Default: 1
public void setRetainInterval(Integer retainInterval)
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not specify a value, the default is 7.
Default: 7
retainInterval
- [Default policies only] Specifies how long the policy should retain snapshots or AMIs before
deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation
frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not
specify a value, the default is 7.
Default: 7
public Integer getRetainInterval()
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not specify a value, the default is 7.
Default: 7
Default: 7
public CreateLifecyclePolicyRequest withRetainInterval(Integer retainInterval)
[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not specify a value, the default is 7.
Default: 7
retainInterval
- [Default policies only] Specifies how long the policy should retain snapshots or AMIs before
deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation
frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not
specify a value, the default is 7.
Default: 7
public void setCopyTags(Boolean copyTags)
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
copyTags
- [Default policies only] Indicates whether the policy should copy tags from the source resource to
the snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
public Boolean getCopyTags()
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
false
.
Default: false
public CreateLifecyclePolicyRequest withCopyTags(Boolean copyTags)
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
copyTags
- [Default policies only] Indicates whether the policy should copy tags from the source resource to
the snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
public Boolean isCopyTags()
[Default policies only] Indicates whether the policy should copy tags from the source resource to the
snapshot or AMI. If you do not specify a value, the default is false
.
Default: false
false
.
Default: false
public void setExtendDeletion(Boolean extendDeletion)
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want
Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots
and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last
one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
extendDeletion
- [Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source
volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you
want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify
true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting
snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs,
including the last one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
public Boolean getExtendDeletion()
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want
Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots
and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last
one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you
want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify
true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting
snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs,
including the last one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
public CreateLifecyclePolicyRequest withExtendDeletion(Boolean extendDeletion)
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want
Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots
and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last
one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
extendDeletion
- [Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source
volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you
want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify
true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting
snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs,
including the last one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
public Boolean isExtendDeletion()
[Default policies only] Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want
Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots
and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last
one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
By default (ExtendDeletion=false):
If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created
snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you
want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify
true
.
If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting
snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs,
including the last one, if the policy enters one of these states, specify true
.
If you enable extended deletion (ExtendDeletion=true), you override both default behaviors simultaneously.
If you do not specify a value, the default is false
.
Default: false
public List<CrossRegionCopyTarget> getCrossRegionCopyTargets()
[Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
public void setCrossRegionCopyTargets(Collection<CrossRegionCopyTarget> crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
crossRegionCopyTargets
- [Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify
up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.public CreateLifecyclePolicyRequest withCrossRegionCopyTargets(CrossRegionCopyTarget... crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
NOTE: This method appends the values to the existing list (if any). Use
setCrossRegionCopyTargets(java.util.Collection)
or
withCrossRegionCopyTargets(java.util.Collection)
if you want to override the existing values.
crossRegionCopyTargets
- [Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify
up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.public CreateLifecyclePolicyRequest withCrossRegionCopyTargets(Collection<CrossRegionCopyTarget> crossRegionCopyTargets)
[Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
crossRegionCopyTargets
- [Default policies only] Specifies destination Regions for snapshot or AMI copies. You can specify
up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.public void setExclusions(Exclusions exclusions)
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
exclusions
- [Default policies only] Specifies exclusion parameters for volumes or instances for which you do
not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources
that match any of the specified exclusion parameters.public Exclusions getExclusions()
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
public CreateLifecyclePolicyRequest withExclusions(Exclusions exclusions)
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
exclusions
- [Default policies only] Specifies exclusion parameters for volumes or instances for which you do
not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources
that match any of the specified exclusion parameters.public String toString()
toString
in class Object
Object.toString()
public CreateLifecyclePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()