feat: Complete zCode CLI X with Telegram bot integration

- Add full Telegram bot functionality with Z.AI API integration
- Implement 4 tools: Bash, FileEdit, WebSearch, Git
- Add 3 agents: Code Reviewer, Architect, DevOps Engineer
- Add 6 skills for common coding tasks
- Add systemd service file for 24/7 operation
- Add nginx configuration for HTTPS webhook
- Add comprehensive documentation
- Implement WebSocket server for real-time updates
- Add logging system with Winston
- Add environment validation

🤖 zCode CLI X - Agentic coder with Z.AI + Telegram integration
This commit is contained in:
admin
2026-05-05 09:01:26 +00:00
Unverified
parent 4a7035dd92
commit 875c7f9b91
24688 changed files with 3224957 additions and 221 deletions

View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -0,0 +1,356 @@
<!-- generated file, do not edit directly -->
# @aws-sdk/client-cognito-identity
## Description
AWS SDK for JavaScript CognitoIdentity Client for Node.js, Browser and React Native.
<fullname>Amazon Cognito Federated Identities</fullname>
<p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
credentials to mobile devices and other untrusted environments. It uniquely identifies a
device and supplies the user with a consistent identity over the lifetime of an
application.</p>
<p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
Cognito user pool, and you can also choose to support unauthenticated access from your app.
Cognito delivers a unique identifier for each user and acts as an OpenID token provider
trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
<p>For a description of the authentication flow from the Amazon Cognito Developer Guide
see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
Flow</a>.</p>
<p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
Identities</a>.</p>
## Installing
To install this package, use the CLI of your favorite package manager:
- `npm install @aws-sdk/client-cognito-identity`
- `yarn add @aws-sdk/client-cognito-identity`
- `pnpm add @aws-sdk/client-cognito-identity`
## Getting Started
### Import
The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the `CognitoIdentityClient` and
the commands you need, for example `ListIdentityPoolsCommand`:
```js
// ES5 example
const { CognitoIdentityClient, ListIdentityPoolsCommand } = require("@aws-sdk/client-cognito-identity");
```
```ts
// ES6+ example
import { CognitoIdentityClient, ListIdentityPoolsCommand } from "@aws-sdk/client-cognito-identity";
```
### Usage
To send a request:
- Instantiate a client with configuration (e.g. credentials, region).
- See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
- See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
- Instantiate a command with input parameters.
- Call the `send` operation on the client, providing the command object as input.
```js
const client = new CognitoIdentityClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListIdentityPoolsCommand(params);
```
#### Async/await
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
operator to wait for the promise returned by send operation as follows:
```js
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
```
#### Promises
You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
```js
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
```
#### Aggregated client
The aggregated client class is exported from the same package, but without the "Client" suffix.
`CognitoIdentity` extends `CognitoIdentityClient` and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (`CognitoIdentityClient`).
More details are in the blog post on
[modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
```ts
import { CognitoIdentity } from "@aws-sdk/client-cognito-identity";
const client = new CognitoIdentity({ region: "REGION" });
// async/await.
try {
const data = await client.listIdentityPools(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listIdentityPools(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listIdentityPools(params, (err, data) => {
// process err and data.
});
```
### Troubleshooting
When the service returns an exception, the error will include the exception information,
as well as response metadata (e.g. request id).
```js
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
```
See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
## Getting Help
Please use these community resources for getting help.
We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
- Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
on AWS Developer Blog.
- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
To test your universal JavaScript code in Node.js, browser and react-native environments,
visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
## Contributing
This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-cognito-identity` package is updated.
To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
## License
This SDK is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
see LICENSE for more information.
## Client Commands (Operations List)
<details>
<summary>
CreateIdentityPool
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/CreateIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/CreateIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/CreateIdentityPoolCommandOutput/)
</details>
<details>
<summary>
DeleteIdentities
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DeleteIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentitiesCommandOutput/)
</details>
<details>
<summary>
DeleteIdentityPool
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DeleteIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DeleteIdentityPoolCommandOutput/)
</details>
<details>
<summary>
DescribeIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DescribeIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityCommandOutput/)
</details>
<details>
<summary>
DescribeIdentityPool
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DescribeIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/DescribeIdentityPoolCommandOutput/)
</details>
<details>
<summary>
GetCredentialsForIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetCredentialsForIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetCredentialsForIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetCredentialsForIdentityCommandOutput/)
</details>
<details>
<summary>
GetId
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetIdCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdCommandOutput/)
</details>
<details>
<summary>
GetIdentityPoolRoles
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetIdentityPoolRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdentityPoolRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetIdentityPoolRolesCommandOutput/)
</details>
<details>
<summary>
GetOpenIdToken
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetOpenIdTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenCommandOutput/)
</details>
<details>
<summary>
GetOpenIdTokenForDeveloperIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetOpenIdTokenForDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenForDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetOpenIdTokenForDeveloperIdentityCommandOutput/)
</details>
<details>
<summary>
GetPrincipalTagAttributeMap
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetPrincipalTagAttributeMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetPrincipalTagAttributeMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/GetPrincipalTagAttributeMapCommandOutput/)
</details>
<details>
<summary>
ListIdentities
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentitiesCommandOutput/)
</details>
<details>
<summary>
ListIdentityPools
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListIdentityPoolsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentityPoolsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListIdentityPoolsCommandOutput/)
</details>
<details>
<summary>
ListTagsForResource
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/ListTagsForResourceCommandOutput/)
</details>
<details>
<summary>
LookupDeveloperIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/LookupDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/LookupDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/LookupDeveloperIdentityCommandOutput/)
</details>
<details>
<summary>
MergeDeveloperIdentities
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/MergeDeveloperIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/MergeDeveloperIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/MergeDeveloperIdentitiesCommandOutput/)
</details>
<details>
<summary>
SetIdentityPoolRoles
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/SetIdentityPoolRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetIdentityPoolRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetIdentityPoolRolesCommandOutput/)
</details>
<details>
<summary>
SetPrincipalTagAttributeMap
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/SetPrincipalTagAttributeMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetPrincipalTagAttributeMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/SetPrincipalTagAttributeMapCommandOutput/)
</details>
<details>
<summary>
TagResource
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/TagResourceCommandOutput/)
</details>
<details>
<summary>
UnlinkDeveloperIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UnlinkDeveloperIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkDeveloperIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkDeveloperIdentityCommandOutput/)
</details>
<details>
<summary>
UnlinkIdentity
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UnlinkIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UnlinkIdentityCommandOutput/)
</details>
<details>
<summary>
UntagResource
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UntagResourceCommandOutput/)
</details>
<details>
<summary>
UpdateIdentityPool
</summary>
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/UpdateIdentityPoolCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UpdateIdentityPoolCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity/Interface/UpdateIdentityPoolCommandOutput/)
</details>

View File

@@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveHttpAuthSchemeConfig = exports.defaultCognitoIdentityHttpAuthSchemeProvider = exports.defaultCognitoIdentityHttpAuthSchemeParametersProvider = void 0;
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
const util_middleware_1 = require("@smithy/util-middleware");
const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
return {
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
})(),
};
};
exports.defaultCognitoIdentityHttpAuthSchemeParametersProvider = defaultCognitoIdentityHttpAuthSchemeParametersProvider;
function createAwsAuthSigv4HttpAuthOption(authParameters) {
return {
schemeId: "aws.auth#sigv4",
signingProperties: {
name: "cognito-identity",
region: authParameters.region,
},
propertiesExtractor: (config, context) => ({
signingProperties: {
config,
context,
},
}),
};
}
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
return {
schemeId: "smithy.api#noAuth",
};
}
const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
const options = [];
switch (authParameters.operation) {
case "GetCredentialsForIdentity":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "GetId":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "GetOpenIdToken":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "UnlinkIdentity":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
default: {
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
}
}
return options;
};
exports.defaultCognitoIdentityHttpAuthSchemeProvider = defaultCognitoIdentityHttpAuthSchemeProvider;
const resolveHttpAuthSchemeConfig = (config) => {
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
return Object.assign(config_0, {
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
});
};
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultEndpointResolver = void 0;
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
const util_endpoints_2 = require("@smithy/util-endpoints");
const ruleset_1 = require("./ruleset");
const cache = new util_endpoints_2.EndpointCache({
size: 50,
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
});
const defaultEndpointResolver = (endpointParams, context = {}) => {
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
endpointParams: endpointParams,
logger: context.logger,
}));
};
exports.defaultEndpointResolver = defaultEndpointResolver;
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;

View File

@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ruleSet = void 0;
const w = "required", x = "fn", y = "argv", z = "ref";
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "string" }, k = { [w]: true, "default": false, "type": "boolean" }, l = { [z]: "Endpoint" }, m = { [x]: c, [y]: [{ [z]: "UseFIPS" }, true] }, n = { [x]: c, [y]: [{ [z]: "UseDualStack" }, true] }, o = {}, p = { [z]: "Region" }, q = { [x]: h, [y]: [{ [z]: g }, "supportsFIPS"] }, r = { [z]: g }, s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] }, t = [m], u = [n], v = [p];
const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j }, rules: [{ conditions: [{ [x]: b, [y]: [l] }], rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, properties: o, headers: o }, type: e }], type: f }, { conditions: [{ [x]: b, [y]: v }], rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], rules: [{ conditions: [m, n], rules: [{ conditions: [{ [x]: c, [y]: [a, q] }, s], rules: [{ conditions: [{ [x]: i, [y]: [p, "us-east-1"] }], endpoint: { url: "https://cognito-identity-fips.us-east-1.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-east-2"] }], endpoint: { url: "https://cognito-identity-fips.us-east-2.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-west-1"] }], endpoint: { url: "https://cognito-identity-fips.us-west-1.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-west-2"] }], endpoint: { url: "https://cognito-identity-fips.us-west-2.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: t, rules: [{ conditions: [{ [x]: c, [y]: [q, a] }], rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: u, rules: [{ conditions: [s], rules: [{ conditions: [{ [x]: i, [y]: ["aws", { [x]: h, [y]: [r, "name"] }] }], endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
exports.ruleSet = _data;

View File

@@ -0,0 +1,497 @@
'use strict';
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
var middlewareLogger = require('@aws-sdk/middleware-logger');
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
var configResolver = require('@smithy/config-resolver');
var core = require('@smithy/core');
var schema = require('@smithy/core/schema');
var middlewareContentLength = require('@smithy/middleware-content-length');
var middlewareEndpoint = require('@smithy/middleware-endpoint');
var middlewareRetry = require('@smithy/middleware-retry');
var smithyClient = require('@smithy/smithy-client');
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
var runtimeConfig = require('./runtimeConfig');
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
var protocolHttp = require('@smithy/protocol-http');
var schemas_0 = require('./schemas/schemas_0');
var errors = require('./models/errors');
var CognitoIdentityServiceException = require('./models/CognitoIdentityServiceException');
const resolveClientEndpointParameters = (options) => {
return Object.assign(options, {
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
useFipsEndpoint: options.useFipsEndpoint ?? false,
defaultSigningName: "cognito-identity",
});
};
const commonParams = {
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
Endpoint: { type: "builtInParams", name: "endpoint" },
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
};
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
let _credentials = runtimeConfig.credentials;
return {
setHttpAuthScheme(httpAuthScheme) {
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
if (index === -1) {
_httpAuthSchemes.push(httpAuthScheme);
}
else {
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
}
},
httpAuthSchemes() {
return _httpAuthSchemes;
},
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
_httpAuthSchemeProvider = httpAuthSchemeProvider;
},
httpAuthSchemeProvider() {
return _httpAuthSchemeProvider;
},
setCredentials(credentials) {
_credentials = credentials;
},
credentials() {
return _credentials;
},
};
};
const resolveHttpAuthRuntimeConfig = (config) => {
return {
httpAuthSchemes: config.httpAuthSchemes(),
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
credentials: config.credentials(),
};
};
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
extensions.forEach((extension) => extension.configure(extensionConfiguration));
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
};
class CognitoIdentityClient extends smithyClient.Client {
config;
constructor(...[configuration]) {
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
super(_config_0);
this.initConfig = _config_0;
const _config_1 = resolveClientEndpointParameters(_config_0);
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
const _config_4 = configResolver.resolveRegionConfig(_config_3);
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
this.config = _config_8;
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCognitoIdentityHttpAuthSchemeParametersProvider,
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
"aws.auth#sigv4": config.credentials,
}),
}));
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
}
destroy() {
super.destroy();
}
}
class CreateIdentityPoolCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "CreateIdentityPool", {})
.n("CognitoIdentityClient", "CreateIdentityPoolCommand")
.sc(schemas_0.CreateIdentityPool$)
.build() {
}
class DeleteIdentitiesCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DeleteIdentities", {})
.n("CognitoIdentityClient", "DeleteIdentitiesCommand")
.sc(schemas_0.DeleteIdentities$)
.build() {
}
class DeleteIdentityPoolCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
.n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
.sc(schemas_0.DeleteIdentityPool$)
.build() {
}
class DescribeIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DescribeIdentity", {})
.n("CognitoIdentityClient", "DescribeIdentityCommand")
.sc(schemas_0.DescribeIdentity$)
.build() {
}
class DescribeIdentityPoolCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
.n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
.sc(schemas_0.DescribeIdentityPool$)
.build() {
}
class GetCredentialsForIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
.sc(schemas_0.GetCredentialsForIdentity$)
.build() {
}
class GetIdCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetId", {})
.n("CognitoIdentityClient", "GetIdCommand")
.sc(schemas_0.GetId$)
.build() {
}
class GetIdentityPoolRolesCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
.n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
.sc(schemas_0.GetIdentityPoolRoles$)
.build() {
}
class GetOpenIdTokenCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetOpenIdToken", {})
.n("CognitoIdentityClient", "GetOpenIdTokenCommand")
.sc(schemas_0.GetOpenIdToken$)
.build() {
}
class GetOpenIdTokenForDeveloperIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {})
.n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand")
.sc(schemas_0.GetOpenIdTokenForDeveloperIdentity$)
.build() {
}
class GetPrincipalTagAttributeMapCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {})
.n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand")
.sc(schemas_0.GetPrincipalTagAttributeMap$)
.build() {
}
class ListIdentitiesCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListIdentities", {})
.n("CognitoIdentityClient", "ListIdentitiesCommand")
.sc(schemas_0.ListIdentities$)
.build() {
}
class ListIdentityPoolsCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListIdentityPools", {})
.n("CognitoIdentityClient", "ListIdentityPoolsCommand")
.sc(schemas_0.ListIdentityPools$)
.build() {
}
class ListTagsForResourceCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListTagsForResource", {})
.n("CognitoIdentityClient", "ListTagsForResourceCommand")
.sc(schemas_0.ListTagsForResource$)
.build() {
}
class LookupDeveloperIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {})
.n("CognitoIdentityClient", "LookupDeveloperIdentityCommand")
.sc(schemas_0.LookupDeveloperIdentity$)
.build() {
}
class MergeDeveloperIdentitiesCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {})
.n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand")
.sc(schemas_0.MergeDeveloperIdentities$)
.build() {
}
class SetIdentityPoolRolesCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {})
.n("CognitoIdentityClient", "SetIdentityPoolRolesCommand")
.sc(schemas_0.SetIdentityPoolRoles$)
.build() {
}
class SetPrincipalTagAttributeMapCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {})
.n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand")
.sc(schemas_0.SetPrincipalTagAttributeMap$)
.build() {
}
class TagResourceCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "TagResource", {})
.n("CognitoIdentityClient", "TagResourceCommand")
.sc(schemas_0.TagResource$)
.build() {
}
class UnlinkDeveloperIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {})
.n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand")
.sc(schemas_0.UnlinkDeveloperIdentity$)
.build() {
}
class UnlinkIdentityCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UnlinkIdentity", {})
.n("CognitoIdentityClient", "UnlinkIdentityCommand")
.sc(schemas_0.UnlinkIdentity$)
.build() {
}
class UntagResourceCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UntagResource", {})
.n("CognitoIdentityClient", "UntagResourceCommand")
.sc(schemas_0.UntagResource$)
.build() {
}
class UpdateIdentityPoolCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UpdateIdentityPool", {})
.n("CognitoIdentityClient", "UpdateIdentityPoolCommand")
.sc(schemas_0.UpdateIdentityPool$)
.build() {
}
const paginateListIdentityPools = core.createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
const commands = {
CreateIdentityPoolCommand,
DeleteIdentitiesCommand,
DeleteIdentityPoolCommand,
DescribeIdentityCommand,
DescribeIdentityPoolCommand,
GetCredentialsForIdentityCommand,
GetIdCommand,
GetIdentityPoolRolesCommand,
GetOpenIdTokenCommand,
GetOpenIdTokenForDeveloperIdentityCommand,
GetPrincipalTagAttributeMapCommand,
ListIdentitiesCommand,
ListIdentityPoolsCommand,
ListTagsForResourceCommand,
LookupDeveloperIdentityCommand,
MergeDeveloperIdentitiesCommand,
SetIdentityPoolRolesCommand,
SetPrincipalTagAttributeMapCommand,
TagResourceCommand,
UnlinkDeveloperIdentityCommand,
UnlinkIdentityCommand,
UntagResourceCommand,
UpdateIdentityPoolCommand,
};
const paginators = {
paginateListIdentityPools,
};
class CognitoIdentity extends CognitoIdentityClient {
}
smithyClient.createAggregatedClient(commands, CognitoIdentity, { paginators });
const AmbiguousRoleResolutionType = {
AUTHENTICATED_ROLE: "AuthenticatedRole",
DENY: "Deny",
};
const ErrorCode = {
ACCESS_DENIED: "AccessDenied",
INTERNAL_SERVER_ERROR: "InternalServerError",
};
const MappingRuleMatchType = {
CONTAINS: "Contains",
EQUALS: "Equals",
NOT_EQUAL: "NotEqual",
STARTS_WITH: "StartsWith",
};
const RoleMappingType = {
RULES: "Rules",
TOKEN: "Token",
};
exports.$Command = smithyClient.Command;
exports.__Client = smithyClient.Client;
exports.CognitoIdentityServiceException = CognitoIdentityServiceException.CognitoIdentityServiceException;
exports.AmbiguousRoleResolutionType = AmbiguousRoleResolutionType;
exports.CognitoIdentity = CognitoIdentity;
exports.CognitoIdentityClient = CognitoIdentityClient;
exports.CreateIdentityPoolCommand = CreateIdentityPoolCommand;
exports.DeleteIdentitiesCommand = DeleteIdentitiesCommand;
exports.DeleteIdentityPoolCommand = DeleteIdentityPoolCommand;
exports.DescribeIdentityCommand = DescribeIdentityCommand;
exports.DescribeIdentityPoolCommand = DescribeIdentityPoolCommand;
exports.ErrorCode = ErrorCode;
exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
exports.GetIdCommand = GetIdCommand;
exports.GetIdentityPoolRolesCommand = GetIdentityPoolRolesCommand;
exports.GetOpenIdTokenCommand = GetOpenIdTokenCommand;
exports.GetOpenIdTokenForDeveloperIdentityCommand = GetOpenIdTokenForDeveloperIdentityCommand;
exports.GetPrincipalTagAttributeMapCommand = GetPrincipalTagAttributeMapCommand;
exports.ListIdentitiesCommand = ListIdentitiesCommand;
exports.ListIdentityPoolsCommand = ListIdentityPoolsCommand;
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
exports.LookupDeveloperIdentityCommand = LookupDeveloperIdentityCommand;
exports.MappingRuleMatchType = MappingRuleMatchType;
exports.MergeDeveloperIdentitiesCommand = MergeDeveloperIdentitiesCommand;
exports.RoleMappingType = RoleMappingType;
exports.SetIdentityPoolRolesCommand = SetIdentityPoolRolesCommand;
exports.SetPrincipalTagAttributeMapCommand = SetPrincipalTagAttributeMapCommand;
exports.TagResourceCommand = TagResourceCommand;
exports.UnlinkDeveloperIdentityCommand = UnlinkDeveloperIdentityCommand;
exports.UnlinkIdentityCommand = UnlinkIdentityCommand;
exports.UntagResourceCommand = UntagResourceCommand;
exports.UpdateIdentityPoolCommand = UpdateIdentityPoolCommand;
exports.paginateListIdentityPools = paginateListIdentityPools;
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
Object.defineProperty(exports, '__proto__', {
enumerable: true,
value: schemas_0['__proto__']
});
Object.keys(schemas_0).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
});
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
Object.defineProperty(exports, '__proto__', {
enumerable: true,
value: errors['__proto__']
});
Object.keys(errors).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
});

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CognitoIdentityServiceException = exports.__ServiceException = void 0;
const smithy_client_1 = require("@smithy/smithy-client");
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
class CognitoIdentityServiceException extends smithy_client_1.ServiceException {
constructor(options) {
super(options);
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
}
}
exports.CognitoIdentityServiceException = CognitoIdentityServiceException;

View File

@@ -0,0 +1,147 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConcurrentModificationException = exports.DeveloperUserAlreadyRegisteredException = exports.InvalidIdentityPoolConfigurationException = exports.ExternalServiceException = exports.ResourceNotFoundException = exports.TooManyRequestsException = exports.ResourceConflictException = exports.NotAuthorizedException = exports.LimitExceededException = exports.InvalidParameterException = exports.InternalErrorException = void 0;
const CognitoIdentityServiceException_1 = require("./CognitoIdentityServiceException");
class InternalErrorException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "InternalErrorException";
$fault = "server";
constructor(opts) {
super({
name: "InternalErrorException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalErrorException.prototype);
}
}
exports.InternalErrorException = InternalErrorException;
class InvalidParameterException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "InvalidParameterException";
$fault = "client";
constructor(opts) {
super({
name: "InvalidParameterException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidParameterException.prototype);
}
}
exports.InvalidParameterException = InvalidParameterException;
class LimitExceededException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "LimitExceededException";
$fault = "client";
constructor(opts) {
super({
name: "LimitExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, LimitExceededException.prototype);
}
}
exports.LimitExceededException = LimitExceededException;
class NotAuthorizedException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "NotAuthorizedException";
$fault = "client";
constructor(opts) {
super({
name: "NotAuthorizedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
}
}
exports.NotAuthorizedException = NotAuthorizedException;
class ResourceConflictException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "ResourceConflictException";
$fault = "client";
constructor(opts) {
super({
name: "ResourceConflictException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceConflictException.prototype);
}
}
exports.ResourceConflictException = ResourceConflictException;
class TooManyRequestsException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "TooManyRequestsException";
$fault = "client";
constructor(opts) {
super({
name: "TooManyRequestsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
}
}
exports.TooManyRequestsException = TooManyRequestsException;
class ResourceNotFoundException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "ResourceNotFoundException";
$fault = "client";
constructor(opts) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
exports.ResourceNotFoundException = ResourceNotFoundException;
class ExternalServiceException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "ExternalServiceException";
$fault = "client";
constructor(opts) {
super({
name: "ExternalServiceException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ExternalServiceException.prototype);
}
}
exports.ExternalServiceException = ExternalServiceException;
class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "InvalidIdentityPoolConfigurationException";
$fault = "client";
constructor(opts) {
super({
name: "InvalidIdentityPoolConfigurationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
}
}
exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException;
class DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "DeveloperUserAlreadyRegisteredException";
$fault = "client";
constructor(opts) {
super({
name: "DeveloperUserAlreadyRegisteredException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
}
}
exports.DeveloperUserAlreadyRegisteredException = DeveloperUserAlreadyRegisteredException;
class ConcurrentModificationException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
name = "ConcurrentModificationException";
$fault = "client";
constructor(opts) {
super({
name: "ConcurrentModificationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
}
}
exports.ConcurrentModificationException = ConcurrentModificationException;

View File

@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntimeConfig = void 0;
const tslib_1 = require("tslib");
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
const config_resolver_1 = require("@smithy/config-resolver");
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
const invalid_dependency_1 = require("@smithy/invalid-dependency");
const smithy_client_1 = require("@smithy/smithy-client");
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
const util_retry_1 = require("@smithy/util-retry");
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
const getRuntimeConfig = (config) => {
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
return {
...clientSharedValues,
...config,
runtime: "browser",
defaultsMode,
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
};
};
exports.getRuntimeConfig = getRuntimeConfig;

View File

@@ -0,0 +1,54 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntimeConfig = void 0;
const tslib_1 = require("tslib");
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
const client_1 = require("@aws-sdk/core/client");
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
const config_resolver_1 = require("@smithy/config-resolver");
const hash_node_1 = require("@smithy/hash-node");
const middleware_retry_1 = require("@smithy/middleware-retry");
const node_config_provider_1 = require("@smithy/node-config-provider");
const node_http_handler_1 = require("@smithy/node-http-handler");
const smithy_client_1 = require("@smithy/smithy-client");
const util_body_length_node_1 = require("@smithy/util-body-length-node");
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
const util_retry_1 = require("@smithy/util-retry");
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
const getRuntimeConfig = (config) => {
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
const loaderConfig = {
profile: config?.profile,
logger: clientSharedValues.logger,
};
return {
...clientSharedValues,
...config,
runtime: "node",
defaultsMode,
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ??
(0, node_config_provider_1.loadConfig)({
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
}, config),
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
};
};
exports.getRuntimeConfig = getRuntimeConfig;

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntimeConfig = void 0;
const sha256_js_1 = require("@aws-crypto/sha256-js");
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
const getRuntimeConfig = (config) => {
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
return {
...browserDefaults,
...config,
runtime: "react-native",
sha256: config?.sha256 ?? sha256_js_1.Sha256,
};
};
exports.getRuntimeConfig = getRuntimeConfig;

View File

@@ -0,0 +1,50 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntimeConfig = void 0;
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
const protocols_1 = require("@aws-sdk/core/protocols");
const core_1 = require("@smithy/core");
const smithy_client_1 = require("@smithy/smithy-client");
const url_parser_1 = require("@smithy/url-parser");
const util_base64_1 = require("@smithy/util-base64");
const util_utf8_1 = require("@smithy/util-utf8");
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
const endpointResolver_1 = require("./endpoint/endpointResolver");
const schemas_0_1 = require("./schemas/schemas_0");
const getRuntimeConfig = (config) => {
return {
apiVersion: "2014-06-30",
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
disableHostPrefix: config?.disableHostPrefix ?? false,
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
extensions: config?.extensions ?? [],
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCognitoIdentityHttpAuthSchemeProvider,
httpAuthSchemes: config?.httpAuthSchemes ?? [
{
schemeId: "aws.auth#sigv4",
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
},
{
schemeId: "smithy.api#noAuth",
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
signer: new core_1.NoAuthSigner(),
},
],
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.cognitoidentity",
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
version: "2014-06-30",
serviceTarget: "AWSCognitoIdentityService",
},
serviceId: config?.serviceId ?? "Cognito Identity",
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
};
};
exports.getRuntimeConfig = getRuntimeConfig;

View File

@@ -0,0 +1,569 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetIdentityPoolRolesInput$ = exports.RulesConfigurationType$ = exports.RoleMapping$ = exports.MergeDeveloperIdentitiesResponse$ = exports.MergeDeveloperIdentitiesInput$ = exports.MappingRule$ = exports.LookupDeveloperIdentityResponse$ = exports.LookupDeveloperIdentityInput$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceInput$ = exports.ListIdentityPoolsResponse$ = exports.ListIdentityPoolsInput$ = exports.ListIdentitiesResponse$ = exports.ListIdentitiesInput$ = exports.IdentityPoolShortDescription$ = exports.IdentityPool$ = exports.IdentityDescription$ = exports.GetPrincipalTagAttributeMapResponse$ = exports.GetPrincipalTagAttributeMapInput$ = exports.GetOpenIdTokenResponse$ = exports.GetOpenIdTokenInput$ = exports.GetOpenIdTokenForDeveloperIdentityResponse$ = exports.GetOpenIdTokenForDeveloperIdentityInput$ = exports.GetIdResponse$ = exports.GetIdInput$ = exports.GetIdentityPoolRolesResponse$ = exports.GetIdentityPoolRolesInput$ = exports.GetCredentialsForIdentityResponse$ = exports.GetCredentialsForIdentityInput$ = exports.DescribeIdentityPoolInput$ = exports.DescribeIdentityInput$ = exports.DeleteIdentityPoolInput$ = exports.DeleteIdentitiesResponse$ = exports.DeleteIdentitiesInput$ = exports.Credentials$ = exports.CreateIdentityPoolInput$ = exports.CognitoIdentityProvider$ = exports.errorTypeRegistries = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.ResourceConflictException$ = exports.NotAuthorizedException$ = exports.LimitExceededException$ = exports.InvalidParameterException$ = exports.InvalidIdentityPoolConfigurationException$ = exports.InternalErrorException$ = exports.ExternalServiceException$ = exports.DeveloperUserAlreadyRegisteredException$ = exports.ConcurrentModificationException$ = exports.CognitoIdentityServiceException$ = void 0;
exports.UpdateIdentityPool$ = exports.UntagResource$ = exports.UnlinkIdentity$ = exports.UnlinkDeveloperIdentity$ = exports.TagResource$ = exports.SetPrincipalTagAttributeMap$ = exports.SetIdentityPoolRoles$ = exports.MergeDeveloperIdentities$ = exports.LookupDeveloperIdentity$ = exports.ListTagsForResource$ = exports.ListIdentityPools$ = exports.ListIdentities$ = exports.GetPrincipalTagAttributeMap$ = exports.GetOpenIdTokenForDeveloperIdentity$ = exports.GetOpenIdToken$ = exports.GetIdentityPoolRoles$ = exports.GetId$ = exports.GetCredentialsForIdentity$ = exports.DescribeIdentityPool$ = exports.DescribeIdentity$ = exports.DeleteIdentityPool$ = exports.DeleteIdentities$ = exports.CreateIdentityPool$ = exports.UntagResourceResponse$ = exports.UntagResourceInput$ = exports.UnprocessedIdentityId$ = exports.UnlinkIdentityInput$ = exports.UnlinkDeveloperIdentityInput$ = exports.TagResourceResponse$ = exports.TagResourceInput$ = exports.SetPrincipalTagAttributeMapResponse$ = exports.SetPrincipalTagAttributeMapInput$ = void 0;
const _ACF = "AllowClassicFlow";
const _AI = "AccountId";
const _AKI = "AccessKeyId";
const _ARR = "AmbiguousRoleResolution";
const _AUI = "AllowUnauthenticatedIdentities";
const _C = "Credentials";
const _CD = "CreationDate";
const _CI = "ClientId";
const _CIP = "CognitoIdentityProvider";
const _CIPI = "CreateIdentityPoolInput";
const _CIPL = "CognitoIdentityProviderList";
const _CIPo = "CognitoIdentityProviders";
const _CIPr = "CreateIdentityPool";
const _CME = "ConcurrentModificationException";
const _CRA = "CustomRoleArn";
const _Cl = "Claim";
const _DI = "DeleteIdentities";
const _DII = "DeleteIdentitiesInput";
const _DIIe = "DescribeIdentityInput";
const _DIP = "DeleteIdentityPool";
const _DIPI = "DeleteIdentityPoolInput";
const _DIPIe = "DescribeIdentityPoolInput";
const _DIPe = "DescribeIdentityPool";
const _DIR = "DeleteIdentitiesResponse";
const _DIe = "DescribeIdentity";
const _DPN = "DeveloperProviderName";
const _DUARE = "DeveloperUserAlreadyRegisteredException";
const _DUI = "DeveloperUserIdentifier";
const _DUIL = "DeveloperUserIdentifierList";
const _DUIe = "DestinationUserIdentifier";
const _E = "Expiration";
const _EC = "ErrorCode";
const _ESE = "ExternalServiceException";
const _GCFI = "GetCredentialsForIdentity";
const _GCFII = "GetCredentialsForIdentityInput";
const _GCFIR = "GetCredentialsForIdentityResponse";
const _GI = "GetId";
const _GII = "GetIdInput";
const _GIPR = "GetIdentityPoolRoles";
const _GIPRI = "GetIdentityPoolRolesInput";
const _GIPRR = "GetIdentityPoolRolesResponse";
const _GIR = "GetIdResponse";
const _GOIT = "GetOpenIdToken";
const _GOITFDI = "GetOpenIdTokenForDeveloperIdentity";
const _GOITFDII = "GetOpenIdTokenForDeveloperIdentityInput";
const _GOITFDIR = "GetOpenIdTokenForDeveloperIdentityResponse";
const _GOITI = "GetOpenIdTokenInput";
const _GOITR = "GetOpenIdTokenResponse";
const _GPTAM = "GetPrincipalTagAttributeMap";
const _GPTAMI = "GetPrincipalTagAttributeMapInput";
const _GPTAMR = "GetPrincipalTagAttributeMapResponse";
const _HD = "HideDisabled";
const _I = "Identities";
const _ID = "IdentityDescription";
const _IEE = "InternalErrorException";
const _II = "IdentityId";
const _IIPCE = "InvalidIdentityPoolConfigurationException";
const _IITD = "IdentityIdsToDelete";
const _IL = "IdentitiesList";
const _IP = "IdentityPool";
const _IPE = "InvalidParameterException";
const _IPI = "IdentityPoolId";
const _IPL = "IdentityPoolsList";
const _IPN = "IdentityPoolName";
const _IPNd = "IdentityProviderName";
const _IPSD = "IdentityPoolShortDescription";
const _IPT = "IdentityProviderToken";
const _IPTd = "IdentityPoolTags";
const _IPd = "IdentityPools";
const _L = "Logins";
const _LDI = "LookupDeveloperIdentity";
const _LDII = "LookupDeveloperIdentityInput";
const _LDIR = "LookupDeveloperIdentityResponse";
const _LEE = "LimitExceededException";
const _LI = "ListIdentities";
const _LII = "ListIdentitiesInput";
const _LIP = "ListIdentityPools";
const _LIPI = "ListIdentityPoolsInput";
const _LIPR = "ListIdentityPoolsResponse";
const _LIR = "ListIdentitiesResponse";
const _LM = "LoginsMap";
const _LMD = "LastModifiedDate";
const _LTFR = "ListTagsForResource";
const _LTFRI = "ListTagsForResourceInput";
const _LTFRR = "ListTagsForResourceResponse";
const _LTR = "LoginsToRemove";
const _MDI = "MergeDeveloperIdentities";
const _MDII = "MergeDeveloperIdentitiesInput";
const _MDIR = "MergeDeveloperIdentitiesResponse";
const _MR = "MaxResults";
const _MRL = "MappingRulesList";
const _MRa = "MappingRule";
const _MT = "MatchType";
const _NAE = "NotAuthorizedException";
const _NT = "NextToken";
const _OICPARN = "OpenIdConnectProviderARNs";
const _OIDCT = "OIDCToken";
const _PN = "ProviderName";
const _PT = "PrincipalTags";
const _R = "Roles";
const _RA = "ResourceArn";
const _RARN = "RoleARN";
const _RC = "RulesConfiguration";
const _RCE = "ResourceConflictException";
const _RCT = "RulesConfigurationType";
const _RM = "RoleMappings";
const _RMM = "RoleMappingMap";
const _RMo = "RoleMapping";
const _RNFE = "ResourceNotFoundException";
const _Ru = "Rules";
const _SIPR = "SetIdentityPoolRoles";
const _SIPRI = "SetIdentityPoolRolesInput";
const _SK = "SecretKey";
const _SKS = "SecretKeyString";
const _SLP = "SupportedLoginProviders";
const _SPARN = "SamlProviderARNs";
const _SPTAM = "SetPrincipalTagAttributeMap";
const _SPTAMI = "SetPrincipalTagAttributeMapInput";
const _SPTAMR = "SetPrincipalTagAttributeMapResponse";
const _SSTC = "ServerSideTokenCheck";
const _ST = "SessionToken";
const _SUI = "SourceUserIdentifier";
const _T = "Token";
const _TD = "TokenDuration";
const _TK = "TagKeys";
const _TMRE = "TooManyRequestsException";
const _TR = "TagResource";
const _TRI = "TagResourceInput";
const _TRR = "TagResourceResponse";
const _Ta = "Tags";
const _Ty = "Type";
const _UD = "UseDefaults";
const _UDI = "UnlinkDeveloperIdentity";
const _UDII = "UnlinkDeveloperIdentityInput";
const _UI = "UnlinkIdentity";
const _UII = "UnprocessedIdentityIds";
const _UIIL = "UnprocessedIdentityIdList";
const _UIIn = "UnlinkIdentityInput";
const _UIInp = "UnprocessedIdentityId";
const _UIP = "UpdateIdentityPool";
const _UR = "UntagResource";
const _URI = "UntagResourceInput";
const _URR = "UntagResourceResponse";
const _V = "Value";
const _c = "client";
const _e = "error";
const _hE = "httpError";
const _m = "message";
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
const _se = "server";
const n0 = "com.amazonaws.cognitoidentity";
const schema_1 = require("@smithy/core/schema");
const CognitoIdentityServiceException_1 = require("../models/CognitoIdentityServiceException");
const errors_1 = require("../models/errors");
const _s_registry = schema_1.TypeRegistry.for(_s);
exports.CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
_s_registry.registerError(exports.CognitoIdentityServiceException$, CognitoIdentityServiceException_1.CognitoIdentityServiceException);
const n0_registry = schema_1.TypeRegistry.for(n0);
exports.ConcurrentModificationException$ = [-3, n0, _CME,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.ConcurrentModificationException$, errors_1.ConcurrentModificationException);
exports.DeveloperUserAlreadyRegisteredException$ = [-3, n0, _DUARE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.DeveloperUserAlreadyRegisteredException$, errors_1.DeveloperUserAlreadyRegisteredException);
exports.ExternalServiceException$ = [-3, n0, _ESE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.ExternalServiceException$, errors_1.ExternalServiceException);
exports.InternalErrorException$ = [-3, n0, _IEE,
{ [_e]: _se },
[_m],
[0]
];
n0_registry.registerError(exports.InternalErrorException$, errors_1.InternalErrorException);
exports.InvalidIdentityPoolConfigurationException$ = [-3, n0, _IIPCE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.InvalidIdentityPoolConfigurationException$, errors_1.InvalidIdentityPoolConfigurationException);
exports.InvalidParameterException$ = [-3, n0, _IPE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.InvalidParameterException$, errors_1.InvalidParameterException);
exports.LimitExceededException$ = [-3, n0, _LEE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
exports.NotAuthorizedException$ = [-3, n0, _NAE,
{ [_e]: _c, [_hE]: 403 },
[_m],
[0]
];
n0_registry.registerError(exports.NotAuthorizedException$, errors_1.NotAuthorizedException);
exports.ResourceConflictException$ = [-3, n0, _RCE,
{ [_e]: _c, [_hE]: 409 },
[_m],
[0]
];
n0_registry.registerError(exports.ResourceConflictException$, errors_1.ResourceConflictException);
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
{ [_e]: _c, [_hE]: 404 },
[_m],
[0]
];
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
exports.TooManyRequestsException$ = [-3, n0, _TMRE,
{ [_e]: _c, [_hE]: 429 },
[_m],
[0]
];
n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
exports.errorTypeRegistries = [
_s_registry,
n0_registry,
];
var IdentityProviderToken = [0, n0, _IPT, 8, 0];
var OIDCToken = [0, n0, _OIDCT, 8, 0];
var SecretKeyString = [0, n0, _SKS, 8, 0];
exports.CognitoIdentityProvider$ = [3, n0, _CIP,
0,
[_PN, _CI, _SSTC],
[0, 0, 2]
];
exports.CreateIdentityPoolInput$ = [3, n0, _CIPI,
0,
[_IPN, _AUI, _ACF, _SLP, _DPN, _OICPARN, _CIPo, _SPARN, _IPTd],
[0, 2, 2, 128 | 0, 0, 64 | 0, () => CognitoIdentityProviderList, 64 | 0, 128 | 0], 2
];
exports.Credentials$ = [3, n0, _C,
0,
[_AKI, _SK, _ST, _E],
[0, [() => SecretKeyString, 0], 0, 4]
];
exports.DeleteIdentitiesInput$ = [3, n0, _DII,
0,
[_IITD],
[64 | 0], 1
];
exports.DeleteIdentitiesResponse$ = [3, n0, _DIR,
0,
[_UII],
[() => UnprocessedIdentityIdList]
];
exports.DeleteIdentityPoolInput$ = [3, n0, _DIPI,
0,
[_IPI],
[0], 1
];
exports.DescribeIdentityInput$ = [3, n0, _DIIe,
0,
[_II],
[0], 1
];
exports.DescribeIdentityPoolInput$ = [3, n0, _DIPIe,
0,
[_IPI],
[0], 1
];
exports.GetCredentialsForIdentityInput$ = [3, n0, _GCFII,
0,
[_II, _L, _CRA],
[0, [() => LoginsMap, 0], 0], 1
];
exports.GetCredentialsForIdentityResponse$ = [3, n0, _GCFIR,
0,
[_II, _C],
[0, [() => exports.Credentials$, 0]]
];
exports.GetIdentityPoolRolesInput$ = [3, n0, _GIPRI,
0,
[_IPI],
[0], 1
];
exports.GetIdentityPoolRolesResponse$ = [3, n0, _GIPRR,
0,
[_IPI, _R, _RM],
[0, 128 | 0, () => RoleMappingMap]
];
exports.GetIdInput$ = [3, n0, _GII,
0,
[_IPI, _AI, _L],
[0, 0, [() => LoginsMap, 0]], 1
];
exports.GetIdResponse$ = [3, n0, _GIR,
0,
[_II],
[0]
];
exports.GetOpenIdTokenForDeveloperIdentityInput$ = [3, n0, _GOITFDII,
0,
[_IPI, _L, _II, _PT, _TD],
[0, [() => LoginsMap, 0], 0, 128 | 0, 1], 2
];
exports.GetOpenIdTokenForDeveloperIdentityResponse$ = [3, n0, _GOITFDIR,
0,
[_II, _T],
[0, [() => OIDCToken, 0]]
];
exports.GetOpenIdTokenInput$ = [3, n0, _GOITI,
0,
[_II, _L],
[0, [() => LoginsMap, 0]], 1
];
exports.GetOpenIdTokenResponse$ = [3, n0, _GOITR,
0,
[_II, _T],
[0, [() => OIDCToken, 0]]
];
exports.GetPrincipalTagAttributeMapInput$ = [3, n0, _GPTAMI,
0,
[_IPI, _IPNd],
[0, 0], 2
];
exports.GetPrincipalTagAttributeMapResponse$ = [3, n0, _GPTAMR,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0]
];
exports.IdentityDescription$ = [3, n0, _ID,
0,
[_II, _L, _CD, _LMD],
[0, 64 | 0, 4, 4]
];
exports.IdentityPool$ = [3, n0, _IP,
0,
[_IPI, _IPN, _AUI, _ACF, _SLP, _DPN, _OICPARN, _CIPo, _SPARN, _IPTd],
[0, 0, 2, 2, 128 | 0, 0, 64 | 0, () => CognitoIdentityProviderList, 64 | 0, 128 | 0], 3
];
exports.IdentityPoolShortDescription$ = [3, n0, _IPSD,
0,
[_IPI, _IPN],
[0, 0]
];
exports.ListIdentitiesInput$ = [3, n0, _LII,
0,
[_IPI, _MR, _NT, _HD],
[0, 1, 0, 2], 2
];
exports.ListIdentitiesResponse$ = [3, n0, _LIR,
0,
[_IPI, _I, _NT],
[0, () => IdentitiesList, 0]
];
exports.ListIdentityPoolsInput$ = [3, n0, _LIPI,
0,
[_MR, _NT],
[1, 0], 1
];
exports.ListIdentityPoolsResponse$ = [3, n0, _LIPR,
0,
[_IPd, _NT],
[() => IdentityPoolsList, 0]
];
exports.ListTagsForResourceInput$ = [3, n0, _LTFRI,
0,
[_RA],
[0], 1
];
exports.ListTagsForResourceResponse$ = [3, n0, _LTFRR,
0,
[_Ta],
[128 | 0]
];
exports.LookupDeveloperIdentityInput$ = [3, n0, _LDII,
0,
[_IPI, _II, _DUI, _MR, _NT],
[0, 0, 0, 1, 0], 1
];
exports.LookupDeveloperIdentityResponse$ = [3, n0, _LDIR,
0,
[_II, _DUIL, _NT],
[0, 64 | 0, 0]
];
exports.MappingRule$ = [3, n0, _MRa,
0,
[_Cl, _MT, _V, _RARN],
[0, 0, 0, 0], 4
];
exports.MergeDeveloperIdentitiesInput$ = [3, n0, _MDII,
0,
[_SUI, _DUIe, _DPN, _IPI],
[0, 0, 0, 0], 4
];
exports.MergeDeveloperIdentitiesResponse$ = [3, n0, _MDIR,
0,
[_II],
[0]
];
exports.RoleMapping$ = [3, n0, _RMo,
0,
[_Ty, _ARR, _RC],
[0, 0, () => exports.RulesConfigurationType$], 1
];
exports.RulesConfigurationType$ = [3, n0, _RCT,
0,
[_Ru],
[() => MappingRulesList], 1
];
exports.SetIdentityPoolRolesInput$ = [3, n0, _SIPRI,
0,
[_IPI, _R, _RM],
[0, 128 | 0, () => RoleMappingMap], 2
];
exports.SetPrincipalTagAttributeMapInput$ = [3, n0, _SPTAMI,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0], 2
];
exports.SetPrincipalTagAttributeMapResponse$ = [3, n0, _SPTAMR,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0]
];
exports.TagResourceInput$ = [3, n0, _TRI,
0,
[_RA, _Ta],
[0, 128 | 0], 2
];
exports.TagResourceResponse$ = [3, n0, _TRR,
0,
[],
[]
];
exports.UnlinkDeveloperIdentityInput$ = [3, n0, _UDII,
0,
[_II, _IPI, _DPN, _DUI],
[0, 0, 0, 0], 4
];
exports.UnlinkIdentityInput$ = [3, n0, _UIIn,
0,
[_II, _L, _LTR],
[0, [() => LoginsMap, 0], 64 | 0], 3
];
exports.UnprocessedIdentityId$ = [3, n0, _UIInp,
0,
[_II, _EC],
[0, 0]
];
exports.UntagResourceInput$ = [3, n0, _URI,
0,
[_RA, _TK],
[0, 64 | 0], 2
];
exports.UntagResourceResponse$ = [3, n0, _URR,
0,
[],
[]
];
var __Unit = "unit";
var CognitoIdentityProviderList = [1, n0, _CIPL,
0, () => exports.CognitoIdentityProvider$
];
var DeveloperUserIdentifierList = 64 | 0;
var IdentitiesList = [1, n0, _IL,
0, () => exports.IdentityDescription$
];
var IdentityIdList = 64 | 0;
var IdentityPoolsList = [1, n0, _IPL,
0, () => exports.IdentityPoolShortDescription$
];
var IdentityPoolTagsListType = 64 | 0;
var LoginsList = 64 | 0;
var MappingRulesList = [1, n0, _MRL,
0, () => exports.MappingRule$
];
var OIDCProviderList = 64 | 0;
var SAMLProviderList = 64 | 0;
var UnprocessedIdentityIdList = [1, n0, _UIIL,
0, () => exports.UnprocessedIdentityId$
];
var IdentityPoolTagsType = 128 | 0;
var IdentityProviders = 128 | 0;
var LoginsMap = [2, n0, _LM,
0, [0,
0],
[() => IdentityProviderToken,
0]
];
var PrincipalTags = 128 | 0;
var RoleMappingMap = [2, n0, _RMM,
0, 0, () => exports.RoleMapping$
];
var RolesMap = 128 | 0;
exports.CreateIdentityPool$ = [9, n0, _CIPr,
0, () => exports.CreateIdentityPoolInput$, () => exports.IdentityPool$
];
exports.DeleteIdentities$ = [9, n0, _DI,
0, () => exports.DeleteIdentitiesInput$, () => exports.DeleteIdentitiesResponse$
];
exports.DeleteIdentityPool$ = [9, n0, _DIP,
0, () => exports.DeleteIdentityPoolInput$, () => __Unit
];
exports.DescribeIdentity$ = [9, n0, _DIe,
0, () => exports.DescribeIdentityInput$, () => exports.IdentityDescription$
];
exports.DescribeIdentityPool$ = [9, n0, _DIPe,
0, () => exports.DescribeIdentityPoolInput$, () => exports.IdentityPool$
];
exports.GetCredentialsForIdentity$ = [9, n0, _GCFI,
0, () => exports.GetCredentialsForIdentityInput$, () => exports.GetCredentialsForIdentityResponse$
];
exports.GetId$ = [9, n0, _GI,
0, () => exports.GetIdInput$, () => exports.GetIdResponse$
];
exports.GetIdentityPoolRoles$ = [9, n0, _GIPR,
0, () => exports.GetIdentityPoolRolesInput$, () => exports.GetIdentityPoolRolesResponse$
];
exports.GetOpenIdToken$ = [9, n0, _GOIT,
0, () => exports.GetOpenIdTokenInput$, () => exports.GetOpenIdTokenResponse$
];
exports.GetOpenIdTokenForDeveloperIdentity$ = [9, n0, _GOITFDI,
0, () => exports.GetOpenIdTokenForDeveloperIdentityInput$, () => exports.GetOpenIdTokenForDeveloperIdentityResponse$
];
exports.GetPrincipalTagAttributeMap$ = [9, n0, _GPTAM,
0, () => exports.GetPrincipalTagAttributeMapInput$, () => exports.GetPrincipalTagAttributeMapResponse$
];
exports.ListIdentities$ = [9, n0, _LI,
0, () => exports.ListIdentitiesInput$, () => exports.ListIdentitiesResponse$
];
exports.ListIdentityPools$ = [9, n0, _LIP,
0, () => exports.ListIdentityPoolsInput$, () => exports.ListIdentityPoolsResponse$
];
exports.ListTagsForResource$ = [9, n0, _LTFR,
0, () => exports.ListTagsForResourceInput$, () => exports.ListTagsForResourceResponse$
];
exports.LookupDeveloperIdentity$ = [9, n0, _LDI,
0, () => exports.LookupDeveloperIdentityInput$, () => exports.LookupDeveloperIdentityResponse$
];
exports.MergeDeveloperIdentities$ = [9, n0, _MDI,
0, () => exports.MergeDeveloperIdentitiesInput$, () => exports.MergeDeveloperIdentitiesResponse$
];
exports.SetIdentityPoolRoles$ = [9, n0, _SIPR,
0, () => exports.SetIdentityPoolRolesInput$, () => __Unit
];
exports.SetPrincipalTagAttributeMap$ = [9, n0, _SPTAM,
0, () => exports.SetPrincipalTagAttributeMapInput$, () => exports.SetPrincipalTagAttributeMapResponse$
];
exports.TagResource$ = [9, n0, _TR,
0, () => exports.TagResourceInput$, () => exports.TagResourceResponse$
];
exports.UnlinkDeveloperIdentity$ = [9, n0, _UDI,
0, () => exports.UnlinkDeveloperIdentityInput$, () => __Unit
];
exports.UnlinkIdentity$ = [9, n0, _UI,
0, () => exports.UnlinkIdentityInput$, () => __Unit
];
exports.UntagResource$ = [9, n0, _UR,
0, () => exports.UntagResourceInput$, () => exports.UntagResourceResponse$
];
exports.UpdateIdentityPool$ = [9, n0, _UIP,
0, () => exports.IdentityPool$, () => exports.IdentityPool$
];

View File

@@ -0,0 +1,57 @@
import { createAggregatedClient } from "@smithy/smithy-client";
import { CognitoIdentityClient } from "./CognitoIdentityClient";
import { CreateIdentityPoolCommand, } from "./commands/CreateIdentityPoolCommand";
import { DeleteIdentitiesCommand, } from "./commands/DeleteIdentitiesCommand";
import { DeleteIdentityPoolCommand, } from "./commands/DeleteIdentityPoolCommand";
import { DescribeIdentityCommand, } from "./commands/DescribeIdentityCommand";
import { DescribeIdentityPoolCommand, } from "./commands/DescribeIdentityPoolCommand";
import { GetCredentialsForIdentityCommand, } from "./commands/GetCredentialsForIdentityCommand";
import { GetIdCommand } from "./commands/GetIdCommand";
import { GetIdentityPoolRolesCommand, } from "./commands/GetIdentityPoolRolesCommand";
import { GetOpenIdTokenCommand, } from "./commands/GetOpenIdTokenCommand";
import { GetOpenIdTokenForDeveloperIdentityCommand, } from "./commands/GetOpenIdTokenForDeveloperIdentityCommand";
import { GetPrincipalTagAttributeMapCommand, } from "./commands/GetPrincipalTagAttributeMapCommand";
import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
import { ListIdentityPoolsCommand, } from "./commands/ListIdentityPoolsCommand";
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
import { LookupDeveloperIdentityCommand, } from "./commands/LookupDeveloperIdentityCommand";
import { MergeDeveloperIdentitiesCommand, } from "./commands/MergeDeveloperIdentitiesCommand";
import { SetIdentityPoolRolesCommand, } from "./commands/SetIdentityPoolRolesCommand";
import { SetPrincipalTagAttributeMapCommand, } from "./commands/SetPrincipalTagAttributeMapCommand";
import { TagResourceCommand, } from "./commands/TagResourceCommand";
import { UnlinkDeveloperIdentityCommand, } from "./commands/UnlinkDeveloperIdentityCommand";
import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
import { UpdateIdentityPoolCommand, } from "./commands/UpdateIdentityPoolCommand";
import { paginateListIdentityPools } from "./pagination/ListIdentityPoolsPaginator";
const commands = {
CreateIdentityPoolCommand,
DeleteIdentitiesCommand,
DeleteIdentityPoolCommand,
DescribeIdentityCommand,
DescribeIdentityPoolCommand,
GetCredentialsForIdentityCommand,
GetIdCommand,
GetIdentityPoolRolesCommand,
GetOpenIdTokenCommand,
GetOpenIdTokenForDeveloperIdentityCommand,
GetPrincipalTagAttributeMapCommand,
ListIdentitiesCommand,
ListIdentityPoolsCommand,
ListTagsForResourceCommand,
LookupDeveloperIdentityCommand,
MergeDeveloperIdentitiesCommand,
SetIdentityPoolRolesCommand,
SetPrincipalTagAttributeMapCommand,
TagResourceCommand,
UnlinkDeveloperIdentityCommand,
UnlinkIdentityCommand,
UntagResourceCommand,
UpdateIdentityPoolCommand,
};
const paginators = {
paginateListIdentityPools,
};
export class CognitoIdentity extends CognitoIdentityClient {
}
createAggregatedClient(commands, CognitoIdentity, { paginators });

View File

@@ -0,0 +1,50 @@
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
import { resolveRegionConfig } from "@smithy/config-resolver";
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
import { Client as __Client, } from "@smithy/smithy-client";
import { defaultCognitoIdentityHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
import { resolveRuntimeExtensions } from "./runtimeExtensions";
export { __Client };
export class CognitoIdentityClient extends __Client {
config;
constructor(...[configuration]) {
const _config_0 = __getRuntimeConfig(configuration || {});
super(_config_0);
this.initConfig = _config_0;
const _config_1 = resolveClientEndpointParameters(_config_0);
const _config_2 = resolveUserAgentConfig(_config_1);
const _config_3 = resolveRetryConfig(_config_2);
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
this.config = _config_8;
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
this.middlewareStack.use(getHostHeaderPlugin(this.config));
this.middlewareStack.use(getLoggerPlugin(this.config));
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider,
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
"aws.auth#sigv4": config.credentials,
}),
}));
this.middlewareStack.use(getHttpSigningPlugin(this.config));
}
destroy() {
super.destroy();
}
}

View File

@@ -0,0 +1,38 @@
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
let _credentials = runtimeConfig.credentials;
return {
setHttpAuthScheme(httpAuthScheme) {
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
if (index === -1) {
_httpAuthSchemes.push(httpAuthScheme);
}
else {
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
}
},
httpAuthSchemes() {
return _httpAuthSchemes;
},
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
_httpAuthSchemeProvider = httpAuthSchemeProvider;
},
httpAuthSchemeProvider() {
return _httpAuthSchemeProvider;
},
setCredentials(credentials) {
_credentials = credentials;
},
credentials() {
return _credentials;
},
};
};
export const resolveHttpAuthRuntimeConfig = (config) => {
return {
httpAuthSchemes: config.httpAuthSchemes(),
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
credentials: config.credentials(),
};
};

View File

@@ -0,0 +1,69 @@
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
export const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
return {
operation: getSmithyContext(context).operation,
region: await normalizeProvider(config.region)() || (() => {
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
})(),
};
};
function createAwsAuthSigv4HttpAuthOption(authParameters) {
return {
schemeId: "aws.auth#sigv4",
signingProperties: {
name: "cognito-identity",
region: authParameters.region,
},
propertiesExtractor: (config, context) => ({
signingProperties: {
config,
context,
},
}),
};
}
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
return {
schemeId: "smithy.api#noAuth",
};
}
export const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
const options = [];
switch (authParameters.operation) {
case "GetCredentialsForIdentity":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "GetId":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "GetOpenIdToken":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
case "UnlinkIdentity":
{
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
;
default: {
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
}
}
return options;
};
export const resolveHttpAuthSchemeConfig = (config) => {
const config_0 = resolveAwsSdkSigV4Config(config);
return Object.assign(config_0, {
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
});
};

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateIdentityPool$ } from "../schemas/schemas_0";
export { $Command };
export class CreateIdentityPoolCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "CreateIdentityPool", {})
.n("CognitoIdentityClient", "CreateIdentityPoolCommand")
.sc(CreateIdentityPool$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteIdentities$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteIdentitiesCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DeleteIdentities", {})
.n("CognitoIdentityClient", "DeleteIdentitiesCommand")
.sc(DeleteIdentities$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteIdentityPool$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteIdentityPoolCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
.n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
.sc(DeleteIdentityPool$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class DescribeIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DescribeIdentity", {})
.n("CognitoIdentityClient", "DescribeIdentityCommand")
.sc(DescribeIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeIdentityPool$ } from "../schemas/schemas_0";
export { $Command };
export class DescribeIdentityPoolCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
.n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
.sc(DescribeIdentityPool$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetCredentialsForIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class GetCredentialsForIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
.sc(GetCredentialsForIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetId$ } from "../schemas/schemas_0";
export { $Command };
export class GetIdCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetId", {})
.n("CognitoIdentityClient", "GetIdCommand")
.sc(GetId$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetIdentityPoolRoles$ } from "../schemas/schemas_0";
export { $Command };
export class GetIdentityPoolRolesCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
.n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
.sc(GetIdentityPoolRoles$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetOpenIdToken$ } from "../schemas/schemas_0";
export { $Command };
export class GetOpenIdTokenCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetOpenIdToken", {})
.n("CognitoIdentityClient", "GetOpenIdTokenCommand")
.sc(GetOpenIdToken$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetOpenIdTokenForDeveloperIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class GetOpenIdTokenForDeveloperIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {})
.n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand")
.sc(GetOpenIdTokenForDeveloperIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetPrincipalTagAttributeMap$ } from "../schemas/schemas_0";
export { $Command };
export class GetPrincipalTagAttributeMapCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {})
.n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand")
.sc(GetPrincipalTagAttributeMap$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListIdentities$ } from "../schemas/schemas_0";
export { $Command };
export class ListIdentitiesCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListIdentities", {})
.n("CognitoIdentityClient", "ListIdentitiesCommand")
.sc(ListIdentities$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListIdentityPools$ } from "../schemas/schemas_0";
export { $Command };
export class ListIdentityPoolsCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListIdentityPools", {})
.n("CognitoIdentityClient", "ListIdentityPoolsCommand")
.sc(ListIdentityPools$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListTagsForResource$ } from "../schemas/schemas_0";
export { $Command };
export class ListTagsForResourceCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "ListTagsForResource", {})
.n("CognitoIdentityClient", "ListTagsForResourceCommand")
.sc(ListTagsForResource$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { LookupDeveloperIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class LookupDeveloperIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {})
.n("CognitoIdentityClient", "LookupDeveloperIdentityCommand")
.sc(LookupDeveloperIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { MergeDeveloperIdentities$ } from "../schemas/schemas_0";
export { $Command };
export class MergeDeveloperIdentitiesCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {})
.n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand")
.sc(MergeDeveloperIdentities$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { SetIdentityPoolRoles$ } from "../schemas/schemas_0";
export { $Command };
export class SetIdentityPoolRolesCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {})
.n("CognitoIdentityClient", "SetIdentityPoolRolesCommand")
.sc(SetIdentityPoolRoles$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { SetPrincipalTagAttributeMap$ } from "../schemas/schemas_0";
export { $Command };
export class SetPrincipalTagAttributeMapCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {})
.n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand")
.sc(SetPrincipalTagAttributeMap$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { TagResource$ } from "../schemas/schemas_0";
export { $Command };
export class TagResourceCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "TagResource", {})
.n("CognitoIdentityClient", "TagResourceCommand")
.sc(TagResource$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { UnlinkDeveloperIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class UnlinkDeveloperIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {})
.n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand")
.sc(UnlinkDeveloperIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { UnlinkIdentity$ } from "../schemas/schemas_0";
export { $Command };
export class UnlinkIdentityCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UnlinkIdentity", {})
.n("CognitoIdentityClient", "UnlinkIdentityCommand")
.sc(UnlinkIdentity$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { UntagResource$ } from "../schemas/schemas_0";
export { $Command };
export class UntagResourceCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UntagResource", {})
.n("CognitoIdentityClient", "UntagResourceCommand")
.sc(UntagResource$)
.build() {
}

View File

@@ -0,0 +1,16 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { UpdateIdentityPool$ } from "../schemas/schemas_0";
export { $Command };
export class UpdateIdentityPoolCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AWSCognitoIdentityService", "UpdateIdentityPool", {})
.n("CognitoIdentityClient", "UpdateIdentityPoolCommand")
.sc(UpdateIdentityPool$)
.build() {
}

View File

@@ -0,0 +1,23 @@
export * from "./CreateIdentityPoolCommand";
export * from "./DeleteIdentitiesCommand";
export * from "./DeleteIdentityPoolCommand";
export * from "./DescribeIdentityCommand";
export * from "./DescribeIdentityPoolCommand";
export * from "./GetCredentialsForIdentityCommand";
export * from "./GetIdCommand";
export * from "./GetIdentityPoolRolesCommand";
export * from "./GetOpenIdTokenCommand";
export * from "./GetOpenIdTokenForDeveloperIdentityCommand";
export * from "./GetPrincipalTagAttributeMapCommand";
export * from "./ListIdentitiesCommand";
export * from "./ListIdentityPoolsCommand";
export * from "./ListTagsForResourceCommand";
export * from "./LookupDeveloperIdentityCommand";
export * from "./MergeDeveloperIdentitiesCommand";
export * from "./SetIdentityPoolRolesCommand";
export * from "./SetPrincipalTagAttributeMapCommand";
export * from "./TagResourceCommand";
export * from "./UnlinkDeveloperIdentityCommand";
export * from "./UnlinkIdentityCommand";
export * from "./UntagResourceCommand";
export * from "./UpdateIdentityPoolCommand";

View File

@@ -0,0 +1,13 @@
export const resolveClientEndpointParameters = (options) => {
return Object.assign(options, {
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
useFipsEndpoint: options.useFipsEndpoint ?? false,
defaultSigningName: "cognito-identity",
});
};
export const commonParams = {
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
Endpoint: { type: "builtInParams", name: "endpoint" },
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
};

View File

@@ -0,0 +1,14 @@
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
import { ruleSet } from "./ruleset";
const cache = new EndpointCache({
size: 50,
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
});
export const defaultEndpointResolver = (endpointParams, context = {}) => {
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
endpointParams: endpointParams,
logger: context.logger,
}));
};
customEndpointFunctions.aws = awsEndpointFunctions;

View File

@@ -0,0 +1,4 @@
const w = "required", x = "fn", y = "argv", z = "ref";
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, "type": "string" }, k = { [w]: true, "default": false, "type": "boolean" }, l = { [z]: "Endpoint" }, m = { [x]: c, [y]: [{ [z]: "UseFIPS" }, true] }, n = { [x]: c, [y]: [{ [z]: "UseDualStack" }, true] }, o = {}, p = { [z]: "Region" }, q = { [x]: h, [y]: [{ [z]: g }, "supportsFIPS"] }, r = { [z]: g }, s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] }, t = [m], u = [n], v = [p];
const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j }, rules: [{ conditions: [{ [x]: b, [y]: [l] }], rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, properties: o, headers: o }, type: e }], type: f }, { conditions: [{ [x]: b, [y]: v }], rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], rules: [{ conditions: [m, n], rules: [{ conditions: [{ [x]: c, [y]: [a, q] }, s], rules: [{ conditions: [{ [x]: i, [y]: [p, "us-east-1"] }], endpoint: { url: "https://cognito-identity-fips.us-east-1.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-east-2"] }], endpoint: { url: "https://cognito-identity-fips.us-east-2.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-west-1"] }], endpoint: { url: "https://cognito-identity-fips.us-west-1.amazonaws.com", properties: o, headers: o }, type: e }, { conditions: [{ [x]: i, [y]: [p, "us-west-2"] }], endpoint: { url: "https://cognito-identity-fips.us-west-2.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: t, rules: [{ conditions: [{ [x]: c, [y]: [q, a] }], rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: u, rules: [{ conditions: [s], rules: [{ conditions: [{ [x]: i, [y]: ["aws", { [x]: h, [y]: [r, "name"] }] }], endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: o, headers: o }, type: e }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", properties: o, headers: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
export const ruleSet = _data;

View File

@@ -0,0 +1,9 @@
export * from "./CognitoIdentityClient";
export * from "./CognitoIdentity";
export * from "./commands";
export * from "./schemas/schemas_0";
export * from "./pagination";
export * from "./models/enums";
export * from "./models/errors";
export * from "./models/models_0";
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";

View File

@@ -0,0 +1,8 @@
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
export { __ServiceException };
export class CognitoIdentityServiceException extends __ServiceException {
constructor(options) {
super(options);
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
}
}

View File

@@ -0,0 +1,18 @@
export const AmbiguousRoleResolutionType = {
AUTHENTICATED_ROLE: "AuthenticatedRole",
DENY: "Deny",
};
export const ErrorCode = {
ACCESS_DENIED: "AccessDenied",
INTERNAL_SERVER_ERROR: "InternalServerError",
};
export const MappingRuleMatchType = {
CONTAINS: "Contains",
EQUALS: "Equals",
NOT_EQUAL: "NotEqual",
STARTS_WITH: "StartsWith",
};
export const RoleMappingType = {
RULES: "Rules",
TOKEN: "Token",
};

View File

@@ -0,0 +1,133 @@
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
export class InternalErrorException extends __BaseException {
name = "InternalErrorException";
$fault = "server";
constructor(opts) {
super({
name: "InternalErrorException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalErrorException.prototype);
}
}
export class InvalidParameterException extends __BaseException {
name = "InvalidParameterException";
$fault = "client";
constructor(opts) {
super({
name: "InvalidParameterException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidParameterException.prototype);
}
}
export class LimitExceededException extends __BaseException {
name = "LimitExceededException";
$fault = "client";
constructor(opts) {
super({
name: "LimitExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, LimitExceededException.prototype);
}
}
export class NotAuthorizedException extends __BaseException {
name = "NotAuthorizedException";
$fault = "client";
constructor(opts) {
super({
name: "NotAuthorizedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
}
}
export class ResourceConflictException extends __BaseException {
name = "ResourceConflictException";
$fault = "client";
constructor(opts) {
super({
name: "ResourceConflictException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceConflictException.prototype);
}
}
export class TooManyRequestsException extends __BaseException {
name = "TooManyRequestsException";
$fault = "client";
constructor(opts) {
super({
name: "TooManyRequestsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
}
}
export class ResourceNotFoundException extends __BaseException {
name = "ResourceNotFoundException";
$fault = "client";
constructor(opts) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
export class ExternalServiceException extends __BaseException {
name = "ExternalServiceException";
$fault = "client";
constructor(opts) {
super({
name: "ExternalServiceException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ExternalServiceException.prototype);
}
}
export class InvalidIdentityPoolConfigurationException extends __BaseException {
name = "InvalidIdentityPoolConfigurationException";
$fault = "client";
constructor(opts) {
super({
name: "InvalidIdentityPoolConfigurationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
}
}
export class DeveloperUserAlreadyRegisteredException extends __BaseException {
name = "DeveloperUserAlreadyRegisteredException";
$fault = "client";
constructor(opts) {
super({
name: "DeveloperUserAlreadyRegisteredException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
}
}
export class ConcurrentModificationException extends __BaseException {
name = "ConcurrentModificationException";
$fault = "client";
constructor(opts) {
super({
name: "ConcurrentModificationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
}
}

View File

@@ -0,0 +1,4 @@
import { createPaginator } from "@smithy/core";
import { CognitoIdentityClient } from "../CognitoIdentityClient";
import { ListIdentityPoolsCommand, } from "../commands/ListIdentityPoolsCommand";
export const paginateListIdentityPools = createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");

View File

@@ -0,0 +1,2 @@
export * from "./Interfaces";
export * from "./ListIdentityPoolsPaginator";

View File

@@ -0,0 +1,33 @@
import packageInfo from "../package.json";
import { Sha256 } from "@aws-crypto/sha256-browser";
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
import { invalidProvider } from "@smithy/invalid-dependency";
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { calculateBodyLength } from "@smithy/util-body-length-browser";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
export const getRuntimeConfig = (config) => {
const defaultsMode = resolveDefaultsModeConfig(config);
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
const clientSharedValues = getSharedRuntimeConfig(config);
return {
...clientSharedValues,
...config,
runtime: "browser",
defaultsMode,
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
};
};

View File

@@ -0,0 +1,49 @@
import packageInfo from "../package.json";
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
import { Hash } from "@smithy/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { calculateBodyLength } from "@smithy/util-body-length-node";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
export const getRuntimeConfig = (config) => {
emitWarningIfUnsupportedVersion(process.version);
const defaultsMode = resolveDefaultsModeConfig(config);
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
const clientSharedValues = getSharedRuntimeConfig(config);
awsCheckVersion(process.version);
const loaderConfig = {
profile: config?.profile,
logger: clientSharedValues.logger,
};
return {
...clientSharedValues,
...config,
runtime: "node",
defaultsMode,
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ??
loadNodeConfig({
...NODE_RETRY_MODE_CONFIG_OPTIONS,
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
}, config),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
};
};

View File

@@ -0,0 +1,11 @@
import { Sha256 } from "@aws-crypto/sha256-js";
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
export const getRuntimeConfig = (config) => {
const browserDefaults = getBrowserRuntimeConfig(config);
return {
...browserDefaults,
...config,
runtime: "react-native",
sha256: config?.sha256 ?? Sha256,
};
};

View File

@@ -0,0 +1,46 @@
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
import { NoAuthSigner } from "@smithy/core";
import { NoOpLogger } from "@smithy/smithy-client";
import { parseUrl } from "@smithy/url-parser";
import { fromBase64, toBase64 } from "@smithy/util-base64";
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
import { defaultCognitoIdentityHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
import { errorTypeRegistries } from "./schemas/schemas_0";
export const getRuntimeConfig = (config) => {
return {
apiVersion: "2014-06-30",
base64Decoder: config?.base64Decoder ?? fromBase64,
base64Encoder: config?.base64Encoder ?? toBase64,
disableHostPrefix: config?.disableHostPrefix ?? false,
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
extensions: config?.extensions ?? [],
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCognitoIdentityHttpAuthSchemeProvider,
httpAuthSchemes: config?.httpAuthSchemes ?? [
{
schemeId: "aws.auth#sigv4",
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
signer: new AwsSdkSigV4Signer(),
},
{
schemeId: "smithy.api#noAuth",
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
signer: new NoAuthSigner(),
},
],
logger: config?.logger ?? new NoOpLogger(),
protocol: config?.protocol ?? AwsJson1_1Protocol,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.cognitoidentity",
errorTypeRegistries,
xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
version: "2014-06-30",
serviceTarget: "AWSCognitoIdentityService",
},
serviceId: config?.serviceId ?? "Cognito Identity",
urlParser: config?.urlParser ?? parseUrl,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
utf8Encoder: config?.utf8Encoder ?? toUtf8,
};
};

View File

@@ -0,0 +1,9 @@
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
extensions.forEach((extension) => extension.configure(extensionConfiguration));
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
};

View File

@@ -0,0 +1,565 @@
const _ACF = "AllowClassicFlow";
const _AI = "AccountId";
const _AKI = "AccessKeyId";
const _ARR = "AmbiguousRoleResolution";
const _AUI = "AllowUnauthenticatedIdentities";
const _C = "Credentials";
const _CD = "CreationDate";
const _CI = "ClientId";
const _CIP = "CognitoIdentityProvider";
const _CIPI = "CreateIdentityPoolInput";
const _CIPL = "CognitoIdentityProviderList";
const _CIPo = "CognitoIdentityProviders";
const _CIPr = "CreateIdentityPool";
const _CME = "ConcurrentModificationException";
const _CRA = "CustomRoleArn";
const _Cl = "Claim";
const _DI = "DeleteIdentities";
const _DII = "DeleteIdentitiesInput";
const _DIIe = "DescribeIdentityInput";
const _DIP = "DeleteIdentityPool";
const _DIPI = "DeleteIdentityPoolInput";
const _DIPIe = "DescribeIdentityPoolInput";
const _DIPe = "DescribeIdentityPool";
const _DIR = "DeleteIdentitiesResponse";
const _DIe = "DescribeIdentity";
const _DPN = "DeveloperProviderName";
const _DUARE = "DeveloperUserAlreadyRegisteredException";
const _DUI = "DeveloperUserIdentifier";
const _DUIL = "DeveloperUserIdentifierList";
const _DUIe = "DestinationUserIdentifier";
const _E = "Expiration";
const _EC = "ErrorCode";
const _ESE = "ExternalServiceException";
const _GCFI = "GetCredentialsForIdentity";
const _GCFII = "GetCredentialsForIdentityInput";
const _GCFIR = "GetCredentialsForIdentityResponse";
const _GI = "GetId";
const _GII = "GetIdInput";
const _GIPR = "GetIdentityPoolRoles";
const _GIPRI = "GetIdentityPoolRolesInput";
const _GIPRR = "GetIdentityPoolRolesResponse";
const _GIR = "GetIdResponse";
const _GOIT = "GetOpenIdToken";
const _GOITFDI = "GetOpenIdTokenForDeveloperIdentity";
const _GOITFDII = "GetOpenIdTokenForDeveloperIdentityInput";
const _GOITFDIR = "GetOpenIdTokenForDeveloperIdentityResponse";
const _GOITI = "GetOpenIdTokenInput";
const _GOITR = "GetOpenIdTokenResponse";
const _GPTAM = "GetPrincipalTagAttributeMap";
const _GPTAMI = "GetPrincipalTagAttributeMapInput";
const _GPTAMR = "GetPrincipalTagAttributeMapResponse";
const _HD = "HideDisabled";
const _I = "Identities";
const _ID = "IdentityDescription";
const _IEE = "InternalErrorException";
const _II = "IdentityId";
const _IIPCE = "InvalidIdentityPoolConfigurationException";
const _IITD = "IdentityIdsToDelete";
const _IL = "IdentitiesList";
const _IP = "IdentityPool";
const _IPE = "InvalidParameterException";
const _IPI = "IdentityPoolId";
const _IPL = "IdentityPoolsList";
const _IPN = "IdentityPoolName";
const _IPNd = "IdentityProviderName";
const _IPSD = "IdentityPoolShortDescription";
const _IPT = "IdentityProviderToken";
const _IPTd = "IdentityPoolTags";
const _IPd = "IdentityPools";
const _L = "Logins";
const _LDI = "LookupDeveloperIdentity";
const _LDII = "LookupDeveloperIdentityInput";
const _LDIR = "LookupDeveloperIdentityResponse";
const _LEE = "LimitExceededException";
const _LI = "ListIdentities";
const _LII = "ListIdentitiesInput";
const _LIP = "ListIdentityPools";
const _LIPI = "ListIdentityPoolsInput";
const _LIPR = "ListIdentityPoolsResponse";
const _LIR = "ListIdentitiesResponse";
const _LM = "LoginsMap";
const _LMD = "LastModifiedDate";
const _LTFR = "ListTagsForResource";
const _LTFRI = "ListTagsForResourceInput";
const _LTFRR = "ListTagsForResourceResponse";
const _LTR = "LoginsToRemove";
const _MDI = "MergeDeveloperIdentities";
const _MDII = "MergeDeveloperIdentitiesInput";
const _MDIR = "MergeDeveloperIdentitiesResponse";
const _MR = "MaxResults";
const _MRL = "MappingRulesList";
const _MRa = "MappingRule";
const _MT = "MatchType";
const _NAE = "NotAuthorizedException";
const _NT = "NextToken";
const _OICPARN = "OpenIdConnectProviderARNs";
const _OIDCT = "OIDCToken";
const _PN = "ProviderName";
const _PT = "PrincipalTags";
const _R = "Roles";
const _RA = "ResourceArn";
const _RARN = "RoleARN";
const _RC = "RulesConfiguration";
const _RCE = "ResourceConflictException";
const _RCT = "RulesConfigurationType";
const _RM = "RoleMappings";
const _RMM = "RoleMappingMap";
const _RMo = "RoleMapping";
const _RNFE = "ResourceNotFoundException";
const _Ru = "Rules";
const _SIPR = "SetIdentityPoolRoles";
const _SIPRI = "SetIdentityPoolRolesInput";
const _SK = "SecretKey";
const _SKS = "SecretKeyString";
const _SLP = "SupportedLoginProviders";
const _SPARN = "SamlProviderARNs";
const _SPTAM = "SetPrincipalTagAttributeMap";
const _SPTAMI = "SetPrincipalTagAttributeMapInput";
const _SPTAMR = "SetPrincipalTagAttributeMapResponse";
const _SSTC = "ServerSideTokenCheck";
const _ST = "SessionToken";
const _SUI = "SourceUserIdentifier";
const _T = "Token";
const _TD = "TokenDuration";
const _TK = "TagKeys";
const _TMRE = "TooManyRequestsException";
const _TR = "TagResource";
const _TRI = "TagResourceInput";
const _TRR = "TagResourceResponse";
const _Ta = "Tags";
const _Ty = "Type";
const _UD = "UseDefaults";
const _UDI = "UnlinkDeveloperIdentity";
const _UDII = "UnlinkDeveloperIdentityInput";
const _UI = "UnlinkIdentity";
const _UII = "UnprocessedIdentityIds";
const _UIIL = "UnprocessedIdentityIdList";
const _UIIn = "UnlinkIdentityInput";
const _UIInp = "UnprocessedIdentityId";
const _UIP = "UpdateIdentityPool";
const _UR = "UntagResource";
const _URI = "UntagResourceInput";
const _URR = "UntagResourceResponse";
const _V = "Value";
const _c = "client";
const _e = "error";
const _hE = "httpError";
const _m = "message";
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
const _se = "server";
const n0 = "com.amazonaws.cognitoidentity";
import { TypeRegistry } from "@smithy/core/schema";
import { CognitoIdentityServiceException } from "../models/CognitoIdentityServiceException";
import { ConcurrentModificationException, DeveloperUserAlreadyRegisteredException, ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/errors";
const _s_registry = TypeRegistry.for(_s);
export var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
const n0_registry = TypeRegistry.for(n0);
export var ConcurrentModificationException$ = [-3, n0, _CME,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
export var DeveloperUserAlreadyRegisteredException$ = [-3, n0, _DUARE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(DeveloperUserAlreadyRegisteredException$, DeveloperUserAlreadyRegisteredException);
export var ExternalServiceException$ = [-3, n0, _ESE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(ExternalServiceException$, ExternalServiceException);
export var InternalErrorException$ = [-3, n0, _IEE,
{ [_e]: _se },
[_m],
[0]
];
n0_registry.registerError(InternalErrorException$, InternalErrorException);
export var InvalidIdentityPoolConfigurationException$ = [-3, n0, _IIPCE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(InvalidIdentityPoolConfigurationException$, InvalidIdentityPoolConfigurationException);
export var InvalidParameterException$ = [-3, n0, _IPE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
export var LimitExceededException$ = [-3, n0, _LEE,
{ [_e]: _c, [_hE]: 400 },
[_m],
[0]
];
n0_registry.registerError(LimitExceededException$, LimitExceededException);
export var NotAuthorizedException$ = [-3, n0, _NAE,
{ [_e]: _c, [_hE]: 403 },
[_m],
[0]
];
n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
export var ResourceConflictException$ = [-3, n0, _RCE,
{ [_e]: _c, [_hE]: 409 },
[_m],
[0]
];
n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
{ [_e]: _c, [_hE]: 404 },
[_m],
[0]
];
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
export var TooManyRequestsException$ = [-3, n0, _TMRE,
{ [_e]: _c, [_hE]: 429 },
[_m],
[0]
];
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
export const errorTypeRegistries = [
_s_registry,
n0_registry,
];
var IdentityProviderToken = [0, n0, _IPT, 8, 0];
var OIDCToken = [0, n0, _OIDCT, 8, 0];
var SecretKeyString = [0, n0, _SKS, 8, 0];
export var CognitoIdentityProvider$ = [3, n0, _CIP,
0,
[_PN, _CI, _SSTC],
[0, 0, 2]
];
export var CreateIdentityPoolInput$ = [3, n0, _CIPI,
0,
[_IPN, _AUI, _ACF, _SLP, _DPN, _OICPARN, _CIPo, _SPARN, _IPTd],
[0, 2, 2, 128 | 0, 0, 64 | 0, () => CognitoIdentityProviderList, 64 | 0, 128 | 0], 2
];
export var Credentials$ = [3, n0, _C,
0,
[_AKI, _SK, _ST, _E],
[0, [() => SecretKeyString, 0], 0, 4]
];
export var DeleteIdentitiesInput$ = [3, n0, _DII,
0,
[_IITD],
[64 | 0], 1
];
export var DeleteIdentitiesResponse$ = [3, n0, _DIR,
0,
[_UII],
[() => UnprocessedIdentityIdList]
];
export var DeleteIdentityPoolInput$ = [3, n0, _DIPI,
0,
[_IPI],
[0], 1
];
export var DescribeIdentityInput$ = [3, n0, _DIIe,
0,
[_II],
[0], 1
];
export var DescribeIdentityPoolInput$ = [3, n0, _DIPIe,
0,
[_IPI],
[0], 1
];
export var GetCredentialsForIdentityInput$ = [3, n0, _GCFII,
0,
[_II, _L, _CRA],
[0, [() => LoginsMap, 0], 0], 1
];
export var GetCredentialsForIdentityResponse$ = [3, n0, _GCFIR,
0,
[_II, _C],
[0, [() => Credentials$, 0]]
];
export var GetIdentityPoolRolesInput$ = [3, n0, _GIPRI,
0,
[_IPI],
[0], 1
];
export var GetIdentityPoolRolesResponse$ = [3, n0, _GIPRR,
0,
[_IPI, _R, _RM],
[0, 128 | 0, () => RoleMappingMap]
];
export var GetIdInput$ = [3, n0, _GII,
0,
[_IPI, _AI, _L],
[0, 0, [() => LoginsMap, 0]], 1
];
export var GetIdResponse$ = [3, n0, _GIR,
0,
[_II],
[0]
];
export var GetOpenIdTokenForDeveloperIdentityInput$ = [3, n0, _GOITFDII,
0,
[_IPI, _L, _II, _PT, _TD],
[0, [() => LoginsMap, 0], 0, 128 | 0, 1], 2
];
export var GetOpenIdTokenForDeveloperIdentityResponse$ = [3, n0, _GOITFDIR,
0,
[_II, _T],
[0, [() => OIDCToken, 0]]
];
export var GetOpenIdTokenInput$ = [3, n0, _GOITI,
0,
[_II, _L],
[0, [() => LoginsMap, 0]], 1
];
export var GetOpenIdTokenResponse$ = [3, n0, _GOITR,
0,
[_II, _T],
[0, [() => OIDCToken, 0]]
];
export var GetPrincipalTagAttributeMapInput$ = [3, n0, _GPTAMI,
0,
[_IPI, _IPNd],
[0, 0], 2
];
export var GetPrincipalTagAttributeMapResponse$ = [3, n0, _GPTAMR,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0]
];
export var IdentityDescription$ = [3, n0, _ID,
0,
[_II, _L, _CD, _LMD],
[0, 64 | 0, 4, 4]
];
export var IdentityPool$ = [3, n0, _IP,
0,
[_IPI, _IPN, _AUI, _ACF, _SLP, _DPN, _OICPARN, _CIPo, _SPARN, _IPTd],
[0, 0, 2, 2, 128 | 0, 0, 64 | 0, () => CognitoIdentityProviderList, 64 | 0, 128 | 0], 3
];
export var IdentityPoolShortDescription$ = [3, n0, _IPSD,
0,
[_IPI, _IPN],
[0, 0]
];
export var ListIdentitiesInput$ = [3, n0, _LII,
0,
[_IPI, _MR, _NT, _HD],
[0, 1, 0, 2], 2
];
export var ListIdentitiesResponse$ = [3, n0, _LIR,
0,
[_IPI, _I, _NT],
[0, () => IdentitiesList, 0]
];
export var ListIdentityPoolsInput$ = [3, n0, _LIPI,
0,
[_MR, _NT],
[1, 0], 1
];
export var ListIdentityPoolsResponse$ = [3, n0, _LIPR,
0,
[_IPd, _NT],
[() => IdentityPoolsList, 0]
];
export var ListTagsForResourceInput$ = [3, n0, _LTFRI,
0,
[_RA],
[0], 1
];
export var ListTagsForResourceResponse$ = [3, n0, _LTFRR,
0,
[_Ta],
[128 | 0]
];
export var LookupDeveloperIdentityInput$ = [3, n0, _LDII,
0,
[_IPI, _II, _DUI, _MR, _NT],
[0, 0, 0, 1, 0], 1
];
export var LookupDeveloperIdentityResponse$ = [3, n0, _LDIR,
0,
[_II, _DUIL, _NT],
[0, 64 | 0, 0]
];
export var MappingRule$ = [3, n0, _MRa,
0,
[_Cl, _MT, _V, _RARN],
[0, 0, 0, 0], 4
];
export var MergeDeveloperIdentitiesInput$ = [3, n0, _MDII,
0,
[_SUI, _DUIe, _DPN, _IPI],
[0, 0, 0, 0], 4
];
export var MergeDeveloperIdentitiesResponse$ = [3, n0, _MDIR,
0,
[_II],
[0]
];
export var RoleMapping$ = [3, n0, _RMo,
0,
[_Ty, _ARR, _RC],
[0, 0, () => RulesConfigurationType$], 1
];
export var RulesConfigurationType$ = [3, n0, _RCT,
0,
[_Ru],
[() => MappingRulesList], 1
];
export var SetIdentityPoolRolesInput$ = [3, n0, _SIPRI,
0,
[_IPI, _R, _RM],
[0, 128 | 0, () => RoleMappingMap], 2
];
export var SetPrincipalTagAttributeMapInput$ = [3, n0, _SPTAMI,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0], 2
];
export var SetPrincipalTagAttributeMapResponse$ = [3, n0, _SPTAMR,
0,
[_IPI, _IPNd, _UD, _PT],
[0, 0, 2, 128 | 0]
];
export var TagResourceInput$ = [3, n0, _TRI,
0,
[_RA, _Ta],
[0, 128 | 0], 2
];
export var TagResourceResponse$ = [3, n0, _TRR,
0,
[],
[]
];
export var UnlinkDeveloperIdentityInput$ = [3, n0, _UDII,
0,
[_II, _IPI, _DPN, _DUI],
[0, 0, 0, 0], 4
];
export var UnlinkIdentityInput$ = [3, n0, _UIIn,
0,
[_II, _L, _LTR],
[0, [() => LoginsMap, 0], 64 | 0], 3
];
export var UnprocessedIdentityId$ = [3, n0, _UIInp,
0,
[_II, _EC],
[0, 0]
];
export var UntagResourceInput$ = [3, n0, _URI,
0,
[_RA, _TK],
[0, 64 | 0], 2
];
export var UntagResourceResponse$ = [3, n0, _URR,
0,
[],
[]
];
var __Unit = "unit";
var CognitoIdentityProviderList = [1, n0, _CIPL,
0, () => CognitoIdentityProvider$
];
var DeveloperUserIdentifierList = 64 | 0;
var IdentitiesList = [1, n0, _IL,
0, () => IdentityDescription$
];
var IdentityIdList = 64 | 0;
var IdentityPoolsList = [1, n0, _IPL,
0, () => IdentityPoolShortDescription$
];
var IdentityPoolTagsListType = 64 | 0;
var LoginsList = 64 | 0;
var MappingRulesList = [1, n0, _MRL,
0, () => MappingRule$
];
var OIDCProviderList = 64 | 0;
var SAMLProviderList = 64 | 0;
var UnprocessedIdentityIdList = [1, n0, _UIIL,
0, () => UnprocessedIdentityId$
];
var IdentityPoolTagsType = 128 | 0;
var IdentityProviders = 128 | 0;
var LoginsMap = [2, n0, _LM,
0, [0,
0],
[() => IdentityProviderToken,
0]
];
var PrincipalTags = 128 | 0;
var RoleMappingMap = [2, n0, _RMM,
0, 0, () => RoleMapping$
];
var RolesMap = 128 | 0;
export var CreateIdentityPool$ = [9, n0, _CIPr,
0, () => CreateIdentityPoolInput$, () => IdentityPool$
];
export var DeleteIdentities$ = [9, n0, _DI,
0, () => DeleteIdentitiesInput$, () => DeleteIdentitiesResponse$
];
export var DeleteIdentityPool$ = [9, n0, _DIP,
0, () => DeleteIdentityPoolInput$, () => __Unit
];
export var DescribeIdentity$ = [9, n0, _DIe,
0, () => DescribeIdentityInput$, () => IdentityDescription$
];
export var DescribeIdentityPool$ = [9, n0, _DIPe,
0, () => DescribeIdentityPoolInput$, () => IdentityPool$
];
export var GetCredentialsForIdentity$ = [9, n0, _GCFI,
0, () => GetCredentialsForIdentityInput$, () => GetCredentialsForIdentityResponse$
];
export var GetId$ = [9, n0, _GI,
0, () => GetIdInput$, () => GetIdResponse$
];
export var GetIdentityPoolRoles$ = [9, n0, _GIPR,
0, () => GetIdentityPoolRolesInput$, () => GetIdentityPoolRolesResponse$
];
export var GetOpenIdToken$ = [9, n0, _GOIT,
0, () => GetOpenIdTokenInput$, () => GetOpenIdTokenResponse$
];
export var GetOpenIdTokenForDeveloperIdentity$ = [9, n0, _GOITFDI,
0, () => GetOpenIdTokenForDeveloperIdentityInput$, () => GetOpenIdTokenForDeveloperIdentityResponse$
];
export var GetPrincipalTagAttributeMap$ = [9, n0, _GPTAM,
0, () => GetPrincipalTagAttributeMapInput$, () => GetPrincipalTagAttributeMapResponse$
];
export var ListIdentities$ = [9, n0, _LI,
0, () => ListIdentitiesInput$, () => ListIdentitiesResponse$
];
export var ListIdentityPools$ = [9, n0, _LIP,
0, () => ListIdentityPoolsInput$, () => ListIdentityPoolsResponse$
];
export var ListTagsForResource$ = [9, n0, _LTFR,
0, () => ListTagsForResourceInput$, () => ListTagsForResourceResponse$
];
export var LookupDeveloperIdentity$ = [9, n0, _LDI,
0, () => LookupDeveloperIdentityInput$, () => LookupDeveloperIdentityResponse$
];
export var MergeDeveloperIdentities$ = [9, n0, _MDI,
0, () => MergeDeveloperIdentitiesInput$, () => MergeDeveloperIdentitiesResponse$
];
export var SetIdentityPoolRoles$ = [9, n0, _SIPR,
0, () => SetIdentityPoolRolesInput$, () => __Unit
];
export var SetPrincipalTagAttributeMap$ = [9, n0, _SPTAM,
0, () => SetPrincipalTagAttributeMapInput$, () => SetPrincipalTagAttributeMapResponse$
];
export var TagResource$ = [9, n0, _TR,
0, () => TagResourceInput$, () => TagResourceResponse$
];
export var UnlinkDeveloperIdentity$ = [9, n0, _UDI,
0, () => UnlinkDeveloperIdentityInput$, () => __Unit
];
export var UnlinkIdentity$ = [9, n0, _UI,
0, () => UnlinkIdentityInput$, () => __Unit
];
export var UntagResource$ = [9, n0, _UR,
0, () => UntagResourceInput$, () => UntagResourceResponse$
];
export var UpdateIdentityPool$ = [9, n0, _UIP,
0, () => IdentityPool$, () => IdentityPool$
];

View File

@@ -0,0 +1,192 @@
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
import { CognitoIdentityClient } from "./CognitoIdentityClient";
import { type CreateIdentityPoolCommandInput, type CreateIdentityPoolCommandOutput } from "./commands/CreateIdentityPoolCommand";
import { type DeleteIdentitiesCommandInput, type DeleteIdentitiesCommandOutput } from "./commands/DeleteIdentitiesCommand";
import { type DeleteIdentityPoolCommandInput, type DeleteIdentityPoolCommandOutput } from "./commands/DeleteIdentityPoolCommand";
import { type DescribeIdentityCommandInput, type DescribeIdentityCommandOutput } from "./commands/DescribeIdentityCommand";
import { type DescribeIdentityPoolCommandInput, type DescribeIdentityPoolCommandOutput } from "./commands/DescribeIdentityPoolCommand";
import { type GetCredentialsForIdentityCommandInput, type GetCredentialsForIdentityCommandOutput } from "./commands/GetCredentialsForIdentityCommand";
import { type GetIdCommandInput, type GetIdCommandOutput } from "./commands/GetIdCommand";
import { type GetIdentityPoolRolesCommandInput, type GetIdentityPoolRolesCommandOutput } from "./commands/GetIdentityPoolRolesCommand";
import { type GetOpenIdTokenCommandInput, type GetOpenIdTokenCommandOutput } from "./commands/GetOpenIdTokenCommand";
import { type GetOpenIdTokenForDeveloperIdentityCommandInput, type GetOpenIdTokenForDeveloperIdentityCommandOutput } from "./commands/GetOpenIdTokenForDeveloperIdentityCommand";
import { type GetPrincipalTagAttributeMapCommandInput, type GetPrincipalTagAttributeMapCommandOutput } from "./commands/GetPrincipalTagAttributeMapCommand";
import { type ListIdentitiesCommandInput, type ListIdentitiesCommandOutput } from "./commands/ListIdentitiesCommand";
import { type ListIdentityPoolsCommandInput, type ListIdentityPoolsCommandOutput } from "./commands/ListIdentityPoolsCommand";
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
import { type LookupDeveloperIdentityCommandInput, type LookupDeveloperIdentityCommandOutput } from "./commands/LookupDeveloperIdentityCommand";
import { type MergeDeveloperIdentitiesCommandInput, type MergeDeveloperIdentitiesCommandOutput } from "./commands/MergeDeveloperIdentitiesCommand";
import { type SetIdentityPoolRolesCommandInput, type SetIdentityPoolRolesCommandOutput } from "./commands/SetIdentityPoolRolesCommand";
import { type SetPrincipalTagAttributeMapCommandInput, type SetPrincipalTagAttributeMapCommandOutput } from "./commands/SetPrincipalTagAttributeMapCommand";
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { type UnlinkDeveloperIdentityCommandInput, type UnlinkDeveloperIdentityCommandOutput } from "./commands/UnlinkDeveloperIdentityCommand";
import { type UnlinkIdentityCommandInput, type UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { type UpdateIdentityPoolCommandInput, type UpdateIdentityPoolCommandOutput } from "./commands/UpdateIdentityPoolCommand";
export interface CognitoIdentity {
/**
* @see {@link CreateIdentityPoolCommand}
*/
createIdentityPool(args: CreateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<CreateIdentityPoolCommandOutput>;
createIdentityPool(args: CreateIdentityPoolCommandInput, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
createIdentityPool(args: CreateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
/**
* @see {@link DeleteIdentitiesCommand}
*/
deleteIdentities(args: DeleteIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentitiesCommandOutput>;
deleteIdentities(args: DeleteIdentitiesCommandInput, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
deleteIdentities(args: DeleteIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
/**
* @see {@link DeleteIdentityPoolCommand}
*/
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentityPoolCommandOutput>;
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
/**
* @see {@link DescribeIdentityCommand}
*/
describeIdentity(args: DescribeIdentityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityCommandOutput>;
describeIdentity(args: DescribeIdentityCommandInput, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
describeIdentity(args: DescribeIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
/**
* @see {@link DescribeIdentityPoolCommand}
*/
describeIdentityPool(args: DescribeIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityPoolCommandOutput>;
describeIdentityPool(args: DescribeIdentityPoolCommandInput, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
describeIdentityPool(args: DescribeIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
/**
* @see {@link GetCredentialsForIdentityCommand}
*/
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsForIdentityCommandOutput>;
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
/**
* @see {@link GetIdCommand}
*/
getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
getId(args: GetIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
/**
* @see {@link GetIdentityPoolRolesCommand}
*/
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentityPoolRolesCommandOutput>;
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
/**
* @see {@link GetOpenIdTokenCommand}
*/
getOpenIdToken(args: GetOpenIdTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenCommandOutput>;
getOpenIdToken(args: GetOpenIdTokenCommandInput, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
getOpenIdToken(args: GetOpenIdTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
/**
* @see {@link GetOpenIdTokenForDeveloperIdentityCommand}
*/
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenForDeveloperIdentityCommandOutput>;
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
/**
* @see {@link GetPrincipalTagAttributeMapCommand}
*/
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<GetPrincipalTagAttributeMapCommandOutput>;
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
/**
* @see {@link ListIdentitiesCommand}
*/
listIdentities(args: ListIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentitiesCommandOutput>;
listIdentities(args: ListIdentitiesCommandInput, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
listIdentities(args: ListIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
/**
* @see {@link ListIdentityPoolsCommand}
*/
listIdentityPools(args: ListIdentityPoolsCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentityPoolsCommandOutput>;
listIdentityPools(args: ListIdentityPoolsCommandInput, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
listIdentityPools(args: ListIdentityPoolsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
/**
* @see {@link ListTagsForResourceCommand}
*/
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
/**
* @see {@link LookupDeveloperIdentityCommand}
*/
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<LookupDeveloperIdentityCommandOutput>;
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
/**
* @see {@link MergeDeveloperIdentitiesCommand}
*/
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<MergeDeveloperIdentitiesCommandOutput>;
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
/**
* @see {@link SetIdentityPoolRolesCommand}
*/
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<SetIdentityPoolRolesCommandOutput>;
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
/**
* @see {@link SetPrincipalTagAttributeMapCommand}
*/
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<SetPrincipalTagAttributeMapCommandOutput>;
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
/**
* @see {@link TagResourceCommand}
*/
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
/**
* @see {@link UnlinkDeveloperIdentityCommand}
*/
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkDeveloperIdentityCommandOutput>;
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
/**
* @see {@link UnlinkIdentityCommand}
*/
unlinkIdentity(args: UnlinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkIdentityCommandOutput>;
unlinkIdentity(args: UnlinkIdentityCommandInput, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
unlinkIdentity(args: UnlinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
/**
* @see {@link UntagResourceCommand}
*/
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
/**
* @see {@link UpdateIdentityPoolCommand}
*/
updateIdentityPool(args: UpdateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<UpdateIdentityPoolCommandOutput>;
updateIdentityPool(args: UpdateIdentityPoolCommandInput, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
updateIdentityPool(args: UpdateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
/**
* @see {@link ListIdentityPoolsCommand}
* @param args - command input.
* @param paginationConfig - optional pagination config.
* @returns AsyncIterable of {@link ListIdentityPoolsCommandOutput}.
*/
paginateListIdentityPools(args: ListIdentityPoolsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIdentityPoolsCommandOutput>;
}
/**
* <fullname>Amazon Cognito Federated Identities</fullname>
* <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
* credentials to mobile devices and other untrusted environments. It uniquely identifies a
* device and supplies the user with a consistent identity over the lifetime of an
* application.</p>
* <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
* more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
* Cognito user pool, and you can also choose to support unauthenticated access from your app.
* Cognito delivers a unique identifier for each user and acts as an OpenID token provider
* trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
* <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
* see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
* Flow</a>.</p>
* <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
* Identities</a>.</p>
* @public
*/
export declare class CognitoIdentity extends CognitoIdentityClient implements CognitoIdentity {
}

View File

@@ -0,0 +1,224 @@
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
import type { CreateIdentityPoolCommandInput, CreateIdentityPoolCommandOutput } from "./commands/CreateIdentityPoolCommand";
import type { DeleteIdentitiesCommandInput, DeleteIdentitiesCommandOutput } from "./commands/DeleteIdentitiesCommand";
import type { DeleteIdentityPoolCommandInput, DeleteIdentityPoolCommandOutput } from "./commands/DeleteIdentityPoolCommand";
import type { DescribeIdentityCommandInput, DescribeIdentityCommandOutput } from "./commands/DescribeIdentityCommand";
import type { DescribeIdentityPoolCommandInput, DescribeIdentityPoolCommandOutput } from "./commands/DescribeIdentityPoolCommand";
import type { GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput } from "./commands/GetCredentialsForIdentityCommand";
import type { GetIdCommandInput, GetIdCommandOutput } from "./commands/GetIdCommand";
import type { GetIdentityPoolRolesCommandInput, GetIdentityPoolRolesCommandOutput } from "./commands/GetIdentityPoolRolesCommand";
import type { GetOpenIdTokenCommandInput, GetOpenIdTokenCommandOutput } from "./commands/GetOpenIdTokenCommand";
import type { GetOpenIdTokenForDeveloperIdentityCommandInput, GetOpenIdTokenForDeveloperIdentityCommandOutput } from "./commands/GetOpenIdTokenForDeveloperIdentityCommand";
import type { GetPrincipalTagAttributeMapCommandInput, GetPrincipalTagAttributeMapCommandOutput } from "./commands/GetPrincipalTagAttributeMapCommand";
import type { ListIdentitiesCommandInput, ListIdentitiesCommandOutput } from "./commands/ListIdentitiesCommand";
import type { ListIdentityPoolsCommandInput, ListIdentityPoolsCommandOutput } from "./commands/ListIdentityPoolsCommand";
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
import type { LookupDeveloperIdentityCommandInput, LookupDeveloperIdentityCommandOutput } from "./commands/LookupDeveloperIdentityCommand";
import type { MergeDeveloperIdentitiesCommandInput, MergeDeveloperIdentitiesCommandOutput } from "./commands/MergeDeveloperIdentitiesCommand";
import type { SetIdentityPoolRolesCommandInput, SetIdentityPoolRolesCommandOutput } from "./commands/SetIdentityPoolRolesCommand";
import type { SetPrincipalTagAttributeMapCommandInput, SetPrincipalTagAttributeMapCommandOutput } from "./commands/SetPrincipalTagAttributeMapCommand";
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import type { UnlinkDeveloperIdentityCommandInput, UnlinkDeveloperIdentityCommandOutput } from "./commands/UnlinkDeveloperIdentityCommand";
import type { UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import type { UpdateIdentityPoolCommandInput, UpdateIdentityPoolCommandOutput } from "./commands/UpdateIdentityPoolCommand";
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
export { __Client };
/**
* @public
*/
export type ServiceInputTypes = CreateIdentityPoolCommandInput | DeleteIdentitiesCommandInput | DeleteIdentityPoolCommandInput | DescribeIdentityCommandInput | DescribeIdentityPoolCommandInput | GetCredentialsForIdentityCommandInput | GetIdCommandInput | GetIdentityPoolRolesCommandInput | GetOpenIdTokenCommandInput | GetOpenIdTokenForDeveloperIdentityCommandInput | GetPrincipalTagAttributeMapCommandInput | ListIdentitiesCommandInput | ListIdentityPoolsCommandInput | ListTagsForResourceCommandInput | LookupDeveloperIdentityCommandInput | MergeDeveloperIdentitiesCommandInput | SetIdentityPoolRolesCommandInput | SetPrincipalTagAttributeMapCommandInput | TagResourceCommandInput | UnlinkDeveloperIdentityCommandInput | UnlinkIdentityCommandInput | UntagResourceCommandInput | UpdateIdentityPoolCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = CreateIdentityPoolCommandOutput | DeleteIdentitiesCommandOutput | DeleteIdentityPoolCommandOutput | DescribeIdentityCommandOutput | DescribeIdentityPoolCommandOutput | GetCredentialsForIdentityCommandOutput | GetIdCommandOutput | GetIdentityPoolRolesCommandOutput | GetOpenIdTokenCommandOutput | GetOpenIdTokenForDeveloperIdentityCommandOutput | GetPrincipalTagAttributeMapCommandOutput | ListIdentitiesCommandOutput | ListIdentityPoolsCommandOutput | ListTagsForResourceCommandOutput | LookupDeveloperIdentityCommandOutput | MergeDeveloperIdentitiesCommandOutput | SetIdentityPoolRolesCommandOutput | SetPrincipalTagAttributeMapCommandOutput | TagResourceCommandOutput | UnlinkDeveloperIdentityCommandOutput | UnlinkIdentityCommandOutput | UntagResourceCommandOutput | UpdateIdentityPoolCommandOutput;
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandlerUserInput;
/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
* @internal
*/
sha256?: __ChecksumConstructor | __HashConstructor;
/**
* The function that will be used to convert strings into HTTP endpoints.
* @internal
*/
urlParser?: __UrlParser;
/**
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: __BodyLengthCalculator;
/**
* A function that converts a stream into an array of bytes.
* @internal
*/
streamCollector?: __StreamCollector;
/**
* The function that will be used to convert a base64-encoded string to a byte array.
* @internal
*/
base64Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a base64-encoded string.
* @internal
*/
base64Encoder?: __Encoder;
/**
* The function that will be used to convert a UTF8-encoded string to a byte array.
* @internal
*/
utf8Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a UTF-8 encoded string.
* @internal
*/
utf8Encoder?: __Encoder;
/**
* The runtime environment.
* @internal
*/
runtime?: string;
/**
* Disable dynamically changing the endpoint of the client based on the hostPrefix
* trait of an operation.
*/
disableHostPrefix?: boolean;
/**
* Unique service identifier.
* @internal
*/
serviceId?: string;
/**
* Enables IPv6/IPv4 dualstack endpoint.
*/
useDualstackEndpoint?: boolean | __Provider<boolean>;
/**
* Enables FIPS compatible endpoints.
*/
useFipsEndpoint?: boolean | __Provider<boolean>;
/**
* The AWS region to which this client will send requests
*/
region?: string | __Provider<string>;
/**
* Setting a client profile is similar to setting a value for the
* AWS_PROFILE environment variable. Setting a profile on a client
* in code only affects the single client instance, unlike AWS_PROFILE.
*
* When set, and only for environments where an AWS configuration
* file exists, fields configurable by this file will be retrieved
* from the specified profile within that file.
* Conflicting code configuration and environment variables will
* still have higher priority.
*
* For client credential resolution that involves checking the AWS
* configuration file, the client's profile (this value) will be
* used unless a different profile is set in the credential
* provider options.
*
*/
profile?: string;
/**
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
* @internal
*/
defaultUserAgentProvider?: __Provider<__UserAgent>;
/**
* Default credentials provider; Not available in browser runtime.
* @deprecated
* @internal
*/
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;
/**
* Specifies which retry algorithm to use.
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
*
*/
retryMode?: string | __Provider<string>;
/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;
/**
* Optional extensions
*/
extensions?: RuntimeExtension[];
/**
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
}
/**
* @public
*/
export type CognitoIdentityClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
/**
* @public
*
* The configuration interface of CognitoIdentityClient class constructor that set the region, credentials and other options.
*/
export interface CognitoIdentityClientConfig extends CognitoIdentityClientConfigType {
}
/**
* @public
*/
export type CognitoIdentityClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
/**
* @public
*
* The resolved configuration interface of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
*/
export interface CognitoIdentityClientResolvedConfig extends CognitoIdentityClientResolvedConfigType {
}
/**
* <fullname>Amazon Cognito Federated Identities</fullname>
* <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
* credentials to mobile devices and other untrusted environments. It uniquely identifies a
* device and supplies the user with a consistent identity over the lifetime of an
* application.</p>
* <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
* more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
* Cognito user pool, and you can also choose to support unauthenticated access from your app.
* Cognito delivers a unique identifier for each user and acts as an OpenID token provider
* trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
* <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
* see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
* Flow</a>.</p>
* <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
* Identities</a>.</p>
* @public
*/
export declare class CognitoIdentityClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CognitoIdentityClientResolvedConfig> {
/**
* The resolved configuration of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
*/
readonly config: CognitoIdentityClientResolvedConfig;
constructor(...[configuration]: __CheckOptionalClientConfig<CognitoIdentityClientConfig>);
/**
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
*/
destroy(): void;
}

View File

@@ -0,0 +1,29 @@
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
import type { CognitoIdentityHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
/**
* @internal
*/
export interface HttpAuthExtensionConfiguration {
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
httpAuthSchemes(): HttpAuthScheme[];
setHttpAuthSchemeProvider(httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider): void;
httpAuthSchemeProvider(): CognitoIdentityHttpAuthSchemeProvider;
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
}
/**
* @internal
*/
export type HttpAuthRuntimeConfig = Partial<{
httpAuthSchemes: HttpAuthScheme[];
httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
}>;
/**
* @internal
*/
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
/**
* @internal
*/
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;

View File

@@ -0,0 +1,75 @@
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
import { type CognitoIdentityClientResolvedConfig } from "../CognitoIdentityClient";
/**
* @internal
*/
export interface CognitoIdentityHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
region?: string;
}
/**
* @internal
*/
export interface CognitoIdentityHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<CognitoIdentityClientResolvedConfig, HandlerExecutionContext, CognitoIdentityHttpAuthSchemeParameters, object> {
}
/**
* @internal
*/
export declare const defaultCognitoIdentityHttpAuthSchemeParametersProvider: (config: CognitoIdentityClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<CognitoIdentityHttpAuthSchemeParameters>;
/**
* @internal
*/
export interface CognitoIdentityHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CognitoIdentityHttpAuthSchemeParameters> {
}
/**
* @internal
*/
export declare const defaultCognitoIdentityHttpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
/**
* @public
*/
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
/**
* A comma-separated list of case-sensitive auth scheme names.
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
* @public
*/
authSchemePreference?: string[] | Provider<string[]>;
/**
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
* @internal
*/
httpAuthSchemes?: HttpAuthScheme[];
/**
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
* @internal
*/
httpAuthSchemeProvider?: CognitoIdentityHttpAuthSchemeProvider;
}
/**
* @internal
*/
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
/**
* A comma-separated list of case-sensitive auth scheme names.
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
* @public
*/
readonly authSchemePreference: Provider<string[]>;
/**
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
* @internal
*/
readonly httpAuthSchemes: HttpAuthScheme[];
/**
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
* @internal
*/
readonly httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
}
/**
* @internal
*/
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;

View File

@@ -0,0 +1,172 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { CreateIdentityPoolInput, IdentityPool } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link CreateIdentityPoolCommand}.
*/
export interface CreateIdentityPoolCommandInput extends CreateIdentityPoolInput {
}
/**
* @public
*
* The output of {@link CreateIdentityPoolCommand}.
*/
export interface CreateIdentityPoolCommandOutput extends IdentityPool, __MetadataBearer {
}
declare const CreateIdentityPoolCommand_base: {
new (input: CreateIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<CreateIdentityPoolCommandInput, CreateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: CreateIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<CreateIdentityPoolCommandInput, CreateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Creates a new identity pool. The identity pool is a store of user identity
* information that is specific to your Amazon Web Services account. The keys for
* <code>SupportedLoginProviders</code> are as follows:</p>
* <ul>
* <li>
* <p>Facebook: <code>graph.facebook.com</code>
* </p>
* </li>
* <li>
* <p>Google: <code>accounts.google.com</code>
* </p>
* </li>
* <li>
* <p>Sign in With Apple: <code>appleid.apple.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>
* <important>
* <p>If you don't provide a value for a parameter, Amazon Cognito sets it to its default value.
* </p>
* </important>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, CreateIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, CreateIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // CreateIdentityPoolInput
* IdentityPoolName: "STRING_VALUE", // required
* AllowUnauthenticatedIdentities: true || false, // required
* AllowClassicFlow: true || false,
* SupportedLoginProviders: { // IdentityProviders
* "<keys>": "STRING_VALUE",
* },
* DeveloperProviderName: "STRING_VALUE",
* OpenIdConnectProviderARNs: [ // OIDCProviderList
* "STRING_VALUE",
* ],
* CognitoIdentityProviders: [ // CognitoIdentityProviderList
* { // CognitoIdentityProvider
* ProviderName: "STRING_VALUE",
* ClientId: "STRING_VALUE",
* ServerSideTokenCheck: true || false,
* },
* ],
* SamlProviderARNs: [ // SAMLProviderList
* "STRING_VALUE",
* ],
* IdentityPoolTags: { // IdentityPoolTagsType
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new CreateIdentityPoolCommand(input);
* const response = await client.send(command);
* // { // IdentityPool
* // IdentityPoolId: "STRING_VALUE", // required
* // IdentityPoolName: "STRING_VALUE", // required
* // AllowUnauthenticatedIdentities: true || false, // required
* // AllowClassicFlow: true || false,
* // SupportedLoginProviders: { // IdentityProviders
* // "<keys>": "STRING_VALUE",
* // },
* // DeveloperProviderName: "STRING_VALUE",
* // OpenIdConnectProviderARNs: [ // OIDCProviderList
* // "STRING_VALUE",
* // ],
* // CognitoIdentityProviders: [ // CognitoIdentityProviderList
* // { // CognitoIdentityProvider
* // ProviderName: "STRING_VALUE",
* // ClientId: "STRING_VALUE",
* // ServerSideTokenCheck: true || false,
* // },
* // ],
* // SamlProviderARNs: [ // SAMLProviderList
* // "STRING_VALUE",
* // ],
* // IdentityPoolTags: { // IdentityPoolTagsType
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param CreateIdentityPoolCommandInput - {@link CreateIdentityPoolCommandInput}
* @returns {@link CreateIdentityPoolCommandOutput}
* @see {@link CreateIdentityPoolCommandInput} for command's `input` shape.
* @see {@link CreateIdentityPoolCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class CreateIdentityPoolCommand extends CreateIdentityPoolCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: CreateIdentityPoolInput;
output: IdentityPool;
};
sdk: {
input: CreateIdentityPoolCommandInput;
output: CreateIdentityPoolCommandOutput;
};
};
}

View File

@@ -0,0 +1,93 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { DeleteIdentitiesInput, DeleteIdentitiesResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DeleteIdentitiesCommand}.
*/
export interface DeleteIdentitiesCommandInput extends DeleteIdentitiesInput {
}
/**
* @public
*
* The output of {@link DeleteIdentitiesCommand}.
*/
export interface DeleteIdentitiesCommandOutput extends DeleteIdentitiesResponse, __MetadataBearer {
}
declare const DeleteIdentitiesCommand_base: {
new (input: DeleteIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIdentitiesCommandInput, DeleteIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DeleteIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIdentitiesCommandInput, DeleteIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Deletes identities from an identity pool. You can specify a list of 1-60 identities
* that you want to delete.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, DeleteIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, DeleteIdentitiesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // DeleteIdentitiesInput
* IdentityIdsToDelete: [ // IdentityIdList // required
* "STRING_VALUE",
* ],
* };
* const command = new DeleteIdentitiesCommand(input);
* const response = await client.send(command);
* // { // DeleteIdentitiesResponse
* // UnprocessedIdentityIds: [ // UnprocessedIdentityIdList
* // { // UnprocessedIdentityId
* // IdentityId: "STRING_VALUE",
* // ErrorCode: "AccessDenied" || "InternalServerError",
* // },
* // ],
* // };
*
* ```
*
* @param DeleteIdentitiesCommandInput - {@link DeleteIdentitiesCommandInput}
* @returns {@link DeleteIdentitiesCommandOutput}
* @see {@link DeleteIdentitiesCommandInput} for command's `input` shape.
* @see {@link DeleteIdentitiesCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class DeleteIdentitiesCommand extends DeleteIdentitiesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DeleteIdentitiesInput;
output: DeleteIdentitiesResponse;
};
sdk: {
input: DeleteIdentitiesCommandInput;
output: DeleteIdentitiesCommandOutput;
};
};
}

