@aws-sdk/client-cloudfront 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/CloudFront.js +0 -6
- package/dist-cjs/CloudFrontClient.js +0 -11
- package/dist-cjs/commands/AssociateAliasCommand.js +0 -34
- package/dist-cjs/commands/CreateCachePolicyCommand.js +0 -44
- package/dist-cjs/commands/CreateCloudFrontOriginAccessIdentityCommand.js +0 -27
- package/dist-cjs/commands/CreateDistributionCommand.js +0 -36
- package/dist-cjs/commands/CreateDistributionWithTagsCommand.js +0 -24
- package/dist-cjs/commands/CreateFieldLevelEncryptionConfigCommand.js +0 -24
- package/dist-cjs/commands/CreateFieldLevelEncryptionProfileCommand.js +0 -24
- package/dist-cjs/commands/CreateFunctionCommand.js +0 -34
- package/dist-cjs/commands/CreateInvalidationCommand.js +0 -24
- package/dist-cjs/commands/CreateKeyGroupCommand.js +0 -31
- package/dist-cjs/commands/CreateMonitoringSubscriptionCommand.js +0 -27
- package/dist-cjs/commands/CreateOriginRequestPolicyCommand.js +0 -48
- package/dist-cjs/commands/CreatePublicKeyCommand.js +0 -24
- package/dist-cjs/commands/CreateRealtimeLogConfigCommand.js +0 -27
- package/dist-cjs/commands/CreateStreamingDistributionCommand.js +0 -26
- package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +0 -26
- package/dist-cjs/commands/DeleteCachePolicyCommand.js +0 -30
- package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +0 -24
- package/dist-cjs/commands/DeleteDistributionCommand.js +0 -24
- package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +0 -24
- package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +0 -24
- package/dist-cjs/commands/DeleteFunctionCommand.js +0 -30
- package/dist-cjs/commands/DeleteKeyGroupCommand.js +0 -30
- package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +0 -24
- package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +0 -30
- package/dist-cjs/commands/DeletePublicKeyCommand.js +0 -24
- package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +0 -30
- package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +0 -71
- package/dist-cjs/commands/DescribeFunctionCommand.js +0 -28
- package/dist-cjs/commands/GetCachePolicyCommand.js +0 -37
- package/dist-cjs/commands/GetCachePolicyConfigCommand.js +0 -29
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +0 -24
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +0 -24
- package/dist-cjs/commands/GetDistributionCommand.js +0 -24
- package/dist-cjs/commands/GetDistributionConfigCommand.js +0 -24
- package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +0 -24
- package/dist-cjs/commands/GetFieldLevelEncryptionConfigCommand.js +0 -24
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileCommand.js +0 -24
- package/dist-cjs/commands/GetFieldLevelEncryptionProfileConfigCommand.js +0 -24
- package/dist-cjs/commands/GetFunctionCommand.js +0 -27
- package/dist-cjs/commands/GetInvalidationCommand.js +0 -24
- package/dist-cjs/commands/GetKeyGroupCommand.js +0 -29
- package/dist-cjs/commands/GetKeyGroupConfigCommand.js +0 -29
- package/dist-cjs/commands/GetMonitoringSubscriptionCommand.js +0 -25
- package/dist-cjs/commands/GetOriginRequestPolicyCommand.js +0 -37
- package/dist-cjs/commands/GetOriginRequestPolicyConfigCommand.js +0 -30
- package/dist-cjs/commands/GetPublicKeyCommand.js +0 -24
- package/dist-cjs/commands/GetPublicKeyConfigCommand.js +0 -24
- package/dist-cjs/commands/GetRealtimeLogConfigCommand.js +0 -27
- package/dist-cjs/commands/GetStreamingDistributionCommand.js +0 -24
- package/dist-cjs/commands/GetStreamingDistributionConfigCommand.js +0 -24
- package/dist-cjs/commands/ListCachePoliciesCommand.js +0 -31
- package/dist-cjs/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +0 -24
- package/dist-cjs/commands/ListConflictingAliasesCommand.js +0 -46
- package/dist-cjs/commands/ListDistributionsByCachePolicyIdCommand.js +0 -30
- package/dist-cjs/commands/ListDistributionsByKeyGroupCommand.js +0 -30
- package/dist-cjs/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +0 -30
- package/dist-cjs/commands/ListDistributionsByRealtimeLogConfigCommand.js +0 -33
- package/dist-cjs/commands/ListDistributionsByWebACLIdCommand.js +0 -24
- package/dist-cjs/commands/ListDistributionsCommand.js +0 -24
- package/dist-cjs/commands/ListFieldLevelEncryptionConfigsCommand.js +0 -24
- package/dist-cjs/commands/ListFieldLevelEncryptionProfilesCommand.js +0 -24
- package/dist-cjs/commands/ListFunctionsCommand.js +0 -31
- package/dist-cjs/commands/ListInvalidationsCommand.js +0 -24
- package/dist-cjs/commands/ListKeyGroupsCommand.js +0 -29
- package/dist-cjs/commands/ListOriginRequestPoliciesCommand.js +0 -31
- package/dist-cjs/commands/ListPublicKeysCommand.js +0 -24
- package/dist-cjs/commands/ListRealtimeLogConfigsCommand.js +0 -29
- package/dist-cjs/commands/ListStreamingDistributionsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
- package/dist-cjs/commands/PublishFunctionCommand.js +0 -32
- package/dist-cjs/commands/TagResourceCommand.js +0 -24
- package/dist-cjs/commands/TestFunctionCommand.js +0 -33
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateCachePolicyCommand.js +0 -41
- package/dist-cjs/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +0 -24
- package/dist-cjs/commands/UpdateDistributionCommand.js +0 -102
- package/dist-cjs/commands/UpdateFieldLevelEncryptionConfigCommand.js +0 -24
- package/dist-cjs/commands/UpdateFieldLevelEncryptionProfileCommand.js +0 -24
- package/dist-cjs/commands/UpdateFunctionCommand.js +0 -29
- package/dist-cjs/commands/UpdateKeyGroupCommand.js +0 -41
- package/dist-cjs/commands/UpdateOriginRequestPolicyCommand.js +0 -41
- package/dist-cjs/commands/UpdatePublicKeyCommand.js +0 -24
- package/dist-cjs/commands/UpdateRealtimeLogConfigCommand.js +0 -44
- package/dist-cjs/commands/UpdateStreamingDistributionCommand.js +0 -24
- package/dist-cjs/commands/index.js +88 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -95
- package/dist-cjs/models/models_0.js +0 -828
- package/dist-cjs/models/models_1.js +0 -369
- package/dist-cjs/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +0 -10
- package/dist-cjs/pagination/ListDistributionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListInvalidationsPaginator.js +0 -10
- package/dist-cjs/pagination/ListStreamingDistributionsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restXml.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForDistributionDeployed.js +0 -9
- package/dist-cjs/waiters/waitForInvalidationCompleted.js +0 -9
- package/dist-cjs/waiters/waitForStreamingDistributionDeployed.js +0 -9
- package/dist-es/commands/index.js +85 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -95
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/commands/index.d.ts +85 -0
- package/dist-types/index.d.ts +5 -95
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/CloudFront.d.ts +86 -743
- package/dist-types/ts3.4/CloudFrontClient.d.ts +24 -92
- package/dist-types/ts3.4/commands/AssociateAliasCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/CreateCachePolicyCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateDistributionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CreateDistributionWithTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/CreateInvalidationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateKeyGroupCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateMonitoringSubscriptionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateOriginRequestPolicyCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/CreatePublicKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateRealtimeLogConfigCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteDistributionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteKeyGroupCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetInvalidationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetKeyGroupCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetKeyGroupConfigCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetMonitoringSubscriptionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetOriginRequestPolicyCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/GetOriginRequestPolicyConfigCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetPublicKeyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetRealtimeLogConfigCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetStreamingDistributionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetStreamingDistributionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListCachePoliciesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListConflictingAliasesCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/ListDistributionsByCachePolicyIdCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListDistributionsByKeyGroupCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/ListDistributionsByWebACLIdCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDistributionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListInvalidationsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListKeyGroupsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListOriginRequestPoliciesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListRealtimeLogConfigsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListStreamingDistributionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PublishFunctionCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TestFunctionCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateCachePolicyCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateDistributionCommand.d.ts +2 -98
- package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/UpdateKeyGroupCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/UpdateOriginRequestPolicyCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/UpdatePublicKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateRealtimeLogConfigCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/UpdateStreamingDistributionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +85 -0
- package/dist-types/ts3.4/index.d.ts +5 -95
- package/dist-types/ts3.4/models/models_0.d.ts +105 -6590
- package/dist-types/ts3.4/models/models_1.d.ts +486 -1713
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForDistributionDeployed.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForInvalidationCompleted.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForStreamingDistributionDeployed.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +34 -34
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove tags from a CloudFront resource.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UntagResourceCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UntagResourceCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,52 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates a cache policy configuration.</p>
|
|
10
|
-
* <p>When you update a cache policy configuration, all the fields are updated with the
|
|
11
|
-
* values provided in the request. You cannot update some fields independent of others. To
|
|
12
|
-
* update a cache policy configuration:</p>
|
|
13
|
-
* <ol>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>Use <code>GetCachePolicyConfig</code> to get the current configuration.</p>
|
|
16
|
-
* </li>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>Locally modify the fields in the cache policy configuration that you want to
|
|
19
|
-
* update.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Call <code>UpdateCachePolicy</code> by providing the entire cache policy
|
|
23
|
-
* configuration, including the fields that you modified and those that you
|
|
24
|
-
* didn’t.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ol>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CloudFrontClient, UpdateCachePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
|
-
* // const { CloudFrontClient, UpdateCachePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
|
-
* const client = new CloudFrontClient(config);
|
|
33
|
-
* const command = new UpdateCachePolicyCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateCachePolicyCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateCachePolicyCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
8
|
class UpdateCachePolicyCommand extends smithy_client_1.Command {
|
|
43
|
-
// Start section: command_properties
|
|
44
|
-
// End section: command_properties
|
|
45
9
|
constructor(input) {
|
|
46
|
-
// Start section: command_constructor
|
|
47
10
|
super();
|
|
48
11
|
this.input = input;
|
|
49
|
-
// End section: command_constructor
|
|
50
12
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
55
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
56
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Update an origin access identity. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UpdateCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UpdateCloudFrontOriginAccessIdentityCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UpdateCloudFrontOriginAccessIdentityCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateCloudFrontOriginAccessIdentityCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateCloudFrontOriginAccessIdentityCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,113 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates the configuration for a web distribution. </p>
|
|
10
|
-
* <important>
|
|
11
|
-
* <p>When you update a distribution, there are more required fields than when you create a distribution.
|
|
12
|
-
* When you update your distribution by using this API action, follow the steps here to get the current configuration
|
|
13
|
-
* and then make your updates, to make sure that you include all of the required fields. To view a summary,
|
|
14
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html">Required
|
|
15
|
-
* Fields for Create Distribution and Update Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
16
|
-
* </important>
|
|
17
|
-
* <p>The update process includes getting the current distribution configuration, updating the XML document that is
|
|
18
|
-
* returned to make your changes, and then submitting an <code>UpdateDistribution</code> request to make the updates.</p>
|
|
19
|
-
* <p>For information about updating a distribution using the CloudFront console instead, see
|
|
20
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html">Creating a
|
|
21
|
-
* Distribution</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>
|
|
24
|
-
* <b>To update a web distribution using the CloudFront API</b>
|
|
25
|
-
* </p>
|
|
26
|
-
* <ol>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Submit a
|
|
29
|
-
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html">GetDistributionConfig</a>
|
|
30
|
-
* request to get the current configuration and an <code>Etag</code> header
|
|
31
|
-
* for the distribution.</p>
|
|
32
|
-
* <note>
|
|
33
|
-
* <p>If you update the distribution again, you must get a new <code>Etag</code> header.</p>
|
|
34
|
-
* </note>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Update the XML document that was returned in the response to your <code>GetDistributionConfig</code> request to include
|
|
38
|
-
* your changes. </p>
|
|
39
|
-
* <important>
|
|
40
|
-
* <p>When you edit the XML file, be aware of the following:</p>
|
|
41
|
-
* <ul>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>You must strip out the ETag parameter that is returned.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Additional fields are required when you update a distribution. There may be fields included in the
|
|
47
|
-
* XML file for features that you haven't configured for your distribution. This is expected and required to
|
|
48
|
-
* successfully update the distribution.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>You can't change the value of <code>CallerReference</code>. If you try to change this value, CloudFront returns an
|
|
52
|
-
* <code>IllegalUpdate</code> error. </p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>The new configuration replaces the existing configuration; the values that you specify in an
|
|
56
|
-
* <code>UpdateDistribution</code> request are not merged into your existing configuration. When you add, delete, or
|
|
57
|
-
* replace values in an element that allows multiple values (for example, <code>CNAME</code>), you must specify all of the
|
|
58
|
-
* values that you want to appear in the updated distribution. In addition,
|
|
59
|
-
* you must update the corresponding <code>Quantity</code> element.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* </important>
|
|
63
|
-
* </li>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>Submit an <code>UpdateDistribution</code> request to update the configuration for your distribution:</p>
|
|
66
|
-
* <ul>
|
|
67
|
-
* <li>
|
|
68
|
-
* <p>In the request body, include the XML document that you updated in Step 2. The request body must include an
|
|
69
|
-
* XML document with a <code>DistributionConfig</code> element.</p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>Set the value of the HTTP <code>If-Match</code> header to the value of the <code>ETag</code> header that CloudFront returned
|
|
73
|
-
* when you submitted the <code>GetDistributionConfig</code> request in Step 1.</p>
|
|
74
|
-
* </li>
|
|
75
|
-
* </ul>
|
|
76
|
-
* </li>
|
|
77
|
-
* <li>
|
|
78
|
-
* <p>Review the response to the <code>UpdateDistribution</code> request to confirm that the configuration was
|
|
79
|
-
* successfully updated.</p>
|
|
80
|
-
* </li>
|
|
81
|
-
* <li>
|
|
82
|
-
* <p>Optional: Submit a
|
|
83
|
-
* <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html">GetDistribution</a>
|
|
84
|
-
* request to confirm that your changes have propagated.
|
|
85
|
-
* When propagation is complete, the value of <code>Status</code> is <code>Deployed</code>.</p>
|
|
86
|
-
* </li>
|
|
87
|
-
* </ol>
|
|
88
|
-
* @example
|
|
89
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
90
|
-
* ```javascript
|
|
91
|
-
* import { CloudFrontClient, UpdateDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
92
|
-
* // const { CloudFrontClient, UpdateDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
93
|
-
* const client = new CloudFrontClient(config);
|
|
94
|
-
* const command = new UpdateDistributionCommand(input);
|
|
95
|
-
* const response = await client.send(command);
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @see {@link UpdateDistributionCommandInput} for command's `input` shape.
|
|
99
|
-
* @see {@link UpdateDistributionCommandOutput} for command's `response` shape.
|
|
100
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
8
|
class UpdateDistributionCommand extends smithy_client_1.Command {
|
|
104
|
-
// Start section: command_properties
|
|
105
|
-
// End section: command_properties
|
|
106
9
|
constructor(input) {
|
|
107
|
-
// Start section: command_constructor
|
|
108
10
|
super();
|
|
109
11
|
this.input = input;
|
|
110
|
-
// End section: command_constructor
|
|
111
12
|
}
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
116
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
117
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Update a field-level encryption configuration. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UpdateFieldLevelEncryptionConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UpdateFieldLevelEncryptionConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UpdateFieldLevelEncryptionConfigCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateFieldLevelEncryptionConfigCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateFieldLevelEncryptionConfigCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateFieldLevelEncryptionConfigCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Update a field-level encryption profile. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UpdateFieldLevelEncryptionProfileCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UpdateFieldLevelEncryptionProfileCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UpdateFieldLevelEncryptionProfileCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateFieldLevelEncryptionProfileCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateFieldLevelEncryptionProfileCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateFieldLevelEncryptionProfileCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates a CloudFront function.</p>
|
|
10
|
-
* <p>You can update a function’s code or the comment that describes the function. You
|
|
11
|
-
* cannot update a function’s name.</p>
|
|
12
|
-
* <p>To update a function, you provide the function’s name and version (<code>ETag</code> value)
|
|
13
|
-
* along with the updated function code. To get the name and version, you can use
|
|
14
|
-
* <code>ListFunctions</code> and <code>DescribeFunction</code>.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { CloudFrontClient, UpdateFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
19
|
-
* // const { CloudFrontClient, UpdateFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
20
|
-
* const client = new CloudFrontClient(config);
|
|
21
|
-
* const command = new UpdateFunctionCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link UpdateFunctionCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link UpdateFunctionCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class UpdateFunctionCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,52 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates a key group.</p>
|
|
10
|
-
* <p>When you update a key group, all the fields are updated with the values provided in
|
|
11
|
-
* the request. You cannot update some fields independent of others. To update a key
|
|
12
|
-
* group:</p>
|
|
13
|
-
* <ol>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>Get the current key group with <code>GetKeyGroup</code> or
|
|
16
|
-
* <code>GetKeyGroupConfig</code>.</p>
|
|
17
|
-
* </li>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Locally modify the fields in the key group that you want to update. For
|
|
20
|
-
* example, add or remove public key IDs.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>Call <code>UpdateKeyGroup</code> with the entire key group object, including
|
|
24
|
-
* the fields that you modified and those that you didn’t.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ol>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CloudFrontClient, UpdateKeyGroupCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
|
-
* // const { CloudFrontClient, UpdateKeyGroupCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
|
-
* const client = new CloudFrontClient(config);
|
|
33
|
-
* const command = new UpdateKeyGroupCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateKeyGroupCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateKeyGroupCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
8
|
class UpdateKeyGroupCommand extends smithy_client_1.Command {
|
|
43
|
-
// Start section: command_properties
|
|
44
|
-
// End section: command_properties
|
|
45
9
|
constructor(input) {
|
|
46
|
-
// Start section: command_constructor
|
|
47
10
|
super();
|
|
48
11
|
this.input = input;
|
|
49
|
-
// End section: command_constructor
|
|
50
12
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
55
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
56
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,52 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates an origin request policy configuration.</p>
|
|
10
|
-
* <p>When you update an origin request policy configuration, all the fields are updated
|
|
11
|
-
* with the values provided in the request. You cannot update some fields independent of
|
|
12
|
-
* others. To update an origin request policy configuration:</p>
|
|
13
|
-
* <ol>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>Use <code>GetOriginRequestPolicyConfig</code> to get the current configuration.</p>
|
|
16
|
-
* </li>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>Locally modify the fields in the origin request policy configuration that you
|
|
19
|
-
* want to update.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Call <code>UpdateOriginRequestPolicy</code> by providing the entire origin
|
|
23
|
-
* request policy configuration, including the fields that you modified and those
|
|
24
|
-
* that you didn’t.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ol>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CloudFrontClient, UpdateOriginRequestPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
|
-
* // const { CloudFrontClient, UpdateOriginRequestPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
|
-
* const client = new CloudFrontClient(config);
|
|
33
|
-
* const command = new UpdateOriginRequestPolicyCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateOriginRequestPolicyCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateOriginRequestPolicyCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
8
|
class UpdateOriginRequestPolicyCommand extends smithy_client_1.Command {
|
|
43
|
-
// Start section: command_properties
|
|
44
|
-
// End section: command_properties
|
|
45
9
|
constructor(input) {
|
|
46
|
-
// Start section: command_constructor
|
|
47
10
|
super();
|
|
48
11
|
this.input = input;
|
|
49
|
-
// End section: command_constructor
|
|
50
12
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
55
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
56
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Update public key information. Note that the only value you can change is the comment.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UpdatePublicKeyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UpdatePublicKeyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UpdatePublicKeyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdatePublicKeyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdatePublicKeyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdatePublicKeyCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,55 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates a real-time log configuration.</p>
|
|
10
|
-
* <p>When you update a real-time log configuration, all the parameters are updated with the
|
|
11
|
-
* values provided in the request. You cannot update some parameters independent of others.
|
|
12
|
-
* To update a real-time log configuration:</p>
|
|
13
|
-
* <ol>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>Call <code>GetRealtimeLogConfig</code> to get the current real-time log
|
|
16
|
-
* configuration.</p>
|
|
17
|
-
* </li>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>Locally modify the parameters in the real-time log configuration that you want
|
|
20
|
-
* to update.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>Call this API (<code>UpdateRealtimeLogConfig</code>) by providing the entire
|
|
24
|
-
* real-time log configuration, including the parameters that you modified and
|
|
25
|
-
* those that you didn’t.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* </ol>
|
|
28
|
-
* <p>You cannot update a real-time log configuration’s <code>Name</code> or
|
|
29
|
-
* <code>ARN</code>.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { CloudFrontClient, UpdateRealtimeLogConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
34
|
-
* // const { CloudFrontClient, UpdateRealtimeLogConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
35
|
-
* const client = new CloudFrontClient(config);
|
|
36
|
-
* const command = new UpdateRealtimeLogConfigCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link UpdateRealtimeLogConfigCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link UpdateRealtimeLogConfigCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
8
|
class UpdateRealtimeLogConfigCommand extends smithy_client_1.Command {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
9
|
constructor(input) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
10
|
super();
|
|
51
11
|
this.input = input;
|
|
52
|
-
// End section: command_constructor
|
|
53
12
|
}
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
58
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
59
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_1_1 = require("../models/models_1");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Update a streaming distribution. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, UpdateStreamingDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, UpdateStreamingDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new UpdateStreamingDistributionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateStreamingDistributionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateStreamingDistributionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateStreamingDistributionCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|