Amazon Data Lifecycle Manager
API Reference (API Version 2018-01-12)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

GetLifecyclePolicy

Gets detailed information about the specified lifecycle policy.

Request Syntax

GET /policies/policyId/ HTTP/1.1

URI Request Parameters

The request requires the following URI parameters.

policyId

The identifier of the lifecycle policy.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Policy": { "DateCreated": number, "DateModified": number, "Description": "string", "ExecutionRoleArn": "string", "PolicyDetails": { "Parameters": { "ExcludeBootVolume": boolean }, "PolicyType": "string", "ResourceTypes": [ "string" ], "Schedules": [ { "CopyTags": boolean, "CreateRule": { "Interval": number, "IntervalUnit": "string", "Times": [ "string" ] }, "Name": "string", "RetainRule": { "Count": number }, "TagsToAdd": [ { "Key": "string", "Value": "string" } ], "VariableTags": [ { "Key": "string", "Value": "string" } ] } ], "TargetTags": [ { "Key": "string", "Value": "string" } ] }, "PolicyId": "string", "State": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Policy

Detailed information about the lifecycle policy.

Type: LifecyclePolicy object

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerException

The service failed in an unexpected way.

HTTP Status Code: 500

LimitExceededException

The request failed because a limit was exceeded.

HTTP Status Code: 429

ResourceNotFoundException

A requested resource was not found.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: