@aws-sdk/client-rolesanywhere 3.928.0 → 3.930.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 (54) hide show
  1. package/dist-cjs/index.js +843 -1274
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/RolesAnywhereClient.js +2 -0
  4. package/dist-es/commands/CreateProfileCommand.js +3 -10
  5. package/dist-es/commands/CreateTrustAnchorCommand.js +3 -10
  6. package/dist-es/commands/DeleteAttributeMappingCommand.js +3 -9
  7. package/dist-es/commands/DeleteCrlCommand.js +3 -9
  8. package/dist-es/commands/DeleteProfileCommand.js +3 -9
  9. package/dist-es/commands/DeleteTrustAnchorCommand.js +3 -9
  10. package/dist-es/commands/DisableCrlCommand.js +3 -9
  11. package/dist-es/commands/DisableProfileCommand.js +3 -9
  12. package/dist-es/commands/DisableTrustAnchorCommand.js +3 -9
  13. package/dist-es/commands/EnableCrlCommand.js +3 -9
  14. package/dist-es/commands/EnableProfileCommand.js +3 -9
  15. package/dist-es/commands/EnableTrustAnchorCommand.js +3 -9
  16. package/dist-es/commands/GetCrlCommand.js +3 -9
  17. package/dist-es/commands/GetProfileCommand.js +3 -9
  18. package/dist-es/commands/GetSubjectCommand.js +3 -9
  19. package/dist-es/commands/GetTrustAnchorCommand.js +3 -9
  20. package/dist-es/commands/ImportCrlCommand.js +3 -10
  21. package/dist-es/commands/ListCrlsCommand.js +3 -9
  22. package/dist-es/commands/ListProfilesCommand.js +3 -9
  23. package/dist-es/commands/ListSubjectsCommand.js +3 -9
  24. package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
  25. package/dist-es/commands/ListTrustAnchorsCommand.js +3 -9
  26. package/dist-es/commands/PutAttributeMappingCommand.js +3 -9
  27. package/dist-es/commands/PutNotificationSettingsCommand.js +3 -9
  28. package/dist-es/commands/ResetNotificationSettingsCommand.js +3 -9
  29. package/dist-es/commands/TagResourceCommand.js +3 -10
  30. package/dist-es/commands/UntagResourceCommand.js +3 -10
  31. package/dist-es/commands/UpdateCrlCommand.js +3 -9
  32. package/dist-es/commands/UpdateProfileCommand.js +3 -9
  33. package/dist-es/commands/UpdateTrustAnchorCommand.js +3 -9
  34. package/dist-es/models/models_0.js +0 -41
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-es/schemas/schemas_0.js +776 -0
  37. package/dist-types/RolesAnywhereClient.d.ts +10 -1
  38. package/dist-types/models/models_0.d.ts +4 -29
  39. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  40. package/dist-types/runtimeConfig.d.ts +1 -0
  41. package/dist-types/runtimeConfig.native.d.ts +1 -0
  42. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  43. package/dist-types/schemas/schemas_0.d.ts +103 -0
  44. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +0 -20
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  50. package/dist-types/ts3.4/schemas/schemas_0.d.ts +109 -0
  51. package/package.json +33 -33
  52. package/dist-es/protocols/Aws_restJson1.js +0 -1009
  53. package/dist-types/protocols/Aws_restJson1.d.ts +0 -272
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -365
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutAttributeMappingCommand, se_PutAttributeMappingCommand } from "../protocols/Aws_restJson1";
4
+ import { PutAttributeMapping } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutAttributeMappingCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "PutAttributeMapping", {})
17
13
  .n("RolesAnywhereClient", "PutAttributeMappingCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutAttributeMappingCommand)
20
- .de(de_PutAttributeMappingCommand)
14
+ .sc(PutAttributeMapping)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutNotificationSettingsCommand, se_PutNotificationSettingsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutNotificationSettings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutNotificationSettingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "PutNotificationSettings", {})
17
13
  .n("RolesAnywhereClient", "PutNotificationSettingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutNotificationSettingsCommand)
20
- .de(de_PutNotificationSettingsCommand)
14
+ .sc(PutNotificationSettings)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ResetNotificationSettingsCommand, se_ResetNotificationSettingsCommand } from "../protocols/Aws_restJson1";
4
+ import { ResetNotificationSettings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ResetNotificationSettingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "ResetNotificationSettings", {})
17
13
  .n("RolesAnywhereClient", "ResetNotificationSettingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ResetNotificationSettingsCommand)
20
- .de(de_ResetNotificationSettingsCommand)
14
+ .sc(ResetNotificationSettings)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
6
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class TagResourceCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("RolesAnywhere", "TagResource", {})
18
13
  .n("RolesAnywhereClient", "TagResourceCommand")
19
- .f(TagResourceRequestFilterSensitiveLog, void 0)
20
- .ser(se_TagResourceCommand)
21
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UntagResourceRequestFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UntagResourceCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("RolesAnywhere", "UntagResource", {})
18
13
  .n("RolesAnywhereClient", "UntagResourceCommand")
19
- .f(UntagResourceRequestFilterSensitiveLog, void 0)
20
- .ser(se_UntagResourceCommand)
21
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCrlCommand, se_UpdateCrlCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateCrl } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCrlCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "UpdateCrl", {})
17
13
  .n("RolesAnywhereClient", "UpdateCrlCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCrlCommand)
20
- .de(de_UpdateCrlCommand)
14
+ .sc(UpdateCrl)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateProfileCommand, se_UpdateProfileCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateProfile } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateProfileCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "UpdateProfile", {})
17
13
  .n("RolesAnywhereClient", "UpdateProfileCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateProfileCommand)
20
- .de(de_UpdateProfileCommand)
14
+ .sc(UpdateProfile)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTrustAnchorCommand, se_UpdateTrustAnchorCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateTrustAnchor } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTrustAnchorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("RolesAnywhere", "UpdateTrustAnchor", {})
17
13
  .n("RolesAnywhereClient", "UpdateTrustAnchorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTrustAnchorCommand)
20
- .de(de_UpdateTrustAnchorCommand)
14
+ .sc(UpdateTrustAnchor)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { RolesAnywhereServiceException as __BaseException } from "./RolesAnywhereServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -36,16 +35,6 @@ export const NotificationEvent = {
36
35
  CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY",
37
36
  END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY",
38
37
  };
