@aws-sdk/client-rolesanywhere 3.186.0 → 3.190.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 (42) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/RolesAnywhere.js +106 -113
  3. package/dist-es/RolesAnywhereClient.js +22 -28
  4. package/dist-es/commands/CreateProfileCommand.js +21 -28
  5. package/dist-es/commands/CreateTrustAnchorCommand.js +21 -28
  6. package/dist-es/commands/DeleteCrlCommand.js +21 -28
  7. package/dist-es/commands/DeleteProfileCommand.js +21 -28
  8. package/dist-es/commands/DeleteTrustAnchorCommand.js +21 -28
  9. package/dist-es/commands/DisableCrlCommand.js +21 -28
  10. package/dist-es/commands/DisableProfileCommand.js +21 -28
  11. package/dist-es/commands/DisableTrustAnchorCommand.js +21 -28
  12. package/dist-es/commands/EnableCrlCommand.js +21 -28
  13. package/dist-es/commands/EnableProfileCommand.js +21 -28
  14. package/dist-es/commands/EnableTrustAnchorCommand.js +21 -28
  15. package/dist-es/commands/GetCrlCommand.js +21 -28
  16. package/dist-es/commands/GetProfileCommand.js +21 -28
  17. package/dist-es/commands/GetSubjectCommand.js +21 -28
  18. package/dist-es/commands/GetTrustAnchorCommand.js +21 -28
  19. package/dist-es/commands/ImportCrlCommand.js +21 -28
  20. package/dist-es/commands/ListCrlsCommand.js +21 -28
  21. package/dist-es/commands/ListProfilesCommand.js +21 -28
  22. package/dist-es/commands/ListSubjectsCommand.js +21 -28
  23. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  24. package/dist-es/commands/ListTrustAnchorsCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateCrlCommand.js +21 -28
  28. package/dist-es/commands/UpdateProfileCommand.js +21 -28
  29. package/dist-es/commands/UpdateTrustAnchorCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/RolesAnywhereServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +163 -83
  33. package/dist-es/pagination/ListCrlsPaginator.js +24 -67
  34. package/dist-es/pagination/ListProfilesPaginator.js +24 -67
  35. package/dist-es/pagination/ListSubjectsPaginator.js +24 -67
  36. package/dist-es/pagination/ListTrustAnchorsPaginator.js +24 -67
  37. package/dist-es/protocols/Aws_restJson1.js +1558 -2315
  38. package/dist-es/runtimeConfig.browser.js +26 -12
  39. package/dist-es/runtimeConfig.js +30 -12
  40. package/dist-es/runtimeConfig.native.js +8 -5
  41. package/dist-es/runtimeConfig.shared.js +8 -11
  42. 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 { CreateTrustAnchorRequestFilterSensitiveLog, TrustAnchorDetailResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateTrustAnchorCommand, serializeAws_restJson1CreateTrustAnchorCommand, } from "../protocols/Aws_restJson1";
