@aws-sdk/client-sso 3.36.0 → 3.39.0

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 (41) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/SSO.js +0 -18
  3. package/dist-cjs/SSOClient.js +0 -23
  4. package/dist-cjs/commands/GetRoleCredentialsCommand.js +0 -25
  5. package/dist-cjs/commands/ListAccountRolesCommand.js +0 -24
  6. package/dist-cjs/commands/ListAccountsCommand.js +0 -26
  7. package/dist-cjs/commands/LogoutCommand.js +0 -24
  8. package/dist-cjs/commands/index.js +7 -0
  9. package/dist-cjs/endpoints.js +6 -1
  10. package/dist-cjs/index.js +4 -9
  11. package/dist-cjs/models/models_0.js +0 -42
  12. package/dist-cjs/pagination/ListAccountRolesPaginator.js +0 -10
  13. package/dist-cjs/pagination/ListAccountsPaginator.js +0 -10
  14. package/dist-cjs/pagination/index.js +6 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  16. package/dist-cjs/runtimeConfig.browser.js +1 -5
  17. package/dist-cjs/runtimeConfig.js +1 -5
  18. package/dist-cjs/runtimeConfig.native.js +0 -3
  19. package/dist-cjs/runtimeConfig.shared.js +0 -3
  20. package/dist-es/commands/index.js +4 -0
  21. package/dist-es/endpoints.js +6 -1
  22. package/dist-es/index.js +4 -9
  23. package/dist-es/pagination/index.js +3 -0
  24. package/dist-types/commands/index.d.ts +4 -0
  25. package/dist-types/index.d.ts +4 -9
  26. package/dist-types/pagination/index.d.ts +3 -0
  27. package/dist-types/ts3.4/SSO.d.ts +5 -33
  28. package/dist-types/ts3.4/SSOClient.d.ts +23 -100
  29. package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +2 -21
  30. package/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +2 -20
  31. package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +2 -22
  32. package/dist-types/ts3.4/commands/LogoutCommand.d.ts +2 -20
  33. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  34. package/dist-types/ts3.4/index.d.ts +4 -9
  35. package/dist-types/ts3.4/models/models_0.d.ts +46 -147
  36. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  40. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  41. package/package.json +29 -29
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sso
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
20
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
21
+
22
+
23
+
24
+
25
+
26
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
27
+
28
+
29
+ ### Features
30
+
31
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
32
+
33
+
34
+
35
+
36
+
37
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
49
 
8
50
 
package/dist-cjs/SSO.js CHANGED
@@ -6,24 +6,6 @@ const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand");
6
6
  const ListAccountsCommand_1 = require("./commands/ListAccountsCommand");
7
7
  const LogoutCommand_1 = require("./commands/LogoutCommand");
8
8
  const SSOClient_1 = require("./SSOClient");
9
- /**
10
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
11
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
12
- * and roles assigned to them and get federated into the application.</p>
13
- *
14
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
15
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
16
- *
17
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
18
- * programatically and includes detailed information on data types and errors.</p>
19
- *
20
- * <note>
21
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
22
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
23
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
24
- * 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>
25
- * </note>
26
- */
27
9
  class SSO extends SSOClient_1.SSOClient {
28
10
  getRoleCredentials(args, optionsOrCb, cb) {
29
11
  const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args);
@@ -9,24 +9,6 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
9
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
10
10
  const smithy_client_1 = require("@aws-sdk/smithy-client");
11
11
  const runtimeConfig_1 = require("./runtimeConfig");
12
- /**
13
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
14
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
15
- * and roles assigned to them and get federated into the application.</p>
16
- *
17
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
18
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
19
- *
20
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
21
- * programatically and includes detailed information on data types and errors.</p>
22
- *
23
- * <note>
24
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
25
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
26
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
27
- * 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>
28
- * </note>
29
- */
30
12
  class SSOClient extends smithy_client_1.Client {
31
13
  constructor(configuration) {
32
14
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -43,11 +25,6 @@ class SSOClient extends smithy_client_1.Client {
43
25
  this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
44
26
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
45
27
  }
46
- /**
47
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
48
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
49
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
50
- */
51
28
  destroy() {
52
29
  super.destroy();
53
30
  }
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns the STS short-term credentials for a given role name that is assigned to the
10
- * user.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import
15
- * // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
16
- * const client = new SSOClient(config);
17
- * const command = new GetRoleCredentialsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
22
- * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
23
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class GetRoleCredentialsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all roles that are assigned to the user for a given AWS account.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import
14
- * // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import
15
- * const client = new SSOClient(config);
16
- * const command = new ListAccountRolesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListAccountRolesCommandInput} for command's `input` shape.
21
- * @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
22
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListAccountRolesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
10
- * 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>AWS SSO User Guide</i>. This operation
11
- * returns a paginated response.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; // ES Modules import
16
- * // const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
17
- * const client = new SSOClient(config);
18
- * const command = new ListAccountsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListAccountsCommandInput} for command's `input` shape.
23
- * @see {@link ListAccountsCommandOutput} for command's `response` shape.
24
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ListAccountsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Removes the client- and server-side session that is associated with the user.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import
14
- * // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import
15
- * const client = new SSOClient(config);
16
- * const command = new LogoutCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link LogoutCommandInput} for command's `input` shape.
21
- * @see {@link LogoutCommandOutput} for command's `response` shape.
22
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class LogoutCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetRoleCredentialsCommand"), exports);
5
+ tslib_1.__exportStar(require("./ListAccountRolesCommand"), exports);
6
+ tslib_1.__exportStar(require("./ListAccountsCommand"), exports);
7
+ tslib_1.__exportStar(require("./LogoutCommand"), exports);
@@ -65,22 +65,27 @@ const partitionHash = {
65
65
  "us-west-1",
66
66
  "us-west-2",
67
67
  ],
68
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
68
69
  hostname: "portal.sso.{region}.amazonaws.com",
69
70
  },
70
71
  "aws-cn": {
71
72
  regions: ["cn-north-1", "cn-northwest-1"],
73
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
72
74
  hostname: "portal.sso.{region}.amazonaws.com.cn",
73
75
  },
74
76
  "aws-iso": {
75
- regions: ["us-iso-east-1"],
77
+ regions: ["us-iso-east-1", "us-iso-west-1"],
78
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
76
79
  hostname: "portal.sso.{region}.c2s.ic.gov",
77
80
  },
78
81
  "aws-iso-b": {
79
82
  regions: ["us-isob-east-1"],
83
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
80
84
  hostname: "portal.sso.{region}.sc2s.sgov.gov",
81
85
  },
82
86
  "aws-us-gov": {
83
87
  regions: ["us-gov-east-1", "us-gov-west-1"],
88
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
84
89
  hostname: "portal.sso.{region}.amazonaws.com",
85
90
  },
86
91
  };
package/dist-cjs/index.js CHANGED
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./SSOClient"), exports);
5
4
  tslib_1.__exportStar(require("./SSO"), exports);
6
- tslib_1.__exportStar(require("./commands/GetRoleCredentialsCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/ListAccountRolesCommand"), exports);
8
- tslib_1.__exportStar(require("./pagination/ListAccountRolesPaginator"), exports);
9
- tslib_1.__exportStar(require("./commands/ListAccountsCommand"), exports);
10
- tslib_1.__exportStar(require("./pagination/ListAccountsPaginator"), exports);
11
- tslib_1.__exportStar(require("./commands/LogoutCommand"), exports);
12
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
13
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./SSOClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
@@ -4,18 +4,12 @@ exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsReque
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  var AccountInfo;
6
6
  (function (AccountInfo) {
7
- /**
8
- * @internal
9
- */
10
7
  AccountInfo.filterSensitiveLog = (obj) => ({
11
8
  ...obj,
12
9
  });
13
10
  })(AccountInfo = exports.AccountInfo || (exports.AccountInfo = {}));
14
11
  var GetRoleCredentialsRequest;
15
12
  (function (GetRoleCredentialsRequest) {
16
- /**
17
- * @internal
18
- */
19
13
  GetRoleCredentialsRequest.filterSensitiveLog = (obj) => ({
20
14
  ...obj,
21
15
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -23,9 +17,6 @@ var GetRoleCredentialsRequest;
23
17
  })(GetRoleCredentialsRequest = exports.GetRoleCredentialsRequest || (exports.GetRoleCredentialsRequest = {}));
24
18
  var RoleCredentials;
25
19
  (function (RoleCredentials) {
26
- /**
27
- * @internal
28
- */
29
20
  RoleCredentials.filterSensitiveLog = (obj) => ({
30
21
  ...obj,
31
22
  ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }),
@@ -34,9 +25,6 @@ var RoleCredentials;
34
25
  })(RoleCredentials = exports.RoleCredentials || (exports.RoleCredentials = {}));
35
26
  var GetRoleCredentialsResponse;
36
27
  (function (GetRoleCredentialsResponse) {
37
- /**
38
- * @internal
39
- */
40
28
  GetRoleCredentialsResponse.filterSensitiveLog = (obj) => ({
41
29
  ...obj,
42
30
  ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
@@ -44,45 +32,30 @@ var GetRoleCredentialsResponse;
44
32
  })(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {}));
45
33
  var InvalidRequestException;
46
34
  (function (InvalidRequestException) {
47
- /**
48
- * @internal
49
- */
50
35
  InvalidRequestException.filterSensitiveLog = (obj) => ({
51
36
  ...obj,
52
37
  });
53
38
  })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
54
39
  var ResourceNotFoundException;
55
40
  (function (ResourceNotFoundException) {
56
- /**
57
- * @internal
58
- */
59
41
  ResourceNotFoundException.filterSensitiveLog = (obj) => ({
60
42
  ...obj,
61
43
  });
62
44
  })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
63
45
  var TooManyRequestsException;
64
46
  (function (TooManyRequestsException) {
65
- /**
66
- * @internal
67
- */
68
47
  TooManyRequestsException.filterSensitiveLog = (obj) => ({
69
48
  ...obj,
70
49
  });
71
50
  })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
72
51
  var UnauthorizedException;
73
52
  (function (UnauthorizedException) {
74
- /**
75
- * @internal
76
- */
77
53
  UnauthorizedException.filterSensitiveLog = (obj) => ({
78
54
  ...obj,
79
55
  });
80
56
  })(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
81
57
  var ListAccountRolesRequest;
82
58
  (function (ListAccountRolesRequest) {
83
- /**
84
- * @internal
85
- */
86
59
  ListAccountRolesRequest.filterSensitiveLog = (obj) => ({
87
60
  ...obj,
88
61
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -90,27 +63,18 @@ var ListAccountRolesRequest;
90
63
  })(ListAccountRolesRequest = exports.ListAccountRolesRequest || (exports.ListAccountRolesRequest = {}));
91
64
  var RoleInfo;
92
65
  (function (RoleInfo) {
93
- /**
94
- * @internal
95
- */
96
66
  RoleInfo.filterSensitiveLog = (obj) => ({
97
67
  ...obj,
98
68
  });
99
69
  })(RoleInfo = exports.RoleInfo || (exports.RoleInfo = {}));
100
70
  var ListAccountRolesResponse;
101
71
  (function (ListAccountRolesResponse) {
102
- /**
103
- * @internal
104
- */
105
72
  ListAccountRolesResponse.filterSensitiveLog = (obj) => ({
106
73
  ...obj,
107
74
  });
108
75
  })(ListAccountRolesResponse = exports.ListAccountRolesResponse || (exports.ListAccountRolesResponse = {}));
109
76
  var ListAccountsRequest;
110
77
  (function (ListAccountsRequest) {
111
- /**
112
- * @internal
113
- */
114
78
  ListAccountsRequest.filterSensitiveLog = (obj) => ({
115
79
  ...obj,
116
80
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -118,18 +82,12 @@ var ListAccountsRequest;
118
82
  })(ListAccountsRequest = exports.ListAccountsRequest || (exports.ListAccountsRequest = {}));
119
83
  var ListAccountsResponse;
120
84
  (function (ListAccountsResponse) {
121
- /**
122
- * @internal
123
- */
124
85
  ListAccountsResponse.filterSensitiveLog = (obj) => ({
125
86
  ...obj,
126
87
  });
127
88
  })(ListAccountsResponse = exports.ListAccountsResponse || (exports.ListAccountsResponse = {}));
128
89
  var LogoutRequest;
129
90
  (function (LogoutRequest) {
130
- /**
131
- * @internal
132
- */
133
91
  LogoutRequest.filterSensitiveLog = (obj) => ({
134
92
  ...obj,
135
93
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -4,22 +4,13 @@ exports.paginateListAccountRoles = void 0;
4
4
  const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
5
5
  const SSO_1 = require("../SSO");
6
6
  const SSOClient_1 = require("../SSOClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listAccountRoles(input, ...args);
20
12
  };
21
13
  async function* paginateListAccountRoles(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListAccountRoles(config, input, ...additionalArguments)
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListAccountRoles = paginateListAccountRoles;
@@ -4,22 +4,13 @@ exports.paginateListAccounts = void 0;
4
4
  const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
5
5
  const SSO_1 = require("../SSO");
6
6
  const SSOClient_1 = require("../SSOClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listAccounts(input, ...args);
20
12
  };
21
13
  async function* paginateListAccounts(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListAccounts(config, input, ...additionalArguments) {
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListAccounts = paginateListAccounts;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListAccountRolesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListAccountsPaginator"), exports);
@@ -477,14 +477,12 @@ const deserializeMetadata = (output) => {
477
477
  cfId: output.headers["x-amz-cf-id"],
478
478
  });
479
479
  };
480
- // Collect low-level response body stream to Uint8Array.
481
480
  const collectBody = (streamBody = new Uint8Array(), context) => {
482
481
  if (streamBody instanceof Uint8Array) {
483
482
  return Promise.resolve(streamBody);
484
483
  }
485
484
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
486
485
  };
487
- // Encode Uint8Array data into string with utf-8.
488
486
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
489
487
  const isSerializableHeaderValue = (value) => value !== undefined &&
490
488
  value !== null &&
@@ -497,9 +495,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
497
495
  }
498
496
  return {};
499
497
  });
500
- /**
501
- * Load an error code for the aws.rest-json-1.1 protocol.
502
- */
503
498
  const loadRestJsonErrorCode = (output, data) => {
504
499
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
505
500
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
7
  const hash_node_1 = require("@aws-sdk/hash-node");
9
8
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -15,9 +14,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
14
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
18
- /**
19
- * @internal
20
- */
21
17
  const getRuntimeConfig = (config) => {
22
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
23
19
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,4 @@
1
+ export * from "./GetRoleCredentialsCommand";
2
+ export * from "./ListAccountRolesCommand";
3
+ export * from "./ListAccountsCommand";
4
+ export * from "./LogoutCommand";
@@ -63,22 +63,27 @@ var partitionHash = {
63
63
  "us-west-1",
64
64
  "us-west-2",
65
65
  ],
66
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
66
67
  hostname: "portal.sso.{region}.amazonaws.com",
67
68
  },
68
69
  "aws-cn": {
69
70
  regions: ["cn-north-1", "cn-northwest-1"],
71
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
70
72
  hostname: "portal.sso.{region}.amazonaws.com.cn",
71
73
  },
72
74
  "aws-iso": {
73
- regions: ["us-iso-east-1"],
75
+ regions: ["us-iso-east-1", "us-iso-west-1"],
76
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
74
77
  hostname: "portal.sso.{region}.c2s.ic.gov",
75
78
  },
76
79
  "aws-iso-b": {
77
80
  regions: ["us-isob-east-1"],
81
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
78
82
  hostname: "portal.sso.{region}.sc2s.sgov.gov",
79
83
  },
80
84
  "aws-us-gov": {
81
85
  regions: ["us-gov-east-1", "us-gov-west-1"],
86
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
82
87
  hostname: "portal.sso.{region}.amazonaws.com",
83
88
  },
84
89
  };