39
- export var SourceData;
40
- (function (SourceData) {
41
- SourceData.visit = (value, visitor) => {
42
- if (value.x509CertificateData !== undefined)
43
- return visitor.x509CertificateData(value.x509CertificateData);
44
- if (value.acmPcaArn !== undefined)
45
- return visitor.acmPcaArn(value.acmPcaArn);
46
- return visitor._(value.$unknown[0], value.$unknown[1]);
47
- };
48
- })(SourceData || (SourceData = {}));
49
38
  export const TrustAnchorType = {
50
39
  AWS_ACM_PCA: "AWS_ACM_PCA",
51
40
  CERTIFICATE_BUNDLE: "CERTIFICATE_BUNDLE",
@@ -75,33 +64,3 @@ export class TooManyTagsException extends __BaseException {
75
64
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
76
65
  }
77
66
  }
78
- export const TagFilterSensitiveLog = (obj) => ({
79
- ...obj,
80
- ...(obj.key && { key: SENSITIVE_STRING }),
81
- ...(obj.value && { value: SENSITIVE_STRING }),
82
- });
83
- export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
84
- ...obj,
85
- ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
86
- });
87
- export const CreateTrustAnchorRequestFilterSensitiveLog = (obj) => ({
88
- ...obj,
89
- ...(obj.source && { source: obj.source }),
90
- ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
91
- });
92
- export const ImportCrlRequestFilterSensitiveLog = (obj) => ({
93
- ...obj,
94
- ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
95
- });
96
- export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
97
- ...obj,
98
- ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
99
- });
100
- export const TagResourceRequestFilterSensitiveLog = (obj) => ({
101
- ...obj,
102
- ...(obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }),
103
- });
104
- export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
105
- ...obj,
106
- ...(obj.tagKeys && { tagKeys: SENSITIVE_STRING }),
107
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.rolesanywhere" }),
25
27
  serviceId: config?.serviceId ?? "RolesAnywhere",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,