http://dlm.{region}.amazonaws.com/policiesCreates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 lifecycle policies.
The tags to apply to the lifecycle policy during creation.
The desired activation state of the lifecycle policy after creation.
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
<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 POST \2 --url 'http://dlm.{region}.amazonaws.com/policies' \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/policiesCreates a policy to manage the lifecycle of the specified Amazon Web Services resources. You can create up to 100 lifecycle policies.
The tags to apply to the lifecycle policy during creation.
The desired activation state of the lifecycle policy after creation.
A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported.
<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 POST \2 --url 'http://dlm.{region}.amazonaws.com/policies' \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}