@aws-sdk/client-ram 3.45.0 → 3.47.2

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.
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput } from "./commands/AcceptResourceShareInvitationCommand";
10
10
  import { AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput } from "./commands/AssociateResourceShareCommand";
@@ -132,6 +132,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
132
132
  * @internal
133
133
  */
134
134
  defaultUserAgentProvider?: Provider<__UserAgent>;
135
+ /**
136
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
137
+ */
138
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
135
139
  }
136
140
  declare type RAMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
137
141
  /**
@@ -176,12 +176,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
176
176
  $fault: "client";
177
177
  message: string | undefined;
178
178
  }
179
- export declare namespace IdempotentParameterMismatchException {
180
- /**
181
- * @internal
182
- */
183
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
184
- }
185
179
  /**
186
180
  * <p>The client token is not valid.</p>
187
181
  */
@@ -190,12 +184,6 @@ export interface InvalidClientTokenException extends __SmithyException, $Metadat
190
184
  $fault: "client";
191
185
  message: string | undefined;
192
186
  }
193
- export declare namespace InvalidClientTokenException {
194
- /**
195
- * @internal
196
- */
197
- const filterSensitiveLog: (obj: InvalidClientTokenException) => any;
198
- }
199
187
  /**
200
188
  * <p>The format of an Amazon Resource Name (ARN) is not valid.</p>
201
189
  */
@@ -204,12 +192,6 @@ export interface MalformedArnException extends __SmithyException, $MetadataBeare
204
192
  $fault: "client";
205
193
  message: string | undefined;
206
194
  }
207
- export declare namespace MalformedArnException {
208
- /**
209
- * @internal
210
- */
211
- const filterSensitiveLog: (obj: MalformedArnException) => any;
212
- }
213
195
  /**
214
196
  * <p>The requested operation is not permitted.</p>
215
197
  */
@@ -218,12 +200,6 @@ export interface OperationNotPermittedException extends __SmithyException, $Meta
218
200
  $fault: "client";
219
201
  message: string | undefined;
220
202
  }
221
- export declare namespace OperationNotPermittedException {
222
- /**
223
- * @internal
224
- */
225
- const filterSensitiveLog: (obj: OperationNotPermittedException) => any;
226
- }
227
203
  /**
228
204
  * <p>The specified invitation was already accepted.</p>
229
205
  */
@@ -232,12 +208,6 @@ export interface ResourceShareInvitationAlreadyAcceptedException extends __Smith
232
208
  $fault: "client";
233
209
  message: string | undefined;
234
210
  }
235
- export declare namespace ResourceShareInvitationAlreadyAcceptedException {
236
- /**
237
- * @internal
238
- */
239
- const filterSensitiveLog: (obj: ResourceShareInvitationAlreadyAcceptedException) => any;
240
- }
241
211
  /**
242
212
  * <p>The specified invitation was already rejected.</p>
243
213
  */
@@ -246,12 +216,6 @@ export interface ResourceShareInvitationAlreadyRejectedException extends __Smith
246
216
  $fault: "client";
247
217
  message: string | undefined;
248
218
  }
249
- export declare namespace ResourceShareInvitationAlreadyRejectedException {
250
- /**
251
- * @internal
252
- */
253
- const filterSensitiveLog: (obj: ResourceShareInvitationAlreadyRejectedException) => any;
254
- }
255
219
  /**
256
220
  * <p>The specified Amazon Resource Name (ARN) for an invitation was not found.</p>
257
221
  */
@@ -260,12 +224,6 @@ export interface ResourceShareInvitationArnNotFoundException extends __SmithyExc
260
224
  $fault: "client";
261
225
  message: string | undefined;
262
226
  }
263
- export declare namespace ResourceShareInvitationArnNotFoundException {
264
- /**
265
- * @internal
266
- */
267
- const filterSensitiveLog: (obj: ResourceShareInvitationArnNotFoundException) => any;
268
- }
269
227
  /**
270
228
  * <p>The specified invitation is expired.</p>
271
229
  */
@@ -274,12 +232,6 @@ export interface ResourceShareInvitationExpiredException extends __SmithyExcepti
274
232
  $fault: "client";
275
233
  message: string | undefined;
276
234
  }
