@aws-sdk/client-cloudfront 3.456.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/dist-types/commands/CreateFunctionCommand.d.ts +52 -0
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +30 -0
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +12 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +24 -0
- package/dist-types/commands/ListKeyValueStoresCommand.d.ts +32 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +52 -0
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +26 -0
- package/package.json +1 -1
|
@@ -116,6 +116,58 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResult, __Met
|
|
|
116
116
|
* @throws {@link CloudFrontServiceException}
|
|
117
117
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
118
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
|
+
*
|
|
119
171
|
*/
|
|
120
172
|
export declare class CreateFunctionCommand extends $Command<CreateFunctionCommandInput, CreateFunctionCommandOutput, CloudFrontClientResolvedConfig> {
|
|
121
173
|
readonly input: CreateFunctionCommandInput;
|
|
@@ -80,6 +80,36 @@ export interface CreateKeyValueStoreCommandOutput extends CreateKeyValueStoreRes
|
|
|
80
80
|
* @throws {@link CloudFrontServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
82
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
|
+
*
|
|
83
113
|
*/
|
|
84
114
|
export declare class CreateKeyValueStoreCommand extends $Command<CreateKeyValueStoreCommandInput, CreateKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
85
115
|
readonly input: CreateKeyValueStoreCommandInput;
|
|
@@ -65,6 +65,18 @@ export interface DeleteKeyValueStoreCommandOutput extends __MetadataBearer {
|
|
|
65
65
|
* @throws {@link CloudFrontServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
67
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
|
+
*
|
|
68
80
|
*/
|
|
69
81
|
export declare class DeleteKeyValueStoreCommand extends $Command<DeleteKeyValueStoreCommandInput, DeleteKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
70
82
|
readonly input: DeleteKeyValueStoreCommandInput;
|
|
@@ -67,6 +67,30 @@ export interface DescribeKeyValueStoreCommandOutput extends DescribeKeyValueStor
|
|
|
67
67
|
* @throws {@link CloudFrontServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
69
69
|
*
|
|
70
|
+
* @example To describe a KeyValueStore
|
|
71
|
+
* ```javascript
|
|
72
|
+
* // Use the following command to describe a KeyValueStore.
|
|
73
|
+
* const input = {
|
|
74
|
+
* "Name": "my-keyvaluestore-name"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new DescribeKeyValueStoreCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response ==
|
|
79
|
+
* {
|
|
80
|
+
* "ETag": "ETVPDKIKX0DER",
|
|
81
|
+
* "KeyValueStore": {
|
|
82
|
+
* "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
83
|
+
* "Comment": "my-key-valuestore-comment",
|
|
84
|
+
* "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
85
|
+
* "LastModifiedTime": "2023-11-07T18:20:33.056Z",
|
|
86
|
+
* "Name": "my-keyvaluestore-name",
|
|
87
|
+
* "Status": "READY"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* *\/
|
|
91
|
+
* // example id: to-describe-a-key-value-store-1699751788152
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
70
94
|
*/
|
|
71
95
|
export declare class DescribeKeyValueStoreCommand extends $Command<DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
72
96
|
readonly input: DescribeKeyValueStoreCommandInput;
|
|
@@ -72,6 +72,38 @@ export interface ListKeyValueStoresCommandOutput extends ListKeyValueStoresResul
|
|
|
72
72
|
* @throws {@link CloudFrontServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
74
74
|
*
|
|
75
|
+
* @example To get a list of KeyValueStores
|
|
76
|
+
* ```javascript
|
|
77
|
+
* // The following command retrieves a list of KeyValueStores with READY status.
|
|
78
|
+
* const input = {
|
|
79
|
+
* "Marker": "",
|
|
80
|
+
* "MaxItems": "100",
|
|
81
|
+
* "Status": "READY"
|
|
82
|
+
* };
|
|
83
|
+
* const command = new ListKeyValueStoresCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* /* response ==
|
|
86
|
+
* {
|
|
87
|
+
* "KeyValueStoreList": {
|
|
88
|
+
* "Items": [
|
|
89
|
+
* {
|
|
90
|
+
* "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
91
|
+
* "Comment": "",
|
|
92
|
+
* "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
93
|
+
* "LastModifiedTime": "2023-11-07T18:45:21.069Z",
|
|
94
|
+
* "Name": "my-keyvaluestore-name",
|
|
95
|
+
* "Status": "READY"
|
|
96
|
+
* }
|
|
97
|
+
* ],
|
|
98
|
+
* "MaxItems": 100,
|
|
99
|
+
* "NextMarker": "",
|
|
100
|
+
* "Quantity": 1
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
* *\/
|
|
104
|
+
* // example id: to-get-a-list-of-key-value-store-1699751799198
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
75
107
|
*/
|
|
76
108
|
export declare class ListKeyValueStoresCommand extends $Command<ListKeyValueStoresCommandInput, ListKeyValueStoresCommandOutput, CloudFrontClientResolvedConfig> {
|
|
77
109
|
readonly input: ListKeyValueStoresCommandInput;
|
|
@@ -111,6 +111,58 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
|
|
|
111
111
|
* @throws {@link CloudFrontServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
113
113
|
*
|
|
114
|
+
* @example To update a function
|
|
115
|
+
* ```javascript
|
|
116
|
+
* // Use the following command to update a function.
|
|
117
|
+
* const input = {
|
|
118
|
+
* "FunctionCode": "function-code-changed.js",
|
|
119
|
+
* "FunctionConfig": {
|
|
120
|
+
* "Comment": "my-changed-comment",
|
|
121
|
+
* "KeyValueStoreAssociations": {
|
|
122
|
+
* "Items": [
|
|
123
|
+
* {
|
|
124
|
+
* "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
|
|
125
|
+
* }
|
|
126
|
+
* ],
|
|
127
|
+
* "Quantity": 1
|
|
128
|
+
* },
|
|
129
|
+
* "Runtime": "cloudfront-js-2.0"
|
|
130
|
+
* },
|
|
131
|
+
* "IfMatch": "ETVPDKIKX0DER",
|
|
132
|
+
* "Name": "my-function-name"
|
|
133
|
+
* };
|
|
134
|
+
* const command = new UpdateFunctionCommand(input);
|
|
135
|
+
* const response = await client.send(command);
|
|
136
|
+
* /* response ==
|
|
137
|
+
* {
|
|
138
|
+
* "ETag": "E3UN6WX5RRO2AG",
|
|
139
|
+
* "FunctionSummary": {
|
|
140
|
+
* "FunctionConfig": {
|
|
141
|
+
* "Comment": "my-changed-comment",
|
|
142
|
+
* "KeyValueStoreAssociations": {
|
|
143
|
+
* "Items": [
|
|
144
|
+
* {
|
|
145
|
+
* "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
|
|
146
|
+
* }
|
|
147
|
+
* ],
|
|
148
|
+
* "Quantity": 1
|
|
149
|
+
* },
|
|
150
|
+
* "Runtime": "cloudfront-js-2.0"
|
|
151
|
+
* },
|
|
152
|
+
* "FunctionMetadata": {
|
|
153
|
+
* "CreatedTime": "2023-11-07T19:53:50.334Z",
|
|
154
|
+
* "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
|
|
155
|
+
* "LastModifiedTime": "2023-11-07T20:01:37.174Z",
|
|
156
|
+
* "Stage": "DEVELOPMENT"
|
|
157
|
+
* },
|
|
158
|
+
* "Name": "my-function-name",
|
|
159
|
+
* "Status": "UNPUBLISHED"
|
|
160
|
+
* }
|
|
161
|
+
* }
|
|
162
|
+
* *\/
|
|
163
|
+
* // example id: to-update-a-function-1699751865053
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
114
166
|
*/
|
|
115
167
|
export declare class UpdateFunctionCommand extends $Command<UpdateFunctionCommandInput, UpdateFunctionCommandOutput, CloudFrontClientResolvedConfig> {
|
|
116
168
|
readonly input: UpdateFunctionCommandInput;
|
|
@@ -76,6 +76,32 @@ export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreRes
|
|
|
76
76
|
* @throws {@link CloudFrontServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from CloudFront service.</p>
|
|
78
78
|
*
|
|
79
|
+
* @example To update a KeyValueStore
|
|
80
|
+
* ```javascript
|
|
81
|
+
* // Use the following command to update a KeyValueStore.
|
|
82
|
+
* const input = {
|
|
83
|
+
* "Comment": "my-changed-comment",
|
|
84
|
+
* "IfMatch": "ETVPDKIKX0DER",
|
|
85
|
+
* "Name": "my-keyvaluestore-name"
|
|
86
|
+
* };
|
|
87
|
+
* const command = new UpdateKeyValueStoreCommand(input);
|
|
88
|
+
* const response = await client.send(command);
|
|
89
|
+
* /* response ==
|
|
90
|
+
* {
|
|
91
|
+
* "ETag": "E3UN6WX5RRO2AG",
|
|
92
|
+
* "KeyValueStore": {
|
|
93
|
+
* "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
94
|
+
* "Comment": "my-changed-comment",
|
|
95
|
+
* "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
|
96
|
+
* "LastModifiedTime": "2023-11-07T18:45:21.069Z",
|
|
97
|
+
* "Name": "my-keyvaluestore-name",
|
|
98
|
+
* "Status": "READY"
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
101
|
+
* *\/
|
|
102
|
+
* // example id: to-update-a-key-value-store-1699751822090
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
79
105
|
*/
|
|
80
106
|
export declare class UpdateKeyValueStoreCommand extends $Command<UpdateKeyValueStoreCommandInput, UpdateKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
|
|
81
107
|
readonly input: UpdateKeyValueStoreCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudfront",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.457.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|