@cdk8s/awscdk-resolver 0.0.402 → 0.0.404

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 (190) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
  5. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  6. package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
  7. package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
  8. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
  9. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
  10. package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
  11. package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
  12. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  13. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
  14. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
  15. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
  16. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
  18. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
  23. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  27. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
  28. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  29. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1 -4
  30. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1 -4
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -4
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +126 -0
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +1 -1
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +1 -1
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
  50. package/node_modules/@aws-sdk/core/package.json +1 -1
  51. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  52. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  53. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  54. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  55. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  56. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  57. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  58. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  59. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
  60. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
  67. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
  68. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
  69. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  72. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -8
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
  83. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  84. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  85. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  86. package/node_modules/@smithy/abort-controller/package.json +2 -2
  87. package/node_modules/@smithy/config-resolver/package.json +5 -5
  88. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -1
  89. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -1
  90. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +3 -3
  91. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  92. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  93. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  94. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +1 -1
  95. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  96. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  97. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  98. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  99. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  100. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  101. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  102. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +1 -1
  103. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +1 -1
  104. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  105. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  106. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -1
  107. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  108. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  109. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +1 -1
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +3 -3
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  112. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  113. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  114. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +1 -1
  115. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  116. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  117. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  118. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  119. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  120. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  121. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  122. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +1 -1
  123. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +1 -1
  124. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  125. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  126. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -1
  127. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  128. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  129. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +1 -1
  130. package/node_modules/@smithy/core/package.json +7 -7
  131. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  132. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  133. package/node_modules/@smithy/hash-node/package.json +2 -2
  134. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  135. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  136. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  137. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  138. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  139. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  140. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  141. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  142. package/node_modules/@smithy/property-provider/package.json +2 -2
  143. package/node_modules/@smithy/protocol-http/package.json +2 -2
  144. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  145. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  146. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  147. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +2 -3
  148. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +10 -6
  149. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  150. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +1 -1
  151. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +1 -2
  152. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -0
  153. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -3
  154. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
  155. package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  156. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
  157. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +1 -0
  158. package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  159. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
  160. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +1 -0
  161. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
  162. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  163. package/node_modules/@smithy/signature-v4/package.json +4 -4
  164. package/node_modules/@smithy/smithy-client/package.json +7 -7
  165. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +12 -12
  166. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +5 -5
  167. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +15 -15
  168. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +12 -12
  169. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +5 -5
  170. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +15 -15
  171. package/node_modules/@smithy/types/package.json +1 -1
  172. package/node_modules/@smithy/url-parser/package.json +3 -3
  173. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  174. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  175. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  176. package/node_modules/@smithy/util-middleware/package.json +2 -2
  177. package/node_modules/@smithy/util-retry/package.json +3 -3
  178. package/node_modules/@smithy/util-stream/package.json +4 -4
  179. package/node_modules/@smithy/util-waiter/package.json +3 -3
  180. package/package.json +8 -8
  181. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
  182. package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  183. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
  186. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
  187. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  188. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  189. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  190. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const core_2 = require("@smithy/core");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const url_parser_1 = require("@smithy/url-parser");
@@ -31,6 +32,7 @@ const getRuntimeConfig = (config) => {
31
32
  },
32
33
  ],
33
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
34
36
  serviceId: config?.serviceId ?? "SSO OIDC",
35
37
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class SSOOIDCClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateToken } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class CreateTokenCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AWSSSOOIDCService", "CreateToken", {})
18
13
  .n("SSOOIDCClient", "CreateTokenCommand")
19
- .f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog)
20
- .ser(se_CreateTokenCommand)
21
- .de(de_CreateTokenCommand)
14
+ .sc(CreateToken)
22
15
  .build() {
23
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
2
  export const AccessDeniedExceptionReason = {
4
3
  KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
@@ -37,18 +36,6 @@ export class AuthorizationPendingException extends __BaseException {
37
36
  this.error_description = opts.error_description;
38
37
  }
39
38
  }
40
- export const CreateTokenRequestFilterSensitiveLog = (obj) => ({
41
- ...obj,
42
- ...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
43
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
44
- ...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
45
- });
46
- export const CreateTokenResponseFilterSensitiveLog = (obj) => ({
47
- ...obj,
48
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
49
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
50
- ...(obj.idToken && { idToken: SENSITIVE_STRING }),
51
- });
52
39
  export class ExpiredTokenException extends __BaseException {
53
40
  name = "ExpiredTokenException";
54
41
  $fault = "client";
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoAuthSigner } from "@smithy/core";
3
4
  import { NoOpLogger } from "@smithy/smithy-client";
4
5
  import { parseUrl } from "@smithy/url-parser";
@@ -28,6 +29,7 @@ export const getRuntimeConfig = (config) => {
28
29
  },
29
30
  ],
