From 9cf0f6d014e3f8fd3a2b815f13fa1d7fa073135b Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 20 Nov 2023 20:42:52 +0000 Subject: [PATCH] Publish v3.455.0 --- CHANGELOG.md | 14 +++ benchmark/size/report.md | 2 +- .../client-codestar-connections/CHANGELOG.md | 11 ++ .../client-codestar-connections/package.json | 2 +- clients/client-docdb/CHANGELOG.md | 11 ++ clients/client-docdb/package.json | 2 +- clients/client-ec2/CHANGELOG.md | 11 ++ clients/client-ec2/package.json | 2 +- clients/client-sso-oidc/CHANGELOG.md | 8 ++ clients/client-sso-oidc/package.json | 2 +- .../src/commands/CreateTokenCommand.ts | 47 +++++++ .../src/commands/CreateTokenWithIAMCommand.ts | 118 ++++++++++++++++++ .../src/commands/RegisterClientCommand.ts | 24 ++++ .../StartDeviceAuthorizationCommand.ts | 23 ++++ lerna.json | 2 +- private/aws-middleware-test/CHANGELOG.md | 8 ++ private/aws-middleware-test/package.json | 2 +- 17 files changed, 282 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba283c386719..6b143e38f11b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + + +### Features + +* **client-codestar-connections:** This release updates a few CodeStar Connections related APIs. ([6eb1bbf](https://github.com/aws/aws-sdk-js-v3/commit/6eb1bbf80591dd77d490bd5379dbe5957e3fc068)) +* **client-docdb:** Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized. ([de29c92](https://github.com/aws/aws-sdk-js-v3/commit/de29c92150dd4f577632f1e5f303fd36611e6ef6)) +* **client-ec2:** This release adds support for Security group referencing over Transit gateways, enabling you to simplify Security group management and control of instance-to-instance traffic across VPCs that are connected by Transit gateway. ([740d241](https://github.com/aws/aws-sdk-js-v3/commit/740d2418d9da9c6bac0f7dcc6bf1987fd7ced101)) +* **clients:** update client endpoints as of 2023-11-20 ([16c2343](https://github.com/aws/aws-sdk-js-v3/commit/16c2343f1fc57a79103983fc1c1a1715dbbc1ea1)) + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) diff --git a/benchmark/size/report.md b/benchmark/size/report.md index c2d91dcdee6e..2406e7a57ee2 100644 --- a/benchmark/size/report.md +++ b/benchmark/size/report.md @@ -17,7 +17,7 @@ |@aws-sdk/client-cognito-identity-provider|3.451.0|2.6 MB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| |@aws-sdk/client-cognito-sync|3.451.0|450.6 KB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| |@aws-sdk/client-dynamodb|3.451.0|1.7 MB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| -|@aws-sdk/client-ec2|3.453.0|15.7 MB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| +|@aws-sdk/client-ec2|3.454.0|15.7 MB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| |@aws-sdk/client-efs|3.451.0|788.1 KB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| |@aws-sdk/client-eventbridge|3.451.0|1.1 MB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| |@aws-sdk/client-firehose|3.451.0|535.4 KB|✅(5.88.2)|✅(3.26.3)|✅(0.18.15)| diff --git a/clients/client-codestar-connections/CHANGELOG.md b/clients/client-codestar-connections/CHANGELOG.md index 4243ce3fd39b..897c4db11f99 100644 --- a/clients/client-codestar-connections/CHANGELOG.md +++ b/clients/client-codestar-connections/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + + +### Features + +* **client-codestar-connections:** This release updates a few CodeStar Connections related APIs. ([6eb1bbf](https://github.com/aws/aws-sdk-js-v3/commit/6eb1bbf80591dd77d490bd5379dbe5957e3fc068)) + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) diff --git a/clients/client-codestar-connections/package.json b/clients/client-codestar-connections/package.json index ba8f306aef4a..cd761c99206b 100644 --- a/clients/client-codestar-connections/package.json +++ b/clients/client-codestar-connections/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-codestar-connections", "description": "AWS SDK for JavaScript Codestar Connections Client for Node.js, Browser and React Native", - "version": "3.454.0", + "version": "3.455.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", diff --git a/clients/client-docdb/CHANGELOG.md b/clients/client-docdb/CHANGELOG.md index 6c2e64b88e9a..a09c065ec332 100644 --- a/clients/client-docdb/CHANGELOG.md +++ b/clients/client-docdb/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + + +### Features + +* **client-docdb:** Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized. ([de29c92](https://github.com/aws/aws-sdk-js-v3/commit/de29c92150dd4f577632f1e5f303fd36611e6ef6)) + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) **Note:** Version bump only for package @aws-sdk/client-docdb diff --git a/clients/client-docdb/package.json b/clients/client-docdb/package.json index 688ac4e496e0..450088b08246 100644 --- a/clients/client-docdb/package.json +++ b/clients/client-docdb/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-docdb", "description": "AWS SDK for JavaScript Docdb Client for Node.js, Browser and React Native", - "version": "3.454.0", + "version": "3.455.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", diff --git a/clients/client-ec2/CHANGELOG.md b/clients/client-ec2/CHANGELOG.md index 5b1e00f05496..7fe471fbada0 100644 --- a/clients/client-ec2/CHANGELOG.md +++ b/clients/client-ec2/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + + +### Features + +* **client-ec2:** This release adds support for Security group referencing over Transit gateways, enabling you to simplify Security group management and control of instance-to-instance traffic across VPCs that are connected by Transit gateway. ([740d241](https://github.com/aws/aws-sdk-js-v3/commit/740d2418d9da9c6bac0f7dcc6bf1987fd7ced101)) + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index a66e40b18944..9b8619fd5797 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-ec2", "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native", - "version": "3.454.0", + "version": "3.455.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", diff --git a/clients/client-sso-oidc/CHANGELOG.md b/clients/client-sso-oidc/CHANGELOG.md index ea43641e2041..c5432717210f 100644 --- a/clients/client-sso-oidc/CHANGELOG.md +++ b/clients/client-sso-oidc/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + +**Note:** Version bump only for package @aws-sdk/client-sso-oidc + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 82982a80c8cd..e0806c70ddf3 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/client-sso-oidc", "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", - "version": "3.454.0", + "version": "3.455.0", "scripts": { "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", diff --git a/clients/client-sso-oidc/src/commands/CreateTokenCommand.ts b/clients/client-sso-oidc/src/commands/CreateTokenCommand.ts index 200ea7020619..5a9ace5f5255 100644 --- a/clients/client-sso-oidc/src/commands/CreateTokenCommand.ts +++ b/clients/client-sso-oidc/src/commands/CreateTokenCommand.ts @@ -125,6 +125,53 @@ export interface CreateTokenCommandOutput extends CreateTokenResponse, __Metadat * @throws {@link SSOOIDCServiceException} *

