Skip to content

Commit

Permalink
feat(client-lightsail): This release adds pagination for the Get Cert…
Browse files Browse the repository at this point in the history
…ificates API operation.
  • Loading branch information
awstools committed Jun 13, 2023
1 parent bd2234a commit 5b99671
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface GetCertificatesCommandOutput extends GetCertificatesResult, __M
* @public
* <p>Returns information about one or more Amazon Lightsail SSL/TLS certificates.</p>
* <note>
* <p>To get a summary of a certificate, ommit <code>includeCertificateDetails</code> from
* <p>To get a summary of a certificate, omit <code>includeCertificateDetails</code> from
* your request. The response will include only the certificate Amazon Resource Name (ARN),
* certificate name, domain name, and tags.</p>
* </note>
Expand All @@ -54,6 +54,7 @@ export interface GetCertificatesCommandOutput extends GetCertificatesResult, __M
* ],
* includeCertificateDetails: true || false,
* certificateName: "STRING_VALUE",
* pageToken: "STRING_VALUE",
* };
* const command = new GetCertificatesCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -134,6 +135,7 @@ export interface GetCertificatesCommandOutput extends GetCertificatesResult, __M
* // ],
* // },
* // ],
* // nextPageToken: "STRING_VALUE",
* // };
*
* ```
Expand Down
13 changes: 12 additions & 1 deletion clients/client-lightsail/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2659,7 +2659,7 @@ export type CertificateStatus = (typeof CertificateStatus)[keyof typeof Certific
* @public
* <p>Describes the full details of an Amazon Lightsail SSL/TLS certificate.</p>
* <note>
* <p>To get a summary of a certificate, use the <code>GetCertificates</code> action and ommit
* <p>To get a summary of a certificate, use the <code>GetCertificates</code> action and omit
* <code>includeCertificateDetails</code> from your request. The response will include only
* the certificate Amazon Resource Name (ARN), certificate name, domain name, and tags.</p>
* </note>
Expand Down Expand Up @@ -8167,6 +8167,12 @@ export interface GetCertificatesRequest {
* Region where the request is made.</p>
*/
certificateName?: string;

/**
* <p>The token to advance to the next page of results from your request.</p>
* <p>To get a page token, perform an initial <code>GetCertificates</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
*/
pageToken?: string;
}

/**
Expand All @@ -8177,6 +8183,11 @@ export interface GetCertificatesResult {
* <p>An object that describes certificates.</p>
*/
certificates?: CertificateSummary[];

/**
* <p>If <code>NextPageToken</code> is returned there are more results available. The value of <code>NextPageToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p>
*/
nextPageToken?: string;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions clients/client-lightsail/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface GetCostEstimateRequest {
* </li>
* <li>
* <p>Specified in the Unix time format.</p>
* <p>For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify
* <p>For example, if you want to use a start time of October 1, 2018, at 8 PM UTC, specify
* <code>1538424000</code> as the start time.</p>
* </li>
* </ul>
Expand All @@ -80,7 +80,7 @@ export interface GetCostEstimateRequest {
* </li>
* <li>
* <p>Specified in the Unix time format.</p>
* <p>For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify
* <p>For example, if you want to use an end time of October 1, 2018, at 9 PM UTC, specify
* <code>1538427600</code> as the end time.</p>
* </li>
* </ul>
Expand Down
1 change: 1 addition & 0 deletions clients/client-lightsail/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14893,6 +14893,7 @@ const de_GetBundlesResult = (output: any, context: __SerdeContext): GetBundlesRe
const de_GetCertificatesResult = (output: any, context: __SerdeContext): GetCertificatesResult => {
return take(output, {
certificates: (_: any) => de_CertificateSummaryList(_, context),
nextPageToken: __expectString,
}) as any;
};

Expand Down

0 comments on commit 5b99671

Please sign in to comment.