@aws-sdk/client-rolesanywhere 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 (42) hide show
  1. package/CHANGELOG.md +8 -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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_restJson1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.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_restJson1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
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, UpdateCrlRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateCrlCommand, serializeAws_restJson1UpdateCrlCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateCrlCommand = (function (_super) {
7
- __extends(UpdateCrlCommand, _super);
8
- function UpdateCrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateCrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateCrlCommand.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 = "UpdateCrlCommand";
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 = "UpdateCrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateCrlRequestFilterSensitiveLog,
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
- UpdateCrlCommand.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_restJson1UpdateCrlCommand(input, context);
33
- };
34
- UpdateCrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateCrlCommand(output, context);
36
- };
37
- return UpdateCrlCommand;
38
- }($Command));
39
- export { UpdateCrlCommand };
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, UpdateProfileRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateProfileCommand, serializeAws_restJson1UpdateProfileCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateProfileCommand = (function (_super) {
7
- __extends(UpdateProfileCommand, _super);
8
- function UpdateProfileCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateProfileCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateProfileCommand.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 = "UpdateProfileCommand";
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 = "UpdateProfileCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateProfileRequestFilterSensitiveLog,
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
- UpdateProfileCommand.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_restJson1UpdateProfileCommand(input, context);
33
- };
34
- UpdateProfileCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateProfileCommand(output, context);
36
- };
37
- return UpdateProfileCommand;
38
- }($Command));
39
- export { UpdateProfileCommand };
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 { TrustAnchorDetailResponseFilterSensitiveLog, UpdateTrustAnchorRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateTrustAnchorCommand, serializeAws_restJson1UpdateTrustAnchorCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateTrustAnchorCommand = (function (_super) {
7
- __extends(UpdateTrustAnchorCommand, _super);
8
- function UpdateTrustAnchorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateTrustAnchorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateTrustAnchorCommand.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 = "UpdateTrustAnchorCommand";
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 = "UpdateTrustAnchorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateTrustAnchorRequestFilterSensitiveLog,
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
- UpdateTrustAnchorCommand.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_restJson1UpdateTrustAnchorCommand(input, context);
33
- };
34
- UpdateTrustAnchorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateTrustAnchorCommand(output, context);
36
- };
37
- return UpdateTrustAnchorCommand;
38
- }($Command));
39
- export { UpdateTrustAnchorCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "rolesanywhere", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "rolesanywhere",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var RolesAnywhereServiceException = (function (_super) {
4
- __extends(RolesAnywhereServiceException, _super);
5
- function RolesAnywhereServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, RolesAnywhereServiceException.prototype);
8
- return _this;
2
+ export class RolesAnywhereServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, RolesAnywhereServiceException.prototype);
9
6
  }