Base exception class for all service exceptions from SSOOIDC service.

* + * @example Call OAuth/OIDC /token endpoint for Device Code grant with Secret authentication + * ```javascript + * // + * const input = { + * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", + * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", + * "deviceCode": "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE", + * "grantType": "urn:ietf:params:oauth:grant-type:device-code" + * }; + * const command = new CreateTokenCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-for-device-code + * ``` + * + * @example Call OAuth/OIDC /token endpoint for Refresh Token grant with Secret authentication + * ```javascript + * // + * const input = { + * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", + * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", + * "grantType": "refresh_token", + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "scope": [ + * "codewhisperer:completions" + * ] + * }; + * const command = new CreateTokenCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-for-refresh-token + * ``` + * */ export class CreateTokenCommand extends $Command< CreateTokenCommandInput, diff --git a/clients/client-sso-oidc/src/commands/CreateTokenWithIAMCommand.ts b/clients/client-sso-oidc/src/commands/CreateTokenWithIAMCommand.ts index 285690c0f958..0a1c7332e6fb 100644 --- a/clients/client-sso-oidc/src/commands/CreateTokenWithIAMCommand.ts +++ b/clients/client-sso-oidc/src/commands/CreateTokenWithIAMCommand.ts @@ -137,6 +137,124 @@ export interface CreateTokenWithIAMCommandOutput extends CreateTokenWithIAMRespo * @throws {@link SSOOIDCServiceException} *

Base exception class for all service exceptions from SSOOIDC service.

