@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
package/dist-es/CloudFront.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CloudFrontClient } from "./CloudFrontClient";
|
|
2
2
|
import { AssociateAliasCommand, } from "./commands/AssociateAliasCommand";
|
|
3
|
+
import { CopyDistributionCommand, } from "./commands/CopyDistributionCommand";
|
|
3
4
|
import { CreateCachePolicyCommand, } from "./commands/CreateCachePolicyCommand";
|
|
4
5
|
import { CreateCloudFrontOriginAccessIdentityCommand, } from "./commands/CreateCloudFrontOriginAccessIdentityCommand";
|
|
6
|
+
import { CreateContinuousDeploymentPolicyCommand, } from "./commands/CreateContinuousDeploymentPolicyCommand";
|
|
5
7
|
import { CreateDistributionCommand, } from "./commands/CreateDistributionCommand";
|
|
6
8
|
import { CreateDistributionWithTagsCommand, } from "./commands/CreateDistributionWithTagsCommand";
|
|
7
9
|
import { CreateFieldLevelEncryptionConfigCommand, } from "./commands/CreateFieldLevelEncryptionConfigCommand";
|
|
@@ -19,6 +21,7 @@ import { CreateStreamingDistributionCommand, } from "./commands/CreateStreamingD
|
|
|
19
21
|
import { CreateStreamingDistributionWithTagsCommand, } from "./commands/CreateStreamingDistributionWithTagsCommand";
|
|
20
22
|
import { DeleteCachePolicyCommand, } from "./commands/DeleteCachePolicyCommand";
|
|
21
23
|
import { DeleteCloudFrontOriginAccessIdentityCommand, } from "./commands/DeleteCloudFrontOriginAccessIdentityCommand";
|
|
24
|
+
import { DeleteContinuousDeploymentPolicyCommand, } from "./commands/DeleteContinuousDeploymentPolicyCommand";
|
|
22
25
|
import { DeleteDistributionCommand, } from "./commands/DeleteDistributionCommand";
|
|
23
26
|
import { DeleteFieldLevelEncryptionConfigCommand, } from "./commands/DeleteFieldLevelEncryptionConfigCommand";
|
|
24
27
|
import { DeleteFieldLevelEncryptionProfileCommand, } from "./commands/DeleteFieldLevelEncryptionProfileCommand";
|
|
@@ -36,6 +39,8 @@ import { GetCachePolicyCommand, } from "./commands/GetCachePolicyCommand";
|
|
|
36
39
|
import { GetCachePolicyConfigCommand, } from "./commands/GetCachePolicyConfigCommand";
|
|
37
40
|
import { GetCloudFrontOriginAccessIdentityCommand, } from "./commands/GetCloudFrontOriginAccessIdentityCommand";
|
|
38
41
|
import { GetCloudFrontOriginAccessIdentityConfigCommand, } from "./commands/GetCloudFrontOriginAccessIdentityConfigCommand";
|
|
42
|
+
import { GetContinuousDeploymentPolicyCommand, } from "./commands/GetContinuousDeploymentPolicyCommand";
|
|
43
|
+
import { GetContinuousDeploymentPolicyConfigCommand, } from "./commands/GetContinuousDeploymentPolicyConfigCommand";
|
|
39
44
|
import { GetDistributionCommand, } from "./commands/GetDistributionCommand";
|
|
40
45
|
import { GetDistributionConfigCommand, } from "./commands/GetDistributionConfigCommand";
|
|
41
46
|
import { GetFieldLevelEncryptionCommand, } from "./commands/GetFieldLevelEncryptionCommand";
|
|
@@ -61,6 +66,7 @@ import { GetStreamingDistributionConfigCommand, } from "./commands/GetStreamingD
|
|
|
61
66
|
import { ListCachePoliciesCommand, } from "./commands/ListCachePoliciesCommand";
|
|
62
67
|
import { ListCloudFrontOriginAccessIdentitiesCommand, } from "./commands/ListCloudFrontOriginAccessIdentitiesCommand";
|
|
63
68
|
import { ListConflictingAliasesCommand, } from "./commands/ListConflictingAliasesCommand";
|
|
69
|
+
import { ListContinuousDeploymentPoliciesCommand, } from "./commands/ListContinuousDeploymentPoliciesCommand";
|
|
64
70
|
import { ListDistributionsByCachePolicyIdCommand, } from "./commands/ListDistributionsByCachePolicyIdCommand";
|
|
65
71
|
import { ListDistributionsByKeyGroupCommand, } from "./commands/ListDistributionsByKeyGroupCommand";
|
|
66
72
|
import { ListDistributionsByOriginRequestPolicyIdCommand, } from "./commands/ListDistributionsByOriginRequestPolicyIdCommand";
|
|
@@ -86,6 +92,7 @@ import { TestFunctionCommand, } from "./commands/TestFunctionCommand";
|
|
|
86
92
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
87
93
|
import { UpdateCachePolicyCommand, } from "./commands/UpdateCachePolicyCommand";
|
|
88
94
|
import { UpdateCloudFrontOriginAccessIdentityCommand, } from "./commands/UpdateCloudFrontOriginAccessIdentityCommand";
|
|
95
|
+
import { UpdateContinuousDeploymentPolicyCommand, } from "./commands/UpdateContinuousDeploymentPolicyCommand";
|
|
89
96
|
import { UpdateDistributionCommand, } from "./commands/UpdateDistributionCommand";
|
|
90
97
|
import { UpdateFieldLevelEncryptionConfigCommand, } from "./commands/UpdateFieldLevelEncryptionConfigCommand";
|
|
91
98
|
import { UpdateFieldLevelEncryptionProfileCommand, } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
|
|
@@ -112,6 +119,20 @@ export class CloudFront extends CloudFrontClient {
|
|
|
112
119
|
return this.send(command, optionsOrCb);
|
|
113
120
|
}
|
|
114
121
|
}
|
|
122
|
+
copyDistribution(args, optionsOrCb, cb) {
|
|
123
|
+
const command = new CopyDistributionCommand(args);
|
|
124
|
+
if (typeof optionsOrCb === "function") {
|
|
125
|
+
this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
else if (typeof cb === "function") {
|
|
128
|
+
if (typeof optionsOrCb !== "object")
|
|
129
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return this.send(command, optionsOrCb);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
115
136
|
createCachePolicy(args, optionsOrCb, cb) {
|
|
116
137
|
const command = new CreateCachePolicyCommand(args);
|
|
117
138
|
if (typeof optionsOrCb === "function") {
|
|
@@ -140,6 +161,20 @@ export class CloudFront extends CloudFrontClient {
|
|
|
140
161
|
return this.send(command, optionsOrCb);
|
|
141
162
|
}
|
|
142
163
|
}
|
|
164
|
+
createContinuousDeploymentPolicy(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new CreateContinuousDeploymentPolicyCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
143
178
|
createDistribution(args, optionsOrCb, cb) {
|
|
144
179
|
const command = new CreateDistributionCommand(args);
|
|
145
180
|
if (typeof optionsOrCb === "function") {
|
|
@@ -378,6 +413,20 @@ export class CloudFront extends CloudFrontClient {
|
|
|
378
413
|
return this.send(command, optionsOrCb);
|
|
379
414
|
}
|
|
380
415
|
}
|
|
416
|
+
deleteContinuousDeploymentPolicy(args, optionsOrCb, cb) {
|
|
417
|
+
const command = new DeleteContinuousDeploymentPolicyCommand(args);
|
|
418
|
+
if (typeof optionsOrCb === "function") {
|
|
419
|
+
this.send(command, optionsOrCb);
|
|
420
|
+
}
|
|
421
|
+
else if (typeof cb === "function") {
|
|
422
|
+
if (typeof optionsOrCb !== "object")
|
|
423
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
424
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
return this.send(command, optionsOrCb);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
381
430
|
deleteDistribution(args, optionsOrCb, cb) {
|
|
382
431
|
const command = new DeleteDistributionCommand(args);
|
|
383
432
|
if (typeof optionsOrCb === "function") {
|
|
@@ -616,6 +665,34 @@ export class CloudFront extends CloudFrontClient {
|
|
|
616
665
|
return this.send(command, optionsOrCb);
|
|
617
666
|
}
|
|
618
667
|
}
|
|
668
|
+
getContinuousDeploymentPolicy(args, optionsOrCb, cb) {
|
|
669
|
+
const command = new GetContinuousDeploymentPolicyCommand(args);
|
|
670
|
+
if (typeof optionsOrCb === "function") {
|
|
671
|
+
this.send(command, optionsOrCb);
|
|
672
|
+
}
|
|
673
|
+
else if (typeof cb === "function") {
|
|
674
|
+
if (typeof optionsOrCb !== "object")
|
|
675
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
676
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
677
|
+
}
|
|
678
|
+
else {
|
|
679
|
+
return this.send(command, optionsOrCb);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
getContinuousDeploymentPolicyConfig(args, optionsOrCb, cb) {
|
|
683
|
+
const command = new GetContinuousDeploymentPolicyConfigCommand(args);
|
|
684
|
+
if (typeof optionsOrCb === "function") {
|
|
685
|
+
this.send(command, optionsOrCb);
|
|
686
|
+
}
|
|
687
|
+
else if (typeof cb === "function") {
|
|
688
|
+
if (typeof optionsOrCb !== "object")
|
|
689
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
690
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
691
|
+
}
|
|
692
|
+
else {
|
|
693
|
+
return this.send(command, optionsOrCb);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
619
696
|
getDistribution(args, optionsOrCb, cb) {
|
|
620
697
|
const command = new GetDistributionCommand(args);
|
|
621
698
|
if (typeof optionsOrCb === "function") {
|
|
@@ -966,6 +1043,20 @@ export class CloudFront extends CloudFrontClient {
|
|
|
966
1043
|
return this.send(command, optionsOrCb);
|
|
967
1044
|
}
|
|
968
1045
|
}
|
|
1046
|
+
listContinuousDeploymentPolicies(args, optionsOrCb, cb) {
|
|
1047
|
+
const command = new ListContinuousDeploymentPoliciesCommand(args);
|
|
1048
|
+
if (typeof optionsOrCb === "function") {
|
|
1049
|
+
this.send(command, optionsOrCb);
|
|
1050
|
+
}
|
|
1051
|
+
else if (typeof cb === "function") {
|
|
1052
|
+
if (typeof optionsOrCb !== "object")
|
|
1053
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1054
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
return this.send(command, optionsOrCb);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
969
1060
|
listDistributions(args, optionsOrCb, cb) {
|
|
970
1061
|
const command = new ListDistributionsCommand(args);
|
|
971
1062
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1316,6 +1407,20 @@ export class CloudFront extends CloudFrontClient {
|
|
|
1316
1407
|
return this.send(command, optionsOrCb);
|
|
1317
1408
|
}
|
|
1318
1409
|
}
|
|
1410
|
+
updateContinuousDeploymentPolicy(args, optionsOrCb, cb) {
|
|
1411
|
+
const command = new UpdateContinuousDeploymentPolicyCommand(args);
|
|
1412
|
+
if (typeof optionsOrCb === "function") {
|
|
1413
|
+
this.send(command, optionsOrCb);
|
|
1414
|
+
}
|
|
1415
|
+
else if (typeof cb === "function") {
|
|
1416
|
+
if (typeof optionsOrCb !== "object")
|
|
1417
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1418
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1419
|
+
}
|
|
1420
|
+
else {
|
|
1421
|
+
return this.send(command, optionsOrCb);
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1319
1424
|
updateDistribution(args, optionsOrCb, cb) {
|
|
1320
1425
|
const command = new UpdateDistributionCommand(args);
|
|
1321
1426
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CopyDistributionRequestFilterSensitiveLog, CopyDistributionResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restXmlCopyDistributionCommand, serializeAws_restXmlCopyDistributionCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class CopyDistributionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CopyDistributionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "CopyDistributionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CopyDistributionRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CopyDistributionResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlCopyDistributionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlCopyDistributionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateContinuousDeploymentPolicyRequestFilterSensitiveLog, CreateContinuousDeploymentPolicyResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand, serializeAws_restXmlCreateContinuousDeploymentPolicyCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class CreateContinuousDeploymentPolicyCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateContinuousDeploymentPolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "CreateContinuousDeploymentPolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateContinuousDeploymentPolicyRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateContinuousDeploymentPolicyResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlCreateContinuousDeploymentPolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { CreateStreamingDistributionRequestFilterSensitiveLog, CreateStreamingDistributionResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { CreateStreamingDistributionRequestFilterSensitiveLog, CreateStreamingDistributionResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restXmlCreateStreamingDistributionCommand, serializeAws_restXmlCreateStreamingDistributionCommand, } from "../protocols/Aws_restXml";
|
|
6
6
|
export class CreateStreamingDistributionCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { CreateStreamingDistributionWithTagsRequestFilterSensitiveLog, CreateStreamingDistributionWithTagsResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { CreateStreamingDistributionWithTagsRequestFilterSensitiveLog, CreateStreamingDistributionWithTagsResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand, serializeAws_restXmlCreateStreamingDistributionWithTagsCommand, } from "../protocols/Aws_restXml";
|
|
6
6
|
export class CreateStreamingDistributionWithTagsCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DeleteCachePolicyRequestFilterSensitiveLog } from "../models/
|
|
4
|
+
import { DeleteCachePolicyRequestFilterSensitiveLog } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_restXmlDeleteCachePolicyCommand, serializeAws_restXmlDeleteCachePolicyCommand, } from "../protocols/Aws_restXml";
|
|
6
6
|
export class DeleteCachePolicyCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteContinuousDeploymentPolicyRequestFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand, serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class DeleteContinuousDeploymentPolicyCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteContinuousDeploymentPolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "DeleteContinuousDeploymentPolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteContinuousDeploymentPolicyRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetContinuousDeploymentPolicyRequestFilterSensitiveLog, GetContinuousDeploymentPolicyResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restXmlGetContinuousDeploymentPolicyCommand, serializeAws_restXmlGetContinuousDeploymentPolicyCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class GetContinuousDeploymentPolicyCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetContinuousDeploymentPolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "GetContinuousDeploymentPolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetContinuousDeploymentPolicyRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetContinuousDeploymentPolicyResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlGetContinuousDeploymentPolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetContinuousDeploymentPolicyConfigRequestFilterSensitiveLog, GetContinuousDeploymentPolicyConfigResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand, serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class GetContinuousDeploymentPolicyConfigCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetContinuousDeploymentPolicyConfigCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "GetContinuousDeploymentPolicyConfigCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetContinuousDeploymentPolicyConfigRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetContinuousDeploymentPolicyConfigResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListContinuousDeploymentPoliciesRequestFilterSensitiveLog, ListContinuousDeploymentPoliciesResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restXmlListContinuousDeploymentPoliciesCommand, serializeAws_restXmlListContinuousDeploymentPoliciesCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class ListContinuousDeploymentPoliciesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListContinuousDeploymentPoliciesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "ListContinuousDeploymentPoliciesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListContinuousDeploymentPoliciesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListContinuousDeploymentPoliciesResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlListContinuousDeploymentPoliciesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlListContinuousDeploymentPoliciesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateContinuousDeploymentPolicyRequestFilterSensitiveLog, UpdateContinuousDeploymentPolicyResultFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand, serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand, } from "../protocols/Aws_restXml";
|
|
6
|
+
export class UpdateContinuousDeploymentPolicyCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateContinuousDeploymentPolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFrontClient";
|
|
25
|
+
const commandName = "UpdateContinuousDeploymentPolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateContinuousDeploymentPolicyRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateContinuousDeploymentPolicyResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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";
|