@aws-sdk/client-cloudfront 3.454.0 → 3.457.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/README.md +40 -0
- package/dist-cjs/CloudFront.js +10 -0
- package/dist-cjs/commands/CreateKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/DeleteKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/ListKeyValueStoresCommand.js +51 -0
- package/dist-cjs/commands/UpdateKeyValueStoreCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +63 -18
- package/dist-cjs/models/models_1.js +29 -1
- package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restXml.js +514 -5
- package/dist-es/CloudFront.js +10 -0
- package/dist-es/commands/CreateKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/DeleteKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/ListKeyValueStoresCommand.js +47 -0
- package/dist-es/commands/UpdateKeyValueStoreCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +55 -14
- package/dist-es/models/models_1.js +27 -0
- package/dist-es/pagination/ListKeyValueStoresPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restXml.js +501 -2
- package/dist-types/CloudFront.d.ts +35 -0
- package/dist-types/CloudFrontClient.d.ts +7 -2
- package/dist-types/commands/CreateFunctionCommand.d.ts +68 -0
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +133 -0
- package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +1 -2
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +100 -0
- package/dist-types/commands/DescribeFunctionCommand.d.ts +8 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +114 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +8 -0
- package/dist-types/commands/ListKeyValueStoresCommand.d.ts +127 -0
- package/dist-types/commands/PublishFunctionCommand.d.ts +8 -0
- package/dist-types/commands/TestFunctionCommand.d.ts +8 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +68 -0
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +198 -380
- package/dist-types/models/models_1.d.ts +518 -3
- package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restXml.d.ts +45 -0
- package/dist-types/ts3.4/CloudFront.d.ts +85 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateKeyValueStoreCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteKeyValueStoreCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListKeyValueStoresCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -67
- package/dist-types/ts3.4/models/models_1.d.ts +113 -2
- package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { CreateFieldLevelEncryptionProfileCommandInput, CreateFieldLevelEncrypti
|
|
|
12
12
|
import { CreateFunctionCommandInput, CreateFunctionCommandOutput } from "./commands/CreateFunctionCommand";
|
|
13
13
|
import { CreateInvalidationCommandInput, CreateInvalidationCommandOutput } from "./commands/CreateInvalidationCommand";
|
|
14
14
|
import { CreateKeyGroupCommandInput, CreateKeyGroupCommandOutput } from "./commands/CreateKeyGroupCommand";
|
|
15
|
+
import { CreateKeyValueStoreCommandInput, CreateKeyValueStoreCommandOutput } from "./commands/CreateKeyValueStoreCommand";
|
|
15
16
|
import { CreateMonitoringSubscriptionCommandInput, CreateMonitoringSubscriptionCommandOutput } from "./commands/CreateMonitoringSubscriptionCommand";
|
|
16
17
|
import { CreateOriginAccessControlCommandInput, CreateOriginAccessControlCommandOutput } from "./commands/CreateOriginAccessControlCommand";
|
|
17
18
|
import { CreateOriginRequestPolicyCommandInput, CreateOriginRequestPolicyCommandOutput } from "./commands/CreateOriginRequestPolicyCommand";
|
|
@@ -28,6 +29,7 @@ import { DeleteFieldLevelEncryptionConfigCommandInput, DeleteFieldLevelEncryptio
|
|
|
28
29
|
import { DeleteFieldLevelEncryptionProfileCommandInput, DeleteFieldLevelEncryptionProfileCommandOutput } from "./commands/DeleteFieldLevelEncryptionProfileCommand";
|
|
29
30
|
import { DeleteFunctionCommandInput, DeleteFunctionCommandOutput } from "./commands/DeleteFunctionCommand";
|
|
30
31
|
import { DeleteKeyGroupCommandInput, DeleteKeyGroupCommandOutput } from "./commands/DeleteKeyGroupCommand";
|
|
32
|
+
import { DeleteKeyValueStoreCommandInput, DeleteKeyValueStoreCommandOutput } from "./commands/DeleteKeyValueStoreCommand";
|
|
31
33
|
import { DeleteMonitoringSubscriptionCommandInput, DeleteMonitoringSubscriptionCommandOutput } from "./commands/DeleteMonitoringSubscriptionCommand";
|
|
32
34
|
import { DeleteOriginAccessControlCommandInput, DeleteOriginAccessControlCommandOutput } from "./commands/DeleteOriginAccessControlCommand";
|
|
33
35
|
import { DeleteOriginRequestPolicyCommandInput, DeleteOriginRequestPolicyCommandOutput } from "./commands/DeleteOriginRequestPolicyCommand";
|
|
@@ -36,6 +38,7 @@ import { DeleteRealtimeLogConfigCommandInput, DeleteRealtimeLogConfigCommandOutp
|
|
|
36
38
|
import { DeleteResponseHeadersPolicyCommandInput, DeleteResponseHeadersPolicyCommandOutput } from "./commands/DeleteResponseHeadersPolicyCommand";
|
|
37
39
|
import { DeleteStreamingDistributionCommandInput, DeleteStreamingDistributionCommandOutput } from "./commands/DeleteStreamingDistributionCommand";
|
|
38
40
|
import { DescribeFunctionCommandInput, DescribeFunctionCommandOutput } from "./commands/DescribeFunctionCommand";
|
|
41
|
+
import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "./commands/DescribeKeyValueStoreCommand";
|
|
39
42
|
import { GetCachePolicyCommandInput, GetCachePolicyCommandOutput } from "./commands/GetCachePolicyCommand";
|
|
40
43
|
import { GetCachePolicyConfigCommandInput, GetCachePolicyConfigCommandOutput } from "./commands/GetCachePolicyConfigCommand";
|
|
41
44
|
import { GetCloudFrontOriginAccessIdentityCommandInput, GetCloudFrontOriginAccessIdentityCommandOutput } from "./commands/GetCloudFrontOriginAccessIdentityCommand";
|
|
@@ -80,6 +83,7 @@ import { ListFieldLevelEncryptionProfilesCommandInput, ListFieldLevelEncryptionP
|
|
|
80
83
|
import { ListFunctionsCommandInput, ListFunctionsCommandOutput } from "./commands/ListFunctionsCommand";
|
|
81
84
|
import { ListInvalidationsCommandInput, ListInvalidationsCommandOutput } from "./commands/ListInvalidationsCommand";
|
|
82
85
|
import { ListKeyGroupsCommandInput, ListKeyGroupsCommandOutput } from "./commands/ListKeyGroupsCommand";
|
|
86
|
+
import { ListKeyValueStoresCommandInput, ListKeyValueStoresCommandOutput } from "./commands/ListKeyValueStoresCommand";
|
|
83
87
|
import { ListOriginAccessControlsCommandInput, ListOriginAccessControlsCommandOutput } from "./commands/ListOriginAccessControlsCommand";
|
|
84
88
|
import { ListOriginRequestPoliciesCommandInput, ListOriginRequestPoliciesCommandOutput } from "./commands/ListOriginRequestPoliciesCommand";
|
|
85
89
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
@@ -100,6 +104,7 @@ import { UpdateFieldLevelEncryptionConfigCommandInput, UpdateFieldLevelEncryptio
|
|
|
100
104
|
import { UpdateFieldLevelEncryptionProfileCommandInput, UpdateFieldLevelEncryptionProfileCommandOutput } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
|
|
101
105
|
import { UpdateFunctionCommandInput, UpdateFunctionCommandOutput } from "./commands/UpdateFunctionCommand";
|
|
102
106
|
import { UpdateKeyGroupCommandInput, UpdateKeyGroupCommandOutput } from "./commands/UpdateKeyGroupCommand";
|
|
107
|
+
import { UpdateKeyValueStoreCommandInput, UpdateKeyValueStoreCommandOutput } from "./commands/UpdateKeyValueStoreCommand";
|
|
103
108
|
import { UpdateOriginAccessControlCommandInput, UpdateOriginAccessControlCommandOutput } from "./commands/UpdateOriginAccessControlCommand";
|
|
104
109
|
import { UpdateOriginRequestPolicyCommandInput, UpdateOriginRequestPolicyCommandOutput } from "./commands/UpdateOriginRequestPolicyCommand";
|
|
105
110
|
import { UpdatePublicKeyCommandInput, UpdatePublicKeyCommandOutput } from "./commands/UpdatePublicKeyCommand";
|
|
@@ -179,6 +184,12 @@ export interface CloudFront {
|
|
|
179
184
|
createKeyGroup(args: CreateKeyGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateKeyGroupCommandOutput>;
|
|
180
185
|
createKeyGroup(args: CreateKeyGroupCommandInput, cb: (err: any, data?: CreateKeyGroupCommandOutput) => void): void;
|
|
181
186
|
createKeyGroup(args: CreateKeyGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyGroupCommandOutput) => void): void;
|
|
187
|
+
/**
|
|
188
|
+
* @see {@link CreateKeyValueStoreCommand}
|
|
189
|
+
*/
|
|
190
|
+
createKeyValueStore(args: CreateKeyValueStoreCommandInput, options?: __HttpHandlerOptions): Promise<CreateKeyValueStoreCommandOutput>;
|
|
191
|
+
createKeyValueStore(args: CreateKeyValueStoreCommandInput, cb: (err: any, data?: CreateKeyValueStoreCommandOutput) => void): void;
|
|
192
|
+
createKeyValueStore(args: CreateKeyValueStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyValueStoreCommandOutput) => void): void;
|
|
182
193
|
/**
|
|
183
194
|
* @see {@link CreateMonitoringSubscriptionCommand}
|
|
184
195
|
*/
|
|
@@ -275,6 +286,12 @@ export interface CloudFront {
|
|
|
275
286
|
deleteKeyGroup(args: DeleteKeyGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKeyGroupCommandOutput>;
|
|
276
287
|
deleteKeyGroup(args: DeleteKeyGroupCommandInput, cb: (err: any, data?: DeleteKeyGroupCommandOutput) => void): void;
|
|
277
288
|
deleteKeyGroup(args: DeleteKeyGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKeyGroupCommandOutput) => void): void;
|
|
289
|
+
/**
|
|
290
|
+
* @see {@link DeleteKeyValueStoreCommand}
|
|
291
|
+
*/
|
|
292
|
+
deleteKeyValueStore(args: DeleteKeyValueStoreCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKeyValueStoreCommandOutput>;
|
|
293
|
+
deleteKeyValueStore(args: DeleteKeyValueStoreCommandInput, cb: (err: any, data?: DeleteKeyValueStoreCommandOutput) => void): void;
|
|
294
|
+
deleteKeyValueStore(args: DeleteKeyValueStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKeyValueStoreCommandOutput) => void): void;
|
|
278
295
|
/**
|
|
279
296
|
* @see {@link DeleteMonitoringSubscriptionCommand}
|
|
280
297
|
*/
|
|
@@ -323,6 +340,12 @@ export interface CloudFront {
|
|
|
323
340
|
describeFunction(args: DescribeFunctionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFunctionCommandOutput>;
|
|
324
341
|
describeFunction(args: DescribeFunctionCommandInput, cb: (err: any, data?: DescribeFunctionCommandOutput) => void): void;
|
|
325
342
|
describeFunction(args: DescribeFunctionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFunctionCommandOutput) => void): void;
|
|
343
|
+
/**
|
|
344
|
+
* @see {@link DescribeKeyValueStoreCommand}
|
|
345
|
+
*/
|
|
346
|
+
describeKeyValueStore(args: DescribeKeyValueStoreCommandInput, options?: __HttpHandlerOptions): Promise<DescribeKeyValueStoreCommandOutput>;
|
|
347
|
+
describeKeyValueStore(args: DescribeKeyValueStoreCommandInput, cb: (err: any, data?: DescribeKeyValueStoreCommandOutput) => void): void;
|
|
348
|
+
describeKeyValueStore(args: DescribeKeyValueStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeKeyValueStoreCommandOutput) => void): void;
|
|
326
349
|
/**
|
|
327
350
|
* @see {@link GetCachePolicyCommand}
|
|
328
351
|
*/
|
|
@@ -587,6 +610,12 @@ export interface CloudFront {
|
|
|
587
610
|
listKeyGroups(args: ListKeyGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListKeyGroupsCommandOutput>;
|
|
588
611
|
listKeyGroups(args: ListKeyGroupsCommandInput, cb: (err: any, data?: ListKeyGroupsCommandOutput) => void): void;
|
|
589
612
|
listKeyGroups(args: ListKeyGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListKeyGroupsCommandOutput) => void): void;
|
|
613
|
+
/**
|
|
614
|
+
* @see {@link ListKeyValueStoresCommand}
|
|
615
|
+
*/
|
|
616
|
+
listKeyValueStores(args: ListKeyValueStoresCommandInput, options?: __HttpHandlerOptions): Promise<ListKeyValueStoresCommandOutput>;
|
|
617
|
+
listKeyValueStores(args: ListKeyValueStoresCommandInput, cb: (err: any, data?: ListKeyValueStoresCommandOutput) => void): void;
|
|
618
|
+
listKeyValueStores(args: ListKeyValueStoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListKeyValueStoresCommandOutput) => void): void;
|
|
590
619
|
/**
|
|
591
620
|
* @see {@link ListOriginAccessControlsCommand}
|
|
592
621
|
*/
|
|
@@ -707,6 +736,12 @@ export interface CloudFront {
|
|
|
707
736
|
updateKeyGroup(args: UpdateKeyGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateKeyGroupCommandOutput>;
|
|
708
737
|
updateKeyGroup(args: UpdateKeyGroupCommandInput, cb: (err: any, data?: UpdateKeyGroupCommandOutput) => void): void;
|
|
709
738
|
updateKeyGroup(args: UpdateKeyGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateKeyGroupCommandOutput) => void): void;
|
|
739
|
+
/**
|
|
740
|
+
* @see {@link UpdateKeyValueStoreCommand}
|
|
741
|
+
*/
|
|
742
|
+
updateKeyValueStore(args: UpdateKeyValueStoreCommandInput, options?: __HttpHandlerOptions): Promise<UpdateKeyValueStoreCommandOutput>;
|
|
743
|
+
updateKeyValueStore(args: UpdateKeyValueStoreCommandInput, cb: (err: any, data?: UpdateKeyValueStoreCommandOutput) => void): void;
|
|
744
|
+
updateKeyValueStore(args: UpdateKeyValueStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateKeyValueStoreCommandOutput) => void): void;
|
|
710
745
|
/**
|
|
711
746
|
* @see {@link UpdateOriginAccessControlCommand}
|
|
712
747
|
*/
|
|
@@ -20,6 +20,7 @@ import { CreateFieldLevelEncryptionProfileCommandInput, CreateFieldLevelEncrypti
|
|
|
20
20
|
import { CreateFunctionCommandInput, CreateFunctionCommandOutput } from "./commands/CreateFunctionCommand";
|
|
21
21
|
import { CreateInvalidationCommandInput, CreateInvalidationCommandOutput } from "./commands/CreateInvalidationCommand";
|
|
22
22
|
import { CreateKeyGroupCommandInput, CreateKeyGroupCommandOutput } from "./commands/CreateKeyGroupCommand";
|
|
23
|
+
import { CreateKeyValueStoreCommandInput, CreateKeyValueStoreCommandOutput } from "./commands/CreateKeyValueStoreCommand";
|
|
23
24
|
import { CreateMonitoringSubscriptionCommandInput, CreateMonitoringSubscriptionCommandOutput } from "./commands/CreateMonitoringSubscriptionCommand";
|
|
24
25
|
import { CreateOriginAccessControlCommandInput, CreateOriginAccessControlCommandOutput } from "./commands/CreateOriginAccessControlCommand";
|
|
25
26
|
import { CreateOriginRequestPolicyCommandInput, CreateOriginRequestPolicyCommandOutput } from "./commands/CreateOriginRequestPolicyCommand";
|
|
@@ -36,6 +37,7 @@ import { DeleteFieldLevelEncryptionConfigCommandInput, DeleteFieldLevelEncryptio
|
|
|
36
37
|
import { DeleteFieldLevelEncryptionProfileCommandInput, DeleteFieldLevelEncryptionProfileCommandOutput } from "./commands/DeleteFieldLevelEncryptionProfileCommand";
|
|
37
38
|
import { DeleteFunctionCommandInput, DeleteFunctionCommandOutput } from "./commands/DeleteFunctionCommand";
|
|
38
39
|
import { DeleteKeyGroupCommandInput, DeleteKeyGroupCommandOutput } from "./commands/DeleteKeyGroupCommand";
|
|
40
|
+
import { DeleteKeyValueStoreCommandInput, DeleteKeyValueStoreCommandOutput } from "./commands/DeleteKeyValueStoreCommand";
|
|
39
41
|
import { DeleteMonitoringSubscriptionCommandInput, DeleteMonitoringSubscriptionCommandOutput } from "./commands/DeleteMonitoringSubscriptionCommand";
|
|
40
42
|
import { DeleteOriginAccessControlCommandInput, DeleteOriginAccessControlCommandOutput } from "./commands/DeleteOriginAccessControlCommand";
|
|
41
43
|
import { DeleteOriginRequestPolicyCommandInput, DeleteOriginRequestPolicyCommandOutput } from "./commands/DeleteOriginRequestPolicyCommand";
|
|
@@ -44,6 +46,7 @@ import { DeleteRealtimeLogConfigCommandInput, DeleteRealtimeLogConfigCommandOutp
|
|
|
44
46
|
import { DeleteResponseHeadersPolicyCommandInput, DeleteResponseHeadersPolicyCommandOutput } from "./commands/DeleteResponseHeadersPolicyCommand";
|
|
45
47
|
import { DeleteStreamingDistributionCommandInput, DeleteStreamingDistributionCommandOutput } from "./commands/DeleteStreamingDistributionCommand";
|
|
46
48
|
import { DescribeFunctionCommandInput, DescribeFunctionCommandOutput } from "./commands/DescribeFunctionCommand";
|
|
49
|
+
import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "./commands/DescribeKeyValueStoreCommand";
|
|
47
50
|
import { GetCachePolicyCommandInput, GetCachePolicyCommandOutput } from "./commands/GetCachePolicyCommand";
|
|
48
51
|
import { GetCachePolicyConfigCommandInput, GetCachePolicyConfigCommandOutput } from "./commands/GetCachePolicyConfigCommand";
|
|
49
52
|
import { GetCloudFrontOriginAccessIdentityCommandInput, GetCloudFrontOriginAccessIdentityCommandOutput } from "./commands/GetCloudFrontOriginAccessIdentityCommand";
|
|
@@ -88,6 +91,7 @@ import { ListFieldLevelEncryptionProfilesCommandInput, ListFieldLevelEncryptionP
|
|
|
88
91
|
import { ListFunctionsCommandInput, ListFunctionsCommandOutput } from "./commands/ListFunctionsCommand";
|
|
89
92
|
import { ListInvalidationsCommandInput, ListInvalidationsCommandOutput } from "./commands/ListInvalidationsCommand";
|
|
90
93
|
import { ListKeyGroupsCommandInput, ListKeyGroupsCommandOutput } from "./commands/ListKeyGroupsCommand";
|
|
94
|
+
import { ListKeyValueStoresCommandInput, ListKeyValueStoresCommandOutput } from "./commands/ListKeyValueStoresCommand";
|
|
91
95
|
import { ListOriginAccessControlsCommandInput, ListOriginAccessControlsCommandOutput } from "./commands/ListOriginAccessControlsCommand";
|
|
92
96
|
import { ListOriginRequestPoliciesCommandInput, ListOriginRequestPoliciesCommandOutput } from "./commands/ListOriginRequestPoliciesCommand";
|
|
93
97
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
@@ -108,6 +112,7 @@ import { UpdateFieldLevelEncryptionConfigCommandInput, UpdateFieldLevelEncryptio
|
|
|
108
112
|
import { UpdateFieldLevelEncryptionProfileCommandInput, UpdateFieldLevelEncryptionProfileCommandOutput } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
|
|
109
113
|
import { UpdateFunctionCommandInput, UpdateFunctionCommandOutput } from "./commands/UpdateFunctionCommand";
|
|
110
114
|
import { UpdateKeyGroupCommandInput, UpdateKeyGroupCommandOutput } from "./commands/UpdateKeyGroupCommand";
|
|
115
|
+
import { UpdateKeyValueStoreCommandInput, UpdateKeyValueStoreCommandOutput } from "./commands/UpdateKeyValueStoreCommand";
|
|
111
116
|
import { UpdateOriginAccessControlCommandInput, UpdateOriginAccessControlCommandOutput } from "./commands/UpdateOriginAccessControlCommand";
|
|
112
117
|
import { UpdateOriginRequestPolicyCommandInput, UpdateOriginRequestPolicyCommandOutput } from "./commands/UpdateOriginRequestPolicyCommand";
|
|
113
118
|
import { UpdatePublicKeyCommandInput, UpdatePublicKeyCommandOutput } from "./commands/UpdatePublicKeyCommand";
|
|
@@ -120,11 +125,11 @@ export { __Client };
|
|
|
120
125
|
/**
|
|
121
126
|
* @public
|
|
122
127
|
*/
|
|
123
|
-
export type ServiceInputTypes = AssociateAliasCommandInput | CopyDistributionCommandInput | CreateCachePolicyCommandInput | CreateCloudFrontOriginAccessIdentityCommandInput | CreateContinuousDeploymentPolicyCommandInput | CreateDistributionCommandInput | CreateDistributionWithTagsCommandInput | CreateFieldLevelEncryptionConfigCommandInput | CreateFieldLevelEncryptionProfileCommandInput | CreateFunctionCommandInput | CreateInvalidationCommandInput | CreateKeyGroupCommandInput | CreateMonitoringSubscriptionCommandInput | CreateOriginAccessControlCommandInput | CreateOriginRequestPolicyCommandInput | CreatePublicKeyCommandInput | CreateRealtimeLogConfigCommandInput | CreateResponseHeadersPolicyCommandInput | CreateStreamingDistributionCommandInput | CreateStreamingDistributionWithTagsCommandInput | DeleteCachePolicyCommandInput | DeleteCloudFrontOriginAccessIdentityCommandInput | DeleteContinuousDeploymentPolicyCommandInput | DeleteDistributionCommandInput | DeleteFieldLevelEncryptionConfigCommandInput | DeleteFieldLevelEncryptionProfileCommandInput | DeleteFunctionCommandInput | DeleteKeyGroupCommandInput | DeleteMonitoringSubscriptionCommandInput | DeleteOriginAccessControlCommandInput | DeleteOriginRequestPolicyCommandInput | DeletePublicKeyCommandInput | DeleteRealtimeLogConfigCommandInput | DeleteResponseHeadersPolicyCommandInput | DeleteStreamingDistributionCommandInput | DescribeFunctionCommandInput | GetCachePolicyCommandInput | GetCachePolicyConfigCommandInput | GetCloudFrontOriginAccessIdentityCommandInput | GetCloudFrontOriginAccessIdentityConfigCommandInput | GetContinuousDeploymentPolicyCommandInput | GetContinuousDeploymentPolicyConfigCommandInput | GetDistributionCommandInput | GetDistributionConfigCommandInput | GetFieldLevelEncryptionCommandInput | GetFieldLevelEncryptionConfigCommandInput | GetFieldLevelEncryptionProfileCommandInput | GetFieldLevelEncryptionProfileConfigCommandInput | GetFunctionCommandInput | GetInvalidationCommandInput | GetKeyGroupCommandInput | GetKeyGroupConfigCommandInput | GetMonitoringSubscriptionCommandInput | GetOriginAccessControlCommandInput | GetOriginAccessControlConfigCommandInput | GetOriginRequestPolicyCommandInput | GetOriginRequestPolicyConfigCommandInput | GetPublicKeyCommandInput | GetPublicKeyConfigCommandInput | GetRealtimeLogConfigCommandInput | GetResponseHeadersPolicyCommandInput | GetResponseHeadersPolicyConfigCommandInput | GetStreamingDistributionCommandInput | GetStreamingDistributionConfigCommandInput | ListCachePoliciesCommandInput | ListCloudFrontOriginAccessIdentitiesCommandInput | ListConflictingAliasesCommandInput | ListContinuousDeploymentPoliciesCommandInput | ListDistributionsByCachePolicyIdCommandInput | ListDistributionsByKeyGroupCommandInput | ListDistributionsByOriginRequestPolicyIdCommandInput | ListDistributionsByRealtimeLogConfigCommandInput | ListDistributionsByResponseHeadersPolicyIdCommandInput | ListDistributionsByWebACLIdCommandInput | ListDistributionsCommandInput | ListFieldLevelEncryptionConfigsCommandInput | ListFieldLevelEncryptionProfilesCommandInput | ListFunctionsCommandInput | ListInvalidationsCommandInput | ListKeyGroupsCommandInput | ListOriginAccessControlsCommandInput | ListOriginRequestPoliciesCommandInput | ListPublicKeysCommandInput | ListRealtimeLogConfigsCommandInput | ListResponseHeadersPoliciesCommandInput | ListStreamingDistributionsCommandInput | ListTagsForResourceCommandInput | PublishFunctionCommandInput | TagResourceCommandInput | TestFunctionCommandInput | UntagResourceCommandInput | UpdateCachePolicyCommandInput | UpdateCloudFrontOriginAccessIdentityCommandInput | UpdateContinuousDeploymentPolicyCommandInput | UpdateDistributionCommandInput | UpdateDistributionWithStagingConfigCommandInput | UpdateFieldLevelEncryptionConfigCommandInput | UpdateFieldLevelEncryptionProfileCommandInput | UpdateFunctionCommandInput | UpdateKeyGroupCommandInput | UpdateOriginAccessControlCommandInput | UpdateOriginRequestPolicyCommandInput | UpdatePublicKeyCommandInput | UpdateRealtimeLogConfigCommandInput | UpdateResponseHeadersPolicyCommandInput | UpdateStreamingDistributionCommandInput;
|
|
128
|
+
export type ServiceInputTypes = AssociateAliasCommandInput | CopyDistributionCommandInput | CreateCachePolicyCommandInput | CreateCloudFrontOriginAccessIdentityCommandInput | CreateContinuousDeploymentPolicyCommandInput | CreateDistributionCommandInput | CreateDistributionWithTagsCommandInput | CreateFieldLevelEncryptionConfigCommandInput | CreateFieldLevelEncryptionProfileCommandInput | CreateFunctionCommandInput | CreateInvalidationCommandInput | CreateKeyGroupCommandInput | CreateKeyValueStoreCommandInput | CreateMonitoringSubscriptionCommandInput | CreateOriginAccessControlCommandInput | CreateOriginRequestPolicyCommandInput | CreatePublicKeyCommandInput | CreateRealtimeLogConfigCommandInput | CreateResponseHeadersPolicyCommandInput | CreateStreamingDistributionCommandInput | CreateStreamingDistributionWithTagsCommandInput | DeleteCachePolicyCommandInput | DeleteCloudFrontOriginAccessIdentityCommandInput | DeleteContinuousDeploymentPolicyCommandInput | DeleteDistributionCommandInput | DeleteFieldLevelEncryptionConfigCommandInput | DeleteFieldLevelEncryptionProfileCommandInput | DeleteFunctionCommandInput | DeleteKeyGroupCommandInput | DeleteKeyValueStoreCommandInput | DeleteMonitoringSubscriptionCommandInput | DeleteOriginAccessControlCommandInput | DeleteOriginRequestPolicyCommandInput | DeletePublicKeyCommandInput | DeleteRealtimeLogConfigCommandInput | DeleteResponseHeadersPolicyCommandInput | DeleteStreamingDistributionCommandInput | DescribeFunctionCommandInput | DescribeKeyValueStoreCommandInput | GetCachePolicyCommandInput | GetCachePolicyConfigCommandInput | GetCloudFrontOriginAccessIdentityCommandInput | GetCloudFrontOriginAccessIdentityConfigCommandInput | GetContinuousDeploymentPolicyCommandInput | GetContinuousDeploymentPolicyConfigCommandInput | GetDistributionCommandInput | GetDistributionConfigCommandInput | GetFieldLevelEncryptionCommandInput | GetFieldLevelEncryptionConfigCommandInput | GetFieldLevelEncryptionProfileCommandInput | GetFieldLevelEncryptionProfileConfigCommandInput | GetFunctionCommandInput | GetInvalidationCommandInput | GetKeyGroupCommandInput | GetKeyGroupConfigCommandInput | GetMonitoringSubscriptionCommandInput | GetOriginAccessControlCommandInput | GetOriginAccessControlConfigCommandInput | GetOriginRequestPolicyCommandInput | GetOriginRequestPolicyConfigCommandInput | GetPublicKeyCommandInput | GetPublicKeyConfigCommandInput | GetRealtimeLogConfigCommandInput | GetResponseHeadersPolicyCommandInput | GetResponseHeadersPolicyConfigCommandInput | GetStreamingDistributionCommandInput | GetStreamingDistributionConfigCommandInput | ListCachePoliciesCommandInput | ListCloudFrontOriginAccessIdentitiesCommandInput | ListConflictingAliasesCommandInput | ListContinuousDeploymentPoliciesCommandInput | ListDistributionsByCachePolicyIdCommandInput | ListDistributionsByKeyGroupCommandInput | ListDistributionsByOriginRequestPolicyIdCommandInput | ListDistributionsByRealtimeLogConfigCommandInput | ListDistributionsByResponseHeadersPolicyIdCommandInput | ListDistributionsByWebACLIdCommandInput | ListDistributionsCommandInput | ListFieldLevelEncryptionConfigsCommandInput | ListFieldLevelEncryptionProfilesCommandInput | ListFunctionsCommandInput | ListInvalidationsCommandInput | ListKeyGroupsCommandInput | ListKeyValueStoresCommandInput | ListOriginAccessControlsCommandInput | ListOriginRequestPoliciesCommandInput | ListPublicKeysCommandInput | ListRealtimeLogConfigsCommandInput | ListResponseHeadersPoliciesCommandInput | ListStreamingDistributionsCommandInput | ListTagsForResourceCommandInput | PublishFunctionCommandInput | TagResourceCommandInput | TestFunctionCommandInput | UntagResourceCommandInput | UpdateCachePolicyCommandInput | UpdateCloudFrontOriginAccessIdentityCommandInput | UpdateContinuousDeploymentPolicyCommandInput | UpdateDistributionCommandInput | UpdateDistributionWithStagingConfigCommandInput | UpdateFieldLevelEncryptionConfigCommandInput | UpdateFieldLevelEncryptionProfileCommandInput | UpdateFunctionCommandInput | UpdateKeyGroupCommandInput | UpdateKeyValueStoreCommandInput | UpdateOriginAccessControlCommandInput | UpdateOriginRequestPolicyCommandInput | UpdatePublicKeyCommandInput | UpdateRealtimeLogConfigCommandInput | UpdateResponseHeadersPolicyCommandInput | UpdateStreamingDistributionCommandInput;
|
|
124
129
|
/**
|
|
125
130
|
* @public
|
|
126
131
|
*/
|
|
127
|
-
export type ServiceOutputTypes = AssociateAliasCommandOutput | CopyDistributionCommandOutput | CreateCachePolicyCommandOutput | CreateCloudFrontOriginAccessIdentityCommandOutput | CreateContinuousDeploymentPolicyCommandOutput | CreateDistributionCommandOutput | CreateDistributionWithTagsCommandOutput | CreateFieldLevelEncryptionConfigCommandOutput | CreateFieldLevelEncryptionProfileCommandOutput | CreateFunctionCommandOutput | CreateInvalidationCommandOutput | CreateKeyGroupCommandOutput | CreateMonitoringSubscriptionCommandOutput | CreateOriginAccessControlCommandOutput | CreateOriginRequestPolicyCommandOutput | CreatePublicKeyCommandOutput | CreateRealtimeLogConfigCommandOutput | CreateResponseHeadersPolicyCommandOutput | CreateStreamingDistributionCommandOutput | CreateStreamingDistributionWithTagsCommandOutput | DeleteCachePolicyCommandOutput | DeleteCloudFrontOriginAccessIdentityCommandOutput | DeleteContinuousDeploymentPolicyCommandOutput | DeleteDistributionCommandOutput | DeleteFieldLevelEncryptionConfigCommandOutput | DeleteFieldLevelEncryptionProfileCommandOutput | DeleteFunctionCommandOutput | DeleteKeyGroupCommandOutput | DeleteMonitoringSubscriptionCommandOutput | DeleteOriginAccessControlCommandOutput | DeleteOriginRequestPolicyCommandOutput | DeletePublicKeyCommandOutput | DeleteRealtimeLogConfigCommandOutput | DeleteResponseHeadersPolicyCommandOutput | DeleteStreamingDistributionCommandOutput | DescribeFunctionCommandOutput | GetCachePolicyCommandOutput | GetCachePolicyConfigCommandOutput | GetCloudFrontOriginAccessIdentityCommandOutput | GetCloudFrontOriginAccessIdentityConfigCommandOutput | GetContinuousDeploymentPolicyCommandOutput | GetContinuousDeploymentPolicyConfigCommandOutput | GetDistributionCommandOutput | GetDistributionConfigCommandOutput | GetFieldLevelEncryptionCommandOutput | GetFieldLevelEncryptionConfigCommandOutput | GetFieldLevelEncryptionProfileCommandOutput | GetFieldLevelEncryptionProfileConfigCommandOutput | GetFunctionCommandOutput | GetInvalidationCommandOutput | GetKeyGroupCommandOutput | GetKeyGroupConfigCommandOutput | GetMonitoringSubscriptionCommandOutput | GetOriginAccessControlCommandOutput | GetOriginAccessControlConfigCommandOutput | GetOriginRequestPolicyCommandOutput | GetOriginRequestPolicyConfigCommandOutput | GetPublicKeyCommandOutput | GetPublicKeyConfigCommandOutput | GetRealtimeLogConfigCommandOutput | GetResponseHeadersPolicyCommandOutput | GetResponseHeadersPolicyConfigCommandOutput | GetStreamingDistributionCommandOutput | GetStreamingDistributionConfigCommandOutput | ListCachePoliciesCommandOutput | ListCloudFrontOriginAccessIdentitiesCommandOutput | ListConflictingAliasesCommandOutput | ListContinuousDeploymentPoliciesCommandOutput | ListDistributionsByCachePolicyIdCommandOutput | ListDistributionsByKeyGroupCommandOutput | ListDistributionsByOriginRequestPolicyIdCommandOutput | ListDistributionsByRealtimeLogConfigCommandOutput | ListDistributionsByResponseHeadersPolicyIdCommandOutput | ListDistributionsByWebACLIdCommandOutput | ListDistributionsCommandOutput | ListFieldLevelEncryptionConfigsCommandOutput | ListFieldLevelEncryptionProfilesCommandOutput | ListFunctionsCommandOutput | ListInvalidationsCommandOutput | ListKeyGroupsCommandOutput | ListOriginAccessControlsCommandOutput | ListOriginRequestPoliciesCommandOutput | ListPublicKeysCommandOutput | ListRealtimeLogConfigsCommandOutput | ListResponseHeadersPoliciesCommandOutput | ListStreamingDistributionsCommandOutput | ListTagsForResourceCommandOutput | PublishFunctionCommandOutput | TagResourceCommandOutput | TestFunctionCommandOutput | UntagResourceCommandOutput | UpdateCachePolicyCommandOutput | UpdateCloudFrontOriginAccessIdentityCommandOutput | UpdateContinuousDeploymentPolicyCommandOutput | UpdateDistributionCommandOutput | UpdateDistributionWithStagingConfigCommandOutput | UpdateFieldLevelEncryptionConfigCommandOutput | UpdateFieldLevelEncryptionProfileCommandOutput | UpdateFunctionCommandOutput | UpdateKeyGroupCommandOutput | UpdateOriginAccessControlCommandOutput | UpdateOriginRequestPolicyCommandOutput | UpdatePublicKeyCommandOutput | UpdateRealtimeLogConfigCommandOutput | UpdateResponseHeadersPolicyCommandOutput | UpdateStreamingDistributionCommandOutput;
|
|
132
|
+
export type ServiceOutputTypes = AssociateAliasCommandOutput | CopyDistributionCommandOutput | CreateCachePolicyCommandOutput | CreateCloudFrontOriginAccessIdentityCommandOutput | CreateContinuousDeploymentPolicyCommandOutput | CreateDistributionCommandOutput | CreateDistributionWithTagsCommandOutput | CreateFieldLevelEncryptionConfigCommandOutput | CreateFieldLevelEncryptionProfileCommandOutput | CreateFunctionCommandOutput | CreateInvalidationCommandOutput | CreateKeyGroupCommandOutput | CreateKeyValueStoreCommandOutput | CreateMonitoringSubscriptionCommandOutput | CreateOriginAccessControlCommandOutput | CreateOriginRequestPolicyCommandOutput | CreatePublicKeyCommandOutput | CreateRealtimeLogConfigCommandOutput | CreateResponseHeadersPolicyCommandOutput | CreateStreamingDistributionCommandOutput | CreateStreamingDistributionWithTagsCommandOutput | DeleteCachePolicyCommandOutput | DeleteCloudFrontOriginAccessIdentityCommandOutput | DeleteContinuousDeploymentPolicyCommandOutput | DeleteDistributionCommandOutput | DeleteFieldLevelEncryptionConfigCommandOutput | DeleteFieldLevelEncryptionProfileCommandOutput | DeleteFunctionCommandOutput | DeleteKeyGroupCommandOutput | DeleteKeyValueStoreCommandOutput | DeleteMonitoringSubscriptionCommandOutput | DeleteOriginAccessControlCommandOutput | DeleteOriginRequestPolicyCommandOutput | DeletePublicKeyCommandOutput | DeleteRealtimeLogConfigCommandOutput | DeleteResponseHeadersPolicyCommandOutput | DeleteStreamingDistributionCommandOutput | DescribeFunctionCommandOutput | DescribeKeyValueStoreCommandOutput | GetCachePolicyCommandOutput | GetCachePolicyConfigCommandOutput | GetCloudFrontOriginAccessIdentityCommandOutput | GetCloudFrontOriginAccessIdentityConfigCommandOutput | GetContinuousDeploymentPolicyCommandOutput | GetContinuousDeploymentPolicyConfigCommandOutput | GetDistributionCommandOutput | GetDistributionConfigCommandOutput | GetFieldLevelEncryptionCommandOutput | GetFieldLevelEncryptionConfigCommandOutput | GetFieldLevelEncryptionProfileCommandOutput | GetFieldLevelEncryptionProfileConfigCommandOutput | GetFunctionCommandOutput | GetInvalidationCommandOutput | GetKeyGroupCommandOutput | GetKeyGroupConfigCommandOutput | GetMonitoringSubscriptionCommandOutput | GetOriginAccessControlCommandOutput | GetOriginAccessControlConfigCommandOutput | GetOriginRequestPolicyCommandOutput | GetOriginRequestPolicyConfigCommandOutput | GetPublicKeyCommandOutput | GetPublicKeyConfigCommandOutput | GetRealtimeLogConfigCommandOutput | GetResponseHeadersPolicyCommandOutput | GetResponseHeadersPolicyConfigCommandOutput | GetStreamingDistributionCommandOutput | GetStreamingDistributionConfigCommandOutput | ListCachePoliciesCommandOutput | ListCloudFrontOriginAccessIdentitiesCommandOutput | ListConflictingAliasesCommandOutput | ListContinuousDeploymentPoliciesCommandOutput | ListDistributionsByCachePolicyIdCommandOutput | ListDistributionsByKeyGroupCommandOutput | ListDistributionsByOriginRequestPolicyIdCommandOutput | ListDistributionsByRealtimeLogConfigCommandOutput | ListDistributionsByResponseHeadersPolicyIdCommandOutput | ListDistributionsByWebACLIdCommandOutput | ListDistributionsCommandOutput | ListFieldLevelEncryptionConfigsCommandOutput | ListFieldLevelEncryptionProfilesCommandOutput | ListFunctionsCommandOutput | ListInvalidationsCommandOutput | ListKeyGroupsCommandOutput | ListKeyValueStoresCommandOutput | ListOriginAccessControlsCommandOutput | ListOriginRequestPoliciesCommandOutput | ListPublicKeysCommandOutput | ListRealtimeLogConfigsCommandOutput | ListResponseHeadersPoliciesCommandOutput | ListStreamingDistributionsCommandOutput | ListTagsForResourceCommandOutput | PublishFunctionCommandOutput | TagResourceCommandOutput | TestFunctionCommandOutput | UntagResourceCommandOutput | UpdateCachePolicyCommandOutput | UpdateCloudFrontOriginAccessIdentityCommandOutput | UpdateContinuousDeploymentPolicyCommandOutput | UpdateDistributionCommandOutput | UpdateDistributionWithStagingConfigCommandOutput | UpdateFieldLevelEncryptionConfigCommandOutput | UpdateFieldLevelEncryptionProfileCommandOutput | UpdateFunctionCommandOutput | UpdateKeyGroupCommandOutput | UpdateKeyValueStoreCommandOutput | UpdateOriginAccessControlCommandOutput | UpdateOriginRequestPolicyCommandOutput | UpdatePublicKeyCommandOutput | UpdateRealtimeLogConfigCommandOutput | UpdateResponseHeadersPolicyCommandOutput | UpdateStreamingDistributionCommandOutput;
|
|
128
133
|
/**
|
|
129
134
|
* @public
|
|
130
135
|
*/
|
|
@@ -45,6 +45,14 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
45
45
|
* FunctionConfig: { // FunctionConfig
|
|
46
46
|
* Comment: "STRING_VALUE", // required
|
|
47
47
|
* Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
48
|
+
* KeyValueStoreAssociations: { // KeyValueStoreAssociations
|
|
49
|
+
* Quantity: Number("int"), // required
|
|
50
|
+
* Items: [ // KeyValueStoreAssociationList
|
|
51
|
+
* { // KeyValueStoreAssociation
|
|
52
|
+
* KeyValueStoreARN: "STRING_VALUE", // required
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* },
|
|
48
56
|
* },
|
|
49
57
|
* FunctionCode: "BLOB_VALUE", // required
|
|
50
58
|
* };
|
|
@@ -57,6 +65,14 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
57
65
|
* // FunctionConfig: { // FunctionConfig
|
|
58
66
|
* // Comment: "STRING_VALUE", // required
|
|
59
67
|
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
68
|
+
* // KeyValueStoreAssociations: { // KeyValueStoreAssociations
|
|
69
|
+
* // Quantity: Number("int"), // required
|
|
70
|
+
* // Items: [ // KeyValueStoreAssociationList
|
|
71
|
+
* // { // KeyValueStoreAssociation
|
|
72
|
+
* // KeyValueStoreARN: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // },
|
|
60
76
|
* // },
|
|
61
77
|
* // FunctionMetadata: { // FunctionMetadata
|
|
62
78
|
* // FunctionARN: "STRING_VALUE", // required
|
|
@@ -100,6 +116,58 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
100
116
|
* @throws {@link CloudFrontServiceException}
|
|
101
117
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
102
118
|
*
|
|
119
|
+
* @example To create a function
|
|
120
|
+
* ```javascript
|
|
121
|
+
* // Use the following command to create a function.
|
|
122
|
+
* const input = {
|
|
123
|
+
* "FunctionCode": "function-code.js",
|
|
124
|
+
* "FunctionConfig": {
|
|
125
|
+
* "Comment": "my-function-comment",
|
|
126
|
+
* "KeyValueStoreAssociations": {
|
|
127
|
+
* "Items": [
|
|
128
|
+
* {
|
|
129
|
+
* "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
|
|
130
|
+
* }
|
|
131
|
+
* ],
|
|
132
|
+
* "Quantity": 1
|
|
133
|
+
* },
|
|
134
|
+
* "Runtime": "cloudfront-js-2.0"
|
|
135
|
+
* },
|
|
136
|
+
* "Name": "my-function-name"
|
|
137
|
+
* };
|
|
138
|
+
* const command = new CreateFunctionCommand(input);
|
|
139
|
+
* const response = await client.send(command);
|
|
140
|
+
* /* response ==
|
|
141
|
+
* {
|
|
142
|
+
* "ETag": "ETVPDKIKX0DER",
|
|
143
|
+
* "FunctionSummary": {
|
|
144
|
+
* "FunctionConfig": {
|
|
145
|
+
* "Comment": "my-function-comment",
|
|
146
|
+
* "KeyValueStoreAssociations": {
|
|
147
|
+
* "Items": [
|
|
148
|
+
* {
|
|
149
|
+
* "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
|
|
150
|
+
* }
|
|
151
|
+
* ],
|
|
152
|
+
* "Quantity": 1
|
|
153
|
+
* },
|
|
154
|
+
* "Runtime": "cloudfront-js-2.0"
|
|
155
|
+
* },
|
|
156
|
+
* "FunctionMetadata": {
|
|
157
|
+
* "CreatedTime": "2023-11-07T19:53:50.334Z",
|
|
158
|
+
* "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
|
|
159
|
+
* "LastModifiedTime": "2023-11-07T19:53:50.334Z",
|
|
160
|
+
* "Stage": "DEVELOPMENT"
|
|
161
|
+
* },
|
|
162
|
+
* "Name": "my-function-name",
|
|
163
|
+
* "Status": "UNPUBLISHED"
|
|
164
|
+
* },
|
|
165
|
+
* "Location": "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::123456789012:function/my-function-name"
|
|
166
|
+
* }
|
|
167
|
+
* *\/
|
|
168
|
+
* // example id: to-create-a-function-1699737558249
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
103
171
|
*/
|
|
104
172
|
export declare class CreateFunctionCommand extends $Command<CreateFunctionCommandInput, CreateFunctionCommandOutput, CloudFrontClientResolvedConfig> {
|
|
105
173
|
readonly input: CreateFunctionCommandInput;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { CreateKeyValueStoreRequest, CreateKeyValueStoreResult } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateKeyValueStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateKeyValueStoreCommandInput extends CreateKeyValueStoreRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateKeyValueStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateKeyValueStoreCommandOutput extends CreateKeyValueStoreResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Specifies the Key Value Store resource to add to your account. In your account, the Key Value Store names must be unique. You can also import Key Value Store data in JSON format from an S3 bucket by providing a valid <code>ImportSource</code> that you own.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CloudFrontClient, CreateKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
|
+
* // const { CloudFrontClient, CreateKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
|
+
* const client = new CloudFrontClient(config);
|
|
33
|
+
* const input = { // CreateKeyValueStoreRequest
|
|
34
|
+
* Name: "STRING_VALUE", // required
|
|
35
|
+
* Comment: "STRING_VALUE",
|
|
36
|
+
* ImportSource: { // ImportSource
|
|
37
|
+
* SourceType: "S3", // required
|
|
38
|
+
* SourceARN: "STRING_VALUE", // required
|
|
39
|
+
* },
|
|
40
|
+
* };
|
|
41
|
+
* const command = new CreateKeyValueStoreCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // CreateKeyValueStoreResult
|
|
44
|
+
* // KeyValueStore: { // KeyValueStore
|
|
45
|
+
* // Name: "STRING_VALUE", // required
|
|
46
|
+
* // Id: "STRING_VALUE", // required
|
|
47
|
+
* // Comment: "STRING_VALUE", // required
|
|
48
|
+
* // ARN: "STRING_VALUE", // required
|
|
49
|
+
* // Status: "STRING_VALUE",
|
|
50
|
+
* // LastModifiedTime: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // },
|
|
52
|
+
* // ETag: "STRING_VALUE",
|
|
53
|
+
* // Location: "STRING_VALUE",
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param CreateKeyValueStoreCommandInput - {@link CreateKeyValueStoreCommandInput}
|
|
59
|
+
* @returns {@link CreateKeyValueStoreCommandOutput}
|
|
60
|
+
* @see {@link CreateKeyValueStoreCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link CreateKeyValueStoreCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDenied} (client fault)
|
|
65
|
+
* <p>Access denied.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link EntityAlreadyExists} (client fault)
|
|
68
|
+
* <p>The Key Value Store entity already exists. You must provide a unique Key Value Store
|
|
69
|
+
* entity.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link EntityLimitExceeded} (client fault)
|
|
72
|
+
* <p>The Key Value Store entity limit has been exceeded.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link EntitySizeLimitExceeded} (client fault)
|
|
75
|
+
* <p>The Key Value Store entity size limit was exceeded.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InvalidArgument} (client fault)
|
|
78
|
+
* <p>An argument is invalid.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link CloudFrontServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @example To create a KeyValueStore
|
|
84
|
+
* ```javascript
|
|
85
|
+
* // Use the following command to create a KeyValueStore.
|
|
86
|
+
* const input = {
|
|
87
|
+
* "Comment": "my-key-valuestore-comment",
|
|
88
|
+
* "ImportSource": {
|
|
89
|
+
* "SourceARN": "arn:aws:s3:::my-bucket/validJSON.json",
|
|
90
|
+
* "SourceType": "S3"
|
|
91
|
+
* },
|
|
92
|
+
* "Name": "my-keyvaluestore-name"
|
|
93
|
+
* };
|
|
94
|
+
* const command = new CreateKeyValueStoreCommand(input);
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response ==
|
|
97
|
+
* {
|
|
98
|
+
* "ETag": "ETVPDKIKX0DER",
|
|
99
|
+
* "KeyValueStore": {
|
|
100
|
+
* "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
101
|
+
* "Comment": "my-key-valuestore-comment",
|
|
102
|
+
* "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
103
|
+
* "LastModifiedTime": "2023-11-07T18:15:52.042Z",
|
|
104
|
+
* "Name": "my-keyvaluestore-name",
|
|
105
|
+
* "Status": "PROVISIONING"
|
|
106
|
+
* },
|
|
107
|
+
* "Location": "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
|
|
108
|
+
* }
|
|
109
|
+
* *\/
|
|
110
|
+
* // example id: to-create-a-key-value-store-1699751722467
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
export declare class CreateKeyValueStoreCommand extends $Command<CreateKeyValueStoreCommandInput, CreateKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
115
|
+
readonly input: CreateKeyValueStoreCommandInput;
|
|
116
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
constructor(input: CreateKeyValueStoreCommandInput);
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateKeyValueStoreCommandInput, CreateKeyValueStoreCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
private serialize;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
private deserialize;
|
|
133
|
+
}
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
-
import { CreateResponseHeadersPolicyRequest } from "../models/
|
|
6
|
-
import { CreateResponseHeadersPolicyResult } from "../models/models_1";
|
|
5
|
+
import { CreateResponseHeadersPolicyRequest, CreateResponseHeadersPolicyResult } from "../models/models_1";
|
|
7
6
|
/**
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
|
|
5
|
+
import { DeleteKeyValueStoreRequest } from "../models/models_1";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteKeyValueStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteKeyValueStoreCommandInput extends DeleteKeyValueStoreRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteKeyValueStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteKeyValueStoreCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Specifies the Key Value Store to delete.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CloudFrontClient, DeleteKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
|
+
* // const { CloudFrontClient, DeleteKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
|
+
* const client = new CloudFrontClient(config);
|
|
33
|
+
* const input = { // DeleteKeyValueStoreRequest
|
|
34
|
+
* Name: "STRING_VALUE", // required
|
|
35
|
+
* IfMatch: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new DeleteKeyValueStoreCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // {};
|
|
40
|
+
*
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param DeleteKeyValueStoreCommandInput - {@link DeleteKeyValueStoreCommandInput}
|
|
44
|
+
* @returns {@link DeleteKeyValueStoreCommandOutput}
|
|
45
|
+
* @see {@link DeleteKeyValueStoreCommandInput} for command's `input` shape.
|
|
46
|
+
* @see {@link DeleteKeyValueStoreCommandOutput} for command's `response` shape.
|
|
47
|
+
* @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link AccessDenied} (client fault)
|
|
50
|
+
* <p>Access denied.</p>
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link CannotDeleteEntityWhileInUse} (client fault)
|
|
53
|
+
* <p>The Key Value Store entity cannot be deleted while it is in use.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link EntityNotFound} (client fault)
|
|
56
|
+
* <p>The Key Value Store entity was not found.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InvalidIfMatchVersion} (client fault)
|
|
59
|
+
* <p>The <code>If-Match</code> version is missing or not valid.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link PreconditionFailed} (client fault)
|
|
62
|
+
* <p>The precondition in one or more of the request fields evaluated to
|
|
63
|
+
* <code>false</code>.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link CloudFrontServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @example To delete a KeyValueStore
|
|
69
|
+
* ```javascript
|
|
70
|
+
* // Use the following command to delete a KeyValueStore.
|
|
71
|
+
* const input = {
|
|
72
|
+
* "IfMatch": "ETVPDKIKX0DER",
|
|
73
|
+
* "Name": "my-keyvaluestore-name"
|
|
74
|
+
* };
|
|
75
|
+
* const command = new DeleteKeyValueStoreCommand(input);
|
|
76
|
+
* await client.send(command);
|
|
77
|
+
* // example id: to-delete-a-key-value-store-1699751759648
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
export declare class DeleteKeyValueStoreCommand extends $Command<DeleteKeyValueStoreCommandInput, DeleteKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
82
|
+
readonly input: DeleteKeyValueStoreCommandInput;
|
|
83
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
constructor(input: DeleteKeyValueStoreCommandInput);
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteKeyValueStoreCommandInput, DeleteKeyValueStoreCommandOutput>;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
private serialize;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private deserialize;
|
|
100
|
+
}
|
|
@@ -47,6 +47,14 @@ export interface DescribeFunctionCommandOutput extends DescribeFunctionResult, _
|
|
|
47
47
|
* // FunctionConfig: { // FunctionConfig
|
|
48
48
|
* // Comment: "STRING_VALUE", // required
|
|
49
49
|
* // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
|
|
50
|
+
* // KeyValueStoreAssociations: { // KeyValueStoreAssociations
|
|
51
|
+
* // Quantity: Number("int"), // required
|
|
52
|
+
* // Items: [ // KeyValueStoreAssociationList
|
|
53
|
+
* // { // KeyValueStoreAssociation
|
|
54
|
+
* // KeyValueStoreARN: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // },
|
|
50
58
|
* // },
|
|
51
59
|
* // FunctionMetadata: { // FunctionMetadata
|
|
52
60
|
* // FunctionARN: "STRING_VALUE", // required
|