Skip to content

Commit 1061555

Browse files
author
awstools
committed
feat(client-cloudfront): CloudFront origin access control extends support to AWS Lambda function URLs and AWS Elemental MediaPackage v2 origins.
1 parent 59c84c3 commit 1061555

19 files changed

+224
-172
lines changed

clients/client-cloudfront/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AWS SDK for JavaScript CloudFront Client for Node.js, Browser and React Native.
1111
<p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers
1212
who need detailed information about CloudFront API actions, data types, and errors. For
1313
detailed information about CloudFront features, see the
14-
<i>Amazon CloudFront Developer Guide</i>.</p>
14+
<a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Amazon CloudFront Developer Guide</a>.</p>
1515

1616
## Installing
1717

clients/client-cloudfront/src/CloudFront.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,7 @@ export interface CloudFront {
24812481
* <p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers
24822482
* who need detailed information about CloudFront API actions, data types, and errors. For
24832483
* detailed information about CloudFront features, see the
2484-
* <i>Amazon CloudFront Developer Guide</i>.</p>
2484+
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Amazon CloudFront Developer Guide</a>.</p>
24852485
* @public
24862486
*/
24872487
export class CloudFront extends CloudFrontClient implements CloudFront {}

clients/client-cloudfront/src/CloudFrontClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ export interface CloudFrontClientResolvedConfig extends CloudFrontClientResolved
802802
* <p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers
803803
* who need detailed information about CloudFront API actions, data types, and errors. For
804804
* detailed information about CloudFront features, see the
805-
* <i>Amazon CloudFront Developer Guide</i>.</p>
805+
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Amazon CloudFront Developer Guide</a>.</p>
806806
* @public
807807
*/
808808
export class CloudFrontClient extends __Client<

clients/client-cloudfront/src/commands/CreateInvalidationCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface CreateInvalidationCommandInput extends CreateInvalidationReques
2727
export interface CreateInvalidationCommandOutput extends CreateInvalidationResult, __MetadataBearer {}
2828

2929
/**
30-
* <p>Create a new invalidation.</p>
30+
* <p>Create a new invalidation. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html">Invalidating files</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript

clients/client-cloudfront/src/commands/CreateKeyValueStoreCommand.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface CreateKeyValueStoreCommandInput extends CreateKeyValueStoreRequ
2727
export interface CreateKeyValueStoreCommandOutput extends CreateKeyValueStoreResult, __MetadataBearer {}
2828

2929
/**
30-
* <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>
30+
* <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>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -69,18 +69,21 @@ export interface CreateKeyValueStoreCommandOutput extends CreateKeyValueStoreRes
6969
* <p>Access denied.</p>
7070
*
7171
* @throws {@link EntityAlreadyExists} (client fault)
72-
* <p>The Key Value Store entity already exists. You must provide a unique Key Value Store
72+
* <p>The key value store entity already exists. You must provide a unique key value store
7373
* entity.</p>
7474
*
7575
* @throws {@link EntityLimitExceeded} (client fault)
76-
* <p>The Key Value Store entity limit has been exceeded.</p>
76+
* <p>The key value store entity limit has been exceeded.</p>
7777
*
7878
* @throws {@link EntitySizeLimitExceeded} (client fault)
79-
* <p>The Key Value Store entity size limit was exceeded.</p>
79+
* <p>The key value store entity size limit was exceeded.</p>
8080
*
8181
* @throws {@link InvalidArgument} (client fault)
8282
* <p>An argument is invalid.</p>
8383
*
84+
* @throws {@link UnsupportedOperation} (client fault)
85+
* <p>This operation is not supported in this region.</p>
86+
*
8487
* @throws {@link CloudFrontServiceException}
8588
* <p>Base exception class for all service exceptions from CloudFront service.</p>
8689
*

clients/client-cloudfront/src/commands/CreateOriginAccessControlCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface CreateOriginAccessControlCommandOutput extends CreateOriginAcce
4646
* Description: "STRING_VALUE",
4747
* SigningProtocol: "sigv4", // required
4848
* SigningBehavior: "never" || "always" || "no-override", // required
49-
* OriginAccessControlOriginType: "s3" || "mediastore", // required
49+
* OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
5050
* },
5151
* };
5252
* const command = new CreateOriginAccessControlCommand(input);
@@ -59,7 +59,7 @@ export interface CreateOriginAccessControlCommandOutput extends CreateOriginAcce
5959
* // Description: "STRING_VALUE",
6060
* // SigningProtocol: "sigv4", // required
6161
* // SigningBehavior: "never" || "always" || "no-override", // required
62-
* // OriginAccessControlOriginType: "s3" || "mediastore", // required
62+
* // OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
6363
* // },
6464
* // },
6565
* // Location: "STRING_VALUE",

clients/client-cloudfront/src/commands/DeleteKeyValueStoreCommand.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DeleteKeyValueStoreCommandInput extends DeleteKeyValueStoreRequ
2727
export interface DeleteKeyValueStoreCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>Specifies the Key Value Store to delete.</p>
30+
* <p>Specifies the key value store to delete.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -54,10 +54,10 @@ export interface DeleteKeyValueStoreCommandOutput extends __MetadataBearer {}
5454
* <p>Access denied.</p>
5555
*
5656
* @throws {@link CannotDeleteEntityWhileInUse} (client fault)
57-
* <p>The Key Value Store entity cannot be deleted while it is in use.</p>
57+
* <p>The key value store entity cannot be deleted while it is in use.</p>
5858
*
5959
* @throws {@link EntityNotFound} (client fault)
60-
* <p>The Key Value Store entity was not found.</p>
60+
* <p>The key value store entity was not found.</p>
6161
*
6262
* @throws {@link InvalidIfMatchVersion} (client fault)
6363
* <p>The <code>If-Match</code> version is missing or not valid.</p>
@@ -66,6 +66,9 @@ export interface DeleteKeyValueStoreCommandOutput extends __MetadataBearer {}
6666
* <p>The precondition in one or more of the request fields evaluated to
6767
* <code>false</code>.</p>
6868
*
69+
* @throws {@link UnsupportedOperation} (client fault)
70+
* <p>This operation is not supported in this region.</p>
71+
*
6972
* @throws {@link CloudFrontServiceException}
7073
* <p>Base exception class for all service exceptions from CloudFront service.</p>
7174
*

clients/client-cloudfront/src/commands/DeleteMonitoringSubscriptionCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export interface DeleteMonitoringSubscriptionCommandOutput
3232
__MetadataBearer {}
3333

3434
/**
35-
* <p>Disables additional CloudWatch metrics for the specified CloudFront
36-
* distribution.</p>
35+
* <p>Disables additional CloudWatch metrics for the specified CloudFront distribution.</p>
3736
* @example
3837
* Use a bare-bones client and the command you need to make an API call.
3938
* ```javascript

clients/client-cloudfront/src/commands/DescribeKeyValueStoreCommand.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DescribeKeyValueStoreCommandInput extends DescribeKeyValueStore
2727
export interface DescribeKeyValueStoreCommandOutput extends DescribeKeyValueStoreResult, __MetadataBearer {}
2828

2929
/**
30-
* <p>Specifies the Key Value Store and its configuration.</p>
30+
* <p>Specifies the key value store and its configuration.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -63,11 +63,14 @@ export interface DescribeKeyValueStoreCommandOutput extends DescribeKeyValueStor
6363
* <p>Access denied.</p>
6464
*
6565
* @throws {@link EntityNotFound} (client fault)
66-
* <p>The Key Value Store entity was not found.</p>
66+
* <p>The key value store entity was not found.</p>
6767
*
6868
* @throws {@link InvalidArgument} (client fault)
6969
* <p>An argument is invalid.</p>
7070
*
71+
* @throws {@link UnsupportedOperation} (client fault)
72+
* <p>This operation is not supported in this region.</p>
73+
*
7174
* @throws {@link CloudFrontServiceException}
7275
* <p>Base exception class for all service exceptions from CloudFront service.</p>
7376
*

clients/client-cloudfront/src/commands/GetOriginAccessControlCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface GetOriginAccessControlCommandOutput extends GetOriginAccessCont
4747
* // Description: "STRING_VALUE",
4848
* // SigningProtocol: "sigv4", // required
4949
* // SigningBehavior: "never" || "always" || "no-override", // required
50-
* // OriginAccessControlOriginType: "s3" || "mediastore", // required
50+
* // OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
5151
* // },
5252
* // },
5353
* // ETag: "STRING_VALUE",

clients/client-cloudfront/src/commands/GetOriginAccessControlConfigCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface GetOriginAccessControlConfigCommandOutput
5050
* // Description: "STRING_VALUE",
5151
* // SigningProtocol: "sigv4", // required
5252
* // SigningBehavior: "never" || "always" || "no-override", // required
53-
* // OriginAccessControlOriginType: "s3" || "mediastore", // required
53+
* // OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
5454
* // },
5555
* // ETag: "STRING_VALUE",
5656
* // };

clients/client-cloudfront/src/commands/ListKeyValueStoresCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface ListKeyValueStoresCommandInput extends ListKeyValueStoresReques
2727
export interface ListKeyValueStoresCommandOutput extends ListKeyValueStoresResult, __MetadataBearer {}
2828

2929
/**
30-
* <p>Specifies the Key Value Stores to list.</p>
30+
* <p>Specifies the key value stores to list.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -73,6 +73,9 @@ export interface ListKeyValueStoresCommandOutput extends ListKeyValueStoresResul
7373
* @throws {@link InvalidArgument} (client fault)
7474
* <p>An argument is invalid.</p>
7575
*
76+
* @throws {@link UnsupportedOperation} (client fault)
77+
* <p>This operation is not supported in this region.</p>
78+
*
7679
* @throws {@link CloudFrontServiceException}
7780
* <p>Base exception class for all service exceptions from CloudFront service.</p>
7881
*

clients/client-cloudfront/src/commands/ListOriginAccessControlsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface ListOriginAccessControlsCommandOutput extends ListOriginAccessC
5959
* // Name: "STRING_VALUE", // required
6060
* // SigningProtocol: "sigv4", // required
6161
* // SigningBehavior: "never" || "always" || "no-override", // required
62-
* // OriginAccessControlOriginType: "s3" || "mediastore", // required
62+
* // OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
6363
* // },
6464
* // ],
6565
* // },

clients/client-cloudfront/src/commands/UpdateKeyValueStoreCommand.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface UpdateKeyValueStoreCommandInput extends UpdateKeyValueStoreRequ
2727
export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreResult, __MetadataBearer {}
2828

2929
/**
30-
* <p>Specifies the Key Value Store to update.</p>
30+
* <p>Specifies the key value store to update.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -65,7 +65,7 @@ export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreRes
6565
* <p>Access denied.</p>
6666
*
6767
* @throws {@link EntityNotFound} (client fault)
68-
* <p>The Key Value Store entity was not found.</p>
68+
* <p>The key value store entity was not found.</p>
6969
*
7070
* @throws {@link InvalidArgument} (client fault)
7171
* <p>An argument is invalid.</p>
@@ -77,6 +77,9 @@ export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreRes
7777
* <p>The precondition in one or more of the request fields evaluated to
7878
* <code>false</code>.</p>
7979
*
80+
* @throws {@link UnsupportedOperation} (client fault)
81+
* <p>This operation is not supported in this region.</p>
82+
*
8083
* @throws {@link CloudFrontServiceException}
8184
* <p>Base exception class for all service exceptions from CloudFront service.</p>
8285
*

clients/client-cloudfront/src/commands/UpdateOriginAccessControlCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface UpdateOriginAccessControlCommandOutput extends UpdateOriginAcce
4040
* Description: "STRING_VALUE",
4141
* SigningProtocol: "sigv4", // required
4242
* SigningBehavior: "never" || "always" || "no-override", // required
43-
* OriginAccessControlOriginType: "s3" || "mediastore", // required
43+
* OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
4444
* },
4545
* Id: "STRING_VALUE", // required
4646
* IfMatch: "STRING_VALUE",
@@ -55,7 +55,7 @@ export interface UpdateOriginAccessControlCommandOutput extends UpdateOriginAcce
5555
* // Description: "STRING_VALUE",
5656
* // SigningProtocol: "sigv4", // required
5757
* // SigningBehavior: "never" || "always" || "no-override", // required
58-
* // OriginAccessControlOriginType: "s3" || "mediastore", // required
58+
* // OriginAccessControlOriginType: "s3" || "mediastore" || "mediapackagev2" || "lambda", // required
5959
* // },
6060
* // },
6161
* // ETag: "STRING_VALUE",

clients/client-cloudfront/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* <p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers
66
* who need detailed information about CloudFront API actions, data types, and errors. For
77
* detailed information about CloudFront features, see the
8-
* <i>Amazon CloudFront Developer Guide</i>.</p>
8+
* <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Amazon CloudFront Developer Guide</a>.</p>
99
*
1010
* @packageDocumentation
1111
*/

0 commit comments

Comments
 (0)