View File

@@ -0,0 +1,91 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { DeleteIdentityPoolInput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DeleteIdentityPoolCommand}.
*/
export interface DeleteIdentityPoolCommandInput extends DeleteIdentityPoolInput {
}
/**
* @public
*
* The output of {@link DeleteIdentityPoolCommand}.
*/
export interface DeleteIdentityPoolCommandOutput extends __MetadataBearer {
}
declare const DeleteIdentityPoolCommand_base: {
new (input: DeleteIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIdentityPoolCommandInput, DeleteIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DeleteIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIdentityPoolCommandInput, DeleteIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Deletes an identity pool. Once a pool is deleted, users will not be able to
* authenticate with the pool.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, DeleteIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, DeleteIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // DeleteIdentityPoolInput
* IdentityPoolId: "STRING_VALUE", // required
* };
* const command = new DeleteIdentityPoolCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param DeleteIdentityPoolCommandInput - {@link DeleteIdentityPoolCommandInput}
* @returns {@link DeleteIdentityPoolCommandOutput}
* @see {@link DeleteIdentityPoolCommandInput} for command's `input` shape.
* @see {@link DeleteIdentityPoolCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class DeleteIdentityPoolCommand extends DeleteIdentityPoolCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DeleteIdentityPoolInput;
output: {};
};
sdk: {
input: DeleteIdentityPoolCommandInput;
output: DeleteIdentityPoolCommandOutput;
};
};
}

