@aws-sdk/client-cloudfront 3.213.0 → 3.215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/CloudFront.js +105 -0
- package/dist-cjs/commands/CopyDistributionCommand.js +46 -0
- package/dist-cjs/commands/CreateContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateStreamingDistributionCommand.js +3 -3
- package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +3 -3
- package/dist-cjs/commands/DeleteCachePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetContinuousDeploymentPolicyConfigCommand.js +46 -0
- package/dist-cjs/commands/ListContinuousDeploymentPoliciesCommand.js +46 -0
- package/dist-cjs/commands/UpdateContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/ruleset.js +11 -11
- package/dist-cjs/models/models_0.js +405 -297
- package/dist-cjs/models/models_1.js +146 -4
- package/dist-cjs/protocols/Aws_restXml.js +895 -16
- package/dist-es/CloudFront.js +105 -0
- package/dist-es/commands/CopyDistributionCommand.js +42 -0
- package/dist-es/commands/CreateContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/CreateStreamingDistributionCommand.js +1 -1
- package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +1 -1
- package/dist-es/commands/DeleteCachePolicyCommand.js +1 -1
- package/dist-es/commands/DeleteContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/GetContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/GetContinuousDeploymentPolicyConfigCommand.js +42 -0
- package/dist-es/commands/ListContinuousDeploymentPoliciesCommand.js +42 -0
- package/dist-es/commands/UpdateContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/ruleset.js +11 -11
- package/dist-es/models/models_0.js +366 -257
- package/dist-es/models/models_1.js +117 -0
- package/dist-es/protocols/Aws_restXml.js +876 -12
- package/dist-types/CloudFront.d.ts +114 -76
- package/dist-types/CloudFrontClient.d.ts +9 -2
- package/dist-types/commands/CopyDistributionCommand.d.ts +43 -0
- package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +46 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +1 -13
- package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +40 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyCommand.d.ts +38 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +37 -0
- package/dist-types/commands/ListContinuousDeploymentPoliciesCommand.d.ts +42 -0
- package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +57 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +20 -63
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +824 -784
- package/dist-types/models/models_1.d.ts +458 -2
- package/dist-types/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudFront.d.ts +125 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CopyDistributionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListContinuousDeploymentPoliciesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +376 -338
- package/dist-types/ts3.4/models/models_1.d.ts +196 -4
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +29 -29
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { GetContinuousDeploymentPolicyRequest, GetContinuousDeploymentPolicyResult } from "../models/models_1";
|
|
6
|
+
export interface GetContinuousDeploymentPolicyCommandInput extends GetContinuousDeploymentPolicyRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface GetContinuousDeploymentPolicyCommandOutput extends GetContinuousDeploymentPolicyResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Gets a continuous deployment policy, including metadata (the policy’s identifier and
|
|
12
|
+
* the date and time when the policy was last modified).</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudFrontClient, GetContinuousDeploymentPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
17
|
+
* // const { CloudFrontClient, GetContinuousDeploymentPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
18
|
+
* const client = new CloudFrontClient(config);
|
|
19
|
+
* const command = new GetContinuousDeploymentPolicyCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link GetContinuousDeploymentPolicyCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link GetContinuousDeploymentPolicyCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetContinuousDeploymentPolicyCommand extends $Command<GetContinuousDeploymentPolicyCommandInput, GetContinuousDeploymentPolicyCommandOutput, CloudFrontClientResolvedConfig> {
|
|
29
|
+
readonly input: GetContinuousDeploymentPolicyCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: GetContinuousDeploymentPolicyCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetContinuousDeploymentPolicyCommandInput, GetContinuousDeploymentPolicyCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { GetContinuousDeploymentPolicyConfigRequest, GetContinuousDeploymentPolicyConfigResult } from "../models/models_1";
|
|
6
|
+
export interface GetContinuousDeploymentPolicyConfigCommandInput extends GetContinuousDeploymentPolicyConfigRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface GetContinuousDeploymentPolicyConfigCommandOutput extends GetContinuousDeploymentPolicyConfigResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Gets configuration information about a continuous deployment policy.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { CloudFrontClient, GetContinuousDeploymentPolicyConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
16
|
+
* // const { CloudFrontClient, GetContinuousDeploymentPolicyConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
17
|
+
* const client = new CloudFrontClient(config);
|
|
18
|
+
* const command = new GetContinuousDeploymentPolicyConfigCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link GetContinuousDeploymentPolicyConfigCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link GetContinuousDeploymentPolicyConfigCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class GetContinuousDeploymentPolicyConfigCommand extends $Command<GetContinuousDeploymentPolicyConfigCommandInput, GetContinuousDeploymentPolicyConfigCommandOutput, CloudFrontClientResolvedConfig> {
|
|
28
|
+
readonly input: GetContinuousDeploymentPolicyConfigCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: GetContinuousDeploymentPolicyConfigCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetContinuousDeploymentPolicyConfigCommandInput, GetContinuousDeploymentPolicyConfigCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { ListContinuousDeploymentPoliciesRequest, ListContinuousDeploymentPoliciesResult } from "../models/models_1";
|
|
6
|
+
export interface ListContinuousDeploymentPoliciesCommandInput extends ListContinuousDeploymentPoliciesRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface ListContinuousDeploymentPoliciesCommandOutput extends ListContinuousDeploymentPoliciesResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Gets a list of the continuous deployment policies in your Amazon Web Services account.</p>
|
|
12
|
+
* <p>You can optionally specify the maximum number of items to receive in the response. If
|
|
13
|
+
* the total number of items in the list exceeds the maximum that you specify, or the
|
|
14
|
+
* default maximum, the response is paginated. To get the next page of items, send a
|
|
15
|
+
* subsequent request that specifies the <code>NextMarker</code> value from the current
|
|
16
|
+
* response as the <code>Marker</code> value in the subsequent request.</p>
|
|
17
|
+
* @example
|
|
18
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
+
* ```javascript
|
|
20
|
+
* import { CloudFrontClient, ListContinuousDeploymentPoliciesCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
21
|
+
* // const { CloudFrontClient, ListContinuousDeploymentPoliciesCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
22
|
+
* const client = new CloudFrontClient(config);
|
|
23
|
+
* const command = new ListContinuousDeploymentPoliciesCommand(input);
|
|
24
|
+
* const response = await client.send(command);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see {@link ListContinuousDeploymentPoliciesCommandInput} for command's `input` shape.
|
|
28
|
+
* @see {@link ListContinuousDeploymentPoliciesCommandOutput} for command's `response` shape.
|
|
29
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare class ListContinuousDeploymentPoliciesCommand extends $Command<ListContinuousDeploymentPoliciesCommandInput, ListContinuousDeploymentPoliciesCommandOutput, CloudFrontClientResolvedConfig> {
|
|
33
|
+
readonly input: ListContinuousDeploymentPoliciesCommandInput;
|
|
34
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
35
|
+
constructor(input: ListContinuousDeploymentPoliciesCommandInput);
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListContinuousDeploymentPoliciesCommandInput, ListContinuousDeploymentPoliciesCommandOutput>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { UpdateContinuousDeploymentPolicyRequest, UpdateContinuousDeploymentPolicyResult } from "../models/models_1";
|
|
6
|
+
export interface UpdateContinuousDeploymentPolicyCommandInput extends UpdateContinuousDeploymentPolicyRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateContinuousDeploymentPolicyCommandOutput extends UpdateContinuousDeploymentPolicyResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Updates a continuous deployment policy. You can update a continuous deployment policy to
|
|
12
|
+
* enable or disable it, to change the percentage of traffic that it sends to the staging
|
|
13
|
+
* distribution, or to change the staging distribution that it sends traffic to.</p>
|
|
14
|
+
* <p>When you update a continuous deployment policy configuration, all the fields are
|
|
15
|
+
* updated with the values that are provided in the request. You cannot update some fields
|
|
16
|
+
* independent of others. To update a continuous deployment policy configuration:</p>
|
|
17
|
+
* <ol>
|
|
18
|
+
* <li>
|
|
19
|
+
* <p>Use <code>GetContinuousDeploymentPolicyConfig</code> to get the current
|
|
20
|
+
* configuration.</p>
|
|
21
|
+
* </li>
|
|
22
|
+
* <li>
|
|
23
|
+
* <p>Locally modify the fields in the continuous deployment policy configuration
|
|
24
|
+
* that you want to update.</p>
|
|
25
|
+
* </li>
|
|
26
|
+
* <li>
|
|
27
|
+
* <p>Use <code>UpdateContinuousDeploymentPolicy</code>, providing the entire
|
|
28
|
+
* continuous deployment policy configuration, including the fields that you
|
|
29
|
+
* modified and those that you didn’t.</p>
|
|
30
|
+
* </li>
|
|
31
|
+
* </ol>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { CloudFrontClient, UpdateContinuousDeploymentPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
36
|
+
* // const { CloudFrontClient, UpdateContinuousDeploymentPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
37
|
+
* const client = new CloudFrontClient(config);
|
|
38
|
+
* const command = new UpdateContinuousDeploymentPolicyCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link UpdateContinuousDeploymentPolicyCommandInput} for command's `input` shape.
|
|
43
|
+
* @see {@link UpdateContinuousDeploymentPolicyCommandOutput} for command's `response` shape.
|
|
44
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare class UpdateContinuousDeploymentPolicyCommand extends $Command<UpdateContinuousDeploymentPolicyCommandInput, UpdateContinuousDeploymentPolicyCommandOutput, CloudFrontClientResolvedConfig> {
|
|
48
|
+
readonly input: UpdateContinuousDeploymentPolicyCommandInput;
|
|
49
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
50
|
+
constructor(input: UpdateContinuousDeploymentPolicyCommandInput);
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateContinuousDeploymentPolicyCommandInput, UpdateContinuousDeploymentPolicyCommandOutput>;
|
|
55
|
+
private serialize;
|
|
56
|
+
private deserialize;
|
|
57
|
+
}
|
|
@@ -8,83 +8,40 @@ export interface UpdateDistributionCommandInput extends UpdateDistributionReques
|
|
|
8
8
|
export interface UpdateDistributionCommandOutput extends UpdateDistributionResult, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Updates the configuration for a
|
|
12
|
-
* <
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* and then make your updates, to make sure that you include all of the required fields. To view a summary,
|
|
16
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html">Required
|
|
17
|
-
* Fields for Create Distribution and Update Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
18
|
-
* </important>
|
|
19
|
-
* <p>The update process includes getting the current distribution configuration, updating the XML document that is
|
|
20
|
-
* returned to make your changes, and then submitting an <code>UpdateDistribution</code> request to make the updates.</p>
|
|
21
|
-
* <p>For information about updating a distribution using the CloudFront console instead, see
|
|
22
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html">Creating a
|
|
23
|
-
* Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
11
|
+
* <p>Updates the configuration for a CloudFront distribution.</p>
|
|
12
|
+
* <p>The update process includes getting the current distribution configuration, updating it to
|
|
13
|
+
* make your changes, and then submitting an <code>UpdateDistribution</code> request to
|
|
14
|
+
* make the updates.</p>
|
|
24
15
|
*
|
|
25
16
|
* <p>
|
|
26
17
|
* <b>To update a web distribution using the CloudFront API</b>
|
|
27
18
|
* </p>
|
|
28
19
|
* <ol>
|
|
29
20
|
* <li>
|
|
30
|
-
* <p>
|
|
31
|
-
*
|
|
32
|
-
* request to get the current configuration and an <code>Etag</code> header
|
|
33
|
-
* for the distribution.</p>
|
|
34
|
-
* <note>
|
|
35
|
-
* <p>If you update the distribution again, you must get a new <code>Etag</code> header.</p>
|
|
36
|
-
* </note>
|
|
21
|
+
* <p>Use <code>GetDistributionConfig</code> to get the current configuration, including the version
|
|
22
|
+
* identifier (<code>ETag</code>).</p>
|
|
37
23
|
* </li>
|
|
38
24
|
* <li>
|
|
39
|
-
* <p>Update the
|
|
40
|
-
*
|
|
41
|
-
* <important>
|
|
42
|
-
* <p>When you edit the XML file, be aware of the following:</p>
|
|
43
|
-
* <ul>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>You must strip out the ETag parameter that is returned.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Additional fields are required when you update a distribution. There may be fields included in the
|
|
49
|
-
* XML file for features that you haven't configured for your distribution. This is expected and required to
|
|
50
|
-
* successfully update the distribution.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>You can't change the value of <code>CallerReference</code>. If you try to change this value, CloudFront returns an
|
|
54
|
-
* <code>IllegalUpdate</code> error. </p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>The new configuration replaces the existing configuration; the values that you specify in an
|
|
58
|
-
* <code>UpdateDistribution</code> request are not merged into your existing configuration. When you add, delete, or
|
|
59
|
-
* replace values in an element that allows multiple values (for example, <code>CNAME</code>), you must specify all of the
|
|
60
|
-
* values that you want to appear in the updated distribution. In addition,
|
|
61
|
-
* you must update the corresponding <code>Quantity</code> element.</p>
|
|
62
|
-
* </li>
|
|
63
|
-
* </ul>
|
|
64
|
-
* </important>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>Submit an <code>UpdateDistribution</code> request to update the configuration for your distribution:</p>
|
|
25
|
+
* <p>Update the distribution configuration that was returned in the response. Note the following
|
|
26
|
+
* important requirements and restrictions:</p>
|
|
68
27
|
* <ul>
|
|
69
28
|
* <li>
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
29
|
+
* <p>You must rename the <code>ETag</code> field to <code>IfMatch</code>,
|
|
30
|
+
* leaving the value unchanged. (Set the value of <code>IfMatch</code> to
|
|
31
|
+
* the value of <code>ETag</code>, then remove the <code>ETag</code>
|
|
32
|
+
* field.)</p>
|
|
33
|
+
* </li>
|
|
73
34
|
* <li>
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* </li>
|
|
35
|
+
* <p>You can’t change the value of <code>CallerReference</code>.</p>
|
|
36
|
+
* </li>
|
|
77
37
|
* </ul>
|
|
78
38
|
* </li>
|
|
79
39
|
* <li>
|
|
80
|
-
* <p>
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
|
|
86
|
-
* request to confirm that your changes have propagated.
|
|
87
|
-
* When propagation is complete, the value of <code>Status</code> is <code>Deployed</code>.</p>
|
|
40
|
+
* <p>Submit an <code>UpdateDistribution</code> request, providing the distribution configuration.
|
|
41
|
+
* The new configuration replaces the existing configuration. The values that you
|
|
42
|
+
* specify in an <code>UpdateDistribution</code> request are not merged into your
|
|
43
|
+
* existing configuration. Make sure to include all fields: the ones that you
|
|
44
|
+
* modified and also the ones that you didn’t.</p>
|
|
88
45
|
* </li>
|
|
89
46
|
* </ol>
|
|
90
47
|
* @example
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./AssociateAliasCommand";
|
|
2
|
+
export * from "./CopyDistributionCommand";
|
|
2
3
|
export * from "./CreateCachePolicyCommand";
|
|
3
4
|
export * from "./CreateCloudFrontOriginAccessIdentityCommand";
|
|
5
|
+
export * from "./CreateContinuousDeploymentPolicyCommand";
|
|
4
6
|
export * from "./CreateDistributionCommand";
|
|
5
7
|
export * from "./CreateDistributionWithTagsCommand";
|
|
6
8
|
export * from "./CreateFieldLevelEncryptionConfigCommand";
|
|
@@ -18,6 +20,7 @@ export * from "./CreateStreamingDistributionCommand";
|
|
|
18
20
|
export * from "./CreateStreamingDistributionWithTagsCommand";
|
|
19
21
|
export * from "./DeleteCachePolicyCommand";
|
|
20
22
|
export * from "./DeleteCloudFrontOriginAccessIdentityCommand";
|
|
23
|
+
export * from "./DeleteContinuousDeploymentPolicyCommand";
|
|
21
24
|
export * from "./DeleteDistributionCommand";
|
|
22
25
|
export * from "./DeleteFieldLevelEncryptionConfigCommand";
|
|
23
26
|
export * from "./DeleteFieldLevelEncryptionProfileCommand";
|
|
@@ -35,6 +38,8 @@ export * from "./GetCachePolicyCommand";
|
|
|
35
38
|
export * from "./GetCachePolicyConfigCommand";
|
|
36
39
|
export * from "./GetCloudFrontOriginAccessIdentityCommand";
|
|
37
40
|
export * from "./GetCloudFrontOriginAccessIdentityConfigCommand";
|
|
41
|
+
export * from "./GetContinuousDeploymentPolicyCommand";
|
|
42
|
+
export * from "./GetContinuousDeploymentPolicyConfigCommand";
|
|
38
43
|
export * from "./GetDistributionCommand";
|
|
39
44
|
export * from "./GetDistributionConfigCommand";
|
|
40
45
|
export * from "./GetFieldLevelEncryptionCommand";
|
|
@@ -60,6 +65,7 @@ export * from "./GetStreamingDistributionConfigCommand";
|
|
|
60
65
|
export * from "./ListCachePoliciesCommand";
|
|
61
66
|
export * from "./ListCloudFrontOriginAccessIdentitiesCommand";
|
|
62
67
|
export * from "./ListConflictingAliasesCommand";
|
|
68
|
+
export * from "./ListContinuousDeploymentPoliciesCommand";
|
|
63
69
|
export * from "./ListDistributionsByCachePolicyIdCommand";
|
|
64
70
|
export * from "./ListDistributionsByKeyGroupCommand";
|
|
65
71
|
export * from "./ListDistributionsByOriginRequestPolicyIdCommand";
|
|
@@ -85,6 +91,7 @@ export * from "./TestFunctionCommand";
|
|
|
85
91
|
export * from "./UntagResourceCommand";
|
|
86
92
|
export * from "./UpdateCachePolicyCommand";
|
|
87
93
|
export * from "./UpdateCloudFrontOriginAccessIdentityCommand";
|
|
94
|
+
export * from "./UpdateContinuousDeploymentPolicyCommand";
|
|
88
95
|
export * from "./UpdateDistributionCommand";
|
|
89
96
|
export * from "./UpdateFieldLevelEncryptionConfigCommand";
|
|
90
97
|
export * from "./UpdateFieldLevelEncryptionProfileCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|