277
- export declare namespace ResourceShareInvitationExpiredException {
278
- /**
279
- * @internal
280
- */
281
- const filterSensitiveLog: (obj: ResourceShareInvitationExpiredException) => any;
282
- }
283
235
  /**
284
236
  * <p>The service could not respond to the request due to an internal problem.</p>
285
237
  */
@@ -288,12 +240,6 @@ export interface ServerInternalException extends __SmithyException, $MetadataBea
288
240
  $fault: "server";
289
241
  message: string | undefined;
290
242
  }
291
- export declare namespace ServerInternalException {
292
- /**
293
- * @internal
294
- */
295
- const filterSensitiveLog: (obj: ServerInternalException) => any;
296
- }
297
243
  /**
298
244
  * <p>The service is not available.</p>
299
245
  */
@@ -302,12 +248,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
302
248
  $fault: "server";
303
249
  message: string | undefined;
304
250
  }
305
- export declare namespace ServiceUnavailableException {
306
- /**
307
- * @internal
308
- */
309
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
310
- }
311
251
  export interface AssociateResourceShareRequest {
312
252
  /**
313
253
  * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resoure Name (ARN)</a> of the resource share that you want to add principals or resources
@@ -403,12 +343,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
403
343
  $fault: "client";
404
344
  message: string | undefined;
405
345
  }
406
- export declare namespace InvalidParameterException {
407
- /**
408
- * @internal
409
- */
410
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
411
- }
412
346
  /**
413
347
  * <p>The requested state transition is not valid.</p>
414
348
  */
@@ -417,12 +351,6 @@ export interface InvalidStateTransitionException extends __SmithyException, $Met
417
351
  $fault: "client";
418
352
  message: string | undefined;
419
353
  }
420
- export declare namespace InvalidStateTransitionException {
421
- /**
422
- * @internal
423
- */
424
- const filterSensitiveLog: (obj: InvalidStateTransitionException) => any;
425
- }
426
354
  /**
427
355
  * <p>This request would exceed the limit for resource shares for your account.</p>
428
356
  */
@@ -431,12 +359,6 @@ export interface ResourceShareLimitExceededException extends __SmithyException,
431
359
  $fault: "client";
432
360
  message: string | undefined;
433
361
  }
434
- export declare namespace ResourceShareLimitExceededException {
435
- /**
436
- * @internal
437
- */
438
- const filterSensitiveLog: (obj: ResourceShareLimitExceededException) => any;
439
- }
440
362
  /**
441
363
  * <p>You exceeded the rate at which you are allowed to perform this operation. Please try
442
364
  * again later.</p>
@@ -446,12 +368,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
446
368
  $fault: "client";
447
369
  message: string | undefined;
448
370
  }
449
- export declare namespace ThrottlingException {
450
- /**
451
- * @internal
452
- */
453
- const filterSensitiveLog: (obj: ThrottlingException) => any;
454
- }
455
371
  /**
456
372
  * <p>A specified resource was not found.</p>
457
373
  */
@@ -460,12 +376,6 @@ export interface UnknownResourceException extends __SmithyException, $MetadataBe
460
376
  $fault: "client";
461
377
  message: string | undefined;
462
378
  }
463
- export declare namespace UnknownResourceException {
464
- /**
465
- * @internal
466
- */
467
- const filterSensitiveLog: (obj: UnknownResourceException) => any;
468
- }
469
379
  export interface AssociateResourceSharePermissionRequest {
470
380
  /**
471
381
  * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resoure Name (ARN)</a> of the resource share to which you want to add or replace
@@ -745,12 +655,6 @@ export interface TagPolicyViolationException extends __SmithyException, $Metadat
745
655
  $fault: "client";
746
656
  message: string | undefined;
747
657
  }
748
- export declare namespace TagPolicyViolationException {
749
- /**
750
- * @internal
751
- */
752
- const filterSensitiveLog: (obj: TagPolicyViolationException) => any;
753
- }
754
658
  export interface DeleteResourceShareRequest {
755
659
  /**
756
660
  * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resoure Name (ARN)</a> of the resource share to delete.</p>
@@ -1095,12 +999,6 @@ export interface InvalidNextTokenException extends __SmithyException, $MetadataB
1095
999
  $fault: "client";
1096
1000
  message: string | undefined;
1097
1001
  }
1098
- export declare namespace InvalidNextTokenException {
1099
- /**
1100
- * @internal
1101
- */
1102
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
1103
- }
1104
1002
  /**
1105
1003
  * <p>The specified Amazon Resource Name (ARN) was not found.</p>
1106
1004
  */