* + * @example Call OAuth/OIDC /token endpoint for Authorization Code grant with IAM authentication + * ```javascript + * // + * const input = { + * "clientId": "arn:aws:sso::123456789012:application/ssoins-111111111111/apl-222222222222", + * "code": "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzg0In0EXAMPLEAUTHCODE", + * "grantType": "authorization_code", + * "redirectUri": "https://mywebapp.example/redirect", + * "scope": [ + * "openid", + * "aws", + * "sts:identity_context" + * ] + * }; + * const command = new CreateTokenWithIAMCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "idToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsInN0czphdWRpdF9jb250ZXh0IjoiRVhBTVBMRUFVRElUQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.Xyah6qbk78qThzJ41iFU2yfGuRqqtKXHrJYwQ8L9Ip0", + * "issuedTokenType": "urn:ietf:params:oauth:token-type:refresh_token", + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "scope": [ + * "openid", + * "aws", + * "sts:identity_context" + * ], + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-with-iam-for-auth-code + * ``` + * + * @example Call OAuth/OIDC /token endpoint for Refresh Token grant with IAM authentication + * ```javascript + * // + * const input = { + * "clientId": "arn:aws:sso::123456789012:application/ssoins-111111111111/apl-222222222222", + * "grantType": "refresh_token", + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN" + * }; + * const command = new CreateTokenWithIAMCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "issuedTokenType": "urn:ietf:params:oauth:token-type:refresh_token", + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "scope": [ + * "openid", + * "aws", + * "sts:identity_context" + * ], + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-with-iam-for-refresh-token + * ``` + * + * @example Call OAuth/OIDC /token endpoint for JWT Bearer grant with IAM authentication + * ```javascript + * // + * const input = { + * "assertion": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjFMVE16YWtpaGlSbGFfOHoyQkVKVlhlV01xbyJ9.eyJ2ZXIiOiIyLjAiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vOTEyMjA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkL3YyLjAiLCJzdWIiOiJBQUFBQUFBQUFBQUFBQUFBQUFBQUFJa3pxRlZyU2FTYUZIeTc4MmJidGFRIiwiYXVkIjoiNmNiMDQwMTgtYTNmNS00NmE3LWI5OTUtOTQwYzc4ZjVhZWYzIiwiZXhwIjoxNTM2MzYxNDExLCJpYXQiOjE1MzYyNzQ3MTEsIm5iZiI6MTUzNjI3NDcxMSwibmFtZSI6IkFiZSBMaW5jb2xuIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiQWJlTGlAbWljcm9zb2Z0LmNvbSIsIm9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC02NmYzLTMzMzJlY2E3ZWE4MSIsInRpZCI6IjkxMjIwNDBkLTZjNjctNGM1Yi1iMTEyLTM2YTMwNGI2NmRhZCIsIm5vbmNlIjoiMTIzNTIzIiwiYWlvIjoiRGYyVVZYTDFpeCFsTUNXTVNPSkJjRmF0emNHZnZGR2hqS3Y4cTVnMHg3MzJkUjVNQjVCaXN2R1FPN1lXQnlqZDhpUURMcSFlR2JJRGFreXA1bW5PcmNkcUhlWVNubHRlcFFtUnA2QUlaOGpZIn0.1AFWW-Ck5nROwSlltm7GzZvDwUkqvhSQpm55TQsmVo9Y59cLhRXpvB8n-55HCr9Z6G_31_UbeUkoz612I2j_Sm9FFShSDDjoaLQr54CreGIJvjtmS3EkK9a7SJBbcpL1MpUtlfygow39tFjY7EVNW9plWUvRrTgVk7lYLprvfzw-CIqw3gHC-T7IK_m_xkr08INERBtaecwhTeN4chPC4W3jdmw_lIxzC48YoQ0dB1L9-ImX98Egypfrlbm0IBL5spFzL6JDZIRRJOu8vecJvj1mq-IUhGt0MacxX8jdxYLP-KUu2d9MbNKpCKJuZ7p8gwTL5B7NlUdh_dmSviPWrw", + * "clientId": "arn:aws:sso::123456789012:application/ssoins-111111111111/apl-222222222222", + * "grantType": "urn:ietf:params:oauth:grant-type:jwt-bearer" + * }; + * const command = new CreateTokenWithIAMCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "idToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsInN0czphdWRpdF9jb250ZXh0IjoiRVhBTVBMRUFVRElUQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.Xyah6qbk78qThzJ41iFU2yfGuRqqtKXHrJYwQ8L9Ip0", + * "issuedTokenType": "urn:ietf:params:oauth:token-type:refresh_token", + * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN", + * "scope": [ + * "openid", + * "aws", + * "sts:identity_context" + * ], + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-with-iam-for-jwt-bearer + * ``` + * + * @example Call OAuth/OIDC /token endpoint for Token Exchange grant with IAM authentication + * ```javascript + * // + * const input = { + * "clientId": "arn:aws:sso::123456789012:application/ssoins-111111111111/apl-222222222222", + * "grantType": "urn:ietf:params:oauth:grant-type:token-exchange", + * "requestedTokenType": "urn:ietf:params:oauth:token-type:access_token", + * "subjectToken": "aoak-Hig8TUDPNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZDIFFERENTACCESSTOKEN", + * "subjectTokenType": "urn:ietf:params:oauth:token-type:access_token" + * }; + * const command = new CreateTokenWithIAMCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN", + * "expiresIn": 1579729529, + * "idToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.5SYiW1kMsuUr7nna-l5tlakM0GNbMHvIM2_n0QD23jM", + * "issuedTokenType": "urn:ietf:params:oauth:token-type:access_token", + * "scope": [ + * "openid", + * "aws", + * "sts:identity_context" + * ], + * "tokenType": "Bearer" + * } + * *\/ + * // example id: create-token-with-iam-for-token-exchange + * ``` + * */ export class CreateTokenWithIAMCommand extends $Command< CreateTokenWithIAMCommandInput, diff --git a/clients/client-sso-oidc/src/commands/RegisterClientCommand.ts b/clients/client-sso-oidc/src/commands/RegisterClientCommand.ts index 362722d5a0a9..1280ff227762 100644 --- a/clients/client-sso-oidc/src/commands/RegisterClientCommand.ts +++ b/clients/client-sso-oidc/src/commands/RegisterClientCommand.ts @@ -93,6 +93,30 @@ export interface RegisterClientCommandOutput extends RegisterClientResponse, __M * @throws {@link SSOOIDCServiceException} *