View File

@@ -0,0 +1,98 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { DescribeIdentityInput, IdentityDescription } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeIdentityCommand}.
*/
export interface DescribeIdentityCommandInput extends DescribeIdentityInput {
}
/**
* @public
*
* The output of {@link DescribeIdentityCommand}.
*/
export interface DescribeIdentityCommandOutput extends IdentityDescription, __MetadataBearer {
}
declare const DescribeIdentityCommand_base: {
new (input: DescribeIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityCommandInput, DescribeIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DescribeIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityCommandInput, DescribeIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns metadata related to the given identity, including when the identity was
* created and any associated linked logins.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, DescribeIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, DescribeIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // DescribeIdentityInput
* IdentityId: "STRING_VALUE", // required
* };
* const command = new DescribeIdentityCommand(input);
* const response = await client.send(command);
* // { // IdentityDescription
* // IdentityId: "STRING_VALUE",
* // Logins: [ // LoginsList
* // "STRING_VALUE",
* // ],
* // CreationDate: new Date("TIMESTAMP"),
* // LastModifiedDate: new Date("TIMESTAMP"),
* // };
*
* ```
*
* @param DescribeIdentityCommandInput - {@link DescribeIdentityCommandInput}
* @returns {@link DescribeIdentityCommandOutput}
* @see {@link DescribeIdentityCommandInput} for command's `input` shape.
* @see {@link DescribeIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class DescribeIdentityCommand extends DescribeIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeIdentityInput;
output: IdentityDescription;
};
sdk: {
input: DescribeIdentityCommandInput;
output: DescribeIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,116 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { DescribeIdentityPoolInput, IdentityPool } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeIdentityPoolCommand}.
*/
export interface DescribeIdentityPoolCommandInput extends DescribeIdentityPoolInput {
}
/**
* @public
*
* The output of {@link DescribeIdentityPoolCommand}.
*/
export interface DescribeIdentityPoolCommandOutput extends IdentityPool, __MetadataBearer {
}
declare const DescribeIdentityPoolCommand_base: {
new (input: DescribeIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityPoolCommandInput, DescribeIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DescribeIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeIdentityPoolCommandInput, DescribeIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Gets details about a particular identity pool, including the pool name, ID
* description, creation date, and current number of users.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, DescribeIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, DescribeIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // DescribeIdentityPoolInput
* IdentityPoolId: "STRING_VALUE", // required
* };
* const command = new DescribeIdentityPoolCommand(input);
* const response = await client.send(command);
* // { // IdentityPool
* // IdentityPoolId: "STRING_VALUE", // required
* // IdentityPoolName: "STRING_VALUE", // required
* // AllowUnauthenticatedIdentities: true || false, // required
* // AllowClassicFlow: true || false,
* // SupportedLoginProviders: { // IdentityProviders
* // "<keys>": "STRING_VALUE",
* // },
* // DeveloperProviderName: "STRING_VALUE",
* // OpenIdConnectProviderARNs: [ // OIDCProviderList
* // "STRING_VALUE",
* // ],
* // CognitoIdentityProviders: [ // CognitoIdentityProviderList
* // { // CognitoIdentityProvider
* // ProviderName: "STRING_VALUE",
* // ClientId: "STRING_VALUE",
* // ServerSideTokenCheck: true || false,
* // },
* // ],
* // SamlProviderARNs: [ // SAMLProviderList
* // "STRING_VALUE",
* // ],
* // IdentityPoolTags: { // IdentityPoolTagsType
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param DescribeIdentityPoolCommandInput - {@link DescribeIdentityPoolCommandInput}
* @returns {@link DescribeIdentityPoolCommandOutput}
* @see {@link DescribeIdentityPoolCommandInput} for command's `input` shape.
* @see {@link DescribeIdentityPoolCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class DescribeIdentityPoolCommand extends DescribeIdentityPoolCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeIdentityPoolInput;
output: IdentityPool;
};
sdk: {
input: DescribeIdentityPoolCommandInput;
output: DescribeIdentityPoolCommandOutput;
};
};
}

View File

@@ -0,0 +1,120 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetCredentialsForIdentityInput, GetCredentialsForIdentityResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetCredentialsForIdentityCommand}.
*/
export interface GetCredentialsForIdentityCommandInput extends GetCredentialsForIdentityInput {
}
/**
* @public
*
* The output of {@link GetCredentialsForIdentityCommand}.
*/
export interface GetCredentialsForIdentityCommandOutput extends GetCredentialsForIdentityResponse, __MetadataBearer {
}
declare const GetCredentialsForIdentityCommand_base: {
new (input: GetCredentialsForIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetCredentialsForIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Returns credentials for the provided identity ID. Any provided logins will be
* validated against supported login providers. If the token is for
* <code>cognito-identity.amazonaws.com</code>, it will be passed through to Security Token Service with the appropriate role for the token.</p>
* <p>This is a public API. You do not need any credentials to call this API.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetCredentialsForIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetCredentialsForIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetCredentialsForIdentityInput
* IdentityId: "STRING_VALUE", // required
* Logins: { // LoginsMap
* "<keys>": "STRING_VALUE",
* },
* CustomRoleArn: "STRING_VALUE",
* };
* const command = new GetCredentialsForIdentityCommand(input);
* const response = await client.send(command);
* // { // GetCredentialsForIdentityResponse
* // IdentityId: "STRING_VALUE",
* // Credentials: { // Credentials
* // AccessKeyId: "STRING_VALUE",
* // SecretKey: "STRING_VALUE",
* // SessionToken: "STRING_VALUE",
* // Expiration: new Date("TIMESTAMP"),
* // },
* // };
*
* ```
*
* @param GetCredentialsForIdentityCommandInput - {@link GetCredentialsForIdentityCommandInput}
* @returns {@link GetCredentialsForIdentityCommandOutput}
* @see {@link GetCredentialsForIdentityCommandInput} for command's `input` shape.
* @see {@link GetCredentialsForIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ExternalServiceException} (client fault)
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
* responding</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidIdentityPoolConfigurationException} (client fault)
* <p>If you provided authentication information in the request, the identity pool has no
* authenticated role configured, or STS returned an error response to the
* request to assume the authenticated role from the identity pool. If you provided no
* authentication information in the request, the identity pool has no unauthenticated role
* configured, or STS returned an error response to the request to assume the
* unauthenticated role from the identity pool.</p>
* <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetCredentialsForIdentityCommand extends GetCredentialsForIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetCredentialsForIdentityInput;
output: GetCredentialsForIdentityResponse;
};
sdk: {
input: GetCredentialsForIdentityCommandInput;
output: GetCredentialsForIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,107 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetIdInput, GetIdResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetIdCommand}.
*/
export interface GetIdCommandInput extends GetIdInput {
}
/**
* @public
*
* The output of {@link GetIdCommand}.
*/
export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer {
}
declare const GetIdCommand_base: {
new (input: GetIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Generates (or retrieves) IdentityID. Supplying multiple logins will create an
* implicit linked account.</p>
* <p>This is a public API. You do not need any credentials to call this API.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetIdCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetIdCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetIdInput
* AccountId: "STRING_VALUE",
* IdentityPoolId: "STRING_VALUE", // required
* Logins: { // LoginsMap
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new GetIdCommand(input);
* const response = await client.send(command);
* // { // GetIdResponse
* // IdentityId: "STRING_VALUE",
* // };
*
* ```
*
* @param GetIdCommandInput - {@link GetIdCommandInput}
* @returns {@link GetIdCommandOutput}
* @see {@link GetIdCommandInput} for command's `input` shape.
* @see {@link GetIdCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ExternalServiceException} (client fault)
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
* responding</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetIdCommand extends GetIdCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetIdInput;
output: GetIdResponse;
};
sdk: {
input: GetIdCommandInput;
output: GetIdCommandOutput;
};
};
}

View File

@@ -0,0 +1,115 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetIdentityPoolRolesInput, GetIdentityPoolRolesResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetIdentityPoolRolesCommand}.
*/
export interface GetIdentityPoolRolesCommandInput extends GetIdentityPoolRolesInput {
}
/**
* @public
*
* The output of {@link GetIdentityPoolRolesCommand}.
*/
export interface GetIdentityPoolRolesCommandOutput extends GetIdentityPoolRolesResponse, __MetadataBearer {
}
declare const GetIdentityPoolRolesCommand_base: {
new (input: GetIdentityPoolRolesCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdentityPoolRolesCommandInput, GetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetIdentityPoolRolesCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdentityPoolRolesCommandInput, GetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Gets the roles for an identity pool.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetIdentityPoolRolesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetIdentityPoolRolesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetIdentityPoolRolesInput
* IdentityPoolId: "STRING_VALUE", // required
* };
* const command = new GetIdentityPoolRolesCommand(input);
* const response = await client.send(command);
* // { // GetIdentityPoolRolesResponse
* // IdentityPoolId: "STRING_VALUE",
* // Roles: { // RolesMap
* // "<keys>": "STRING_VALUE",
* // },
* // RoleMappings: { // RoleMappingMap
* // "<keys>": { // RoleMapping
* // Type: "Token" || "Rules", // required
* // AmbiguousRoleResolution: "AuthenticatedRole" || "Deny",
* // RulesConfiguration: { // RulesConfigurationType
* // Rules: [ // MappingRulesList // required
* // { // MappingRule
* // Claim: "STRING_VALUE", // required
* // MatchType: "Equals" || "Contains" || "StartsWith" || "NotEqual", // required
* // Value: "STRING_VALUE", // required
* // RoleARN: "STRING_VALUE", // required
* // },
* // ],
* // },
* // },
* // },
* // };
*
* ```
*
* @param GetIdentityPoolRolesCommandInput - {@link GetIdentityPoolRolesCommandInput}
* @returns {@link GetIdentityPoolRolesCommandOutput}
* @see {@link GetIdentityPoolRolesCommandInput} for command's `input` shape.
* @see {@link GetIdentityPoolRolesCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetIdentityPoolRolesCommand extends GetIdentityPoolRolesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetIdentityPoolRolesInput;
output: GetIdentityPoolRolesResponse;
};
sdk: {
input: GetIdentityPoolRolesCommandInput;
output: GetIdentityPoolRolesCommandOutput;
};
};
}

View File

@@ -0,0 +1,106 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetOpenIdTokenInput, GetOpenIdTokenResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetOpenIdTokenCommand}.
*/
export interface GetOpenIdTokenCommandInput extends GetOpenIdTokenInput {
}
/**
* @public
*
* The output of {@link GetOpenIdTokenCommand}.
*/
export interface GetOpenIdTokenCommandOutput extends GetOpenIdTokenResponse, __MetadataBearer {
}
declare const GetOpenIdTokenCommand_base: {
new (input: GetOpenIdTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetOpenIdTokenCommandInput, GetOpenIdTokenCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetOpenIdTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetOpenIdTokenCommandInput, GetOpenIdTokenCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by
* <a>GetId</a>. You can optionally add additional logins for the identity.
* Supplying multiple logins creates an implicit link.</p>
* <p>The OpenID token is valid for 10 minutes.</p>
* <p>This is a public API. You do not need any credentials to call this API.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetOpenIdTokenCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetOpenIdTokenCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetOpenIdTokenInput
* IdentityId: "STRING_VALUE", // required
* Logins: { // LoginsMap
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new GetOpenIdTokenCommand(input);
* const response = await client.send(command);
* // { // GetOpenIdTokenResponse
* // IdentityId: "STRING_VALUE",
* // Token: "STRING_VALUE",
* // };
*
* ```
*
* @param GetOpenIdTokenCommandInput - {@link GetOpenIdTokenCommandInput}
* @returns {@link GetOpenIdTokenCommandOutput}
* @see {@link GetOpenIdTokenCommandInput} for command's `input` shape.
* @see {@link GetOpenIdTokenCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ExternalServiceException} (client fault)
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
* responding</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetOpenIdTokenCommand extends GetOpenIdTokenCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetOpenIdTokenInput;
output: GetOpenIdTokenResponse;
};
sdk: {
input: GetOpenIdTokenCommandInput;
output: GetOpenIdTokenCommandOutput;
};
};
}

View File

@@ -0,0 +1,120 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetOpenIdTokenForDeveloperIdentityCommand}.
*/
export interface GetOpenIdTokenForDeveloperIdentityCommandInput extends GetOpenIdTokenForDeveloperIdentityInput {
}
/**
* @public
*
* The output of {@link GetOpenIdTokenForDeveloperIdentityCommand}.
*/
export interface GetOpenIdTokenForDeveloperIdentityCommandOutput extends GetOpenIdTokenForDeveloperIdentityResponse, __MetadataBearer {
}
declare const GetOpenIdTokenForDeveloperIdentityCommand_base: {
new (input: GetOpenIdTokenForDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetOpenIdTokenForDeveloperIdentityCommandInput, GetOpenIdTokenForDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetOpenIdTokenForDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetOpenIdTokenForDeveloperIdentityCommandInput, GetOpenIdTokenForDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Registers (or retrieves) a Cognito <code>IdentityId</code> and an OpenID Connect
* token for a user authenticated by your backend authentication process. Supplying multiple
* logins will create an implicit linked account. You can only specify one developer provider
* as part of the <code>Logins</code> map, which is linked to the identity pool. The developer
* provider is the "domain" by which Cognito will refer to your users.</p>
* <p>You can use <code>GetOpenIdTokenForDeveloperIdentity</code> to create a new identity
* and to link new logins (that is, user credentials issued by a public provider or developer
* provider) to an existing identity. When you want to create a new identity, the
* <code>IdentityId</code> should be null. When you want to associate a new login with an
* existing authenticated/unauthenticated identity, you can do so by providing the existing
* <code>IdentityId</code>. This API will create the identity in the specified
* <code>IdentityPoolId</code>.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetOpenIdTokenForDeveloperIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetOpenIdTokenForDeveloperIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetOpenIdTokenForDeveloperIdentityInput
* IdentityPoolId: "STRING_VALUE", // required
* IdentityId: "STRING_VALUE",
* Logins: { // LoginsMap // required
* "<keys>": "STRING_VALUE",
* },
* PrincipalTags: { // PrincipalTags
* "<keys>": "STRING_VALUE",
* },
* TokenDuration: Number("long"),
* };
* const command = new GetOpenIdTokenForDeveloperIdentityCommand(input);
* const response = await client.send(command);
* // { // GetOpenIdTokenForDeveloperIdentityResponse
* // IdentityId: "STRING_VALUE",
* // Token: "STRING_VALUE",
* // };
*
* ```
*
* @param GetOpenIdTokenForDeveloperIdentityCommandInput - {@link GetOpenIdTokenForDeveloperIdentityCommandInput}
* @returns {@link GetOpenIdTokenForDeveloperIdentityCommandOutput}
* @see {@link GetOpenIdTokenForDeveloperIdentityCommandInput} for command's `input` shape.
* @see {@link GetOpenIdTokenForDeveloperIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link DeveloperUserAlreadyRegisteredException} (client fault)
* <p>The provided developer user identifier is already registered with Cognito under a
* different identity ID.</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetOpenIdTokenForDeveloperIdentityCommand extends GetOpenIdTokenForDeveloperIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetOpenIdTokenForDeveloperIdentityInput;
output: GetOpenIdTokenForDeveloperIdentityResponse;
};
sdk: {
input: GetOpenIdTokenForDeveloperIdentityCommandInput;
output: GetOpenIdTokenForDeveloperIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,97 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { GetPrincipalTagAttributeMapInput, GetPrincipalTagAttributeMapResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetPrincipalTagAttributeMapCommand}.
*/
export interface GetPrincipalTagAttributeMapCommandInput extends GetPrincipalTagAttributeMapInput {
}
/**
* @public
*
* The output of {@link GetPrincipalTagAttributeMapCommand}.
*/
export interface GetPrincipalTagAttributeMapCommandOutput extends GetPrincipalTagAttributeMapResponse, __MetadataBearer {
}
declare const GetPrincipalTagAttributeMapCommand_base: {
new (input: GetPrincipalTagAttributeMapCommandInput): import("@smithy/smithy-client").CommandImpl<GetPrincipalTagAttributeMapCommandInput, GetPrincipalTagAttributeMapCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: GetPrincipalTagAttributeMapCommandInput): import("@smithy/smithy-client").CommandImpl<GetPrincipalTagAttributeMapCommandInput, GetPrincipalTagAttributeMapCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Use <code>GetPrincipalTagAttributeMap</code> to list all mappings between
* <code>PrincipalTags</code> and user attributes.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, GetPrincipalTagAttributeMapCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, GetPrincipalTagAttributeMapCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // GetPrincipalTagAttributeMapInput
* IdentityPoolId: "STRING_VALUE", // required
* IdentityProviderName: "STRING_VALUE", // required
* };
* const command = new GetPrincipalTagAttributeMapCommand(input);
* const response = await client.send(command);
* // { // GetPrincipalTagAttributeMapResponse
* // IdentityPoolId: "STRING_VALUE",
* // IdentityProviderName: "STRING_VALUE",
* // UseDefaults: true || false,
* // PrincipalTags: { // PrincipalTags
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param GetPrincipalTagAttributeMapCommandInput - {@link GetPrincipalTagAttributeMapCommandInput}
* @returns {@link GetPrincipalTagAttributeMapCommandOutput}
* @see {@link GetPrincipalTagAttributeMapCommandInput} for command's `input` shape.
* @see {@link GetPrincipalTagAttributeMapCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class GetPrincipalTagAttributeMapCommand extends GetPrincipalTagAttributeMapCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetPrincipalTagAttributeMapInput;
output: GetPrincipalTagAttributeMapResponse;
};
sdk: {
input: GetPrincipalTagAttributeMapCommandInput;
output: GetPrincipalTagAttributeMapCommandOutput;
};
};
}

View File

@@ -0,0 +1,106 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { ListIdentitiesInput, ListIdentitiesResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListIdentitiesCommand}.
*/
export interface ListIdentitiesCommandInput extends ListIdentitiesInput {
}
/**
* @public
*
* The output of {@link ListIdentitiesCommand}.
*/
export interface ListIdentitiesCommandOutput extends ListIdentitiesResponse, __MetadataBearer {
}
declare const ListIdentitiesCommand_base: {
new (input: ListIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<ListIdentitiesCommandInput, ListIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: ListIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<ListIdentitiesCommandInput, ListIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Lists the identities in an identity pool.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, ListIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, ListIdentitiesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // ListIdentitiesInput
* IdentityPoolId: "STRING_VALUE", // required
* MaxResults: Number("int"), // required
* NextToken: "STRING_VALUE",
* HideDisabled: true || false,
* };
* const command = new ListIdentitiesCommand(input);
* const response = await client.send(command);
* // { // ListIdentitiesResponse
* // IdentityPoolId: "STRING_VALUE",
* // Identities: [ // IdentitiesList
* // { // IdentityDescription
* // IdentityId: "STRING_VALUE",
* // Logins: [ // LoginsList
* // "STRING_VALUE",
* // ],
* // CreationDate: new Date("TIMESTAMP"),
* // LastModifiedDate: new Date("TIMESTAMP"),
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param ListIdentitiesCommandInput - {@link ListIdentitiesCommandInput}
* @returns {@link ListIdentitiesCommandOutput}
* @see {@link ListIdentitiesCommandInput} for command's `input` shape.
* @see {@link ListIdentitiesCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class ListIdentitiesCommand extends ListIdentitiesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListIdentitiesInput;
output: ListIdentitiesResponse;
};
sdk: {
input: ListIdentitiesCommandInput;
output: ListIdentitiesCommandOutput;
};
};
}

View File

@@ -0,0 +1,99 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { ListIdentityPoolsInput, ListIdentityPoolsResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListIdentityPoolsCommand}.
*/
export interface ListIdentityPoolsCommandInput extends ListIdentityPoolsInput {
}
/**
* @public
*
* The output of {@link ListIdentityPoolsCommand}.
*/
export interface ListIdentityPoolsCommandOutput extends ListIdentityPoolsResponse, __MetadataBearer {
}
declare const ListIdentityPoolsCommand_base: {
new (input: ListIdentityPoolsCommandInput): import("@smithy/smithy-client").CommandImpl<ListIdentityPoolsCommandInput, ListIdentityPoolsCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: ListIdentityPoolsCommandInput): import("@smithy/smithy-client").CommandImpl<ListIdentityPoolsCommandInput, ListIdentityPoolsCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Lists all of the Cognito identity pools registered for your account.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, ListIdentityPoolsCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, ListIdentityPoolsCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // ListIdentityPoolsInput
* MaxResults: Number("int"), // required
* NextToken: "STRING_VALUE",
* };
* const command = new ListIdentityPoolsCommand(input);
* const response = await client.send(command);
* // { // ListIdentityPoolsResponse
* // IdentityPools: [ // IdentityPoolsList
* // { // IdentityPoolShortDescription
* // IdentityPoolId: "STRING_VALUE",
* // IdentityPoolName: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param ListIdentityPoolsCommandInput - {@link ListIdentityPoolsCommandInput}
* @returns {@link ListIdentityPoolsCommandOutput}
* @see {@link ListIdentityPoolsCommandInput} for command's `input` shape.
* @see {@link ListIdentityPoolsCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class ListIdentityPoolsCommand extends ListIdentityPoolsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListIdentityPoolsInput;
output: ListIdentityPoolsResponse;
};
sdk: {
input: ListIdentityPoolsCommandInput;
output: ListIdentityPoolsCommandOutput;
};
};
}