10
- return RolesAnywhereServiceException;
11
- }(__ServiceException));
12
- export { RolesAnywhereServiceException };
7
+ }
@@ -1,33 +1,32 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { RolesAnywhereServiceException as __BaseException } from "./RolesAnywhereServiceException";
4
- var AccessDeniedException = (function (_super) {
5
- __extends(AccessDeniedException, _super);
6
- function AccessDeniedException(opts) {
7
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
- _this.name = "AccessDeniedException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
11
- return _this;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
16
- var ValidationException = (function (_super) {
17
- __extends(ValidationException, _super);
18
- function ValidationException(opts) {
19
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
20
- _this.name = "ValidationException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, ValidationException.prototype);
23
- return _this;
14
+ }
15
+ export class ValidationException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ValidationException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ValidationException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
25
  }
25
- return ValidationException;
26
- }(__BaseException));
27
- export { ValidationException };
26
+ }
28
27
  export var SourceData;
29
28
  (function (SourceData) {
30
- SourceData.visit = function (value, visitor) {
29
+ SourceData.visit = (value, visitor) => {
31
30
  if (value.x509CertificateData !== undefined)
32
31
  return visitor.x509CertificateData(value.x509CertificateData);
33
32
  if (value.acmPcaArn !== undefined)
@@ -41,70 +40,151 @@ export var TrustAnchorType;
41
40
  TrustAnchorType["CERTIFICATE_BUNDLE"] = "CERTIFICATE_BUNDLE";
42
41
  TrustAnchorType["SELF_SIGNED_REPOSITORY"] = "SELF_SIGNED_REPOSITORY";
43
42
  })(TrustAnchorType || (TrustAnchorType = {}));
44
- var ResourceNotFoundException = (function (_super) {
45
- __extends(ResourceNotFoundException, _super);
46
- function ResourceNotFoundException(opts) {
47
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
48
- _this.name = "ResourceNotFoundException";
49
- _this.$fault = "client";
50
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
51
- return _this;
43
+ export class ResourceNotFoundException extends __BaseException {
44
+ constructor(opts) {
45
+ super({
46
+ name: "ResourceNotFoundException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ this.name = "ResourceNotFoundException";
51
+ this.$fault = "client";
52
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
52
53
  }
53
- return ResourceNotFoundException;
54
- }(__BaseException));
55
- export { ResourceNotFoundException };
56
- var TooManyTagsException = (function (_super) {
57
- __extends(TooManyTagsException, _super);
58
- function TooManyTagsException(opts) {
59
- var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
60
- _this.name = "TooManyTagsException";
61
- _this.$fault = "client";
62
- Object.setPrototypeOf(_this, TooManyTagsException.prototype);
63
- return _this;
54
+ }
55
+ export class TooManyTagsException extends __BaseException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "TooManyTagsException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "TooManyTagsException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
64
65
  }
65
- return TooManyTagsException;
66
- }(__BaseException));
67
- export { TooManyTagsException };
68
- export var TagFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.key && { key: SENSITIVE_STRING })), (obj.value && { value: SENSITIVE_STRING }))); };
69
- export var CreateProfileRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: obj.tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
70
- export var ProfileDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
- export var ProfileDetailResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
72
- export var SourceDataFilterSensitiveLog = function (obj) {
73
- var _a;
66
+ }
67
+ export const TagFilterSensitiveLog = (obj) => ({
68
+ ...obj,
69
+ ...(obj.key && { key: SENSITIVE_STRING }),
70
+ ...(obj.value && { value: SENSITIVE_STRING }),
71
+ });
72
+ export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
73
+ ...obj,
74
+ ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
75
+ });
76
+ export const ProfileDetailFilterSensitiveLog = (obj) => ({
77
+ ...obj,
78
+ });
79
+ export const ProfileDetailResponseFilterSensitiveLog = (obj) => ({
80
+ ...obj,
81
+ });
82
+ export const SourceDataFilterSensitiveLog = (obj) => {
74
83
  if (obj.x509CertificateData !== undefined)
75
84
  return { x509CertificateData: obj.x509CertificateData };
76
85
  if (obj.acmPcaArn !== undefined)
77
86
  return { acmPcaArn: obj.acmPcaArn };
78
87
  if (obj.$unknown !== undefined)
79
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
88
+ return { [obj.$unknown[0]]: "UNKNOWN" };
80
89
  };
