Skip to content

Commit

Permalink
feat(client-cloudfront): No API changes from previous release. This r…
Browse files Browse the repository at this point in the history
…elease migrated the model to Smithy keeping all features unchanged.
  • Loading branch information
awstools committed Nov 11, 2024
1 parent aad1fc8 commit 5eded70
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ export interface ListOriginAccessControlsCommandInput extends ListOriginAccessCo
export interface ListOriginAccessControlsCommandOutput extends ListOriginAccessControlsResult, __MetadataBearer {}

/**
* <p>Gets the list of CloudFront origin access controls in this Amazon Web Services account.</p>
* <p>Gets the list of CloudFront origin access controls (OACs) in this Amazon Web Services account.</p>
* <p>You can optionally specify the maximum number of items to receive in the response. If
* the total number of items in the list exceeds the maximum that you specify, or the
* default maximum, the response is paginated. To get the next page of items, send another
* request that specifies the <code>NextMarker</code> value from the current response as
* the <code>Marker</code> value in the next request.</p>
* <note>
* <p>If you're not using origin access controls for your Amazon Web Services account, the
* <code>ListOriginAccessControls</code> operation doesn't return the
* <code>Items</code> element in the response.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@ export interface UpdateDistributionCommandOutput extends UpdateDistributionResul
* the following important requirements and restrictions:</p>
* <ul>
* <li>
* <p>You must rename the <code>ETag</code> field to <code>IfMatch</code>,
* leaving the value unchanged. (Set the value of <code>IfMatch</code> to
* the value of <code>ETag</code>, then remove the <code>ETag</code>
* field.)</p>
* <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>
* field from the distribution configuration.</p>
* </li>
* <li>
* <p>You can't change the value of <code>CallerReference</code>.</p>
* </li>
* </ul>
* </li>
* <li>
* <p>Submit an <code>UpdateDistribution</code> request, providing the distribution
* <p>Submit an <code>UpdateDistribution</code> request, providing the updated distribution
* configuration. The new configuration replaces the existing configuration. The
* values that you specify in an <code>UpdateDistribution</code> request are not
* merged into your existing configuration. Make sure to include all fields: the
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudfront/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5243,7 +5243,7 @@ export interface UpdateDistributionWithStagingConfigRequest {
* <p>The current versions (<code>ETag</code> values) of both primary and staging distributions.
* Provide these in the following format:</p>
* <p>
* <code><primary ETag>, <staging ETag></code>
* <code>&lt;primary ETag&gt;, &lt;staging ETag&gt;</code>
* </p>
* @public
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// smithy-typescript generated code
import { createPaginator } from "@smithy/core";
import { Paginator } from "@smithy/types";

import { CloudFrontClient } from "../CloudFrontClient";
import {
ListPublicKeysCommand,
ListPublicKeysCommandInput,
ListPublicKeysCommandOutput,
} from "../commands/ListPublicKeysCommand";
import { CloudFrontPaginationConfiguration } from "./Interfaces";

/**
* @public
*/
export const paginateListPublicKeys: (
config: CloudFrontPaginationConfiguration,
input: ListPublicKeysCommandInput,
...rest: any[]
) => Paginator<ListPublicKeysCommandOutput> = createPaginator<
CloudFrontPaginationConfiguration,
ListPublicKeysCommandInput,
ListPublicKeysCommandOutput
>(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
1 change: 1 addition & 0 deletions clients/client-cloudfront/src/pagination/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export * from "./ListCloudFrontOriginAccessIdentitiesPaginator";
export * from "./ListDistributionsPaginator";
export * from "./ListInvalidationsPaginator";
export * from "./ListKeyValueStoresPaginator";
export * from "./ListPublicKeysPaginator";
export * from "./ListStreamingDistributionsPaginator";
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const waitForDistributionDeployed = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetDistributionCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -42,7 +42,7 @@ export const waitUntilDistributionDeployed = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetDistributionCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const waitForInvalidationCompleted = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetInvalidationCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -42,7 +42,7 @@ export const waitUntilInvalidationCompleted = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetInvalidationCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 20, maxDelay: 120 };
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const waitForStreamingDistributionDeployed = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetStreamingDistributionCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -48,7 +48,7 @@ export const waitUntilStreamingDistributionDeployed = async (
params: WaiterConfiguration<CloudFrontClient>,
input: GetStreamingDistributionCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
Loading

0 comments on commit 5eded70

Please # to comment.