30
31
  logger: config?.logger ?? new NoOpLogger(),
32
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
31
33
  serviceId: config?.serviceId ?? "SSO OIDC",
32
34
  urlParser: config?.urlParser ?? parseUrl,
33
35
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,211 @@
1
+ const _ADE = "AccessDeniedException";
2
+ const _APE = "AuthorizationPendingException";
3
+ const _AT = "AccessToken";
4
+ const _CS = "ClientSecret";
5
+ const _CT = "CreateToken";
6
+ const _CTR = "CreateTokenRequest";
7
+ const _CTRr = "CreateTokenResponse";
8
+ const _CV = "CodeVerifier";
9
+ const _ETE = "ExpiredTokenException";
10
+ const _ICE = "InvalidClientException";
11
+ const _IGE = "InvalidGrantException";
12
+ const _IRE = "InvalidRequestException";
13
+ const _ISE = "InternalServerException";
14
+ const _ISEn = "InvalidScopeException";
15
+ const _IT = "IdToken";
16
+ const _RT = "RefreshToken";
17
+ const _SDE = "SlowDownException";
18
+ const _UCE = "UnauthorizedClientException";
19
+ const _UGTE = "UnsupportedGrantTypeException";
20
+ const _aT = "accessToken";
21
+ const _c = "client";
22
+ const _cI = "clientId";
23
+ const _cS = "clientSecret";
24
+ const _cV = "codeVerifier";
25
+ const _co = "code";
26
+ const _dC = "deviceCode";
27
+ const _e = "error";
28
+ const _eI = "expiresIn";
29
+ const _ed = "error_description";
30
+ const _gT = "grantType";
31
+ const _h = "http";
32
+ const _hE = "httpError";
33
+ const _iT = "idToken";
34
+ const _r = "reason";
35
+ const _rT = "refreshToken";
36
+ const _rU = "redirectUri";
37
+ const _s = "scope";
38
+ const _se = "server";
39
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
40
+ const _tT = "tokenType";
41
+ const n0 = "com.amazonaws.ssooidc";
42
+ import { TypeRegistry } from "@smithy/core/schema";
43
+ import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidGrantException as __InvalidGrantException, InvalidRequestException as __InvalidRequestException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/index";
44
+ import { SSOOIDCServiceException as __SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
45
+ export var AccessToken = [0, n0, _AT, 8, 0];
46
+ export var ClientSecret = [0, n0, _CS, 8, 0];
47
+ export var CodeVerifier = [0, n0, _CV, 8, 0];
48
+ export var IdToken = [0, n0, _IT, 8, 0];
49
+ export var RefreshToken = [0, n0, _RT, 8, 0];
50
+ export var AccessDeniedException = [
51
+ -3,
52
+ n0,
53
+ _ADE,
54
+ {
55
+ [_e]: _c,
56
+ [_hE]: 400,
57
+ },
58
+ [_e, _r, _ed],
59
+ [0, 0, 0],
60
+ ];
61
+ TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
62
+ export var AuthorizationPendingException = [
63
+ -3,
64
+ n0,
65
+ _APE,
66
+ {
67
+ [_e]: _c,
68
+ [_hE]: 400,
69
+ },
70
+ [_e, _ed],
71
+ [0, 0],
72
+ ];
73
+ TypeRegistry.for(n0).registerError(AuthorizationPendingException, __AuthorizationPendingException);
74
+ export var CreateTokenRequest = [
75
+ 3,
76
+ n0,
77
+ _CTR,
78
+ 0,
79
+ [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
80
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
81
+ ];
82
+ export var CreateTokenResponse = [
83
+ 3,
84
+ n0,
85
+ _CTRr,
86
+ 0,
87
+ [_aT, _tT, _eI, _rT, _iT],
88
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
89
+ ];
90
+ export var ExpiredTokenException = [
91
+ -3,
92
+ n0,
93
+ _ETE,
94
+ {
95
+ [_e]: _c,
96
+ [_hE]: 400,
97
+ },
98
+ [_e, _ed],
99
+ [0, 0],
100
+ ];
101
+ TypeRegistry.for(n0).registerError(ExpiredTokenException, __ExpiredTokenException);
102
+ export var InternalServerException = [
103
+ -3,
104
+ n0,
105
+ _ISE,
106
+ {
107
+ [_e]: _se,
108
+ [_hE]: 500,
109
+ },
110
+ [_e, _ed],
111
+ [0, 0],
112
+ ];
113
+ TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
114
+ export var InvalidClientException = [
115
+ -3,
116
+ n0,
117
+ _ICE,
118
+ {
119
+ [_e]: _c,
120
+ [_hE]: 401,
121
+ },
122
+ [_e, _ed],
123
+ [0, 0],
124
+ ];
125
+ TypeRegistry.for(n0).registerError(InvalidClientException, __InvalidClientException);
126
+ export var InvalidGrantException = [
127
+ -3,
128
+ n0,
129
+ _IGE,
130
+ {
131
+ [_e]: _c,
132
+ [_hE]: 400,
133
+ },
134
+ [_e, _ed],
135
+ [0, 0],
136
+ ];
137
+ TypeRegistry.for(n0).registerError(InvalidGrantException, __InvalidGrantException);
138
+ export var InvalidRequestException = [
139
+ -3,
140
+ n0,
141
+ _IRE,
142
+ {
143
+ [_e]: _c,
144
+ [_hE]: 400,
145
+ },
146
+ [_e, _r, _ed],
147
+ [0, 0, 0],
148
+ ];
149
+ TypeRegistry.for(n0).registerError(InvalidRequestException, __InvalidRequestException);
150
+ export var InvalidScopeException = [
151
+ -3,
152
+ n0,
153
+ _ISEn,
154
+ {
155
+ [_e]: _c,
156
+ [_hE]: 400,
157
+ },
158
+ [_e, _ed],
159
+ [0, 0],
160
+ ];
161
+ TypeRegistry.for(n0).registerError(InvalidScopeException, __InvalidScopeException);
162
+ export var SlowDownException = [
163
+ -3,
164
+ n0,
165
+ _SDE,
166
+ {
167
+ [_e]: _c,
168
+ [_hE]: 400,
169
+ },
170
+ [_e, _ed],
171
+ [0, 0],
172
+ ];
173
+ TypeRegistry.for(n0).registerError(SlowDownException, __SlowDownException);
174
+ export var UnauthorizedClientException = [
175
+ -3,
176
+ n0,
177
+ _UCE,
178
+ {
179
+ [_e]: _c,
180
+ [_hE]: 400,
181
+ },
182
+ [_e, _ed],
183
+ [0, 0],
184
+ ];
185
+ TypeRegistry.for(n0).registerError(UnauthorizedClientException, __UnauthorizedClientException);
186
+ export var UnsupportedGrantTypeException = [
187
+ -3,
188
+ n0,
189
+ _UGTE,
190
+ {
191
+ [_e]: _c,
192
+ [_hE]: 400,
193
+ },
194
+ [_e, _ed],
195
+ [0, 0],
196
+ ];
197
+ TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, __UnsupportedGrantTypeException);
198
+ export var __Unit = "unit";
199
+ export var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
200
+ TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, __SSOOIDCServiceException);
201
+ export var Scopes = 64 | 0;
202
+ export var CreateToken = [
203
+ 9,
204
+ n0,
205
+ _CT,
206
+ {
207
+ [_h]: ["POST", "/token", 200],
208
+ },
209
+ () => CreateTokenRequest,
210
+ () => CreateTokenResponse,
211
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { 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, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
11
11
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -136,6 +136,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
136
136
  * Optional extensions
137
137
  */
138
138
  extensions?: RuntimeExtension[];
139
+ /**
140
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
141
+ * may be overridden. A default will always be set by the client.
142
+ * Available options depend on the service's supported protocols and will not be validated by
143
+ * the client.
144
+ * @alpha
145
+ *
146
+ */
147
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
139
148
  /**
140
149
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
141
150
  */
@@ -133,10 +133,6 @@ export interface CreateTokenRequest {
133
133
  */
134
134
  codeVerifier?: string | undefined;
135
135
  }
136
- /**
137
- * @internal
138
- */
139
- export declare const CreateTokenRequestFilterSensitiveLog: (obj: CreateTokenRequest) => any;
140
136
  /**
141
137
  * @public
142
138
  */
@@ -177,10 +173,6 @@ export interface CreateTokenResponse {
177
173
  */
178
174
  idToken?: string | undefined;
179
175
  }
180
- /**
181
- * @internal
182
- */
183
- export declare const CreateTokenResponseFilterSensitiveLog: (obj: CreateTokenResponse) => any;
184
176
  /**
185
177
  * <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
186
178
  * @public
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
28
28
  profile?: string;
29
29
  logger: import("@smithy/types").Logger;
30
30
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
33
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -30,6 +30,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
30
30
  profile?: string;
31
31
  logger: import("@smithy/types").Logger;
32
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
34
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
35
36
  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;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
27
27
  logger: import("@smithy/types").Logger;
28
28
  extensions: import("./runtimeExtensions").RuntimeExtension[];
29
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
29
30
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
30
31
  customUserAgent?: string | import("@smithy/types").UserAgent;
31
32
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
25
25
  signer: NoAuthSigner;
26
26
  })[];
27
27
  logger: import("@smithy/types").Logger;
28
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
28
29
  serviceId: string;
29
30
  urlParser: import("@smithy/types").UrlParser;
30
31
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,23 @@
1
+ import { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AccessToken: StaticSimpleSchema;
3
+ export declare var ClientSecret: StaticSimpleSchema;
4
+ export declare var CodeVerifier: StaticSimpleSchema;
5
+ export declare var IdToken: StaticSimpleSchema;
6
+ export declare var RefreshToken: StaticSimpleSchema;
7
+ export declare var AccessDeniedException: StaticErrorSchema;
8
+ export declare var AuthorizationPendingException: StaticErrorSchema;
9
+ export declare var CreateTokenRequest: StaticStructureSchema;
10
+ export declare var CreateTokenResponse: StaticStructureSchema;
11
+ export declare var ExpiredTokenException: StaticErrorSchema;
12
+ export declare var InternalServerException: StaticErrorSchema;
13
+ export declare var InvalidClientException: StaticErrorSchema;
14
+ export declare var InvalidGrantException: StaticErrorSchema;
15
+ export declare var InvalidRequestException: StaticErrorSchema;
16
+ export declare var InvalidScopeException: StaticErrorSchema;
17
+ export declare var SlowDownException: StaticErrorSchema;
18
+ export declare var UnauthorizedClientException: StaticErrorSchema;
19
+ export declare var UnsupportedGrantTypeException: StaticErrorSchema;
20
+ export declare var __Unit: "unit";
21
+ export declare var SSOOIDCServiceException: StaticErrorSchema;
22
+ export declare var Scopes: number;
23
+ export declare var CreateToken: StaticOperationSchema;
@@ -200,7 +200,7 @@ declare const AssumeRoleCommand_base: {
200
200
  * @throws {@link RegionDisabledException} (client fault)
201
201
  * <p>STS is not activated in the requested region for the account that is being asked to
202
202
  * generate credentials. The account administrator must use the IAM console to activate
203
- * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
203
+ * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate">Activating and
204
204
  * Deactivating STS in an Amazon Web Services Region</a> in the <i>IAM User
205
205
  * Guide</i>.</p>
206
206
  *
@@ -213,7 +213,7 @@ declare const AssumeRoleCommand_base: {
213
213
  * //
214
214
  * const input = {
215
215
  * ExternalId: "123ABC",
216
- * Policy: `{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:ListAllMyBuckets","Resource":"*"}]}`,
216
+ * Policy: "escaped-JSON-IAM-POLICY",
217
217
  * RoleArn: "arn:aws:iam::123456789012:role/demo",
218
218
  * RoleSessionName: "testAssumeRoleSession",
219
219
  * Tags: [
@@ -90,7 +90,8 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
90
90
  * </p>
91
91
  * <p>(Optional) You can configure your IdP to pass attributes into your web identity token as
92
92
  * session tags. Each session tag consists of a key name and an associated value. For more
93
- * information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in the
93
+ * information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_adding-assume-role-idp">Passing
94
+ * session tags using AssumeRoleWithWebIdentity</a> in the
94
95
  * <i>IAM User Guide</i>.</p>
95
96
  * <p>You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128
96
97
  * characters and the values can’t exceed 256 characters. For these and additional limits, see
@@ -232,7 +233,7 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
232
233
  * @throws {@link RegionDisabledException} (client fault)
233
234
  * <p>STS is not activated in the requested region for the account that is being asked to
234
235
  * generate credentials. The account administrator must use the IAM console to activate
235
- * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
236
+ * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate">Activating and
236
237
  * Deactivating STS in an Amazon Web Services Region</a> in the <i>IAM User
237
238
  * Guide</i>.</p>
238
239
  *
@@ -245,7 +246,7 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
245
246
  * //
246
247
  * const input = {
247
248
  * DurationSeconds: 3600,
248
- * Policy: `{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:ListAllMyBuckets","Resource":"*"}]}`,
249
+ * Policy: "escaped-JSON-IAM-POLICY",
249
250
  * ProviderId: "www.amazon.com",
250
251
  * RoleArn: "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
251
252
  * RoleSessionName: "app1",
@@ -100,9 +100,9 @@ export interface AssumeRoleRequest {
100
100
  * assume the role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname">
101
101
  * <code>sts:RoleSessionName</code>
102
102
  * </a>.</p>
103
- * <p>The regex used to validate this parameter is a string of characters
104
- * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
105
- * also include underscores or any of the following characters: =,.@-</p>
103
+ * <p>The regex used to validate this parameter is a string of
104
+ * characters consisting of upper- and lower-case alphanumeric characters with no spaces.
105
+ * You can also include underscores or any of the following characters: +=,.@-</p>
106
106
  * @public
107
107
  */
108
108
  RoleSessionName: string | undefined;
@@ -241,7 +241,7 @@ export interface AssumeRoleRequest {
241
241
  * <i>IAM User Guide</i>.</p>
242
242
  * <p>The regex used to validate this parameter is a string of
243
243
  * characters consisting of upper- and lower-case alphanumeric characters with no spaces.
244
- * You can also include underscores or any of the following characters: =,.@:/-</p>
244
+ * You can also include underscores or any of the following characters: +=,.@:\/-</p>
245
245
  * @public
246
246
  */
247
247
  ExternalId?: string | undefined;
@@ -252,9 +252,9 @@ export interface AssumeRoleRequest {
252
252
  * the serial number for a hardware device (such as <code>GAHT12345678</code>) or an Amazon
253
253
  * Resource Name (ARN) for a virtual device (such as
254
254
  * <code>arn:aws:iam::123456789012:mfa/user</code>).</p>
255
- * <p>The regex used to validate this parameter is a string of characters
256
- * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
257
- * also include underscores or any of the following characters: =,.@-</p>
255
+ * <p>The regex used to validate this parameter is a string of
256
+ * characters consisting of upper- and lower-case alphanumeric characters with no spaces.
257
+ * You can also include underscores or any of the following characters: +=/:,.@-</p>
258
258
  * @public
259
259
  */
260
260
  SerialNumber?: string | undefined;
@@ -435,7 +435,7 @@ export declare class PackedPolicyTooLargeException extends __BaseException {
435
435
  /**
436
436
  * <p>STS is not activated in the requested region for the account that is being asked to
437
437
  * generate credentials. The account administrator must use the IAM console to activate
438
- * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
438
+ * STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate">Activating and
439
439
  * Deactivating STS in an Amazon Web Services Region</a> in the <i>IAM User
440
440
  * Guide</i>.</p>
441
441
  * @public
@@ -29,10 +29,13 @@ import {
29
29
  BodyLengthCalculator as __BodyLengthCalculator,
30
30
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
31
  ChecksumConstructor as __ChecksumConstructor,
32
+ ClientProtocol,
32
33
  Decoder as __Decoder,
33
34
  Encoder as __Encoder,
34
35
  HashConstructor as __HashConstructor,
35
36
  HttpHandlerOptions as __HttpHandlerOptions,
37
+ HttpRequest,
38
+ HttpResponse,
36
39
  Logger as __Logger,
37
40
  Provider as __Provider,
38
41
  Provider,
@@ -80,6 +83,7 @@ export interface ClientDefaults
80
83
  retryMode?: string | __Provider<string>;
81
84
  logger?: __Logger;
82
85
  extensions?: RuntimeExtension[];
86
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
83
87
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
84
88
  }
85
89
  export type SSOOIDCClientConfigType = Partial<
@@ -35,9 +35,6 @@ export interface CreateTokenRequest {
35
35
  redirectUri?: string | undefined;
36
36
  codeVerifier?: string | undefined;
37
37
  }
38
- export declare const CreateTokenRequestFilterSensitiveLog: (
39
- obj: CreateTokenRequest
40
- ) => any;
41
38
  export interface CreateTokenResponse {
42
39
  accessToken?: string | undefined;
43
40
  tokenType?: string | undefined;
@@ -45,9 +42,6 @@ export interface CreateTokenResponse {
45
42
  refreshToken?: string | undefined;
46
43
  idToken?: string | undefined;
47
44
  }
48
- export declare const CreateTokenResponseFilterSensitiveLog: (
49
- obj: CreateTokenResponse
50
- ) => any;
51
45
  export declare class ExpiredTokenException extends __BaseException {
52
46
  readonly name: "ExpiredTokenException";
53
47
  readonly $fault: "client";
@@ -33,6 +33,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
33
33
  profile?: string;
34
34
  logger: import("@smithy/types").Logger;
35
35
  extensions: import("./runtimeExtensions").RuntimeExtension[];
36
+ protocol: import("@smithy/types").ClientProtocol<
37
+ import("@smithy/types").HttpRequest,
38
+ import("@smithy/types").HttpResponse
39
+ >;
36
40
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
41
  userAgentAppId?:
38
42
  | string
@@ -33,6 +33,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
33
33
  profile?: string;
34
34
  logger: import("@smithy/types").Logger;
35
35
  extensions: import("./runtimeExtensions").RuntimeExtension[];
36
+ protocol: import("@smithy/types").ClientProtocol<
37
+ import("@smithy/types").HttpRequest,
38
+ import("@smithy/types").HttpResponse
39
+ >;
36
40
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
41
  retryStrategy?:
38
42
  | import("@smithy/types").RetryStrategy
@@ -32,6 +32,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
32
32
  retryMode: string | import("@smithy/types").Provider<string>;
33
33
  logger: import("@smithy/types").Logger;
34
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ protocol: import("@smithy/types").ClientProtocol<
36
+ import("@smithy/types").HttpRequest,
37
+ import("@smithy/types").HttpResponse
38
+ >;
35
39
  defaultsMode:
36
40
  | import("@smithy/smithy-client").DefaultsMode
37
41
  | import("@smithy/types").Provider<
@@ -42,6 +42,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
42
42
  }
43
43
  )[];
44
44
  logger: import("@smithy/types").Logger;
45
+ protocol: import("@smithy/types").ClientProtocol<
46
+ import("@smithy/types").HttpRequest,
47
+ import("@smithy/types").HttpResponse
48
+ >;
45
49
  serviceId: string;
46
50
  urlParser: import("@smithy/types").UrlParser;
47
51
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,28 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticOperationSchema,
4
+ StaticSimpleSchema,
5
+ StaticStructureSchema,
6
+ } from "@smithy/types";
7
+ export declare var AccessToken: StaticSimpleSchema;
8
+ export declare var ClientSecret: StaticSimpleSchema;
9
+ export declare var CodeVerifier: StaticSimpleSchema;
10
+ export declare var IdToken: StaticSimpleSchema;
11
+ export declare var RefreshToken: StaticSimpleSchema;
12
+ export declare var AccessDeniedException: StaticErrorSchema;
13
+ export declare var AuthorizationPendingException: StaticErrorSchema;
14
+ export declare var CreateTokenRequest: StaticStructureSchema;
15
+ export declare var CreateTokenResponse: StaticStructureSchema;
16
+ export declare var ExpiredTokenException: StaticErrorSchema;
17
+ export declare var InternalServerException: StaticErrorSchema;
18
+ export declare var InvalidClientException: StaticErrorSchema;
19
+ export declare var InvalidGrantException: StaticErrorSchema;
20
+ export declare var InvalidRequestException: StaticErrorSchema;
21
+ export declare var InvalidScopeException: StaticErrorSchema;
22
+ export declare var SlowDownException: StaticErrorSchema;
23
+ export declare var UnauthorizedClientException: StaticErrorSchema;
24
+ export declare var UnsupportedGrantTypeException: StaticErrorSchema;
25
+ export declare var __Unit: "unit";
26
+ export declare var SSOOIDCServiceException: StaticErrorSchema;
27
+ export declare var Scopes: number;
28
+ export declare var CreateToken: StaticOperationSchema;