GetContinuousDeploymentPolicyConfigCommand

Gets configuration information about a continuous deployment policy.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { CloudFrontClient, GetContinuousDeploymentPolicyConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
// const { CloudFrontClient, GetContinuousDeploymentPolicyConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
const client = new CloudFrontClient(config);
const input = { // GetContinuousDeploymentPolicyConfigRequest
  Id: "STRING_VALUE", // required
};
const command = new GetContinuousDeploymentPolicyConfigCommand(input);
const response = await client.send(command);
// { // GetContinuousDeploymentPolicyConfigResult
//   ContinuousDeploymentPolicyConfig: { // ContinuousDeploymentPolicyConfig
//     StagingDistributionDnsNames: { // StagingDistributionDnsNames
//       Quantity: Number("int"), // required
//       Items: [ // StagingDistributionDnsNameList
//         "STRING_VALUE",
//       ],
//     },
//     Enabled: true || false, // required
//     TrafficConfig: { // TrafficConfig
//       SingleWeightConfig: { // ContinuousDeploymentSingleWeightConfig
//         Weight: Number("float"), // required
//         SessionStickinessConfig: { // SessionStickinessConfig
//           IdleTTL: Number("int"), // required
//           MaximumTTL: Number("int"), // required
//         },
//       },
//       SingleHeaderConfig: { // ContinuousDeploymentSingleHeaderConfig
//         Header: "STRING_VALUE", // required
//         Value: "STRING_VALUE", // required
//       },
//       Type: "SingleWeight" || "SingleHeader", // required
//     },
//   },
//   ETag: "STRING_VALUE",
// };

GetContinuousDeploymentPolicyConfigCommand Input

Parameter
Type
Description
Id
Required
string | undefined

The identifier of the continuous deployment policy whose configuration you are getting.

GetContinuousDeploymentPolicyConfigCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ContinuousDeploymentPolicyConfig
ContinuousDeploymentPolicyConfig | undefined

Contains the configuration for a continuous deployment policy.

ETag
string | undefined

The version identifier for the current version of the continuous deployment policy.

Throws

Name
Fault
Details
AccessDenied
client

Access denied.

NoSuchContinuousDeploymentPolicy
client

The continuous deployment policy doesn't exist.

CloudFrontServiceException
Base exception class for all service exceptions from CloudFront service.