@cdklabs/cdk-ecs-codedeploy 0.0.132 → 0.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js +51 -658
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeploy.js +51 -658
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +146 -278
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeploy.d.ts +4 -1
  10. package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -6
  11. package/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +8 -56
  12. package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +8 -56
  13. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +27 -47
  14. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +2 -1
  15. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  16. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +7 -42
  17. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +7 -42
  18. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +21 -26
  19. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +2 -1
  20. package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
  21. package/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +12 -112
  22. package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +12 -112
  23. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +19 -577
  24. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +2 -1
  25. package/node_modules/@aws-sdk/client-sts/package.json +5 -5
  26. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  27. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  28. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  29. package/node_modules/@aws-sdk/smithy-client/dist-cjs/create-aggregated-client.js +25 -0
  30. package/node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +1 -0
  31. package/node_modules/@aws-sdk/smithy-client/dist-es/create-aggregated-client.js +21 -0
  32. package/node_modules/@aws-sdk/smithy-client/dist-es/index.js +1 -0
  33. package/node_modules/@aws-sdk/smithy-client/dist-types/create-aggregated-client.d.ts +9 -0
  34. package/node_modules/@aws-sdk/smithy-client/dist-types/index.d.ts +1 -0
  35. package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +1 -1
  36. package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +5 -0
  37. package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/index.d.ts +1 -0
  38. package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/object-mapping.d.ts +1 -1
  39. package/node_modules/@aws-sdk/smithy-client/package.json +1 -1
  40. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  41. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +2 -2
  42. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +2 -2
  43. package/package.json +4 -4
@@ -188,7 +188,7 @@ import {
188
188
  UpdateDeploymentGroupCommandInput,
189
189
  UpdateDeploymentGroupCommandOutput,
190
190
  } from "./commands/UpdateDeploymentGroupCommand";
191
- export declare class CodeDeploy extends CodeDeployClient {
191
+ export interface CodeDeploy {
192
192
  addTagsToOnPremisesInstances(
193
193
  args: AddTagsToOnPremisesInstancesCommandInput,
194
194
  options?: __HttpHandlerOptions
@@ -819,3 +819,6 @@ export declare class CodeDeploy extends CodeDeployClient {
819
819
  cb: (err: any, data?: UpdateDeploymentGroupCommandOutput) => void
820
820
  ): void;
821
821
  }
822
+ export declare class CodeDeploy
823
+ extends CodeDeployClient
824
+ implements CodeDeploy {}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codedeploy",
3
3
  "description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
@@ -1,67 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SSO = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const GetRoleCredentialsCommand_1 = require("./commands/GetRoleCredentialsCommand");
5
6
  const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand");
6
7
  const ListAccountsCommand_1 = require("./commands/ListAccountsCommand");
7
8
  const LogoutCommand_1 = require("./commands/LogoutCommand");
8
9
  const SSOClient_1 = require("./SSOClient");
10
+ const commands = {
11
+ GetRoleCredentialsCommand: GetRoleCredentialsCommand_1.GetRoleCredentialsCommand,
12
+ ListAccountRolesCommand: ListAccountRolesCommand_1.ListAccountRolesCommand,
13
+ ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand,
14
+ LogoutCommand: LogoutCommand_1.LogoutCommand,
15
+ };
9
16
  class SSO extends SSOClient_1.SSOClient {
10
- getRoleCredentials(args, optionsOrCb, cb) {
11
- const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args);
12
- if (typeof optionsOrCb === "function") {
13
- this.send(command, optionsOrCb);
14
- }
15
- else if (typeof cb === "function") {
16
- if (typeof optionsOrCb !== "object")
17
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
- this.send(command, optionsOrCb || {}, cb);
19
- }
20
- else {
21
- return this.send(command, optionsOrCb);
22
- }
23
- }
24
- listAccountRoles(args, optionsOrCb, cb) {
25
- const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args);
26
- if (typeof optionsOrCb === "function") {
27
- this.send(command, optionsOrCb);
28
- }
29
- else if (typeof cb === "function") {
30
- if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
- this.send(command, optionsOrCb || {}, cb);
33
- }
34
- else {
35
- return this.send(command, optionsOrCb);
36
- }
37
- }
38
- listAccounts(args, optionsOrCb, cb) {
39
- const command = new ListAccountsCommand_1.ListAccountsCommand(args);
40
- if (typeof optionsOrCb === "function") {
41
- this.send(command, optionsOrCb);
42
- }
43
- else if (typeof cb === "function") {
44
- if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
- this.send(command, optionsOrCb || {}, cb);
47
- }
48
- else {
49
- return this.send(command, optionsOrCb);
50
- }
51
- }
52
- logout(args, optionsOrCb, cb) {
53
- const command = new LogoutCommand_1.LogoutCommand(args);
54
- if (typeof optionsOrCb === "function") {
55
- this.send(command, optionsOrCb);
56
- }
57
- else if (typeof cb === "function") {
58
- if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
- this.send(command, optionsOrCb || {}, cb);
61
- }
62
- else {
63
- return this.send(command, optionsOrCb);
64
- }
65
- }
66
17
  }