@@ -1109,12 +1007,6 @@ export interface ResourceArnNotFoundException extends __SmithyException, $Metada
1109
1007
  $fault: "client";
1110
1008
  message: string | undefined;
1111
1009
  }
1112
- export declare namespace ResourceArnNotFoundException {
1113
- /**
1114
- * @internal
1115
- */
1116
- const filterSensitiveLog: (obj: ResourceArnNotFoundException) => any;
1117
- }
1118
1010
  export interface GetResourceShareAssociationsRequest {
1119
1011
  /**
1120
1012
  * <p>Specifies whether you want to retrieve the associations that involve a specified
@@ -1269,12 +1161,6 @@ export interface InvalidMaxResultsException extends __SmithyException, $Metadata
1269
1161
  $fault: "client";
1270
1162
  message: string | undefined;
1271
1163
  }
1272
- export declare namespace InvalidMaxResultsException {
1273
- /**
1274
- * @internal
1275
- */
1276
- const filterSensitiveLog: (obj: InvalidMaxResultsException) => any;
1277
- }
1278
1164
  export declare enum ResourceOwner {
1279
1165
  OTHER_ACCOUNTS = "OTHER-ACCOUNTS",
1280
1166
  SELF = "SELF"
@@ -1550,12 +1436,6 @@ export interface MissingRequiredParameterException extends __SmithyException, $M
1550
1436
  $fault: "client";
1551
1437
  message: string | undefined;
1552
1438
  }