6
- var CreateTrustAnchorCommand = (function (_super) {
7
- __extends(CreateTrustAnchorCommand, _super);
8
- function CreateTrustAnchorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateTrustAnchorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateTrustAnchorCommand.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 = "RolesAnywhereClient";
18
- var commandName = "CreateTrustAnchorCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "CreateTrustAnchorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateTrustAnchorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TrustAnchorDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateTrustAnchorCommand.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_restJson1CreateTrustAnchorCommand(input, context);
33
- };
34
- CreateTrustAnchorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateTrustAnchorCommand(output, context);
36
- };
37
- return CreateTrustAnchorCommand;
38
- }($Command));
39
- export { CreateTrustAnchorCommand };
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 { CrlDetailResponseFilterSensitiveLog, ScalarCrlRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteCrlCommand, serializeAws_restJson1DeleteCrlCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteCrlCommand = (function (_super) {
7
- __extends(DeleteCrlCommand, _super);
8
- function DeleteCrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCrlCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DeleteCrlCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DeleteCrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarCrlRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CrlDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteCrlCommand.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_restJson1DeleteCrlCommand(input, context);
33
- };
34
- DeleteCrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteCrlCommand(output, context);
36
- };
37
- return DeleteCrlCommand;
38
- }($Command));
39
- export { DeleteCrlCommand };
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 { ProfileDetailResponseFilterSensitiveLog, ScalarProfileRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteProfileCommand, serializeAws_restJson1DeleteProfileCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteProfileCommand = (function (_super) {
7
- __extends(DeleteProfileCommand, _super);
8
- function DeleteProfileCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteProfileCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteProfileCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DeleteProfileCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DeleteProfileCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarProfileRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ProfileDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteProfileCommand.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_restJson1DeleteProfileCommand(input, context);
33
- };
34
- DeleteProfileCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteProfileCommand(output, context);
36
- };
37
- return DeleteProfileCommand;
38
- }($Command));
39
- export { DeleteProfileCommand };
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 { ScalarTrustAnchorRequestFilterSensitiveLog, TrustAnchorDetailResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteTrustAnchorCommand, serializeAws_restJson1DeleteTrustAnchorCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteTrustAnchorCommand = (function (_super) {
7
- __extends(DeleteTrustAnchorCommand, _super);
8
- function DeleteTrustAnchorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteTrustAnchorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteTrustAnchorCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DeleteTrustAnchorCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DeleteTrustAnchorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarTrustAnchorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TrustAnchorDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteTrustAnchorCommand.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_restJson1DeleteTrustAnchorCommand(input, context);
33
- };
34
- DeleteTrustAnchorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteTrustAnchorCommand(output, context);
36
- };
37
- return DeleteTrustAnchorCommand;
38
- }($Command));
39
- export { DeleteTrustAnchorCommand };
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 { CrlDetailResponseFilterSensitiveLog, ScalarCrlRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisableCrlCommand, serializeAws_restJson1DisableCrlCommand, } from "../protocols/Aws_restJson1";
6
- var DisableCrlCommand = (function (_super) {
7
- __extends(DisableCrlCommand, _super);
8
- function DisableCrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableCrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableCrlCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DisableCrlCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DisableCrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarCrlRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CrlDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableCrlCommand.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_restJson1DisableCrlCommand(input, context);
33
- };
34
- DisableCrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisableCrlCommand(output, context);
36
- };
37
- return DisableCrlCommand;
38
- }($Command));
39
- export { DisableCrlCommand };
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 { ProfileDetailResponseFilterSensitiveLog, ScalarProfileRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisableProfileCommand, serializeAws_restJson1DisableProfileCommand, } from "../protocols/Aws_restJson1";
6
- var DisableProfileCommand = (function (_super) {
7
- __extends(DisableProfileCommand, _super);
8
- function DisableProfileCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableProfileCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableProfileCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DisableProfileCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DisableProfileCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarProfileRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ProfileDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableProfileCommand.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_restJson1DisableProfileCommand(input, context);
33
- };
34
- DisableProfileCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisableProfileCommand(output, context);
36
- };
37
- return DisableProfileCommand;
38
- }($Command));
39
- export { DisableProfileCommand };
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 { ScalarTrustAnchorRequestFilterSensitiveLog, TrustAnchorDetailResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisableTrustAnchorCommand, serializeAws_restJson1DisableTrustAnchorCommand, } from "../protocols/Aws_restJson1";
6
- var DisableTrustAnchorCommand = (function (_super) {
7
- __extends(DisableTrustAnchorCommand, _super);
8
- function DisableTrustAnchorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableTrustAnchorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableTrustAnchorCommand.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 = "RolesAnywhereClient";
18
- var commandName = "DisableTrustAnchorCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "DisableTrustAnchorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarTrustAnchorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TrustAnchorDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableTrustAnchorCommand.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_restJson1DisableTrustAnchorCommand(input, context);
33
- };
34
- DisableTrustAnchorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisableTrustAnchorCommand(output, context);
36
- };
37
- return DisableTrustAnchorCommand;
38
- }($Command));
39
- export { DisableTrustAnchorCommand };
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 { CrlDetailResponseFilterSensitiveLog, ScalarCrlRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1EnableCrlCommand, serializeAws_restJson1EnableCrlCommand, } from "../protocols/Aws_restJson1";
6
- var EnableCrlCommand = (function (_super) {
7
- __extends(EnableCrlCommand, _super);
8
- function EnableCrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableCrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableCrlCommand.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 = "RolesAnywhereClient";
18
- var commandName = "EnableCrlCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "EnableCrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarCrlRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CrlDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableCrlCommand.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_restJson1EnableCrlCommand(input, context);
33
- };
34
- EnableCrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1EnableCrlCommand(output, context);
36
- };
37
- return EnableCrlCommand;
38
- }($Command));
39
- export { EnableCrlCommand };
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 { ProfileDetailResponseFilterSensitiveLog, ScalarProfileRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1EnableProfileCommand, serializeAws_restJson1EnableProfileCommand, } from "../protocols/Aws_restJson1";
6
- var EnableProfileCommand = (function (_super) {
7
- __extends(EnableProfileCommand, _super);
8
- function EnableProfileCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableProfileCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableProfileCommand.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 = "RolesAnywhereClient";
18
- var commandName = "EnableProfileCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "EnableProfileCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarProfileRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ProfileDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableProfileCommand.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_restJson1EnableProfileCommand(input, context);
33
- };
34
- EnableProfileCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1EnableProfileCommand(output, context);
36
- };
37
- return EnableProfileCommand;
38
- }($Command));
39
- export { EnableProfileCommand };
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 { ScalarTrustAnchorRequestFilterSensitiveLog, TrustAnchorDetailResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1EnableTrustAnchorCommand, serializeAws_restJson1EnableTrustAnchorCommand, } from "../protocols/Aws_restJson1";
6
- var EnableTrustAnchorCommand = (function (_super) {
7
- __extends(EnableTrustAnchorCommand, _super);
8
- function EnableTrustAnchorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableTrustAnchorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableTrustAnchorCommand.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 = "RolesAnywhereClient";
18
- var commandName = "EnableTrustAnchorCommand";
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 = "RolesAnywhereClient";
15
+ const commandName = "EnableTrustAnchorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ScalarTrustAnchorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TrustAnchorDetailResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableTrustAnchorCommand.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_restJson1EnableTrustAnchorCommand(input, context);
33
- };
34
- EnableTrustAnchorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1EnableTrustAnchorCommand(output, context);
36
- };
37
- return EnableTrustAnchorCommand;
38
- }($Command));
39
- export { EnableTrustAnchorCommand };
31
+ }
32
+ }