67
18
  exports.SSO = SSO;
19
+ (0, smithy_client_1.createAggregatedClient)(commands, SSO);
@@ -1,63 +1,15 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand";
2
3
  import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand";
3
4
  import { ListAccountsCommand, } from "./commands/ListAccountsCommand";
4
5
  import { LogoutCommand } from "./commands/LogoutCommand";
5
6
  import { SSOClient } from "./SSOClient";
7
+ const commands = {
8
+ GetRoleCredentialsCommand,
9
+ ListAccountRolesCommand,
10
+ ListAccountsCommand,
11
+ LogoutCommand,
12
+ };
6
13
  export class SSO extends SSOClient {
7
- getRoleCredentials(args, optionsOrCb, cb) {
8
- const command = new GetRoleCredentialsCommand(args);
9
- if (typeof optionsOrCb === "function") {
10
- this.send(command, optionsOrCb);
11
- }
12
- else if (typeof cb === "function") {
13
- if (typeof optionsOrCb !== "object")
14
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
15
- this.send(command, optionsOrCb || {}, cb);
16
- }
17
- else {
18
- return this.send(command, optionsOrCb);
19
- }
20
- }
21
- listAccountRoles(args, optionsOrCb, cb) {
22
- const command = new ListAccountRolesCommand(args);
23
- if (typeof optionsOrCb === "function") {
24
- this.send(command, optionsOrCb);
25
- }
26
- else if (typeof cb === "function") {
27
- if (typeof optionsOrCb !== "object")
28
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
- this.send(command, optionsOrCb || {}, cb);
30
- }
31
- else {
32
- return this.send(command, optionsOrCb);
33
- }
34
- }
35
- listAccounts(args, optionsOrCb, cb) {
36
- const command = new ListAccountsCommand(args);
37
- if (typeof optionsOrCb === "function") {
38
- this.send(command, optionsOrCb);
39
- }
40
- else if (typeof cb === "function") {
41
- if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
- this.send(command, optionsOrCb || {}, cb);
44
- }
45
- else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
- logout(args, optionsOrCb, cb) {
50
- const command = new LogoutCommand(args);
51
- if (typeof optionsOrCb === "function") {
52
- this.send(command, optionsOrCb);
53
- }
54
- else if (typeof cb === "function") {
55
- if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
- this.send(command, optionsOrCb || {}, cb);
58
- }
59
- else {
60
- return this.send(command, optionsOrCb);
61
- }
62
- }
63
14
  }
15
+ createAggregatedClient(commands, SSO);
@@ -4,6 +4,32 @@ import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./c
4
4
  import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
5
5
  import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
6
6
  import { SSOClient } from "./SSOClient";
7
+ export interface SSO {
8
+ /**
9
+ * @see {@link GetRoleCredentialsCommand}
10
+ */
11
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
12
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
13
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link ListAccountRolesCommand}
16
+ */
17
+ listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
18
+ listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
19
+ listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link ListAccountsCommand}
22
+ */
23
+ listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
24
+ listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
25
+ listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link LogoutCommand}
28
+ */
29
+ logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
30
+ logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
31
+ logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
32
+ }
7
33
  /**
8
34
  * @public
9
35
  * <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
@@ -26,51 +52,5 @@ import { SSOClient } from "./SSOClient";
26
52
  * information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
27
53
  * </note>
28
54
  */
29
- export declare class SSO extends SSOClient {
30
- /**
31
- * @public
32
- * <p>Returns the STS short-term credentials for a given role name that is assigned to the
33
- * user.</p>
34
- */
35
- getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
36
- getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
37
- getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
38
- /**
39
- * @public
40
- * <p>Lists all roles that are assigned to the user for a given AWS account.</p>
41
- */
42
- listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
43
- listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
44
- listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
45
- /**
46
- * @public
47
- * <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
48
- * administrator of the account. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers">Assign User Access</a> in the <i>IAM Identity Center User Guide</i>. This operation
49
- * returns a paginated response.</p>
50
- */
51
- listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
52
- listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
53
- listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
54
- /**
55
- * @public
56
- * <p>Removes the locally stored SSO tokens from the client-side cache and sends an API call to
57
- * the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in
58
- * session.</p>
59
- *
60
- * <note>
61
- * <p>If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is
62
- * used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set.
63
- * More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user,
64
- * and the corresponding temporary AWS credentials are returned to the client.</p>
65
- *
66
- * <p>After user logout, any existing IAM role sessions that were created by using IAM Identity Center
67
- * permission sets continue based on the duration configured in the permission set.
68
- * For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/authconcept.html">User
69
- * authentications</a> in the <i>IAM Identity Center User
70
- * Guide</i>.</p>
71
- * </note>
72
- */
73
- logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
74
- logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
75
- logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
55
+ export declare class SSO extends SSOClient implements SSO {
76
56
  }
@@ -16,7 +16,7 @@ import {
16
16
  LogoutCommandOutput,
17
17
  } from "./commands/LogoutCommand";
18
18
  import { SSOClient } from "./SSOClient";
19
- export declare class SSO extends SSOClient {
19
+ export interface SSO {
20
20
  getRoleCredentials(
21
21
  args: GetRoleCredentialsCommandInput,
22
22
  options?: __HttpHandlerOptions
@@ -70,3 +70,4 @@ export declare class SSO extends SSOClient {
70
70
  cb: (err: any, data?: LogoutCommandOutput) => void
71
71
  ): void;
72
72
  }
73
+ export declare class SSO extends SSOClient implements SSO {}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -37,14 +37,14 @@
37
37
  "@aws-sdk/node-config-provider": "3.310.0",
38
38
  "@aws-sdk/node-http-handler": "3.310.0",
39
39
  "@aws-sdk/protocol-http": "3.310.0",
40
- "@aws-sdk/smithy-client": "3.315.0",
40
+ "@aws-sdk/smithy-client": "3.316.0",
41
41
  "@aws-sdk/types": "3.310.0",
42
42
  "@aws-sdk/url-parser": "3.310.0",
43
43
  "@aws-sdk/util-base64": "3.310.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.310.0",
45
45
  "@aws-sdk/util-body-length-node": "3.310.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
48
48
  "@aws-sdk/util-endpoints": "3.310.0",
49
49
  "@aws-sdk/util-retry": "3.310.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.310.0",
@@ -1,52 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SSOOIDC = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateTokenCommand_1 = require("./commands/CreateTokenCommand");
5
6
  const RegisterClientCommand_1 = require("./commands/RegisterClientCommand");
6
7
  const StartDeviceAuthorizationCommand_1 = require("./commands/StartDeviceAuthorizationCommand");
7
8
  const SSOOIDCClient_1 = require("./SSOOIDCClient");
9
+ const commands = {
10
+ CreateTokenCommand: CreateTokenCommand_1.CreateTokenCommand,
11
+ RegisterClientCommand: RegisterClientCommand_1.RegisterClientCommand,
12
+ StartDeviceAuthorizationCommand: StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand,
13
+ };
8
14
  class SSOOIDC extends SSOOIDCClient_1.SSOOIDCClient {
9
- createToken(args, optionsOrCb, cb) {
10
- const command = new CreateTokenCommand_1.CreateTokenCommand(args);
11
- if (typeof optionsOrCb === "function") {
12
- this.send(command, optionsOrCb);
13
- }
14
- else if (typeof cb === "function") {
15
- if (typeof optionsOrCb !== "object")
16
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
- this.send(command, optionsOrCb || {}, cb);
18
- }
19
- else {
20
- return this.send(command, optionsOrCb);
21
- }
22
- }
23
- registerClient(args, optionsOrCb, cb) {
24
- const command = new RegisterClientCommand_1.RegisterClientCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- startDeviceAuthorization(args, optionsOrCb, cb) {
38
- const command = new StartDeviceAuthorizationCommand_1.StartDeviceAuthorizationCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
15
  }
52
16
  exports.SSOOIDC = SSOOIDC;
17
+ (0, smithy_client_1.createAggregatedClient)(commands, SSOOIDC);
@@ -1,48 +1,13 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateTokenCommand } from "./commands/CreateTokenCommand";
2
3
  import { RegisterClientCommand, } from "./commands/RegisterClientCommand";
3
4
  import { StartDeviceAuthorizationCommand, } from "./commands/StartDeviceAuthorizationCommand";
4
5
  import { SSOOIDCClient } from "./SSOOIDCClient";
6
+ const commands = {
7
+ CreateTokenCommand,
8
+ RegisterClientCommand,
9
+ StartDeviceAuthorizationCommand,
10
+ };
5
11
  export class SSOOIDC extends SSOOIDCClient {
6
- createToken(args, optionsOrCb, cb) {
7
- const command = new CreateTokenCommand(args);
8
- if (typeof optionsOrCb === "function") {
9
- this.send(command, optionsOrCb);
10
- }
11
- else if (typeof cb === "function") {
12
- if (typeof optionsOrCb !== "object")
13
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
14
- this.send(command, optionsOrCb || {}, cb);
15
- }
16
- else {
17
- return this.send(command, optionsOrCb);
18
- }
19
- }
20
- registerClient(args, optionsOrCb, cb) {
21
- const command = new RegisterClientCommand(args);
22
- if (typeof optionsOrCb === "function") {
23
- this.send(command, optionsOrCb);
24
- }
25
- else if (typeof cb === "function") {
26
- if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
- this.send(command, optionsOrCb || {}, cb);
29
- }
30
- else {
31
- return this.send(command, optionsOrCb);
32
- }
33
- }
34
- startDeviceAuthorization(args, optionsOrCb, cb) {
35
- const command = new StartDeviceAuthorizationCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
12
  }
13
+ createAggregatedClient(commands, SSOOIDC);
@@ -3,6 +3,26 @@ import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/Cr
3
3
  import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
4
4
  import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
5
5
  import { SSOOIDCClient } from "./SSOOIDCClient";
6
+ export interface SSOOIDC {
7
+ /**
8
+ * @see {@link CreateTokenCommand}
9
+ */
10
+ createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
11
+ createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
12
+ createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
13
+ /**
14
+ * @see {@link RegisterClientCommand}
15
+ */
16
+ registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
17
+ registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
18
+ registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
19
+ /**
20
+ * @see {@link StartDeviceAuthorizationCommand}
21
+ */
22
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
23
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
24
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
25
+ }
6
26
  /**
7
27
  * @public
8
28
  * <p>AWS IAM Identity Center (successor to AWS Single Sign-On) OpenID Connect (OIDC) is a web service that enables a client (such as AWS CLI
@@ -46,30 +66,5 @@ import { SSOOIDCClient } from "./SSOOIDCClient";
46
66
  * <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
47
67
  * IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
48
68
  */
49
- export declare class SSOOIDC extends SSOOIDCClient {
50
- /**
51
- * @public
52
- * <p>Creates and returns an access token for the authorized client. The access token issued
53
- * will be used to fetch short-term credentials for the assigned roles in the AWS
54
- * account.</p>
55
- */
56
- createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
57
- createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
58
- createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
59
- /**
60
- * @public
61
- * <p>Registers a client with IAM Identity Center. This allows clients to initiate device authorization.
62
- * The output should be persisted for reuse through many authentication requests.</p>
63
- */
64
- registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
65
- registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
66
- registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
67
- /**
68
- * @public
69
- * <p>Initiates device authorization by requesting a pair of verification codes from the
70
- * authorization service.</p>
71
- */
72
- startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
73
- startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
74
- startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
69
+ export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {
75
70
  }
@@ -12,7 +12,7 @@ import {
12
12
  StartDeviceAuthorizationCommandOutput,
13
13
  } from "./commands/StartDeviceAuthorizationCommand";
14
14
  import { SSOOIDCClient } from "./SSOOIDCClient";
15
- export declare class SSOOIDC extends SSOOIDCClient {
15
+ export interface SSOOIDC {
16
16
  createToken(
17
17
  args: CreateTokenCommandInput,
18
18
  options?: __HttpHandlerOptions
@@ -53,3 +53,4 @@ export declare class SSOOIDC extends SSOOIDCClient {
53
53
  cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
54
54
  ): void;
55
55
  }
56
+ export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -37,14 +37,14 @@
37
37
  "@aws-sdk/node-config-provider": "3.310.0",
38
38
  "@aws-sdk/node-http-handler": "3.310.0",
39
39
  "@aws-sdk/protocol-http": "3.310.0",
40
- "@aws-sdk/smithy-client": "3.315.0",
40
+ "@aws-sdk/smithy-client": "3.316.0",
41
41
  "@aws-sdk/types": "3.310.0",
42
42
  "@aws-sdk/url-parser": "3.310.0",
43
43
  "@aws-sdk/util-base64": "3.310.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.310.0",
45
45
  "@aws-sdk/util-body-length-node": "3.310.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
48
48
  "@aws-sdk/util-endpoints": "3.310.0",
49
49
  "@aws-sdk/util-retry": "3.310.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.310.0",