Values.UpdateLifecyclePolicyRequestSourceUpdates the specified lifecycle policy. For more information about updating a policy, see Modify lifecycle policies.
type nonrec t = {policyId : PolicyId.t;The identifier of the lifecycle policy.
*)executionRoleArn : ExecutionRoleArn.t option;The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
*)state : SettablePolicyStateValues.t option;The desired activation state of the lifecycle policy after creation.
*)description : PolicyDescription.t option;A description of the lifecycle policy.
*)policyDetails : PolicyDetails.t option;The configuration of the lifecycle policy. You cannot update the policy type or the resource type.
*)createInterval : CreateInterval.t option;[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.
*)retainInterval : RetainInterval.t option;[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.
*)copyTags : CopyTagsNullable.t option;[Default policies only] Indicates whether the policy should copy tags from the source resource to the snapshot or AMI.
*)extendDeletion : ExtendDeletion.t option;[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. Default: false
*)crossRegionCopyTargets : CrossRegionCopyTargetList.t option;[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.
*)exclusions : Exclusions.t option;[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.
*)}val make :
?executionRoleArn:??? ->
?state:??? ->
?description:??? ->
?policyDetails:??? ->
?createInterval:??? ->
?retainInterval:??? ->
?copyTags:??? ->
?extendDeletion:??? ->
?crossRegionCopyTargets:??? ->
?exclusions:??? ->
policyId:PolicyId.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of CopyTagsNullable.t
| `Enum of string
| `Integer of CreateInterval.t
| `List of
[> `Structure of (string * [> `String of TargetRegion.t ]) list ]
list
| `String of PolicyId.t
| `Structure of
(string
* [> `Boolean of CopyTagsNullable.t
| `Enum of string
| `Integer of CreateInterval.t
| `List of
[> `Enum of string
| `String of VolumeTypeValues.t
| `Structure of
(string
* [> `Boolean of CopyTags.t
| `List of
[> `Structure of
(string
* [> `Boolean of Encrypted.t
| `Enum of string
| `Integer of Interval.t
| `List of [> `String of AwsAccountId.t ] list
| `String of String_.t
| `Structure of
(string
* [> `Boolean of Encrypted.t
| `Enum of string
| `Integer of Interval.t
| `String of CmkArn.t ])
list ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Enum of string
| `Integer of Interval.t
| `List of
[> `String of Time.t
| `Structure of
(string
* [> `Boolean of
ExecuteOperationOnScriptFailure.t
| `Enum of string
| `Integer of ScriptExecutionTimeout.t
| `List of [> `Enum of string ] list
| `String of ExecutionHandler.t ])
list ]
list
| `String of CronExpression.t
| `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `Integer of Count.t ])
list ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Boolean of ExcludeBootVolume.t
| `Enum of string
| `List of
[> `String of VolumeTypeValues.t
| `Structure of (string * [> `String of String_.t ]) list ]
list
| `Structure of
(string
* [> `Enum of string
| `List of [> `String of AwsAccountId.t ] list
| `String of DescriptionRegex.t ])
list ])
list ])
list ])
list ]