Base exception class for all service exceptions from SSOOIDC service.

* + * @example Call OAuth/OIDC /register-client endpoint + * ```javascript + * // + * const input = { + * "clientName": "My IDE Plugin", + * "clientType": "public", + * "scopes": [ + * "sso:account:access", + * "codewhisperer:completions" + * ] + * }; + * const command = new RegisterClientCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", + * "clientIdIssuedAt": 1579725929, + * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", + * "clientSecretExpiresAt": 1587584729 + * } + * *\/ + * // example id: register-client + * ``` + * */ export class RegisterClientCommand extends $Command< RegisterClientCommandInput, diff --git a/clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts b/clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts index 387aa4b35f2f..3b5605b2eb94 100644 --- a/clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts +++ b/clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts @@ -97,6 +97,29 @@ export interface StartDeviceAuthorizationCommandOutput extends StartDeviceAuthor * @throws {@link SSOOIDCServiceException} *

Base exception class for all service exceptions from SSOOIDC service.

* + * @example Call OAuth/OIDC /start-device-authorization endpoint + * ```javascript + * // + * const input = { + * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID", + * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0", + * "startUrl": "https://identitycenter.amazonaws.com/ssoins-111111111111" + * }; + * const command = new StartDeviceAuthorizationCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "deviceCode": "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE", + * "expiresIn": 1579729529, + * "interval": 1, + * "userCode": "makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE", + * "verificationUri": "https://device.sso.us-west-2.amazonaws.com", + * "verificationUriComplete": "https://device.sso.us-west-2.amazonaws.com?user_code=makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE" + * } + * *\/ + * // example id: start-device-authorization + * ``` + * */ export class StartDeviceAuthorizationCommand extends $Command< StartDeviceAuthorizationCommandInput, diff --git a/lerna.json b/lerna.json index c77eee156f79..0f30484df6e7 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "3.454.0", + "version": "3.455.0", "npmClient": "yarn", "useWorkspaces": true, "command": { diff --git a/private/aws-middleware-test/CHANGELOG.md b/private/aws-middleware-test/CHANGELOG.md index 6fb31a37f993..e05d508783da 100644 --- a/private/aws-middleware-test/CHANGELOG.md +++ b/private/aws-middleware-test/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.455.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.454.0...v3.455.0) (2023-11-20) + +**Note:** Version bump only for package @aws-sdk/aws-middleware-test + + + + + # [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) **Note:** Version bump only for package @aws-sdk/aws-middleware-test diff --git a/private/aws-middleware-test/package.json b/private/aws-middleware-test/package.json index 5fb4b821ca1d..506bf5303e13 100644 --- a/private/aws-middleware-test/package.json +++ b/private/aws-middleware-test/package.json @@ -1,7 +1,7 @@ { "name": "@aws-sdk/aws-middleware-test", "description": "Integration test suite for AWS middleware", - "version": "3.454.0", + "version": "3.455.0", "scripts": { "build": "exit 0", "build:cjs": "exit 0",