81
- export var SourceFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sourceData && { sourceData: SourceDataFilterSensitiveLog(obj.sourceData) }))); };
82
- export var CreateTrustAnchorRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.source && { source: SourceFilterSensitiveLog(obj.source) })), (obj.tags && { tags: obj.tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
83
- export var TrustAnchorDetailFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.source && { source: SourceFilterSensitiveLog(obj.source) }))); };
84
- export var TrustAnchorDetailResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.trustAnchor && { trustAnchor: TrustAnchorDetailFilterSensitiveLog(obj.trustAnchor) }))); };
85
- export var CredentialSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- export var CrlDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var CrlDetailResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
88
- export var ScalarCrlRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- export var ImportCrlRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: obj.tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
90
- export var ListCrlsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- export var ListRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
- export var UpdateCrlRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- export var ScalarProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
- export var ScalarTrustAnchorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
- export var ScalarSubjectRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
- export var InstancePropertyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- export var SubjectDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- export var SubjectDetailResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
- export var ListProfilesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- export var SubjectSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- export var ListSubjectsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: obj.tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
104
- export var ListTrustAnchorsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.trustAnchors && { trustAnchors: obj.trustAnchors.map(function (item) { return TrustAnchorDetailFilterSensitiveLog(item); }) }))); };
105
- export var UpdateProfileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tags && { tags: obj.tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
107
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
108
- export var UpdateTrustAnchorRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.source && { source: SourceFilterSensitiveLog(obj.source) }))); };
109
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.tagKeys && { tagKeys: SENSITIVE_STRING }))); };
110
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
+ export const SourceFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ ...(obj.sourceData && { sourceData: SourceDataFilterSensitiveLog(obj.sourceData) }),
93
+ });
94
+ export const CreateTrustAnchorRequestFilterSensitiveLog = (obj) => ({
95
+ ...obj,
96
+ ...(obj.source && { source: SourceFilterSensitiveLog(obj.source) }),
97
+ ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
98
+ });
99
+ export const TrustAnchorDetailFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ ...(obj.source && { source: SourceFilterSensitiveLog(obj.source) }),
102
+ });
103
+ export const TrustAnchorDetailResponseFilterSensitiveLog = (obj) => ({
104
+ ...obj,
105
+ ...(obj.trustAnchor && { trustAnchor: TrustAnchorDetailFilterSensitiveLog(obj.trustAnchor) }),
106
+ });
107
+ export const CredentialSummaryFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ });
110
+ export const CrlDetailFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ export const CrlDetailResponseFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ export const ScalarCrlRequestFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const ImportCrlRequestFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
122
+ });
123
+ export const ListCrlsResponseFilterSensitiveLog = (obj) => ({
124
+ ...obj,
125
+ });
126
+ export const ListRequestFilterSensitiveLog = (obj) => ({
127
+ ...obj,
128
+ });
129
+ export const UpdateCrlRequestFilterSensitiveLog = (obj) => ({
130
+ ...obj,
131
+ });
132
+ export const ScalarProfileRequestFilterSensitiveLog = (obj) => ({
133
+ ...obj,
134
+ });
135
+ export const ScalarTrustAnchorRequestFilterSensitiveLog = (obj) => ({
136
+ ...obj,
137
+ });
138
+ export const ScalarSubjectRequestFilterSensitiveLog = (obj) => ({
139
+ ...obj,
140
+ });
141
+ export const InstancePropertyFilterSensitiveLog = (obj) => ({
142
+ ...obj,
143
+ });
144
+ export const SubjectDetailFilterSensitiveLog = (obj) => ({
145
+ ...obj,
146
+ });
147
+ export const SubjectDetailResponseFilterSensitiveLog = (obj) => ({
148
+ ...obj,
149
+ });
150
+ export const ListProfilesResponseFilterSensitiveLog = (obj) => ({
151
+ ...obj,
152
+ });
153
+ export const SubjectSummaryFilterSensitiveLog = (obj) => ({
154
+ ...obj,
155
+ });
156
+ export const ListSubjectsResponseFilterSensitiveLog = (obj) => ({
157
+ ...obj,
158
+ });
159
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
160
+ ...obj,
161
+ });
162
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
165
+ });
166
+ export const ListTrustAnchorsResponseFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ ...(obj.trustAnchors && { trustAnchors: obj.trustAnchors.map((item) => TrustAnchorDetailFilterSensitiveLog(item)) }),
169
+ });
170
+ export const UpdateProfileRequestFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
176
+ });
177
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
178
+ ...obj,
179
+ });
180
+ export const UpdateTrustAnchorRequestFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ ...(obj.source && { source: SourceFilterSensitiveLog(obj.source) }),
183
+ });
184
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ ...(obj.tagKeys && { tagKeys: SENSITIVE_STRING }),
187
+ });
188
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ });