@aws-sdk/client-cognito-identity 3.1076.0 → 3.1078.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 (89) hide show
  1. package/dist-cjs/index.js +34 -235
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateIdentityPoolCommand.js +2 -14
  4. package/dist-es/commands/DeleteIdentitiesCommand.js +2 -14
  5. package/dist-es/commands/DeleteIdentityPoolCommand.js +2 -14
  6. package/dist-es/commands/DescribeIdentityCommand.js +2 -14
  7. package/dist-es/commands/DescribeIdentityPoolCommand.js +2 -14
  8. package/dist-es/commands/GetCredentialsForIdentityCommand.js +2 -14
  9. package/dist-es/commands/GetIdCommand.js +2 -14
  10. package/dist-es/commands/GetIdentityPoolRolesCommand.js +2 -14
  11. package/dist-es/commands/GetOpenIdTokenCommand.js +2 -14
  12. package/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +2 -14
  13. package/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +2 -14
  14. package/dist-es/commands/ListIdentitiesCommand.js +2 -14
  15. package/dist-es/commands/ListIdentityPoolsCommand.js +2 -14
  16. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  17. package/dist-es/commands/LookupDeveloperIdentityCommand.js +2 -14
  18. package/dist-es/commands/MergeDeveloperIdentitiesCommand.js +2 -14
  19. package/dist-es/commands/SetIdentityPoolRolesCommand.js +2 -14
  20. package/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +2 -14
  21. package/dist-es/commands/TagResourceCommand.js +2 -14
  22. package/dist-es/commands/UnlinkDeveloperIdentityCommand.js +2 -14
  23. package/dist-es/commands/UnlinkIdentityCommand.js +2 -14
  24. package/dist-es/commands/UntagResourceCommand.js +2 -14
  25. package/dist-es/commands/UpdateIdentityPoolCommand.js +2 -14
  26. package/dist-es/index.js +1 -0
  27. package/dist-es/runtimeConfig.browser.js +0 -2
  28. package/dist-es/runtimeConfig.js +1 -2
  29. package/dist-es/runtimeConfig.native.js +0 -2
  30. package/dist-es/runtimeConfig.shared.js +2 -0
  31. package/dist-types/commandBuilder.d.ts +18 -0
  32. package/dist-types/commands/CreateIdentityPoolCommand.d.ts +3 -8
  33. package/dist-types/commands/DeleteIdentitiesCommand.d.ts +3 -8
  34. package/dist-types/commands/DeleteIdentityPoolCommand.d.ts +3 -8
  35. package/dist-types/commands/DescribeIdentityCommand.d.ts +3 -8
  36. package/dist-types/commands/DescribeIdentityPoolCommand.d.ts +3 -8
  37. package/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
  38. package/dist-types/commands/GetIdCommand.d.ts +3 -8
  39. package/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +3 -8
  40. package/dist-types/commands/GetOpenIdTokenCommand.d.ts +3 -8
  41. package/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +3 -8
  42. package/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +3 -8
  43. package/dist-types/commands/ListIdentitiesCommand.d.ts +3 -8
  44. package/dist-types/commands/ListIdentityPoolsCommand.d.ts +3 -8
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  46. package/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +3 -8
  47. package/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +3 -8
  48. package/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +3 -8
  49. package/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +3 -8
  50. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  51. package/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +3 -8
  52. package/dist-types/commands/UnlinkIdentityCommand.d.ts +3 -8
  53. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  54. package/dist-types/commands/UpdateIdentityPoolCommand.d.ts +3 -8
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  57. package/dist-types/runtimeConfig.d.ts +1 -1
  58. package/dist-types/runtimeConfig.native.d.ts +1 -1
  59. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  60. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  61. package/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/GetIdCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/index.d.ts +1 -0
  85. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  86. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  87. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  88. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  89. package/package.json +10 -12
package/dist-cjs/index.js CHANGED
@@ -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, createPaginator } = 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");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -92,7 +94,7 @@ const commonParams = {
92
94
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
93
95
  };
94
96
 
95
- var version = "3.1075.0";
97
+ var version = "3.1077.0";
96
98
  var packageInfo = {
97
99
  version: version};
98
100
 
@@ -893,6 +895,7 @@ const getRuntimeConfig$1 = (config) => {
893
895
  serviceTarget: "AWSCognitoIdentityService",
894
896
  },
895
897
  serviceId: config?.serviceId ?? "Cognito Identity",
898
+ sha256: config?.sha256 ?? Sha256,
896
899
  urlParser: config?.urlParser ?? parseUrl,
897
900
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
898
901
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -926,7 +929,6 @@ const getRuntimeConfig = (config) => {
926
929
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
927
930
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
928
931
  }, config),
929
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
930
932
  streamCollector: config?.streamCollector ?? streamCollector,
931
933
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
932
934
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1014,280 +1016,77 @@ class CognitoIdentityClient extends Client {
1014
1016
  }
1015
1017
  }
1016
1018
 
1017
- class CreateIdentityPoolCommand extends Command
1018
- .classBuilder()
1019
- .ep(commonParams)
1020
- .m(function (Command, cs, config, o) {
1021
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1022
- })
1023
- .s("AWSCognitoIdentityService", "CreateIdentityPool", {})
1024
- .n("CognitoIdentityClient", "CreateIdentityPoolCommand")
1025
- .sc(CreateIdentityPool$)
1026
- .build() {
1019
+ const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin);
1020
+ const _ep0 = {};
1021
+ const _mw0 = (Command, cs, config, o) => [];
1022
+
1023
+ class CreateIdentityPoolCommand extends command(_ep0, _mw0, "CreateIdentityPool", CreateIdentityPool$) {
1027
1024
  }
1028
1025
 
1029
- class DeleteIdentitiesCommand extends Command
1030
- .classBuilder()
1031
- .ep(commonParams)
1032
- .m(function (Command, cs, config, o) {
1033
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1034
- })
1035
- .s("AWSCognitoIdentityService", "DeleteIdentities", {})
1036
- .n("CognitoIdentityClient", "DeleteIdentitiesCommand")
1037
- .sc(DeleteIdentities$)
1038
- .build() {
1026
+ class DeleteIdentitiesCommand extends command(_ep0, _mw0, "DeleteIdentities", DeleteIdentities$) {
1039
1027
  }
1040
1028
 
1041
- class DeleteIdentityPoolCommand extends Command
1042
- .classBuilder()
1043
- .ep(commonParams)
1044
- .m(function (Command, cs, config, o) {
1045
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1046
- })
1047
- .s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
1048
- .n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
1049
- .sc(DeleteIdentityPool$)
1050
- .build() {
1029
+ class DeleteIdentityPoolCommand extends command(_ep0, _mw0, "DeleteIdentityPool", DeleteIdentityPool$) {
1051
1030
  }
1052
1031
 
1053
- class DescribeIdentityCommand extends Command
1054
- .classBuilder()
1055
- .ep(commonParams)
1056
- .m(function (Command, cs, config, o) {
1057
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1058
- })
1059
- .s("AWSCognitoIdentityService", "DescribeIdentity", {})
1060
- .n("CognitoIdentityClient", "DescribeIdentityCommand")
1061
- .sc(DescribeIdentity$)
1062
- .build() {
1032
+ class DescribeIdentityCommand extends command(_ep0, _mw0, "DescribeIdentity", DescribeIdentity$) {
1063
1033
  }
1064
1034
 
1065
- class DescribeIdentityPoolCommand extends Command
1066
- .classBuilder()
1067
- .ep(commonParams)
1068
- .m(function (Command, cs, config, o) {
1069
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1070
- })
1071
- .s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
1072
- .n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
1073
- .sc(DescribeIdentityPool$)
1074
- .build() {
1035
+ class DescribeIdentityPoolCommand extends command(_ep0, _mw0, "DescribeIdentityPool", DescribeIdentityPool$) {
1075
1036
  }
1076
1037
 
1077
- class GetCredentialsForIdentityCommand extends Command
1078
- .classBuilder()
1079
- .ep(commonParams)
1080
- .m(function (Command, cs, config, o) {
1081
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1082
- })
1083
- .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
1084
- .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
1085
- .sc(GetCredentialsForIdentity$)
1086
- .build() {
1038
+ class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) {
1087
1039
  }
1088
1040
 
1089
- class GetIdCommand extends Command
1090
- .classBuilder()
1091
- .ep(commonParams)
1092
- .m(function (Command, cs, config, o) {
1093
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1094
- })
1095
- .s("AWSCognitoIdentityService", "GetId", {})
1096
- .n("CognitoIdentityClient", "GetIdCommand")
1097
- .sc(GetId$)
1098
- .build() {
1041
+ class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) {
1099
1042
  }
1100
1043
 
1101
- class GetIdentityPoolRolesCommand extends Command
1102
- .classBuilder()
1103
- .ep(commonParams)
1104
- .m(function (Command, cs, config, o) {
1105
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1106
- })
1107
- .s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
1108
- .n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
1109
- .sc(GetIdentityPoolRoles$)
1110
- .build() {
1044
+ class GetIdentityPoolRolesCommand extends command(_ep0, _mw0, "GetIdentityPoolRoles", GetIdentityPoolRoles$) {
1111
1045
  }
1112
1046
 
1113
- class GetOpenIdTokenCommand extends Command
1114
- .classBuilder()
1115
- .ep(commonParams)
1116
- .m(function (Command, cs, config, o) {
1117
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1118
- })
1119
- .s("AWSCognitoIdentityService", "GetOpenIdToken", {})
1120
- .n("CognitoIdentityClient", "GetOpenIdTokenCommand")
1121
- .sc(GetOpenIdToken$)
1122
- .build() {
1047
+ class GetOpenIdTokenCommand extends command(_ep0, _mw0, "GetOpenIdToken", GetOpenIdToken$) {
1123
1048
  }
1124
1049
 
1125
- class GetOpenIdTokenForDeveloperIdentityCommand extends Command
1126
- .classBuilder()
1127
- .ep(commonParams)
1128
- .m(function (Command, cs, config, o) {
1129
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1130
- })
1131
- .s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {})
1132
- .n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand")
1133
- .sc(GetOpenIdTokenForDeveloperIdentity$)
1134
- .build() {
1050
+ class GetOpenIdTokenForDeveloperIdentityCommand extends command(_ep0, _mw0, "GetOpenIdTokenForDeveloperIdentity", GetOpenIdTokenForDeveloperIdentity$) {
1135
1051
  }
1136
1052
 
1137
- class GetPrincipalTagAttributeMapCommand extends Command
1138
- .classBuilder()
1139
- .ep(commonParams)
1140
- .m(function (Command, cs, config, o) {
1141
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1142
- })
1143
- .s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {})
1144
- .n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand")
1145
- .sc(GetPrincipalTagAttributeMap$)
1146
- .build() {
1053
+ class GetPrincipalTagAttributeMapCommand extends command(_ep0, _mw0, "GetPrincipalTagAttributeMap", GetPrincipalTagAttributeMap$) {
1147
1054
  }
1148
1055
 
1149
- class ListIdentitiesCommand extends Command
1150
- .classBuilder()
1151
- .ep(commonParams)
1152
- .m(function (Command, cs, config, o) {
1153
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1154
- })
1155
- .s("AWSCognitoIdentityService", "ListIdentities", {})
1156
- .n("CognitoIdentityClient", "ListIdentitiesCommand")
1157
- .sc(ListIdentities$)
1158
- .build() {
1056
+ class ListIdentitiesCommand extends command(_ep0, _mw0, "ListIdentities", ListIdentities$) {
1159
1057
  }
1160
1058
 
1161
- class ListIdentityPoolsCommand extends Command
1162
- .classBuilder()
1163
- .ep(commonParams)
1164
- .m(function (Command, cs, config, o) {
1165
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1166
- })
1167
- .s("AWSCognitoIdentityService", "ListIdentityPools", {})
1168
- .n("CognitoIdentityClient", "ListIdentityPoolsCommand")
1169
- .sc(ListIdentityPools$)
1170
- .build() {
1059
+ class ListIdentityPoolsCommand extends command(_ep0, _mw0, "ListIdentityPools", ListIdentityPools$) {
1171
1060
  }
1172
1061
 
1173
- class ListTagsForResourceCommand extends Command
1174
- .classBuilder()
1175
- .ep(commonParams)
1176
- .m(function (Command, cs, config, o) {
1177
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1178
- })
1179
- .s("AWSCognitoIdentityService", "ListTagsForResource", {})
1180
- .n("CognitoIdentityClient", "ListTagsForResourceCommand")
1181
- .sc(ListTagsForResource$)
1182
- .build() {
1062
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1183
1063
  }
1184
1064
 
1185
- class LookupDeveloperIdentityCommand extends Command
1186
- .classBuilder()
1187
- .ep(commonParams)
1188
- .m(function (Command, cs, config, o) {
1189
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1190
- })
1191
- .s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {})
1192
- .n("CognitoIdentityClient", "LookupDeveloperIdentityCommand")
1193
- .sc(LookupDeveloperIdentity$)
1194
- .build() {
1065
+ class LookupDeveloperIdentityCommand extends command(_ep0, _mw0, "LookupDeveloperIdentity", LookupDeveloperIdentity$) {
1195
1066
  }
1196
1067
 
1197
- class MergeDeveloperIdentitiesCommand extends Command
1198
- .classBuilder()
1199
- .ep(commonParams)
1200
- .m(function (Command, cs, config, o) {
1201
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1202
- })
1203
- .s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {})
1204
- .n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand")
1205
- .sc(MergeDeveloperIdentities$)
1206
- .build() {
1068
+ class MergeDeveloperIdentitiesCommand extends command(_ep0, _mw0, "MergeDeveloperIdentities", MergeDeveloperIdentities$) {
1207
1069
  }
1208
1070
 
1209
- class SetIdentityPoolRolesCommand extends Command
1210
- .classBuilder()
1211
- .ep(commonParams)
1212
- .m(function (Command, cs, config, o) {
1213
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1214
- })
1215
- .s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {})
1216
- .n("CognitoIdentityClient", "SetIdentityPoolRolesCommand")
1217
- .sc(SetIdentityPoolRoles$)
1218
- .build() {
1071
+ class SetIdentityPoolRolesCommand extends command(_ep0, _mw0, "SetIdentityPoolRoles", SetIdentityPoolRoles$) {
1219
1072
  }
1220
1073
 
1221
- class SetPrincipalTagAttributeMapCommand extends Command
1222
- .classBuilder()
1223
- .ep(commonParams)
1224
- .m(function (Command, cs, config, o) {
1225
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1226
- })
1227
- .s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {})
1228
- .n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand")
1229
- .sc(SetPrincipalTagAttributeMap$)
1230
- .build() {
1074
+ class SetPrincipalTagAttributeMapCommand extends command(_ep0, _mw0, "SetPrincipalTagAttributeMap", SetPrincipalTagAttributeMap$) {
1231
1075
  }
1232
1076
 
1233
- class TagResourceCommand extends Command
1234
- .classBuilder()
1235
- .ep(commonParams)
1236
- .m(function (Command, cs, config, o) {
1237
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1238
- })
1239
- .s("AWSCognitoIdentityService", "TagResource", {})
1240
- .n("CognitoIdentityClient", "TagResourceCommand")
1241
- .sc(TagResource$)
1242
- .build() {
1077
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1243
1078
  }
1244
1079
 
1245
- class UnlinkDeveloperIdentityCommand extends Command
1246
- .classBuilder()
1247
- .ep(commonParams)
1248
- .m(function (Command, cs, config, o) {
1249
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1250
- })
1251
- .s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {})
1252
- .n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand")
1253
- .sc(UnlinkDeveloperIdentity$)
1254
- .build() {
1080
+ class UnlinkDeveloperIdentityCommand extends command(_ep0, _mw0, "UnlinkDeveloperIdentity", UnlinkDeveloperIdentity$) {
1255
1081
  }
1256
1082
 
1257
- class UnlinkIdentityCommand extends Command
1258
- .classBuilder()
1259
- .ep(commonParams)
1260
- .m(function (Command, cs, config, o) {
1261
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1262
- })
1263
- .s("AWSCognitoIdentityService", "UnlinkIdentity", {})
1264
- .n("CognitoIdentityClient", "UnlinkIdentityCommand")
1265
- .sc(UnlinkIdentity$)
1266
- .build() {
1083
+ class UnlinkIdentityCommand extends command(_ep0, _mw0, "UnlinkIdentity", UnlinkIdentity$) {
1267
1084
  }
1268
1085
 
1269
- class UntagResourceCommand extends Command
1270
- .classBuilder()
1271
- .ep(commonParams)
1272
- .m(function (Command, cs, config, o) {
1273
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1274
- })
1275
- .s("AWSCognitoIdentityService", "UntagResource", {})
1276
- .n("CognitoIdentityClient", "UntagResourceCommand")
1277
- .sc(UntagResource$)
1278
- .build() {
1086
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1279
1087
  }
1280
1088
 
1281
- class UpdateIdentityPoolCommand extends Command
1282
- .classBuilder()
1283
- .ep(commonParams)
1284
- .m(function (Command, cs, config, o) {
1285
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1286
- })
1287
- .s("AWSCognitoIdentityService", "UpdateIdentityPool", {})
1288
- .n("CognitoIdentityClient", "UpdateIdentityPoolCommand")
1289
- .sc(UpdateIdentityPool$)
1290
- .build() {
1089
+ class UpdateIdentityPoolCommand extends command(_ep0, _mw0, "UpdateIdentityPool", UpdateIdentityPool$) {
1291
1090
  }
1292
1091
 
1293
1092
  const paginateListIdentityPools = createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
@@ -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 { CreateIdentityPool$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateIdentityPoolCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "CreateIdentityPool", {})
13
- .n("CognitoIdentityClient", "CreateIdentityPoolCommand")
14
- .sc(CreateIdentityPool$)
15
- .build() {
3
+ export class CreateIdentityPoolCommand extends command(_ep0, _mw0, "CreateIdentityPool", CreateIdentityPool$) {
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 { DeleteIdentities$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteIdentitiesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "DeleteIdentities", {})
13
- .n("CognitoIdentityClient", "DeleteIdentitiesCommand")
14
- .sc(DeleteIdentities$)
15
- .build() {
3
+ export class DeleteIdentitiesCommand extends command(_ep0, _mw0, "DeleteIdentities", DeleteIdentities$) {
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 { DeleteIdentityPool$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteIdentityPoolCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
13
- .n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
14
- .sc(DeleteIdentityPool$)
15
- .build() {
3
+ export class DeleteIdentityPoolCommand extends command(_ep0, _mw0, "DeleteIdentityPool", DeleteIdentityPool$) {
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 { DescribeIdentity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeIdentityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "DescribeIdentity", {})
13
- .n("CognitoIdentityClient", "DescribeIdentityCommand")
14
- .sc(DescribeIdentity$)
15
- .build() {
3
+ export class DescribeIdentityCommand extends command(_ep0, _mw0, "DescribeIdentity", DescribeIdentity$) {
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 { DescribeIdentityPool$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeIdentityPoolCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
13
- .n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
14
- .sc(DescribeIdentityPool$)
15
- .build() {
3
+ export class DescribeIdentityPoolCommand extends command(_ep0, _mw0, "DescribeIdentityPool", DescribeIdentityPool$) {
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 { 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,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 { GetIdentityPoolRoles$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetIdentityPoolRolesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
13
- .n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
14
- .sc(GetIdentityPoolRoles$)
15
- .build() {
3
+ export class GetIdentityPoolRolesCommand extends command(_ep0, _mw0, "GetIdentityPoolRoles", GetIdentityPoolRoles$) {
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 { GetOpenIdToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetOpenIdTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetOpenIdToken", {})
13
- .n("CognitoIdentityClient", "GetOpenIdTokenCommand")
14
- .sc(GetOpenIdToken$)
15
- .build() {
3
+ export class GetOpenIdTokenCommand extends command(_ep0, _mw0, "GetOpenIdToken", GetOpenIdToken$) {
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 { GetOpenIdTokenForDeveloperIdentity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetOpenIdTokenForDeveloperIdentityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {})
13
- .n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand")
14
- .sc(GetOpenIdTokenForDeveloperIdentity$)
15
- .build() {
3
+ export class GetOpenIdTokenForDeveloperIdentityCommand extends command(_ep0, _mw0, "GetOpenIdTokenForDeveloperIdentity", GetOpenIdTokenForDeveloperIdentity$) {
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 { GetPrincipalTagAttributeMap$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPrincipalTagAttributeMapCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {})
13
- .n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand")
14
- .sc(GetPrincipalTagAttributeMap$)
15
- .build() {
3
+ export class GetPrincipalTagAttributeMapCommand extends command(_ep0, _mw0, "GetPrincipalTagAttributeMap", GetPrincipalTagAttributeMap$) {
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 { ListIdentities$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListIdentitiesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "ListIdentities", {})
13
- .n("CognitoIdentityClient", "ListIdentitiesCommand")
14
- .sc(ListIdentities$)
15
- .build() {
3
+ export class ListIdentitiesCommand extends command(_ep0, _mw0, "ListIdentities", ListIdentities$) {
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 { ListIdentityPools$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListIdentityPoolsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "ListIdentityPools", {})
13
- .n("CognitoIdentityClient", "ListIdentityPoolsCommand")
14
- .sc(ListIdentityPools$)
15
- .build() {
3
+ export class ListIdentityPoolsCommand extends command(_ep0, _mw0, "ListIdentityPools", ListIdentityPools$) {
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 { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoIdentityService", "ListTagsForResource", {})
13
- .n("CognitoIdentityClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }