-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clients): vendor TS types from pinpoint and cognito-identity cli…
…ents (#11393) * chore: dts bundler script for AWS SDK types * feat(clients): vendor AWS SDK client types * chore: workaround the tslint errors for generated rollup types * docs: add readme to build clients script * feat: update SDK types
- Loading branch information
1 parent
524e17b
commit 9a8569a
Showing
25 changed files
with
1,126 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Generated by scripts/dts-bundler/README.md | ||
|
||
import { MetadataBearer as __MetadataBearer } from '@aws-sdk/types'; | ||
|
||
/** | ||
* @public | ||
* <p>Credentials for the provided identity ID.</p> | ||
*/ | ||
export interface Credentials { | ||
/** | ||
* <p>The Access Key portion of the credentials.</p> | ||
*/ | ||
AccessKeyId?: string; | ||
/** | ||
* <p>The Secret Access Key portion of the credentials</p> | ||
*/ | ||
SecretKey?: string; | ||
/** | ||
* <p>The Session Token portion of the credentials</p> | ||
*/ | ||
SessionToken?: string; | ||
/** | ||
* <p>The date at which these credentials will expire.</p> | ||
*/ | ||
Expiration?: Date; | ||
} | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetCredentialsForIdentityCommand}. | ||
*/ | ||
export interface GetCredentialsForIdentityCommandInput | ||
extends GetCredentialsForIdentityInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetCredentialsForIdentityCommand}. | ||
*/ | ||
export interface GetCredentialsForIdentityCommandOutput | ||
extends GetCredentialsForIdentityResponse, | ||
__MetadataBearer {} | ||
/** | ||
* @public | ||
* <p>Input to the <code>GetCredentialsForIdentity</code> action.</p> | ||
*/ | ||
export interface GetCredentialsForIdentityInput { | ||
/** | ||
* <p>A unique identifier in the format REGION:GUID.</p> | ||
*/ | ||
IdentityId: string | undefined; | ||
/** | ||
* <p>A set of optional name-value pairs that map provider names to provider tokens. The | ||
* name-value pair will follow the syntax "provider_name": | ||
* "provider_user_identifier".</p> | ||
* <p>Logins should not be specified when trying to get credentials for an unauthenticated | ||
* identity.</p> | ||
* <p>The Logins parameter is required when using identities associated with external | ||
* identity providers such as Facebook. For examples of <code>Logins</code> maps, see the code | ||
* examples in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html">External Identity Providers</a> section of the Amazon Cognito Developer | ||
* Guide.</p> | ||
*/ | ||
Logins?: Record<string, string>; | ||
/** | ||
* <p>The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were | ||
* received in the token from the identity provider. For example, a SAML-based identity | ||
* provider. This parameter is optional for identity providers that do not support role | ||
* customization.</p> | ||
*/ | ||
CustomRoleArn?: string; | ||
} | ||
/** | ||
* @public | ||
* <p>Returned in response to a successful <code>GetCredentialsForIdentity</code> | ||
* operation.</p> | ||
*/ | ||
export interface GetCredentialsForIdentityResponse { | ||
/** | ||
* <p>A unique identifier in the format REGION:GUID.</p> | ||
*/ | ||
IdentityId?: string; | ||
/** | ||
* <p>Credentials for the provided identity ID.</p> | ||
*/ | ||
Credentials?: Credentials; | ||
} | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetIdCommand}. | ||
*/ | ||
export interface GetIdCommandInput extends GetIdInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetIdCommand}. | ||
*/ | ||
export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer {} | ||
/** | ||
* @public | ||
* <p>Input to the GetId action.</p> | ||
*/ | ||
export interface GetIdInput { | ||
/** | ||
* <p>A standard AWS account ID (9+ digits).</p> | ||
*/ | ||
AccountId?: string; | ||
/** | ||
* <p>An identity pool ID in the format REGION:GUID.</p> | ||
*/ | ||
IdentityPoolId: string | undefined; | ||
/** | ||
* <p>A set of optional name-value pairs that map provider names to provider tokens. The | ||
* available provider names for <code>Logins</code> are as follows:</p> | ||
* <ul> | ||
* <li> | ||
* <p>Facebook: <code>graph.facebook.com</code> | ||
* </p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon Cognito user pool: | ||
* <code>cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID></code>, | ||
* for example, <code>cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789</code>. | ||
* </p> | ||
* </li> | ||
* <li> | ||
* <p>Google: <code>accounts.google.com</code> | ||
* </p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon: <code>www.amazon.com</code> | ||
* </p> | ||
* </li> | ||
* <li> | ||
* <p>Twitter: <code>api.twitter.com</code> | ||
* </p> | ||
* </li> | ||
* <li> | ||
* <p>Digits: <code>www.digits.com</code> | ||
* </p> | ||
* </li> | ||
* </ul> | ||
*/ | ||
Logins?: Record<string, string>; | ||
} | ||
/** | ||
* @public | ||
* <p>Returned in response to a GetId request.</p> | ||
*/ | ||
export interface GetIdResponse { | ||
/** | ||
* <p>A unique identifier in the format REGION:GUID.</p> | ||
*/ | ||
IdentityId?: string; | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.