Skip to content

Commit 5eded70

Browse files
author
awstools
committed
feat(client-cloudfront): No API changes from previous release. This release migrated the model to Smithy keeping all features unchanged.
1 parent aad1fc8 commit 5eded70

File tree

9 files changed

+256
-47
lines changed

9 files changed

+256
-47
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ export interface ListOriginAccessControlsCommandInput extends ListOriginAccessCo
2828
export interface ListOriginAccessControlsCommandOutput extends ListOriginAccessControlsResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Gets the list of CloudFront origin access controls in this Amazon Web Services account.</p>
31+
* <p>Gets the list of CloudFront origin access controls (OACs) in this Amazon Web Services account.</p>
3232
* <p>You can optionally specify the maximum number of items to receive in the response. If
3333
* the total number of items in the list exceeds the maximum that you specify, or the
3434
* default maximum, the response is paginated. To get the next page of items, send another
3535
* request that specifies the <code>NextMarker</code> value from the current response as
3636
* the <code>Marker</code> value in the next request.</p>
37+
* <note>
38+
* <p>If you're not using origin access controls for your Amazon Web Services account, the
39+
* <code>ListOriginAccessControls</code> operation doesn't return the
40+
* <code>Items</code> element in the response.</p>
41+
* </note>
3742
* @example
3843
* Use a bare-bones client and the command you need to make an API call.
3944
* ```javascript

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,16 @@ export interface UpdateDistributionCommandOutput extends UpdateDistributionResul
5151
* the following important requirements and restrictions:</p>
5252
* <ul>
5353
* <li>
54-
* <p>You must rename the <code>ETag</code> field to <code>IfMatch</code>,
55-
* leaving the value unchanged. (Set the value of <code>IfMatch</code> to
56-
* the value of <code>ETag</code>, then remove the <code>ETag</code>
57-
* field.)</p>
54+
* <p>You must copy the <code>ETag</code> field value from the response. (You'll use it for the <code>IfMatch</code> parameter in your request.) Then, remove the <code>ETag</code>
55+
* field from the distribution configuration.</p>
5856
* </li>
5957
* <li>
6058
* <p>You can't change the value of <code>CallerReference</code>.</p>
6159
* </li>
6260
* </ul>
6361
* </li>
6462
* <li>
65-
* <p>Submit an <code>UpdateDistribution</code> request, providing the distribution
63+
* <p>Submit an <code>UpdateDistribution</code> request, providing the updated distribution
6664
* configuration. The new configuration replaces the existing configuration. The
6765
* values that you specify in an <code>UpdateDistribution</code> request are not
6866
* merged into your existing configuration. Make sure to include all fields: the

clients/client-cloudfront/src/models/models_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5243,7 +5243,7 @@ export interface UpdateDistributionWithStagingConfigRequest {
52435243
* <p>The current versions (<code>ETag</code> values) of both primary and staging distributions.
52445244
* Provide these in the following format:</p>
52455245
* <p>
5246-
* <code><primary ETag>, <staging ETag></code>
5246+
* <code>&lt;primary ETag&gt;, &lt;staging ETag&gt;</code>
52475247
* </p>
52485248
* @public
52495249
*/
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// smithy-typescript generated code
2+
import { createPaginator } from "@smithy/core";
3+
import { Paginator } from "@smithy/types";
4+
5+
import { CloudFrontClient } from "../CloudFrontClient";
6+
import {
7+
ListPublicKeysCommand,
8+
ListPublicKeysCommandInput,
9+
ListPublicKeysCommandOutput,
10+
} from "../commands/ListPublicKeysCommand";
11+
import { CloudFrontPaginationConfiguration } from "./Interfaces";
12+
13+
/**
14+
* @public
15+
*/
16+
export const paginateListPublicKeys: (
17+
config: CloudFrontPaginationConfiguration,
18+
input: ListPublicKeysCommandInput,
19+
...rest: any[]
20+
) => Paginator<ListPublicKeysCommandOutput> = createPaginator<
21+
CloudFrontPaginationConfiguration,
22+
ListPublicKeysCommandInput,
23+
ListPublicKeysCommandOutput
24+
>(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");

clients/client-cloudfront/src/pagination/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export * from "./ListCloudFrontOriginAccessIdentitiesPaginator";
44
export * from "./ListDistributionsPaginator";
55
export * from "./ListInvalidationsPaginator";
66
export * from "./ListKeyValueStoresPaginator";
7+
export * from "./ListPublicKeysPaginator";
78
export * from "./ListStreamingDistributionsPaginator";

clients/client-cloudfront/src/waiters/waitForDistributionDeployed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const waitForDistributionDeployed = async (
3030
params: WaiterConfiguration<CloudFrontClient>,
3131
input: GetDistributionCommandInput
3232
): Promise<WaiterResult> => {
33-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
33+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
3434
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
3535
};
3636
/**
@@ -42,7 +42,7 @@ export const waitUntilDistributionDeployed = async (
4242
params: WaiterConfiguration<CloudFrontClient>,
4343
input: GetDistributionCommandInput
4444
): Promise<WaiterResult> => {
45-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
45+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
4646
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
4747
return checkExceptions(result);
4848
};

clients/client-cloudfront/src/waiters/waitForInvalidationCompleted.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const waitForInvalidationCompleted = async (
3030
params: WaiterConfiguration<CloudFrontClient>,
3131
input: GetInvalidationCommandInput
3232
): Promise<WaiterResult> => {
33-
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
33+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
3434
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
3535
};
3636
/**
@@ -42,7 +42,7 @@ export const waitUntilInvalidationCompleted = async (
4242
params: WaiterConfiguration<CloudFrontClient>,
4343
input: GetInvalidationCommandInput
4444
): Promise<WaiterResult> => {
45-
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
45+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
4646
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
4747
return checkExceptions(result);
4848
};

clients/client-cloudfront/src/waiters/waitForStreamingDistributionDeployed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const waitForStreamingDistributionDeployed = async (
3636
params: WaiterConfiguration<CloudFrontClient>,
3737
input: GetStreamingDistributionCommandInput
3838
): Promise<WaiterResult> => {
39-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
39+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
4040
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
4141
};
4242
/**
@@ -48,7 +48,7 @@ export const waitUntilStreamingDistributionDeployed = async (
4848
params: WaiterConfiguration<CloudFrontClient>,
4949
input: GetStreamingDistributionCommandInput
5050
): Promise<WaiterResult> => {
51-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
51+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
5252
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
5353
return checkExceptions(result);
5454
};

0 commit comments

Comments
 (0)