http://dlm.{region}.amazonaws.com/policies/{policyId}<p>Updates the specified lifecycle policy.</p> <p>For more information about updating a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify">Modify lifecycle policies</a>.</p>
The identifier of the lifecycle policy.
The desired activation state of the lifecycle policy after creation.
A description of the lifecycle policy.
<b>[All policy types]</b> Specifies the configuration of a lifecycle policy.
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request PATCH \2 --url 'http://dlm.{region}.amazonaws.com/policies/{policyId}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}http://dlm.{region}.amazonaws.com/policies/{policyId}<p>Updates the specified lifecycle policy.</p> <p>For more information about updating a policy, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify">Modify lifecycle policies</a>.</p>
The identifier of the lifecycle policy.
The desired activation state of the lifecycle policy after creation.
A description of the lifecycle policy.
<b>[All policy types]</b> Specifies the configuration of a lifecycle policy.
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request PATCH \2 --url 'http://dlm.{region}.amazonaws.com/policies/{policyId}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}