GetContinuousDeploymentPolicy - Amazon CloudFront

GetContinuousDeploymentPolicy

Gets a continuous deployment policy, including metadata (the policy's identifier and the date and time when the policy was last modified).

Request Syntax

GET /2020-05-31/continuous-deployment-policy/Id HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

Id

The identifier of the continuous deployment policy that you are getting.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <ContinuousDeploymentPolicy> <ContinuousDeploymentPolicyConfig> <Enabled>boolean</Enabled> <StagingDistributionDnsNames> <Items> <DnsName>string</DnsName> </Items> <Quantity>integer</Quantity> </StagingDistributionDnsNames> <TrafficConfig> <SingleHeaderConfig> <Header>string</Header> <Value>string</Value> </SingleHeaderConfig> <SingleWeightConfig> <SessionStickinessConfig> <IdleTTL>integer</IdleTTL> <MaximumTTL>integer</MaximumTTL> </SessionStickinessConfig> <Weight>float</Weight> </SingleWeightConfig> <Type>string</Type> </TrafficConfig> </ContinuousDeploymentPolicyConfig> <Id>string</Id> <LastModifiedTime>timestamp</LastModifiedTime> </ContinuousDeploymentPolicy>

Response Elements

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

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

ContinuousDeploymentPolicy

Root level tag for the ContinuousDeploymentPolicy parameters.

Required: Yes

ContinuousDeploymentPolicyConfig

Contains the configuration for a continuous deployment policy.

Type: ContinuousDeploymentPolicyConfig object

Id

The identifier of the continuous deployment policy.

Type: String

LastModifiedTime

The date and time the continuous deployment policy was last modified.

Type: Timestamp

Errors

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

AccessDenied

Access denied.

HTTP Status Code: 403

NoSuchContinuousDeploymentPolicy

The continuous deployment policy doesn't exist.

HTTP Status Code: 404

See Also

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