@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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Uploads a public key to CloudFront that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level encryption</a>.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, CreatePublicKeyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, CreatePublicKeyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new CreatePublicKeyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link CreatePublicKeyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link CreatePublicKeyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class CreatePublicKeyCommand 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,38 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a real-time log configuration.</p>
|
|
10
|
-
* <p>After you create a real-time log configuration, you can attach it to one or more cache
|
|
11
|
-
* behaviors to send real-time log data to the specified Amazon Kinesis data stream.</p>
|
|
12
|
-
* <p>For more information about real-time log configurations, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html">Real-time logs</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CloudFrontClient, CreateRealtimeLogConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
17
|
-
* // const { CloudFrontClient, CreateRealtimeLogConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
18
|
-
* const client = new CloudFrontClient(config);
|
|
19
|
-
* const command = new CreateRealtimeLogConfigCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link CreateRealtimeLogConfigCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link CreateRealtimeLogConfigCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class CreateRealtimeLogConfigCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>This API is deprecated.
|
|
10
|
-
* Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020.
|
|
11
|
-
* For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read the announcement</a> on the Amazon CloudFront discussion forum.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CloudFrontClient, CreateStreamingDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
16
|
-
* // const { CloudFrontClient, CreateStreamingDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
17
|
-
* const client = new CloudFrontClient(config);
|
|
18
|
-
* const command = new CreateStreamingDistributionCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link CreateStreamingDistributionCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link CreateStreamingDistributionCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class CreateStreamingDistributionCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>This API is deprecated.
|
|
10
|
-
* Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020.
|
|
11
|
-
* For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read the announcement</a> on the Amazon CloudFront discussion forum.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { CloudFrontClient, CreateStreamingDistributionWithTagsCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
16
|
-
* // const { CloudFrontClient, CreateStreamingDistributionWithTagsCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
17
|
-
* const client = new CloudFrontClient(config);
|
|
18
|
-
* const command = new CreateStreamingDistributionWithTagsCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link CreateStreamingDistributionWithTagsCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link CreateStreamingDistributionWithTagsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class CreateStreamingDistributionWithTagsCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,41 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a cache policy.</p>
|
|
10
|
-
* <p>You cannot delete a cache policy if it’s attached to a cache behavior. First update your
|
|
11
|
-
* distributions to remove the cache policy from all cache behaviors, then delete the cache
|
|
12
|
-
* policy.</p>
|
|
13
|
-
* <p>To delete a cache policy, you must provide the policy’s identifier and version. To get these
|
|
14
|
-
* values, you can use <code>ListCachePolicies</code> or
|
|
15
|
-
* <code>GetCachePolicy</code>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudFrontClient, DeleteCachePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
20
|
-
* // const { CloudFrontClient, DeleteCachePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
21
|
-
* const client = new CloudFrontClient(config);
|
|
22
|
-
* const command = new DeleteCachePolicyCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteCachePolicyCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteCachePolicyCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteCachePolicyCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Delete 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, DeleteCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeleteCloudFrontOriginAccessIdentityCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeleteCloudFrontOriginAccessIdentityCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteCloudFrontOriginAccessIdentityCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteCloudFrontOriginAccessIdentityCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteCloudFrontOriginAccessIdentityCommand 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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Delete a 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, DeleteDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeleteDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeleteDistributionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteDistributionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteDistributionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteDistributionCommand 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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove 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, DeleteFieldLevelEncryptionConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeleteFieldLevelEncryptionConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeleteFieldLevelEncryptionConfigCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteFieldLevelEncryptionConfigCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteFieldLevelEncryptionConfigCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteFieldLevelEncryptionConfigCommand 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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove 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, DeleteFieldLevelEncryptionProfileCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeleteFieldLevelEncryptionProfileCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeleteFieldLevelEncryptionProfileCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteFieldLevelEncryptionProfileCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteFieldLevelEncryptionProfileCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteFieldLevelEncryptionProfileCommand 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,41 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a CloudFront function.</p>
|
|
10
|
-
* <p>You cannot delete a function if it’s associated with a cache behavior. First, update your
|
|
11
|
-
* distributions to remove the function association from all cache behaviors, then delete
|
|
12
|
-
* the function.</p>
|
|
13
|
-
* <p>To delete a function, you must provide the function’s name and version
|
|
14
|
-
* (<code>ETag</code> value). To get these values, you can use <code>ListFunctions</code>
|
|
15
|
-
* and <code>DescribeFunction</code>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudFrontClient, DeleteFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
20
|
-
* // const { CloudFrontClient, DeleteFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
21
|
-
* const client = new CloudFrontClient(config);
|
|
22
|
-
* const command = new DeleteFunctionCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteFunctionCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteFunctionCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteFunctionCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,41 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a key group.</p>
|
|
10
|
-
* <p>You cannot delete a key group that is referenced in a cache behavior. First update
|
|
11
|
-
* your distributions to remove the key group from all cache behaviors, then delete the key
|
|
12
|
-
* group.</p>
|
|
13
|
-
* <p>To delete a key group, you must provide the key group’s identifier and version. To get
|
|
14
|
-
* these values, use <code>ListKeyGroups</code> followed by <code>GetKeyGroup</code> or
|
|
15
|
-
* <code>GetKeyGroupConfig</code>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudFrontClient, DeleteKeyGroupCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
20
|
-
* // const { CloudFrontClient, DeleteKeyGroupCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
21
|
-
* const client = new CloudFrontClient(config);
|
|
22
|
-
* const command = new DeleteKeyGroupCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteKeyGroupCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteKeyGroupCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteKeyGroupCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Disables additional CloudWatch metrics for the specified CloudFront 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, DeleteMonitoringSubscriptionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeleteMonitoringSubscriptionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeleteMonitoringSubscriptionCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteMonitoringSubscriptionCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteMonitoringSubscriptionCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeleteMonitoringSubscriptionCommand 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,41 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes an origin request policy.</p>
|
|
10
|
-
* <p>You cannot delete an origin request policy if it’s attached to any cache behaviors. First
|
|
11
|
-
* update your distributions to remove the origin request policy from all cache behaviors,
|
|
12
|
-
* then delete the origin request policy.</p>
|
|
13
|
-
* <p>To delete an origin request policy, you must provide the policy’s identifier and version. To
|
|
14
|
-
* get the identifier, you can use <code>ListOriginRequestPolicies</code> or
|
|
15
|
-
* <code>GetOriginRequestPolicy</code>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudFrontClient, DeleteOriginRequestPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
20
|
-
* // const { CloudFrontClient, DeleteOriginRequestPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
21
|
-
* const client = new CloudFrontClient(config);
|
|
22
|
-
* const command = new DeleteOriginRequestPolicyCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteOriginRequestPolicyCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteOriginRequestPolicyCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteOriginRequestPolicyCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove a public key you previously added to CloudFront.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudFrontClient, DeletePublicKeyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
14
|
-
* // const { CloudFrontClient, DeletePublicKeyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
15
|
-
* const client = new CloudFrontClient(config);
|
|
16
|
-
* const command = new DeletePublicKeyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeletePublicKeyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeletePublicKeyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DeletePublicKeyCommand 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,41 +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_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restXml_1 = require("../protocols/Aws_restXml");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a real-time log configuration.</p>
|
|
10
|
-
* <p>You cannot delete a real-time log configuration if it’s attached to a cache behavior.
|
|
11
|
-
* First update your distributions to remove the real-time log configuration from all cache
|
|
12
|
-
* behaviors, then delete the real-time log configuration.</p>
|
|
13
|
-
* <p>To delete a real-time log configuration, you can provide the configuration’s name or its
|
|
14
|
-
* Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront
|
|
15
|
-
* uses the name to identify the real-time log configuration to delete.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { CloudFrontClient, DeleteRealtimeLogConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
20
|
-
* // const { CloudFrontClient, DeleteRealtimeLogConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
21
|
-
* const client = new CloudFrontClient(config);
|
|
22
|
-
* const command = new DeleteRealtimeLogConfigCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteRealtimeLogConfigCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteRealtimeLogConfigCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteRealtimeLogConfigCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|