1553
- export declare namespace MissingRequiredParameterException {
1554
- /**
1555
- * @internal
1556
- */
1557
- const filterSensitiveLog: (obj: MissingRequiredParameterException) => any;
1558
- }
1559
1439
  export interface ListPermissionsRequest {
1560
1440
  /**
1561
1441
  * <p>Specifies that you want to list permissions for only the specified resource type. For
@@ -1822,12 +1702,6 @@ export interface InvalidResourceTypeException extends __SmithyException, $Metada
1822
1702
  $fault: "client";
1823
1703
  message: string | undefined;
1824
1704
  }
1825
- export declare namespace InvalidResourceTypeException {
1826
- /**
1827
- * @internal
1828
- */
1829
- const filterSensitiveLog: (obj: InvalidResourceTypeException) => any;
1830
- }
1831
1705
  export interface ListResourcesRequest {
1832
1706
  /**
1833
1707
  * <p>Specifies that you want to list only the resource shares that match the following:</p>
@@ -2177,12 +2051,6 @@ export interface TagLimitExceededException extends __SmithyException, $MetadataB
2177
2051
  $fault: "client";
2178
2052
  message: string | undefined;
2179
2053
  }
2180
- export declare namespace TagLimitExceededException {
2181
- /**
2182
- * @internal
2183
- */
2184
- const filterSensitiveLog: (obj: TagLimitExceededException) => any;
2185
- }
2186
2054
  export interface TagResourceRequest {
2187
2055
  /**
2188
2056
  * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resoure Name (ARN)</a> of the resource share that you want to add tags to.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { RAMClientConfig } from "./RAMClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: RAMClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: RAMClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { RAMClientConfig } from "./RAMClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: RAMClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: RAMClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput } from "./commands/AcceptResourceShareInvitationCommand";
10
10
  import { AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput } from "./commands/AssociateResourceShareCommand";
@@ -75,6 +75,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
75
75
  regionInfoProvider?: RegionInfoProvider;
76
76
 
77
77
  defaultUserAgentProvider?: Provider<__UserAgent>;
78
+
79
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
78
80
  }
79
81
  declare type RAMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
80
82
 
@@ -78,100 +78,60 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
78
78
  $fault: "client";
79
79
  message: string | undefined;
80
80
  }
81
- export declare namespace IdempotentParameterMismatchException {
82
-
83
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
84
- }
85
81
 
86
82
  export interface InvalidClientTokenException extends __SmithyException, $MetadataBearer {
87
83
  name: "InvalidClientTokenException";
88
84
  $fault: "client";
89
85
  message: string | undefined;
90
86
  }
91
- export declare namespace InvalidClientTokenException {
92
-
93
- const filterSensitiveLog: (obj: InvalidClientTokenException) => any;
94
- }
95
87
 
96
88
  export interface MalformedArnException extends __SmithyException, $MetadataBearer {
97
89
  name: "MalformedArnException";
98
90
  $fault: "client";
99
91
  message: string | undefined;
100
92
  }
101
- export declare namespace MalformedArnException {
102
-
103
- const filterSensitiveLog: (obj: MalformedArnException) => any;
104
- }
105
93
 
106
94
  export interface OperationNotPermittedException extends __SmithyException, $MetadataBearer {
107
95
  name: "OperationNotPermittedException";
108
96
  $fault: "client";
109
97
  message: string | undefined;
110
98
  }
111
- export declare namespace OperationNotPermittedException {
112
-
113
- const filterSensitiveLog: (obj: OperationNotPermittedException) => any;
114
- }
115
99
 
116
100
  export interface ResourceShareInvitationAlreadyAcceptedException extends __SmithyException, $MetadataBearer {
117
101
  name: "ResourceShareInvitationAlreadyAcceptedException";
118
102
  $fault: "client";
119
103
  message: string | undefined;
120
104
  }
121
- export declare namespace ResourceShareInvitationAlreadyAcceptedException {
122
-
123
- const filterSensitiveLog: (obj: ResourceShareInvitationAlreadyAcceptedException) => any;
124
- }
125
105
 
126
106
  export interface ResourceShareInvitationAlreadyRejectedException extends __SmithyException, $MetadataBearer {
127
107
  name: "ResourceShareInvitationAlreadyRejectedException";
128
108
  $fault: "client";
129
109
  message: string | undefined;
130
110
  }
131
- export declare namespace ResourceShareInvitationAlreadyRejectedException {
132
-
133
- const filterSensitiveLog: (obj: ResourceShareInvitationAlreadyRejectedException) => any;
134
- }
135
111
 
136
112
  export interface ResourceShareInvitationArnNotFoundException extends __SmithyException, $MetadataBearer {
137
113
  name: "ResourceShareInvitationArnNotFoundException";
138
114
  $fault: "client";
139
115
  message: string | undefined;
140
116
  }
141
- export declare namespace ResourceShareInvitationArnNotFoundException {
142
-
143
- const filterSensitiveLog: (obj: ResourceShareInvitationArnNotFoundException) => any;
144
- }
145
117
 
146
118
  export interface ResourceShareInvitationExpiredException extends __SmithyException, $MetadataBearer {
147
119
  name: "ResourceShareInvitationExpiredException";
148
120
  $fault: "client";
149
121
  message: string | undefined;
150
122
  }
151
- export declare namespace ResourceShareInvitationExpiredException {
152
-
153
- const filterSensitiveLog: (obj: ResourceShareInvitationExpiredException) => any;
154
- }
155
123
 
156
124
  export interface ServerInternalException extends __SmithyException, $MetadataBearer {
157
125
  name: "ServerInternalException";
158
126
  $fault: "server";
159
127
  message: string | undefined;
160
128
  }
161
- export declare namespace ServerInternalException {
162
-
163
- const filterSensitiveLog: (obj: ServerInternalException) => any;
164
- }
165
129
 
166
130
  export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
167
131
  name: "ServiceUnavailableException";
168
132
  $fault: "server";
169
133
  message: string | undefined;
170
134
  }
171
- export declare namespace ServiceUnavailableException {
172
-
173
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
174
- }
175
135
  export interface AssociateResourceShareRequest {
176
136
 
177
137
  resourceShareArn: string | undefined;
@@ -202,50 +162,30 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
202
162
  $fault: "client";
203
163
  message: string | undefined;
204
164
  }
205
- export declare namespace InvalidParameterException {
206
-
207
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
208
- }
209
165
 
210
166
  export interface InvalidStateTransitionException extends __SmithyException, $MetadataBearer {
211
167
  name: "InvalidStateTransitionException";
212
168
  $fault: "client";
213
169
  message: string | undefined;
214
170
  }
215
- export declare namespace InvalidStateTransitionException {
216
-
217
- const filterSensitiveLog: (obj: InvalidStateTransitionException) => any;
218
- }
219
171
 
220
172
  export interface ResourceShareLimitExceededException extends __SmithyException, $MetadataBearer {
221
173
  name: "ResourceShareLimitExceededException";
222
174
  $fault: "client";
223
175
  message: string | undefined;
224
176
  }
225
- export declare namespace ResourceShareLimitExceededException {
226
-
227
- const filterSensitiveLog: (obj: ResourceShareLimitExceededException) => any;
228
- }
229
177
 
230
178
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
231
179
  name: "ThrottlingException";
232
180
  $fault: "client";
233
181
  message: string | undefined;
234
182
  }
235
- export declare namespace ThrottlingException {
236
-
237
- const filterSensitiveLog: (obj: ThrottlingException) => any;
238
- }
239
183
 
240
184
  export interface UnknownResourceException extends __SmithyException, $MetadataBearer {
241
185
  name: "UnknownResourceException";
242
186
  $fault: "client";
243
187
  message: string | undefined;
244
188
  }
245
- export declare namespace UnknownResourceException {
246
-
247
- const filterSensitiveLog: (obj: UnknownResourceException) => any;
248
- }
249
189
  export interface AssociateResourceSharePermissionRequest {
250
190
 
251
191
  resourceShareArn: string | undefined;
@@ -348,10 +288,6 @@ export interface TagPolicyViolationException extends __SmithyException, $Metadat
348
288
  $fault: "client";
349
289
  message: string | undefined;
350
290
  }
351
- export declare namespace TagPolicyViolationException {
352
-
353
- const filterSensitiveLog: (obj: TagPolicyViolationException) => any;
354
- }
355
291
  export interface DeleteResourceShareRequest {
356
292
 
357
293
  resourceShareArn: string | undefined;
@@ -505,20 +441,12 @@ export interface InvalidNextTokenException extends __SmithyException, $MetadataB
505
441
  $fault: "client";
506
442
  message: string | undefined;
507
443
  }
508
- export declare namespace InvalidNextTokenException {
509
-
510
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
511
- }
512
444
 
513
445
  export interface ResourceArnNotFoundException extends __SmithyException, $MetadataBearer {
514
446
  name: "ResourceArnNotFoundException";
515
447
  $fault: "client";
516
448
  message: string | undefined;
517
449
  }
518
- export declare namespace ResourceArnNotFoundException {
519
-
520
- const filterSensitiveLog: (obj: ResourceArnNotFoundException) => any;
521
- }
522
450
  export interface GetResourceShareAssociationsRequest {
523
451
 
524
452
  associationType: ResourceShareAssociationType | string | undefined;
@@ -579,10 +507,6 @@ export interface InvalidMaxResultsException extends __SmithyException, $Metadata
579
507
  $fault: "client";
580
508
  message: string | undefined;
581
509
  }
582
- export declare namespace InvalidMaxResultsException {
583
-
584
- const filterSensitiveLog: (obj: InvalidMaxResultsException) => any;
585
- }
586
510
  export declare enum ResourceOwner {
587
511
  OTHER_ACCOUNTS = "OTHER-ACCOUNTS",
588
512
  SELF = "SELF"
@@ -695,10 +619,6 @@ export interface MissingRequiredParameterException extends __SmithyException, $M
695
619
  $fault: "client";
696
620
  message: string | undefined;
697
621
  }
698
- export declare namespace MissingRequiredParameterException {
699
-
700
- const filterSensitiveLog: (obj: MissingRequiredParameterException) => any;
701
- }
702
622
  export interface ListPermissionsRequest {
703
623
 
704
624
  resourceType?: string;
@@ -799,10 +719,6 @@ export interface InvalidResourceTypeException extends __SmithyException, $Metada
799
719
  $fault: "client";
800
720
  message: string | undefined;
801
721
  }
802
- export declare namespace InvalidResourceTypeException {
803
-
804
- const filterSensitiveLog: (obj: InvalidResourceTypeException) => any;
805
- }
806
722
  export interface ListResourcesRequest {
807
723
 
808
724
  resourceOwner: ResourceOwner | string | undefined;
@@ -934,10 +850,6 @@ export interface TagLimitExceededException extends __SmithyException, $MetadataB
934
850
  $fault: "client";
935
851
  message: string | undefined;
936
852
  }
937
- export declare namespace TagLimitExceededException {
938
-
939
- const filterSensitiveLog: (obj: TagLimitExceededException) => any;
940
- }
941
853
  export interface TagResourceRequest {
942
854
 
943
855
  resourceShareArn: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { RAMClientConfig } from "./RAMClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: RAMClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: RAMClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;