@aws-sdk/nested-clients 3.997.25 → 3.997.26

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 (57) hide show
  1. package/dist-cjs/submodules/cognito-identity/index.js +10 -23
  2. package/dist-cjs/submodules/signin/index.js +10 -15
  3. package/dist-cjs/submodules/sso/index.js +9 -13
  4. package/dist-cjs/submodules/sso-oidc/index.js +9 -13
  5. package/dist-cjs/submodules/sts/index.js +10 -23
  6. package/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
  7. package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
  8. package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
  9. package/dist-es/submodules/cognito-identity/index.js +1 -0
  10. package/dist-es/submodules/signin/commandBuilder.js +8 -0
  11. package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
  12. package/dist-es/submodules/signin/index.js +1 -0
  13. package/dist-es/submodules/sso/commandBuilder.js +6 -0
  14. package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
  15. package/dist-es/submodules/sso/index.js +1 -0
  16. package/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
  17. package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
  18. package/dist-es/submodules/sso-oidc/index.js +1 -0
  19. package/dist-es/submodules/sts/commandBuilder.js +6 -0
  20. package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
  21. package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
  22. package/dist-es/submodules/sts/index.js +1 -0
  23. package/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
  24. package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
  25. package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
  26. package/dist-types/submodules/cognito-identity/index.d.ts +1 -0
  27. package/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
  28. package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  29. package/dist-types/submodules/signin/index.d.ts +1 -0
  30. package/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
  31. package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  32. package/dist-types/submodules/sso/index.d.ts +1 -0
  33. package/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
  34. package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  35. package/dist-types/submodules/sso-oidc/index.d.ts +1 -0
  36. package/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
  37. package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
  38. package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
  39. package/dist-types/submodules/sts/index.d.ts +1 -0
  40. package/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
  41. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
  44. package/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
  45. package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
  46. package/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
  47. package/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
  48. package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
  49. package/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
  50. package/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
  51. package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
  52. package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
  53. package/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
  54. package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
  57. package/package.json +8 -8
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -80,7 +81,7 @@ const commonParams = {
80
81
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
81
82
  };
82
83
 
83
- var version = "3.997.24";
84
+ var version = "3.997.25";
84
85
  var packageInfo = {
85
86
  version: version};
86
87
 
@@ -561,28 +562,14 @@ class CognitoIdentityClient extends Client {
561
562
  }
562
563
  }
563
564
 
564
- class GetCredentialsForIdentityCommand extends Command
565
- .classBuilder()
566
- .ep(commonParams)
567
- .m(function (Command, cs, config, o) {
568
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
569
- })
570
- .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
571
- .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
572
- .sc(GetCredentialsForIdentity$)
573
- .build() {
565
+ const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin);
566
+ const _ep0 = {};
567
+ const _mw0 = (Command, cs, config, o) => [];
568
+
569
+ class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) {
574
570
  }
575
571
 
576
- class GetIdCommand extends Command
577
- .classBuilder()
578
- .ep(commonParams)
579
- .m(function (Command, cs, config, o) {
580
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
581
- })
582
- .s("AWSCognitoIdentityService", "GetId", {})
583
- .n("CognitoIdentityClient", "GetIdCommand")
584
- .sc(GetId$)
585
- .build() {
572
+ class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) {
586
573
  }
587
574
 
588
575
  const commands = {
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -76,7 +77,7 @@ const commonParams = {
76
77
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
77
78
  };
78
79
 
79
- var version = "3.997.24";
80
+ var version = "3.997.25";
80
81
  var packageInfo = {
81
82
  version: version};
82
83
 
@@ -493,19 +494,13 @@ class SigninClient extends Client {
493
494
  }
494
495
  }
495
496
 
496
- class CreateOAuth2TokenCommand extends Command
497
- .classBuilder()
498
- .ep({
499
- ...commonParams,
497
+ const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointPlugin);
498
+ const _ep0 = {
500
499
  IsControlPlane: { type: "staticContextParams", value: false },
501
- })
502
- .m(function (Command, cs, config, o) {
503
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
504
- })
505
- .s("Signin", "CreateOAuth2Token", {})
506
- .n("SigninClient", "CreateOAuth2TokenCommand")
507
- .sc(CreateOAuth2Token$)
508
- .build() {
500
+ };
501
+ const _mw0 = (Command, cs, config, o) => [];
502
+
503
+ class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
509
504
  }
510
505
 