View File

@@ -0,0 +1,95 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { ListTagsForResourceInput, ListTagsForResourceResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListTagsForResourceCommand}.
*/
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
}
/**
* @public
*
* The output of {@link ListTagsForResourceCommand}.
*/
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
}
declare const ListTagsForResourceCommand_base: {
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Lists the tags that are assigned to an Amazon Cognito identity pool.</p>
* <p>A tag is a label that you can apply to identity pools to categorize and manage them in
* different ways, such as by purpose, owner, environment, or other criteria.</p>
* <p>You can use this action up to 10 times per second, per account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, ListTagsForResourceCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // ListTagsForResourceInput
* ResourceArn: "STRING_VALUE", // required
* };
* const command = new ListTagsForResourceCommand(input);
* const response = await client.send(command);
* // { // ListTagsForResourceResponse
* // Tags: { // IdentityPoolTagsType
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
* @returns {@link ListTagsForResourceCommandOutput}
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListTagsForResourceInput;
output: ListTagsForResourceResponse;
};
sdk: {
input: ListTagsForResourceCommandInput;
output: ListTagsForResourceCommandOutput;
};
};
}

View File

@@ -0,0 +1,119 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { LookupDeveloperIdentityInput, LookupDeveloperIdentityResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link LookupDeveloperIdentityCommand}.
*/
export interface LookupDeveloperIdentityCommandInput extends LookupDeveloperIdentityInput {
}
/**
* @public
*
* The output of {@link LookupDeveloperIdentityCommand}.
*/
export interface LookupDeveloperIdentityCommandOutput extends LookupDeveloperIdentityResponse, __MetadataBearer {
}
declare const LookupDeveloperIdentityCommand_base: {
new (input: LookupDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<LookupDeveloperIdentityCommandInput, LookupDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: LookupDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<LookupDeveloperIdentityCommandInput, LookupDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Retrieves the <code>IdentityID</code> associated with a
* <code>DeveloperUserIdentifier</code> or the list of <code>DeveloperUserIdentifier</code>
* values associated with an <code>IdentityId</code> for an existing identity. Either
* <code>IdentityID</code> or <code>DeveloperUserIdentifier</code> must not be null. If you
* supply only one of these values, the other value will be searched in the database and
* returned as a part of the response. If you supply both,
* <code>DeveloperUserIdentifier</code> will be matched against <code>IdentityID</code>. If
* the values are verified against the database, the response returns both values and is the
* same as the request. Otherwise, a <code>ResourceConflictException</code> is
* thrown.</p>
* <p>
* <code>LookupDeveloperIdentity</code> is intended for low-throughput control plane
* operations: for example, to enable customer service to locate an identity ID by username.
* If you are using it for higher-volume operations such as user authentication, your requests
* are likely to be throttled. <a>GetOpenIdTokenForDeveloperIdentity</a> is a
* better option for higher-volume operations for user authentication.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, LookupDeveloperIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, LookupDeveloperIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // LookupDeveloperIdentityInput
* IdentityPoolId: "STRING_VALUE", // required
* IdentityId: "STRING_VALUE",
* DeveloperUserIdentifier: "STRING_VALUE",
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new LookupDeveloperIdentityCommand(input);
* const response = await client.send(command);
* // { // LookupDeveloperIdentityResponse
* // IdentityId: "STRING_VALUE",
* // DeveloperUserIdentifierList: [ // DeveloperUserIdentifierList
* // "STRING_VALUE",
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param LookupDeveloperIdentityCommandInput - {@link LookupDeveloperIdentityCommandInput}
* @returns {@link LookupDeveloperIdentityCommandOutput}
* @see {@link LookupDeveloperIdentityCommandInput} for command's `input` shape.
* @see {@link LookupDeveloperIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class LookupDeveloperIdentityCommand extends LookupDeveloperIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: LookupDeveloperIdentityInput;
output: LookupDeveloperIdentityResponse;
};
sdk: {
input: LookupDeveloperIdentityCommandInput;
output: LookupDeveloperIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,110 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { MergeDeveloperIdentitiesInput, MergeDeveloperIdentitiesResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link MergeDeveloperIdentitiesCommand}.
*/
export interface MergeDeveloperIdentitiesCommandInput extends MergeDeveloperIdentitiesInput {
}
/**
* @public
*
* The output of {@link MergeDeveloperIdentitiesCommand}.
*/
export interface MergeDeveloperIdentitiesCommandOutput extends MergeDeveloperIdentitiesResponse, __MetadataBearer {
}
declare const MergeDeveloperIdentitiesCommand_base: {
new (input: MergeDeveloperIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<MergeDeveloperIdentitiesCommandInput, MergeDeveloperIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: MergeDeveloperIdentitiesCommandInput): import("@smithy/smithy-client").CommandImpl<MergeDeveloperIdentitiesCommandInput, MergeDeveloperIdentitiesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Merges two users having different <code>IdentityId</code>s, existing in the same
* identity pool, and identified by the same developer provider. You can use this action to
* request that discrete users be merged and identified as a single user in the Cognito
* environment. Cognito associates the given source user (<code>SourceUserIdentifier</code>)
* with the <code>IdentityId</code> of the <code>DestinationUserIdentifier</code>. Only
* developer-authenticated users can be merged. If the users to be merged are associated with
* the same public provider, but as two different users, an exception will be
* thrown.</p>
* <p>The number of linked logins is limited to 20. So, the number of linked logins for the
* source user, <code>SourceUserIdentifier</code>, and the destination user,
* <code>DestinationUserIdentifier</code>, together should not be larger than 20.
* Otherwise, an exception will be thrown.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, MergeDeveloperIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, MergeDeveloperIdentitiesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // MergeDeveloperIdentitiesInput
* SourceUserIdentifier: "STRING_VALUE", // required
* DestinationUserIdentifier: "STRING_VALUE", // required
* DeveloperProviderName: "STRING_VALUE", // required
* IdentityPoolId: "STRING_VALUE", // required
* };
* const command = new MergeDeveloperIdentitiesCommand(input);
* const response = await client.send(command);
* // { // MergeDeveloperIdentitiesResponse
* // IdentityId: "STRING_VALUE",
* // };
*
* ```
*
* @param MergeDeveloperIdentitiesCommandInput - {@link MergeDeveloperIdentitiesCommandInput}
* @returns {@link MergeDeveloperIdentitiesCommandOutput}
* @see {@link MergeDeveloperIdentitiesCommandInput} for command's `input` shape.
* @see {@link MergeDeveloperIdentitiesCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class MergeDeveloperIdentitiesCommand extends MergeDeveloperIdentitiesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: MergeDeveloperIdentitiesInput;
output: MergeDeveloperIdentitiesResponse;
};
sdk: {
input: MergeDeveloperIdentitiesCommandInput;
output: MergeDeveloperIdentitiesCommandOutput;
};
};
}

View File

@@ -0,0 +1,116 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { SetIdentityPoolRolesInput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link SetIdentityPoolRolesCommand}.
*/
export interface SetIdentityPoolRolesCommandInput extends SetIdentityPoolRolesInput {
}
/**
* @public
*
* The output of {@link SetIdentityPoolRolesCommand}.
*/
export interface SetIdentityPoolRolesCommandOutput extends __MetadataBearer {
}
declare const SetIdentityPoolRolesCommand_base: {
new (input: SetIdentityPoolRolesCommandInput): import("@smithy/smithy-client").CommandImpl<SetIdentityPoolRolesCommandInput, SetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: SetIdentityPoolRolesCommandInput): import("@smithy/smithy-client").CommandImpl<SetIdentityPoolRolesCommandInput, SetIdentityPoolRolesCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Sets the roles for an identity pool. These roles are used when making calls to <a>GetCredentialsForIdentity</a> action.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, SetIdentityPoolRolesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, SetIdentityPoolRolesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // SetIdentityPoolRolesInput
* IdentityPoolId: "STRING_VALUE", // required
* Roles: { // RolesMap // required
* "<keys>": "STRING_VALUE",
* },
* RoleMappings: { // RoleMappingMap
* "<keys>": { // RoleMapping
* Type: "Token" || "Rules", // required
* AmbiguousRoleResolution: "AuthenticatedRole" || "Deny",
* RulesConfiguration: { // RulesConfigurationType
* Rules: [ // MappingRulesList // required
* { // MappingRule
* Claim: "STRING_VALUE", // required
* MatchType: "Equals" || "Contains" || "StartsWith" || "NotEqual", // required
* Value: "STRING_VALUE", // required
* RoleARN: "STRING_VALUE", // required
* },
* ],
* },
* },
* },
* };
* const command = new SetIdentityPoolRolesCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param SetIdentityPoolRolesCommandInput - {@link SetIdentityPoolRolesCommandInput}
* @returns {@link SetIdentityPoolRolesCommandOutput}
* @see {@link SetIdentityPoolRolesCommandInput} for command's `input` shape.
* @see {@link SetIdentityPoolRolesCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Thrown if there are parallel requests to modify a resource.</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class SetIdentityPoolRolesCommand extends SetIdentityPoolRolesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: SetIdentityPoolRolesInput;
output: {};
};
sdk: {
input: SetIdentityPoolRolesCommandInput;
output: SetIdentityPoolRolesCommandOutput;
};
};
}

View File

@@ -0,0 +1,101 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { SetPrincipalTagAttributeMapInput, SetPrincipalTagAttributeMapResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link SetPrincipalTagAttributeMapCommand}.
*/
export interface SetPrincipalTagAttributeMapCommandInput extends SetPrincipalTagAttributeMapInput {
}
/**
* @public
*
* The output of {@link SetPrincipalTagAttributeMapCommand}.
*/
export interface SetPrincipalTagAttributeMapCommandOutput extends SetPrincipalTagAttributeMapResponse, __MetadataBearer {
}
declare const SetPrincipalTagAttributeMapCommand_base: {
new (input: SetPrincipalTagAttributeMapCommandInput): import("@smithy/smithy-client").CommandImpl<SetPrincipalTagAttributeMapCommandInput, SetPrincipalTagAttributeMapCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: SetPrincipalTagAttributeMapCommandInput): import("@smithy/smithy-client").CommandImpl<SetPrincipalTagAttributeMapCommandInput, SetPrincipalTagAttributeMapCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>You can use this operation to use default (username and clientID) attribute or custom
* attribute mappings.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, SetPrincipalTagAttributeMapCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, SetPrincipalTagAttributeMapCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // SetPrincipalTagAttributeMapInput
* IdentityPoolId: "STRING_VALUE", // required
* IdentityProviderName: "STRING_VALUE", // required
* UseDefaults: true || false,
* PrincipalTags: { // PrincipalTags
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new SetPrincipalTagAttributeMapCommand(input);
* const response = await client.send(command);
* // { // SetPrincipalTagAttributeMapResponse
* // IdentityPoolId: "STRING_VALUE",
* // IdentityProviderName: "STRING_VALUE",
* // UseDefaults: true || false,
* // PrincipalTags: { // PrincipalTags
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param SetPrincipalTagAttributeMapCommandInput - {@link SetPrincipalTagAttributeMapCommandInput}
* @returns {@link SetPrincipalTagAttributeMapCommandOutput}
* @see {@link SetPrincipalTagAttributeMapCommandInput} for command's `input` shape.
* @see {@link SetPrincipalTagAttributeMapCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class SetPrincipalTagAttributeMapCommand extends SetPrincipalTagAttributeMapCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: SetPrincipalTagAttributeMapInput;
output: SetPrincipalTagAttributeMapResponse;
};
sdk: {
input: SetPrincipalTagAttributeMapCommandInput;
output: SetPrincipalTagAttributeMapCommandOutput;
};
};
}

View File

@@ -0,0 +1,105 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { TagResourceInput, TagResourceResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link TagResourceCommand}.
*/
export interface TagResourceCommandInput extends TagResourceInput {
}
/**
* @public
*
* The output of {@link TagResourceCommand}.
*/
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
}
declare const TagResourceCommand_base: {
new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Assigns a set of tags to the specified Amazon Cognito identity pool. A tag is a label
* that you can use to categorize and manage identity pools in different ways, such as by
* purpose, owner, environment, or other criteria.</p>
* <p>Each tag consists of a key and value, both of which you define. A key is a general
* category for more specific values. For example, if you have two versions of an identity
* pool, one for testing and another for production, you might assign an
* <code>Environment</code> tag key to both identity pools. The value of this key might be
* <code>Test</code> for one identity pool and <code>Production</code> for the
* other.</p>
* <p>Tags are useful for cost tracking and access control. You can activate your tags so that
* they appear on the Billing and Cost Management console, where you can track the costs
* associated with your identity pools. In an IAM policy, you can constrain
* permissions for identity pools based on specific tags or tag values.</p>
* <p>You can use this action up to 5 times per second, per account. An identity pool can have
* as many as 50 tags.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, TagResourceCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, TagResourceCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // TagResourceInput
* ResourceArn: "STRING_VALUE", // required
* Tags: { // IdentityPoolTagsType // required
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new TagResourceCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
* @returns {@link TagResourceCommandOutput}
* @see {@link TagResourceCommandInput} for command's `input` shape.
* @see {@link TagResourceCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class TagResourceCommand extends TagResourceCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: TagResourceInput;
output: {};
};
sdk: {
input: TagResourceCommandInput;
output: TagResourceCommandOutput;
};
};
}

View File

@@ -0,0 +1,100 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { UnlinkDeveloperIdentityInput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link UnlinkDeveloperIdentityCommand}.
*/
export interface UnlinkDeveloperIdentityCommandInput extends UnlinkDeveloperIdentityInput {
}
/**
* @public
*
* The output of {@link UnlinkDeveloperIdentityCommand}.
*/
export interface UnlinkDeveloperIdentityCommandOutput extends __MetadataBearer {
}
declare const UnlinkDeveloperIdentityCommand_base: {
new (input: UnlinkDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<UnlinkDeveloperIdentityCommandInput, UnlinkDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: UnlinkDeveloperIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<UnlinkDeveloperIdentityCommandInput, UnlinkDeveloperIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Unlinks a <code>DeveloperUserIdentifier</code> from an existing identity. Unlinked
* developer users will be considered new identities next time they are seen. If, for a given
* Cognito identity, you remove all federated identities as well as the developer user
* identifier, the Cognito identity becomes inaccessible.</p>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, UnlinkDeveloperIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, UnlinkDeveloperIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // UnlinkDeveloperIdentityInput
* IdentityId: "STRING_VALUE", // required
* IdentityPoolId: "STRING_VALUE", // required
* DeveloperProviderName: "STRING_VALUE", // required
* DeveloperUserIdentifier: "STRING_VALUE", // required
* };
* const command = new UnlinkDeveloperIdentityCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param UnlinkDeveloperIdentityCommandInput - {@link UnlinkDeveloperIdentityCommandInput}
* @returns {@link UnlinkDeveloperIdentityCommandOutput}
* @see {@link UnlinkDeveloperIdentityCommandInput} for command's `input` shape.
* @see {@link UnlinkDeveloperIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class UnlinkDeveloperIdentityCommand extends UnlinkDeveloperIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: UnlinkDeveloperIdentityInput;
output: {};
};
sdk: {
input: UnlinkDeveloperIdentityCommandInput;
output: UnlinkDeveloperIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,105 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { UnlinkIdentityInput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link UnlinkIdentityCommand}.
*/
export interface UnlinkIdentityCommandInput extends UnlinkIdentityInput {
}
/**
* @public
*
* The output of {@link UnlinkIdentityCommand}.
*/
export interface UnlinkIdentityCommandOutput extends __MetadataBearer {
}
declare const UnlinkIdentityCommand_base: {
new (input: UnlinkIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: UnlinkIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Unlinks a federated identity from an existing account. Unlinked logins will be
* considered new identities next time they are seen. Removing the last linked login will make
* this identity inaccessible.</p>
* <p>This is a public API. You do not need any credentials to call this API.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, UnlinkIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, UnlinkIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // UnlinkIdentityInput
* IdentityId: "STRING_VALUE", // required
* Logins: { // LoginsMap // required
* "<keys>": "STRING_VALUE",
* },
* LoginsToRemove: [ // LoginsList // required
* "STRING_VALUE",
* ],
* };
* const command = new UnlinkIdentityCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param UnlinkIdentityCommandInput - {@link UnlinkIdentityCommandInput}
* @returns {@link UnlinkIdentityCommandOutput}
* @see {@link UnlinkIdentityCommandInput} for command's `input` shape.
* @see {@link UnlinkIdentityCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ExternalServiceException} (client fault)
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
* responding</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class UnlinkIdentityCommand extends UnlinkIdentityCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: UnlinkIdentityInput;
output: {};
};
sdk: {
input: UnlinkIdentityCommandInput;
output: UnlinkIdentityCommandOutput;
};
};
}

View File

@@ -0,0 +1,92 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { UntagResourceInput, UntagResourceResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link UntagResourceCommand}.
*/
export interface UntagResourceCommandInput extends UntagResourceInput {
}
/**
* @public
*
* The output of {@link UntagResourceCommand}.
*/
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
}
declare const UntagResourceCommand_base: {
new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Removes the specified tags from the specified Amazon Cognito identity pool. You can use
* this action up to 5 times per second, per account</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, UntagResourceCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, UntagResourceCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // UntagResourceInput
* ResourceArn: "STRING_VALUE", // required
* TagKeys: [ // IdentityPoolTagsListType // required
* "STRING_VALUE",
* ],
* };
* const command = new UntagResourceCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
* @returns {@link UntagResourceCommandOutput}
* @see {@link UntagResourceCommandInput} for command's `input` shape.
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class UntagResourceCommand extends UntagResourceCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: UntagResourceInput;
output: {};
};
sdk: {
input: UntagResourceCommandInput;
output: UntagResourceCommandOutput;
};
};
}

View File

@@ -0,0 +1,152 @@
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
import type { IdentityPool } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link UpdateIdentityPoolCommand}.
*/
export interface UpdateIdentityPoolCommandInput extends IdentityPool {
}
/**
* @public
*
* The output of {@link UpdateIdentityPoolCommand}.
*/
export interface UpdateIdentityPoolCommandOutput extends IdentityPool, __MetadataBearer {
}
declare const UpdateIdentityPoolCommand_base: {
new (input: UpdateIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIdentityPoolCommandInput, UpdateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: UpdateIdentityPoolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIdentityPoolCommandInput, UpdateIdentityPoolCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Updates the configuration of an identity pool.</p>
* <important>
* <p>If you don't provide a value for a parameter, Amazon Cognito sets it to its default value.
* </p>
* </important>
* <p>You must use Amazon Web Services developer credentials to call this
* operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { CognitoIdentityClient, UpdateIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
* // const { CognitoIdentityClient, UpdateIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
* // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
* const config = {}; // type is CognitoIdentityClientConfig
* const client = new CognitoIdentityClient(config);
* const input = { // IdentityPool
* IdentityPoolId: "STRING_VALUE", // required
* IdentityPoolName: "STRING_VALUE", // required
* AllowUnauthenticatedIdentities: true || false, // required
* AllowClassicFlow: true || false,
* SupportedLoginProviders: { // IdentityProviders
* "<keys>": "STRING_VALUE",
* },
* DeveloperProviderName: "STRING_VALUE",
* OpenIdConnectProviderARNs: [ // OIDCProviderList
* "STRING_VALUE",
* ],
* CognitoIdentityProviders: [ // CognitoIdentityProviderList
* { // CognitoIdentityProvider
* ProviderName: "STRING_VALUE",
* ClientId: "STRING_VALUE",
* ServerSideTokenCheck: true || false,
* },
* ],
* SamlProviderARNs: [ // SAMLProviderList
* "STRING_VALUE",
* ],
* IdentityPoolTags: { // IdentityPoolTagsType
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new UpdateIdentityPoolCommand(input);
* const response = await client.send(command);
* // { // IdentityPool
* // IdentityPoolId: "STRING_VALUE", // required
* // IdentityPoolName: "STRING_VALUE", // required
* // AllowUnauthenticatedIdentities: true || false, // required
* // AllowClassicFlow: true || false,
* // SupportedLoginProviders: { // IdentityProviders
* // "<keys>": "STRING_VALUE",
* // },
* // DeveloperProviderName: "STRING_VALUE",
* // OpenIdConnectProviderARNs: [ // OIDCProviderList
* // "STRING_VALUE",
* // ],
* // CognitoIdentityProviders: [ // CognitoIdentityProviderList
* // { // CognitoIdentityProvider
* // ProviderName: "STRING_VALUE",
* // ClientId: "STRING_VALUE",
* // ServerSideTokenCheck: true || false,
* // },
* // ],
* // SamlProviderARNs: [ // SAMLProviderList
* // "STRING_VALUE",
* // ],
* // IdentityPoolTags: { // IdentityPoolTagsType
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param UpdateIdentityPoolCommandInput - {@link UpdateIdentityPoolCommandInput}
* @returns {@link UpdateIdentityPoolCommandOutput}
* @see {@link UpdateIdentityPoolCommandInput} for command's `input` shape.
* @see {@link UpdateIdentityPoolCommandOutput} for command's `response` shape.
* @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Thrown if there are parallel requests to modify a resource.</p>
*
* @throws {@link InternalErrorException} (server fault)
* <p>Thrown when the service encounters an error during processing the request.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>Thrown for missing or bad input parameter(s).</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
*
* @throws {@link NotAuthorizedException} (client fault)
* <p>Thrown when a user is not authorized to access the requested resource.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>Thrown when a request is throttled.</p>
*
* @throws {@link CognitoIdentityServiceException}
* <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
*
*
* @public
*/
export declare class UpdateIdentityPoolCommand extends UpdateIdentityPoolCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: IdentityPool;
output: IdentityPool;
};
sdk: {
input: UpdateIdentityPoolCommandInput;
output: UpdateIdentityPoolCommandOutput;
};
};
}

View File

@@ -0,0 +1,23 @@
export * from "./CreateIdentityPoolCommand";
export * from "./DeleteIdentitiesCommand";
export * from "./DeleteIdentityPoolCommand";
export * from "./DescribeIdentityCommand";
export * from "./DescribeIdentityPoolCommand";
export * from "./GetCredentialsForIdentityCommand";
export * from "./GetIdCommand";
export * from "./GetIdentityPoolRolesCommand";
export * from "./GetOpenIdTokenCommand";
export * from "./GetOpenIdTokenForDeveloperIdentityCommand";
export * from "./GetPrincipalTagAttributeMapCommand";
export * from "./ListIdentitiesCommand";
export * from "./ListIdentityPoolsCommand";
export * from "./ListTagsForResourceCommand";
export * from "./LookupDeveloperIdentityCommand";
export * from "./MergeDeveloperIdentitiesCommand";
export * from "./SetIdentityPoolRolesCommand";
export * from "./SetPrincipalTagAttributeMapCommand";
export * from "./TagResourceCommand";
export * from "./UnlinkDeveloperIdentityCommand";
export * from "./UnlinkIdentityCommand";
export * from "./UntagResourceCommand";
export * from "./UpdateIdentityPoolCommand";

View File

@@ -0,0 +1,50 @@
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
/**
* @public
*/
export interface ClientInputEndpointParameters {
region?: string | undefined | Provider<string | undefined>;
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
}
/**
* @public
*/
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
defaultSigningName: string;
};
/**
* @internal
*/
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
/**
* @internal
*/
export declare const commonParams: {
readonly UseFIPS: {
readonly type: "builtInParams";
readonly name: "useFipsEndpoint";
};
readonly Endpoint: {
readonly type: "builtInParams";
readonly name: "endpoint";
};
readonly Region: {
readonly type: "builtInParams";
readonly name: "region";
};
readonly UseDualStack: {
readonly type: "builtInParams";
readonly name: "useDualstackEndpoint";
};
};
/**
* @internal
*/
export interface EndpointParameters extends __EndpointParameters {
Region?: string | undefined;
UseDualStack?: boolean | undefined;
UseFIPS?: boolean | undefined;
Endpoint?: string | undefined;
}

View File

@@ -0,0 +1,8 @@
import type { EndpointV2, Logger } from "@smithy/types";
import type { EndpointParameters } from "./EndpointParameters";
/**
* @internal
*/
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
logger?: Logger;
}) => EndpointV2;

View File

@@ -0,0 +1,2 @@
import { RuleSetObject } from "@smithy/types";
export declare const ruleSet: RuleSetObject;

View File

@@ -0,0 +1,9 @@
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
import type { DefaultExtensionConfiguration } from "@smithy/types";
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
/**
* @internal
*/
export interface CognitoIdentityExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
}

View File

@@ -0,0 +1,31 @@
/**
* <fullname>Amazon Cognito Federated Identities</fullname>
* <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
* credentials to mobile devices and other untrusted environments. It uniquely identifies a
* device and supplies the user with a consistent identity over the lifetime of an
* application.</p>
* <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
* more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
* Cognito user pool, and you can also choose to support unauthenticated access from your app.
* Cognito delivers a unique identifier for each user and acts as an OpenID token provider
* trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
* <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
* see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
* Flow</a>.</p>
* <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
* Identities</a>.</p>
*
* @packageDocumentation
*/
export * from "./CognitoIdentityClient";
export * from "./CognitoIdentity";
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
export type { RuntimeExtension } from "./runtimeExtensions";
export type { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
export * from "./commands";
export * from "./schemas/schemas_0";
export * from "./pagination";
export * from "./models/enums";
export * from "./models/errors";
export * from "./models/models_0";
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";

View File

@@ -0,0 +1,14 @@
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
export type { __ServiceExceptionOptions };
export { __ServiceException };
/**
* @public
*
* Base exception class for all service exceptions from CognitoIdentity service.
*/
export declare class CognitoIdentityServiceException extends __ServiceException {
/**
* @internal
*/
constructor(options: __ServiceExceptionOptions);
}

View File

@@ -0,0 +1,50 @@
/**
* @public
* @enum
*/
export declare const AmbiguousRoleResolutionType: {
readonly AUTHENTICATED_ROLE: "AuthenticatedRole";
readonly DENY: "Deny";
};
/**
* @public
*/
export type AmbiguousRoleResolutionType = (typeof AmbiguousRoleResolutionType)[keyof typeof AmbiguousRoleResolutionType];
/**
* @public
* @enum
*/
export declare const ErrorCode: {
readonly ACCESS_DENIED: "AccessDenied";
readonly INTERNAL_SERVER_ERROR: "InternalServerError";
};
/**
* @public
*/
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
/**
* @public
* @enum
*/
export declare const MappingRuleMatchType: {
readonly CONTAINS: "Contains";
readonly EQUALS: "Equals";
readonly NOT_EQUAL: "NotEqual";
readonly STARTS_WITH: "StartsWith";
};
/**
* @public
*/
export type MappingRuleMatchType = (typeof MappingRuleMatchType)[keyof typeof MappingRuleMatchType];
/**
* @public
* @enum
*/
export declare const RoleMappingType: {
readonly RULES: "Rules";
readonly TOKEN: "Token";
};
/**
* @public
*/
export type RoleMappingType = (typeof RoleMappingType)[keyof typeof RoleMappingType];

View File

@@ -0,0 +1,144 @@
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
/**
* <p>Thrown when the service encounters an error during processing the request.</p>
* @public
*/
export declare class InternalErrorException extends __BaseException {
readonly name: "InternalErrorException";
readonly $fault: "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
}
/**
* <p>Thrown for missing or bad input parameter(s).</p>
* @public
*/
export declare class InvalidParameterException extends __BaseException {
readonly name: "InvalidParameterException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
}
/**
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
* @public
*/
export declare class LimitExceededException extends __BaseException {
readonly name: "LimitExceededException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
}
/**
* <p>Thrown when a user is not authorized to access the requested resource.</p>
* @public
*/
export declare class NotAuthorizedException extends __BaseException {
readonly name: "NotAuthorizedException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
}
/**
* <p>Thrown when a user tries to use a login which is already linked to another
* account.</p>
* @public
*/
export declare class ResourceConflictException extends __BaseException {
readonly name: "ResourceConflictException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
}
/**
* <p>Thrown when a request is throttled.</p>
* @public
*/
export declare class TooManyRequestsException extends __BaseException {
readonly name: "TooManyRequestsException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
}
/**
* <p>Thrown when the requested resource (for example, a dataset or record) does not
* exist.</p>
* @public
*/
export declare class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
}
/**
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
* responding</p>
* @public
*/
export declare class ExternalServiceException extends __BaseException {
readonly name: "ExternalServiceException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ExternalServiceException, __BaseException>);
}
/**
* <p>If you provided authentication information in the request, the identity pool has no
* authenticated role configured, or STS returned an error response to the
* request to assume the authenticated role from the identity pool. If you provided no
* authentication information in the request, the identity pool has no unauthenticated role
* configured, or STS returned an error response to the request to assume the
* unauthenticated role from the identity pool.</p>
* <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
* @public
*/
export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
readonly name: "InvalidIdentityPoolConfigurationException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidIdentityPoolConfigurationException, __BaseException>);
}
/**
* <p>The provided developer user identifier is already registered with Cognito under a
* different identity ID.</p>
* @public
*/
export declare class DeveloperUserAlreadyRegisteredException extends __BaseException {
readonly name: "DeveloperUserAlreadyRegisteredException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<DeveloperUserAlreadyRegisteredException, __BaseException>);
}
/**
* <p>Thrown if there are parallel requests to modify a resource.</p>
* @public
*/
export declare class ConcurrentModificationException extends __BaseException {
readonly name: "ConcurrentModificationException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
import type { PaginationConfiguration } from "@smithy/types";
import { CognitoIdentityClient } from "../CognitoIdentityClient";
/**
* @public
*/
export interface CognitoIdentityPaginationConfiguration extends PaginationConfiguration {
client: CognitoIdentityClient;
}

View File

@@ -0,0 +1,7 @@
import type { Paginator } from "@smithy/types";
import { ListIdentityPoolsCommandInput, ListIdentityPoolsCommandOutput } from "../commands/ListIdentityPoolsCommand";
import type { CognitoIdentityPaginationConfiguration } from "./Interfaces";
/**
* @public
*/
export declare const paginateListIdentityPools: (config: CognitoIdentityPaginationConfiguration, input: ListIdentityPoolsCommandInput, ...rest: any[]) => Paginator<ListIdentityPoolsCommandOutput>;

View File

@@ -0,0 +1,2 @@
export * from "./Interfaces";
export * from "./ListIdentityPoolsPaginator";

View File

@@ -0,0 +1,63 @@
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
import type { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
/**
* @internal
*/
export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
runtime: string;
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
maxAttempts: number | import("@smithy/types").Provider<number>;
region: string | import("@smithy/types").Provider<any>;
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
retryMode: string | import("@smithy/types").Provider<string>;
sha256: import("@smithy/types").HashConstructor;
streamCollector: import("@smithy/types").StreamCollector;
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
cacheMiddleware?: boolean | undefined;
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_1Protocol;
protocolSettings: {
defaultNamespace?: string;
[setting: string]: unknown;
};
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: (_input: Uint8Array | string) => string;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: (input: Uint8Array | string) => string;
disableHostPrefix: boolean;
serviceId: string;
profile?: string;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
customUserAgent?: string | import("@smithy/types").UserAgent;
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
logger?: import("@smithy/types").Logger;
}) => import("@smithy/types").EndpointV2;
tls?: boolean;
serviceConfiguredEndpoint?: never;
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
schemeId: string;
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
} | {
schemeId: string;
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
signer: import("@smithy/core").NoAuthSigner;
})[];
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
signingEscapePath?: boolean;
systemClockOffset?: number;
signingRegion?: string;
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
};

Some files were not shown because too many files have changed in this diff Show More