@aws-sdk/client-directory-service 3.181.0 → 3.183.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 (78) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/DirectoryService.js +262 -269
  3. package/dist-es/DirectoryServiceClient.js +22 -28
  4. package/dist-es/commands/AcceptSharedDirectoryCommand.js +21 -28
  5. package/dist-es/commands/AddIpRoutesCommand.js +21 -28
  6. package/dist-es/commands/AddRegionCommand.js +21 -28
  7. package/dist-es/commands/AddTagsToResourceCommand.js +21 -28
  8. package/dist-es/commands/CancelSchemaExtensionCommand.js +21 -28
  9. package/dist-es/commands/ConnectDirectoryCommand.js +21 -28
  10. package/dist-es/commands/CreateAliasCommand.js +21 -28
  11. package/dist-es/commands/CreateComputerCommand.js +21 -28
  12. package/dist-es/commands/CreateConditionalForwarderCommand.js +21 -28
  13. package/dist-es/commands/CreateDirectoryCommand.js +21 -28
  14. package/dist-es/commands/CreateLogSubscriptionCommand.js +21 -28
  15. package/dist-es/commands/CreateMicrosoftADCommand.js +21 -28
  16. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  17. package/dist-es/commands/CreateTrustCommand.js +21 -28
  18. package/dist-es/commands/DeleteConditionalForwarderCommand.js +21 -28
  19. package/dist-es/commands/DeleteDirectoryCommand.js +21 -28
  20. package/dist-es/commands/DeleteLogSubscriptionCommand.js +21 -28
  21. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  22. package/dist-es/commands/DeleteTrustCommand.js +21 -28
  23. package/dist-es/commands/DeregisterCertificateCommand.js +21 -28
  24. package/dist-es/commands/DeregisterEventTopicCommand.js +21 -28
  25. package/dist-es/commands/DescribeCertificateCommand.js +21 -28
  26. package/dist-es/commands/DescribeClientAuthenticationSettingsCommand.js +21 -28
  27. package/dist-es/commands/DescribeConditionalForwardersCommand.js +21 -28
  28. package/dist-es/commands/DescribeDirectoriesCommand.js +21 -28
  29. package/dist-es/commands/DescribeDomainControllersCommand.js +21 -28
  30. package/dist-es/commands/DescribeEventTopicsCommand.js +21 -28
  31. package/dist-es/commands/DescribeLDAPSSettingsCommand.js +21 -28
  32. package/dist-es/commands/DescribeRegionsCommand.js +21 -28
  33. package/dist-es/commands/DescribeSettingsCommand.js +21 -28
  34. package/dist-es/commands/DescribeSharedDirectoriesCommand.js +21 -28
  35. package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
  36. package/dist-es/commands/DescribeTrustsCommand.js +21 -28
  37. package/dist-es/commands/DisableClientAuthenticationCommand.js +21 -28
  38. package/dist-es/commands/DisableLDAPSCommand.js +21 -28
  39. package/dist-es/commands/DisableRadiusCommand.js +21 -28
  40. package/dist-es/commands/DisableSsoCommand.js +21 -28
  41. package/dist-es/commands/EnableClientAuthenticationCommand.js +21 -28
  42. package/dist-es/commands/EnableLDAPSCommand.js +21 -28
  43. package/dist-es/commands/EnableRadiusCommand.js +21 -28
  44. package/dist-es/commands/EnableSsoCommand.js +21 -28
  45. package/dist-es/commands/GetDirectoryLimitsCommand.js +21 -28
  46. package/dist-es/commands/GetSnapshotLimitsCommand.js +21 -28
  47. package/dist-es/commands/ListCertificatesCommand.js +21 -28
  48. package/dist-es/commands/ListIpRoutesCommand.js +21 -28
  49. package/dist-es/commands/ListLogSubscriptionsCommand.js +21 -28
  50. package/dist-es/commands/ListSchemaExtensionsCommand.js +21 -28
  51. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  52. package/dist-es/commands/RegisterCertificateCommand.js +21 -28
  53. package/dist-es/commands/RegisterEventTopicCommand.js +21 -28
  54. package/dist-es/commands/RejectSharedDirectoryCommand.js +21 -28
  55. package/dist-es/commands/RemoveIpRoutesCommand.js +21 -28
  56. package/dist-es/commands/RemoveRegionCommand.js +21 -28
  57. package/dist-es/commands/RemoveTagsFromResourceCommand.js +21 -28
  58. package/dist-es/commands/ResetUserPasswordCommand.js +21 -28
  59. package/dist-es/commands/RestoreFromSnapshotCommand.js +21 -28
  60. package/dist-es/commands/ShareDirectoryCommand.js +21 -28
  61. package/dist-es/commands/StartSchemaExtensionCommand.js +21 -28
  62. package/dist-es/commands/UnshareDirectoryCommand.js +21 -28
  63. package/dist-es/commands/UpdateConditionalForwarderCommand.js +21 -28
  64. package/dist-es/commands/UpdateNumberOfDomainControllersCommand.js +21 -28
  65. package/dist-es/commands/UpdateRadiusCommand.js +21 -28
  66. package/dist-es/commands/UpdateSettingsCommand.js +21 -28
  67. package/dist-es/commands/UpdateTrustCommand.js +21 -28
  68. package/dist-es/commands/VerifyTrustCommand.js +21 -28
  69. package/dist-es/endpoints.js +8 -8
  70. package/dist-es/models/DirectoryServiceServiceException.js +5 -10
  71. package/dist-es/models/models_0.js +1019 -674
  72. package/dist-es/pagination/DescribeDomainControllersPaginator.js +25 -68
  73. package/dist-es/protocols/Aws_json1_1.js +4706 -6047
  74. package/dist-es/runtimeConfig.browser.js +26 -12
  75. package/dist-es/runtimeConfig.js +30 -12
  76. package/dist-es/runtimeConfig.native.js +8 -5
  77. package/dist-es/runtimeConfig.shared.js +8 -11
  78. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateConditionalForwarderRequestFilterSensitiveLog, UpdateConditionalForwarderResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateConditionalForwarderCommand, serializeAws_json1_1UpdateConditionalForwarderCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateConditionalForwarderCommand = (function (_super) {
7
- __extends(UpdateConditionalForwarderCommand, _super);
8
- function UpdateConditionalForwarderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateConditionalForwarderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateConditionalForwarderCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "UpdateConditionalForwarderCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "UpdateConditionalForwarderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateConditionalForwarderRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateConditionalForwarderResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateConditionalForwarderCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateConditionalForwarderCommand(input, context);
33
- };
34
- UpdateConditionalForwarderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateConditionalForwarderCommand(output, context);
36
- };
37
- return UpdateConditionalForwarderCommand;
38
- }($Command));
39
- export { UpdateConditionalForwarderCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateNumberOfDomainControllersRequestFilterSensitiveLog, UpdateNumberOfDomainControllersResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateNumberOfDomainControllersCommand, serializeAws_json1_1UpdateNumberOfDomainControllersCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateNumberOfDomainControllersCommand = (function (_super) {
7
- __extends(UpdateNumberOfDomainControllersCommand, _super);
8
- function UpdateNumberOfDomainControllersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateNumberOfDomainControllersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateNumberOfDomainControllersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "UpdateNumberOfDomainControllersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "UpdateNumberOfDomainControllersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateNumberOfDomainControllersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateNumberOfDomainControllersResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateNumberOfDomainControllersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateNumberOfDomainControllersCommand(input, context);
33
- };
34
- UpdateNumberOfDomainControllersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateNumberOfDomainControllersCommand(output, context);
36
- };
37
- return UpdateNumberOfDomainControllersCommand;
38
- }($Command));
39
- export { UpdateNumberOfDomainControllersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateRadiusRequestFilterSensitiveLog, UpdateRadiusResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateRadiusCommand, serializeAws_json1_1UpdateRadiusCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateRadiusCommand = (function (_super) {
7
- __extends(UpdateRadiusCommand, _super);
8
- function UpdateRadiusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateRadiusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateRadiusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "UpdateRadiusCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "UpdateRadiusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateRadiusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateRadiusResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateRadiusCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateRadiusCommand(input, context);
33
- };
34
- UpdateRadiusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateRadiusCommand(output, context);
36
- };
37
- return UpdateRadiusCommand;
38
- }($Command));
39
- export { UpdateRadiusCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSettingsRequestFilterSensitiveLog, UpdateSettingsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateSettingsCommand, serializeAws_json1_1UpdateSettingsCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateSettingsCommand = (function (_super) {
7
- __extends(UpdateSettingsCommand, _super);
8
- function UpdateSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "UpdateSettingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "UpdateSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSettingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSettingsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSettingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateSettingsCommand(input, context);
33
- };
34
- UpdateSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateSettingsCommand(output, context);
36
- };
37
- return UpdateSettingsCommand;
38
- }($Command));
39
- export { UpdateSettingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateTrustRequestFilterSensitiveLog, UpdateTrustResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateTrustCommand, serializeAws_json1_1UpdateTrustCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateTrustCommand = (function (_super) {
7
- __extends(UpdateTrustCommand, _super);
8
- function UpdateTrustCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateTrustCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateTrustCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "UpdateTrustCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "UpdateTrustCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateTrustRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateTrustResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateTrustCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateTrustCommand(input, context);
33
- };
34
- UpdateTrustCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateTrustCommand(output, context);
36
- };
37
- return UpdateTrustCommand;
38
- }($Command));
39
- export { UpdateTrustCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { VerifyTrustRequestFilterSensitiveLog, VerifyTrustResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1VerifyTrustCommand, serializeAws_json1_1VerifyTrustCommand, } from "../protocols/Aws_json1_1";
6
- var VerifyTrustCommand = (function (_super) {
7
- __extends(VerifyTrustCommand, _super);
8
- function VerifyTrustCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class VerifyTrustCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- VerifyTrustCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DirectoryServiceClient";
18
- var commandName = "VerifyTrustCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DirectoryServiceClient";
15
+ const commandName = "VerifyTrustCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: VerifyTrustRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: VerifyTrustResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- VerifyTrustCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1VerifyTrustCommand(input, context);
33
- };
34
- VerifyTrustCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1VerifyTrustCommand(output, context);
36
- };
37
- return VerifyTrustCommand;
38
- }($Command));
39
- export { VerifyTrustCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [
6
5
  {
@@ -58,7 +57,7 @@ var regionHash = {
58
57
  ],
59
58
  },
60
59
  };
61
- var partitionHash = {
60
+ const partitionHash = {
62
61
  aws: {
63
62
  regions: [
64
63
  "af-south-1",
@@ -183,8 +182,9 @@ var partitionHash = {
183
182
  ],
184
183
  },
185
184
  };
186
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
187
- return __generator(this, function (_a) {
188
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "ds", regionHash: regionHash, partitionHash: partitionHash }))];
189
- });
190
- }); };
185
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
186
+ ...options,
187
+ signingService: "ds",
188
+ regionHash,
189
+ partitionHash,
190
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var DirectoryServiceServiceException = (function (_super) {
4
- __extends(DirectoryServiceServiceException, _super);
5
- function DirectoryServiceServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, DirectoryServiceServiceException.prototype);
8
- return _this;
2
+ export class DirectoryServiceServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, DirectoryServiceServiceException.prototype);
9
6
  }
10
- return DirectoryServiceServiceException;
11
- }(__ServiceException));
12
- export { DirectoryServiceServiceException };
7
+ }