511
506
  const commands = {
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -76,7 +77,7 @@ const commonParams = {
76
77
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
77
78
  };
78
79
 
79
- var version = "3.997.24";
80
+ var version = "3.997.25";
80
81
  var packageInfo = {
81
82
  version: version};
82
83
 
@@ -432,16 +433,11 @@ class SSOClient extends Client {
432
433
  }
433
434
  }
434
435
 
435
- class GetRoleCredentialsCommand extends Command
436
- .classBuilder()
437
- .ep(commonParams)
438
- .m(function (Command, cs, config, o) {
439
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
440
- })
441
- .s("SWBPortalService", "GetRoleCredentials", {})
442
- .n("SSOClient", "GetRoleCredentialsCommand")
443
- .sc(GetRoleCredentials$)
444
- .build() {
436
+ const command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
437
+ const _ep0 = {};
438
+ const _mw0 = (Command, cs, config, o) => [];
439
+
440
+ class GetRoleCredentialsCommand extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
445
441
  }
446
442
 
447
443
  const commands = {
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -76,7 +77,7 @@ const commonParams = {
76
77
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
77
78
  };
78
79
 
79
- var version = "3.997.24";
80
+ var version = "3.997.25";
80
81
  var packageInfo = {
81
82
  version: version};
82
83
 
@@ -613,16 +614,11 @@ class SSOOIDCClient extends Client {
613
614
  }
614
615
  }
615
616
 
616
- class CreateTokenCommand extends Command
617
- .classBuilder()
618
- .ep(commonParams)
619
- .m(function (Command, cs, config, o) {
620
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
621
- })
622
- .s("AWSSSOOIDCService", "CreateToken", {})
623
- .n("SSOOIDCClient", "CreateTokenCommand")
624
- .sc(CreateToken$)
625
- .build() {
617
+ const command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin);
618
+ const _ep0 = {};
619
+ const _mw0 = (Command, cs, config, o) => [];
620
+
621
+ class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
626
622
  }
627
623
 
628
624
  const commands = {
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require("@aws-sdk/core/client");
2
2
  const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -257,7 +258,7 @@ const commonParams = {
257
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
258
259
  };
259
260
 
260
- var version = "3.997.24";
261
+ var version = "3.997.25";
261
262
  var packageInfo = {
262
263
  version: version};
263
264
 
@@ -702,28 +703,14 @@ class STSClient extends Client {
702
703
  }
703
704
  }
704
705
 
705
- class AssumeRoleCommand extends Command
706
- .classBuilder()
707
- .ep(commonParams)
708
- .m(function (Command, cs, config, o) {
709
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
710
- })
711
- .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
712
- .n("STSClient", "AssumeRoleCommand")
713
- .sc(AssumeRole$)
714
- .build() {
706
+ const command = makeBuilder(commonParams, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin);
707
+ const _ep0 = {};
708
+ const _mw0 = (Command, cs, config, o) => [];
709
+
710
+ class AssumeRoleCommand extends command(_ep0, _mw0, "AssumeRole", AssumeRole$) {
715
711
  }
716
712
 
717
- class AssumeRoleWithWebIdentityCommand extends Command
718
- .classBuilder()
719
- .ep(commonParams)
720
- .m(function (Command, cs, config, o) {
721
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
722
- })
723
- .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
724
- .n("STSClient", "AssumeRoleWithWebIdentityCommand")
725
- .sc(AssumeRoleWithWebIdentity$)
726
- .build() {
713
+ class AssumeRoleWithWebIdentityCommand extends command(_ep0, _mw0, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) {
727
714
  }
728
715
 
729
716
  const commands = {
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetCredentialsForIdentity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetCredentialsForIdentityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
13
- .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
14
- .sc(GetCredentialsForIdentity$)
15
- .build() {
3
+ export class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetId$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetIdCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetId", {})
13
- .n("CognitoIdentityClient", "GetIdCommand")
14
- .sc(GetId$)
15
- .build() {
3
+ export class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) {
16
4
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./CognitoIdentityClient";
2
2
  export * from "./CognitoIdentity";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/errors";
6
7
  export * from "./models/models_0";
@@ -0,0 +1,8 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointPlugin);
5
+ export const _ep0 = {
6
+ IsControlPlane: { type: "staticContextParams", value: false },
7
+ };
8
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateOAuth2Token$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateOAuth2TokenCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- IsControlPlane: { type: "staticContextParams", value: false },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("Signin", "CreateOAuth2Token", {})
16
- .n("SigninClient", "CreateOAuth2TokenCommand")
17
- .sc(CreateOAuth2Token$)
18
- .build() {
3
+ export class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) {
19
4
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./SigninClient";
2
2
  export * from "./Signin";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetRoleCredentials$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetRoleCredentialsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SWBPortalService", "GetRoleCredentials", {})
13
- .n("SSOClient", "GetRoleCredentialsCommand")
14
- .sc(GetRoleCredentials$)
15
- .build() {
3
+ export class GetRoleCredentialsCommand extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
16
4
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./SSOClient";
2
2
  export * from "./SSO";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/errors";
6
7
  export * from "./models/models_0";
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSSOOIDCService", "CreateToken", {})
13
- .n("SSOOIDCClient", "CreateTokenCommand")
14
- .sc(CreateToken$)
15
- .build() {
3
+ export class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
16
4
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./SSOOIDCClient";
2
2
  export * from "./SSOOIDC";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssumeRole$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssumeRoleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
13
- .n("STSClient", "AssumeRoleCommand")
14
- .sc(AssumeRole$)
15
- .build() {
3
+ export class AssumeRoleCommand extends command(_ep0, _mw0, "AssumeRole", AssumeRole$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssumeRoleWithWebIdentity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssumeRoleWithWebIdentityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
13
- .n("STSClient", "AssumeRoleWithWebIdentityCommand")
14
- .sc(AssumeRoleWithWebIdentity$)
15
- .build() {
3
+ export class AssumeRoleWithWebIdentityCommand extends command(_ep0, _mw0, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) {
16
4
  }
@@ -1,6 +1,7 @@
1
1
  export * from "./STSClient";
2
2
  export * from "./STS";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./models/errors";
6
7
  export * from "./models/models_0";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./CognitoIdentityClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
4
2
  import type { GetCredentialsForIdentityInput, GetCredentialsForIdentityResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetCredentialsForIdentityCommandInput extends GetCredentialsFor
22
19
  export interface GetCredentialsForIdentityCommandOutput extends GetCredentialsForIdentityResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetCredentialsForIdentityCommand_base: {
25
- new (input: GetCredentialsForIdentityCommandInput): import("@smithy/core/client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetCredentialsForIdentityCommandInput): import("@smithy/core/client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetCredentialsForIdentityCommandInput): import("@smithy/core/client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, import("..").CognitoIdentityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetCredentialsForIdentityCommandInput): import("@smithy/core/client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, import("..").CognitoIdentityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Returns credentials for the provided identity ID. Any provided logins will be
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
4
2
  import type { GetIdInput, GetIdResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetIdCommandInput extends GetIdInput {
22
19
  export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetIdCommand_base: {
25
- new (input: GetIdCommandInput): import("@smithy/core/client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetIdCommandInput): import("@smithy/core/client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetIdCommandInput): import("@smithy/core/client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, import("..").CognitoIdentityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetIdCommandInput): import("@smithy/core/client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, import("..").CognitoIdentityClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Generates (or retrieves) IdentityID. Supplying multiple logins will create an
@@ -23,6 +23,7 @@ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameter
23
23
  export type { RuntimeExtension } from "./runtimeExtensions";
24
24
  export type { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
25
25
  export * from "./commands";
26
+ export { Command as $Command } from "@smithy/core/client";
26
27
  export * from "./schemas/schemas_0";
27
28
  export * from "./models/errors";
28
29
  export * from "./models/models_0";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { SigninClientResolvedConfig } from "./SigninClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends import("./commands").CreateOAuth2TokenCommandInput, O extends import("./commands").CreateOAuth2TokenCommandOutput>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateOAuth2TokenRequest, CreateOAuth2TokenResponse } from "../models/models_0";
4
- import type { SigninClientResolvedConfig } from "../SigninClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateOAuth2TokenCommandInput extends CreateOAuth2TokenRequest
22
19
  export interface CreateOAuth2TokenCommandOutput extends CreateOAuth2TokenResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateOAuth2TokenCommand_base: {
25
- new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
26
- new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
23
+ new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * CreateOAuth2Token API
@@ -10,6 +10,7 @@ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameter
10
10
  export type { RuntimeExtension } from "./runtimeExtensions";
11
11
  export type { SigninExtensionConfiguration } from "./extensionConfiguration";
12
12
  export * from "./commands";
13
+ export { Command as $Command } from "@smithy/core/client";
13
14
  export * from "./schemas/schemas_0";
14
15
  export * from "./models/enums";
15
16
  export * from "./models/errors";