@aws-sdk/client-rolesanywhere 3.556.0 → 3.558.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 (30) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +108 -0
  3. package/dist-es/RolesAnywhere.js +4 -0
  4. package/dist-es/commands/DeleteAttributeMappingCommand.js +24 -0
  5. package/dist-es/commands/PutAttributeMappingCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +5 -0
  8. package/dist-es/protocols/Aws_restJson1.js +59 -0
  9. package/dist-types/RolesAnywhere.d.ts +14 -0
  10. package/dist-types/RolesAnywhereClient.d.ts +4 -2
  11. package/dist-types/commands/CreateProfileCommand.d.ts +10 -0
  12. package/dist-types/commands/DeleteAttributeMappingCommand.d.ts +99 -0
  13. package/dist-types/commands/DeleteProfileCommand.d.ts +10 -0
  14. package/dist-types/commands/DisableProfileCommand.d.ts +10 -0
  15. package/dist-types/commands/EnableProfileCommand.d.ts +10 -0
  16. package/dist-types/commands/GetProfileCommand.d.ts +10 -0
  17. package/dist-types/commands/ListProfilesCommand.d.ts +10 -0
  18. package/dist-types/commands/PutAttributeMappingCommand.d.ts +102 -0
  19. package/dist-types/commands/UpdateProfileCommand.d.ts +10 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/models/models_0.d.ts +105 -0
  22. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  23. package/dist-types/ts3.4/RolesAnywhere.d.ts +34 -0
  24. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +12 -0
  25. package/dist-types/ts3.4/commands/DeleteAttributeMappingCommand.d.ts +39 -0
  26. package/dist-types/ts3.4/commands/PutAttributeMappingCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  30. package/package.json +1 -1
package/README.md CHANGED
@@ -232,6 +232,14 @@ CreateTrustAnchor
232
232
 
233
233
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rolesanywhere/command/CreateTrustAnchorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/CreateTrustAnchorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/CreateTrustAnchorCommandOutput/)
234
234
 
235
+ </details>
236
+ <details>
237
+ <summary>
238
+ DeleteAttributeMapping
239
+ </summary>
240
+
241
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rolesanywhere/command/DeleteAttributeMappingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/DeleteAttributeMappingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/DeleteAttributeMappingCommandOutput/)
242
+
235
243
  </details>
236
244
  <details>
237
245
  <summary>
@@ -384,6 +392,14 @@ ListTrustAnchors
384
392
 
385
393
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rolesanywhere/command/ListTrustAnchorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/ListTrustAnchorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/ListTrustAnchorsCommandOutput/)
386
394
 
395
+ </details>
396
+ <details>
397
+ <summary>
398
+ PutAttributeMapping
399
+ </summary>
400
+
401
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rolesanywhere/command/PutAttributeMappingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/PutAttributeMappingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rolesanywhere/Interface/PutAttributeMappingCommandOutput/)
402
+
387
403
  </details>
388
404
  <details>
389
405
  <summary>
package/dist-cjs/index.js CHANGED
@@ -22,10 +22,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ CertificateField: () => CertificateField,
25
26
  CreateProfileCommand: () => CreateProfileCommand,
26
27
  CreateProfileRequestFilterSensitiveLog: () => CreateProfileRequestFilterSensitiveLog,
27
28
  CreateTrustAnchorCommand: () => CreateTrustAnchorCommand,
28
29
  CreateTrustAnchorRequestFilterSensitiveLog: () => CreateTrustAnchorRequestFilterSensitiveLog,
30
+ DeleteAttributeMappingCommand: () => DeleteAttributeMappingCommand,
29
31
  DeleteCrlCommand: () => DeleteCrlCommand,
30
32
  DeleteProfileCommand: () => DeleteProfileCommand,
31
33
  DeleteTrustAnchorCommand: () => DeleteTrustAnchorCommand,
@@ -49,6 +51,7 @@ __export(src_exports, {
49
51
  ListTrustAnchorsCommand: () => ListTrustAnchorsCommand,
50
52
  NotificationChannel: () => NotificationChannel,
51
53
  NotificationEvent: () => NotificationEvent,
54
+ PutAttributeMappingCommand: () => PutAttributeMappingCommand,
52
55
  PutNotificationSettingsCommand: () => PutNotificationSettingsCommand,
53
56
  ResetNotificationSettingsCommand: () => ResetNotificationSettingsCommand,
54
57
  ResourceNotFoundException: () => ResourceNotFoundException,
@@ -262,6 +265,11 @@ var _AccessDeniedException = class _AccessDeniedException extends RolesAnywhereS
262
265
  };
263
266
  __name(_AccessDeniedException, "AccessDeniedException");
264
267
  var AccessDeniedException = _AccessDeniedException;
268
+ var CertificateField = {
269
+ x509Issuer: "x509Issuer",
270
+ x509SAN: "x509SAN",
271
+ x509Subject: "x509Subject"
272
+ };
265
273
  var _ValidationException = class _ValidationException extends RolesAnywhereServiceException {
266
274
  /**
267
275
  * @internal
@@ -411,6 +419,19 @@ var se_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context)
411
419
  b.m("POST").h(headers).b(body);
412
420
  return b.build();
413
421
  }, "se_CreateTrustAnchorCommand");
422
+ var se_DeleteAttributeMappingCommand = /* @__PURE__ */ __name(async (input, context) => {
423
+ const b = (0, import_core.requestBuilder)(input, context);
424
+ const headers = {};
425
+ b.bp("/profiles/{profileId}/mappings");
426
+ b.p("profileId", () => input.profileId, "{profileId}", false);
427
+ const query = (0, import_smithy_client.map)({
428
+ [_cF]: [, (0, import_smithy_client.expectNonNull)(input[_cF], `certificateField`)],
429
+ [_s]: [() => input.specifiers !== void 0, () => (input[_s] || []).map((_entry) => _entry)]
430
+ });
431
+ let body;
432
+ b.m("DELETE").h(headers).q(query).b(body);
433
+ return b.build();
434
+ }, "se_DeleteAttributeMappingCommand");
414
435
  var se_DeleteCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
415
436
  const b = (0, import_core.requestBuilder)(input, context);
416
437
  const headers = {};
@@ -606,6 +627,23 @@ var se_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (input, context) =
606
627
  b.m("GET").h(headers).q(query).b(body);
607
628
  return b.build();
608
629
  }, "se_ListTrustAnchorsCommand");
630
+ var se_PutAttributeMappingCommand = /* @__PURE__ */ __name(async (input, context) => {
631
+ const b = (0, import_core.requestBuilder)(input, context);
632
+ const headers = {
633
+ "content-type": "application/json"
634
+ };
635
+ b.bp("/profiles/{profileId}/mappings");
636
+ b.p("profileId", () => input.profileId, "{profileId}", false);
637
+ let body;
638
+ body = JSON.stringify(
639
+ (0, import_smithy_client.take)(input, {
640
+ certificateField: [],
641
+ mappingRules: (_) => (0, import_smithy_client._json)(_)
642
+ })
643
+ );
644
+ b.m("PUT").h(headers).b(body);
645
+ return b.build();
646
+ }, "se_PutAttributeMappingCommand");
609
647
  var se_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
610
648
  const b = (0, import_core.requestBuilder)(input, context);
611
649
  const headers = {
@@ -752,6 +790,20 @@ var de_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
752
790
  Object.assign(contents, doc);
753
791
  return contents;
754
792
  }, "de_CreateTrustAnchorCommand");
793
+ var de_DeleteAttributeMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
794
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
795
+ return de_CommandError(output, context);
796
+ }
797
+ const contents = (0, import_smithy_client.map)({
798
+ $metadata: deserializeMetadata(output)
799
+ });
800
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
801
+ const doc = (0, import_smithy_client.take)(data, {
802
+ profile: (_) => de_ProfileDetail(_, context)
803
+ });
804
+ Object.assign(contents, doc);
805
+ return contents;
806
+ }, "de_DeleteAttributeMappingCommand");
755
807
  var de_DeleteCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
756
808
  if (output.statusCode !== 200 && output.statusCode >= 300) {
757
809
  return de_CommandError(output, context);
@@ -1022,6 +1074,20 @@ var de_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (output, context)
1022
1074
  Object.assign(contents, doc);
1023
1075
  return contents;
1024
1076
  }, "de_ListTrustAnchorsCommand");
1077
+ var de_PutAttributeMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
1078
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
+ return de_CommandError(output, context);
1080
+ }
1081
+ const contents = (0, import_smithy_client.map)({
1082
+ $metadata: deserializeMetadata(output)
1083
+ });
1084
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1085
+ const doc = (0, import_smithy_client.take)(data, {
1086
+ profile: (_) => de_ProfileDetail(_, context)
1087
+ });
1088
+ Object.assign(contents, doc);
1089
+ return contents;
1090
+ }, "de_PutAttributeMappingCommand");
1025
1091
  var de_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1026
1092
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1027
1093
  return de_CommandError(output, context);
@@ -1242,6 +1308,7 @@ var de_InstanceProperty = /* @__PURE__ */ __name((output, context) => {
1242
1308
  }, "de_InstanceProperty");
1243
1309
  var de_ProfileDetail = /* @__PURE__ */ __name((output, context) => {
1244
1310
  return (0, import_smithy_client.take)(output, {
1311
+ attributeMappings: import_smithy_client._json,
1245
1312
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1246
1313
  createdBy: import_smithy_client.expectString,
1247
1314
  durationSeconds: import_smithy_client.expectInt32,
@@ -1316,9 +1383,11 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1316
1383
  extendedRequestId: output.headers["x-amz-id-2"],
1317
1384
  cfId: output.headers["x-amz-cf-id"]
1318
1385
  }), "deserializeMetadata");
1386
+ var _cF = "certificateField";
1319
1387
  var _nT = "nextToken";
1320
1388
  var _pS = "pageSize";
1321
1389
  var _rA = "resourceArn";
1390
+ var _s = "specifiers";
1322
1391
 
1323
1392
  // src/commands/CreateProfileCommand.ts
1324
1393
  var _CreateProfileCommand = class _CreateProfileCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1350,6 +1419,23 @@ var _CreateTrustAnchorCommand = class _CreateTrustAnchorCommand extends import_s
1350
1419
  __name(_CreateTrustAnchorCommand, "CreateTrustAnchorCommand");
1351
1420
  var CreateTrustAnchorCommand = _CreateTrustAnchorCommand;
1352
1421
 
1422
+ // src/commands/DeleteAttributeMappingCommand.ts
1423
+
1424
+
1425
+
1426
+
1427
+ var _DeleteAttributeMappingCommand = class _DeleteAttributeMappingCommand extends import_smithy_client.Command.classBuilder().ep({
1428
+ ...commonParams
1429
+ }).m(function(Command, cs, config, o) {
1430
+ return [
1431
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1432
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1433
+ ];
1434
+ }).s("RolesAnywhere", "DeleteAttributeMapping", {}).n("RolesAnywhereClient", "DeleteAttributeMappingCommand").f(void 0, void 0).ser(se_DeleteAttributeMappingCommand).de(de_DeleteAttributeMappingCommand).build() {
1435
+ };
1436
+ __name(_DeleteAttributeMappingCommand, "DeleteAttributeMappingCommand");
1437
+ var DeleteAttributeMappingCommand = _DeleteAttributeMappingCommand;
1438
+
1353
1439
  // src/commands/DeleteCrlCommand.ts
1354
1440
 
1355
1441
 
@@ -1673,6 +1759,23 @@ var _ListTrustAnchorsCommand = class _ListTrustAnchorsCommand extends import_smi
1673
1759
  __name(_ListTrustAnchorsCommand, "ListTrustAnchorsCommand");
1674
1760
  var ListTrustAnchorsCommand = _ListTrustAnchorsCommand;
1675
1761
 
1762
+ // src/commands/PutAttributeMappingCommand.ts
1763
+
1764
+
1765
+
1766
+
1767
+ var _PutAttributeMappingCommand = class _PutAttributeMappingCommand extends import_smithy_client.Command.classBuilder().ep({
1768
+ ...commonParams
1769
+ }).m(function(Command, cs, config, o) {
1770
+ return [
1771
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1772
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1773
+ ];
1774
+ }).s("RolesAnywhere", "PutAttributeMapping", {}).n("RolesAnywhereClient", "PutAttributeMappingCommand").f(void 0, void 0).ser(se_PutAttributeMappingCommand).de(de_PutAttributeMappingCommand).build() {
1775
+ };
1776
+ __name(_PutAttributeMappingCommand, "PutAttributeMappingCommand");
1777
+ var PutAttributeMappingCommand = _PutAttributeMappingCommand;
1778
+
1676
1779
  // src/commands/PutNotificationSettingsCommand.ts
1677
1780
 
1678
1781
 
@@ -1796,6 +1899,7 @@ var UpdateTrustAnchorCommand = _UpdateTrustAnchorCommand;
1796
1899
  var commands = {
1797
1900
  CreateProfileCommand,
1798
1901
  CreateTrustAnchorCommand,
1902
+ DeleteAttributeMappingCommand,
1799
1903
  DeleteCrlCommand,
1800
1904
  DeleteProfileCommand,
1801
1905
  DeleteTrustAnchorCommand,
@@ -1815,6 +1919,7 @@ var commands = {
1815
1919
  ListSubjectsCommand,
1816
1920
  ListTagsForResourceCommand,
1817
1921
  ListTrustAnchorsCommand,
1922
+ PutAttributeMappingCommand,
1818
1923
  PutNotificationSettingsCommand,
1819
1924
  ResetNotificationSettingsCommand,
1820
1925
  TagResourceCommand,
@@ -1854,6 +1959,7 @@ var paginateListTrustAnchors = (0, import_core.createPaginator)(RolesAnywhereCli
1854
1959
  $Command,
1855
1960
  CreateProfileCommand,
1856
1961
  CreateTrustAnchorCommand,
1962
+ DeleteAttributeMappingCommand,
1857
1963
  DeleteCrlCommand,
1858
1964
  DeleteProfileCommand,
1859
1965
  DeleteTrustAnchorCommand,
@@ -1873,6 +1979,7 @@ var paginateListTrustAnchors = (0, import_core.createPaginator)(RolesAnywhereCli
1873
1979
  ListSubjectsCommand,
1874
1980
  ListTagsForResourceCommand,
1875
1981
  ListTrustAnchorsCommand,
1982
+ PutAttributeMappingCommand,
1876
1983
  PutNotificationSettingsCommand,
1877
1984
  ResetNotificationSettingsCommand,
1878
1985
  TagResourceCommand,
@@ -1885,6 +1992,7 @@ var paginateListTrustAnchors = (0, import_core.createPaginator)(RolesAnywhereCli
1885
1992
  paginateListSubjects,
1886
1993
  paginateListTrustAnchors,
1887
1994
  AccessDeniedException,
1995
+ CertificateField,
1888
1996
  ValidationException,
1889
1997
  NotificationChannel,
1890
1998
  NotificationEvent,
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
3
3
  import { CreateTrustAnchorCommand, } from "./commands/CreateTrustAnchorCommand";
4
+ import { DeleteAttributeMappingCommand, } from "./commands/DeleteAttributeMappingCommand";
4
5
  import { DeleteCrlCommand } from "./commands/DeleteCrlCommand";
5
6
  import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
6
7
  import { DeleteTrustAnchorCommand, } from "./commands/DeleteTrustAnchorCommand";
@@ -20,6 +21,7 @@ import { ListProfilesCommand, } from "./commands/ListProfilesCommand";
20
21
  import { ListSubjectsCommand, } from "./commands/ListSubjectsCommand";
21
22
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
22
23
  import { ListTrustAnchorsCommand, } from "./commands/ListTrustAnchorsCommand";
24
+ import { PutAttributeMappingCommand, } from "./commands/PutAttributeMappingCommand";
23
25
  import { PutNotificationSettingsCommand, } from "./commands/PutNotificationSettingsCommand";
24
26
  import { ResetNotificationSettingsCommand, } from "./commands/ResetNotificationSettingsCommand";
25
27
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -31,6 +33,7 @@ import { RolesAnywhereClient } from "./RolesAnywhereClient";
31
33
  const commands = {
32
34
  CreateProfileCommand,
33
35
  CreateTrustAnchorCommand,
36
+ DeleteAttributeMappingCommand,
34
37
  DeleteCrlCommand,
35
38
  DeleteProfileCommand,
36
39
  DeleteTrustAnchorCommand,
@@ -50,6 +53,7 @@ const commands = {
50
53
  ListSubjectsCommand,
51
54
  ListTagsForResourceCommand,
52
55
  ListTrustAnchorsCommand,
56
+ PutAttributeMappingCommand,
53
57
  PutNotificationSettingsCommand,
54
58
  ResetNotificationSettingsCommand,
55
59
  TagResourceCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteAttributeMappingCommand, se_DeleteAttributeMappingCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteAttributeMappingCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RolesAnywhere", "DeleteAttributeMapping", {})
19
+ .n("RolesAnywhereClient", "DeleteAttributeMappingCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAttributeMappingCommand)
22
+ .de(de_DeleteAttributeMappingCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutAttributeMappingCommand, se_PutAttributeMappingCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutAttributeMappingCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RolesAnywhere", "PutAttributeMapping", {})
19
+ .n("RolesAnywhereClient", "PutAttributeMappingCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutAttributeMappingCommand)
22
+ .de(de_PutAttributeMappingCommand)
23
+ .build() {
24
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./CreateProfileCommand";
2
2
  export * from "./CreateTrustAnchorCommand";
3
+ export * from "./DeleteAttributeMappingCommand";
3
4
  export * from "./DeleteCrlCommand";
4
5
  export * from "./DeleteProfileCommand";
5
6
  export * from "./DeleteTrustAnchorCommand";
@@ -19,6 +20,7 @@ export * from "./ListProfilesCommand";
19
20
  export * from "./ListSubjectsCommand";
20
21
  export * from "./ListTagsForResourceCommand";
21
22
  export * from "./ListTrustAnchorsCommand";
23
+ export * from "./PutAttributeMappingCommand";
22
24
  export * from "./PutNotificationSettingsCommand";
23
25
  export * from "./ResetNotificationSettingsCommand";
24
26
  export * from "./TagResourceCommand";
@@ -12,6 +12,11 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
+ export const CertificateField = {
16
+ x509Issuer: "x509Issuer",
17
+ x509SAN: "x509SAN",
18
+ x509Subject: "x509Subject",
19
+ };
15
20
  export class ValidationException extends __BaseException {
16
21
  constructor(opts) {
17
22
  super({
@@ -40,6 +40,19 @@ export const se_CreateTrustAnchorCommand = async (input, context) => {
40
40
  b.m("POST").h(headers).b(body);
41
41
  return b.build();
42
42
  };
43
+ export const se_DeleteAttributeMappingCommand = async (input, context) => {
44
+ const b = rb(input, context);
45
+ const headers = {};
46
+ b.bp("/profiles/{profileId}/mappings");
47
+ b.p("profileId", () => input.profileId, "{profileId}", false);
48
+ const query = map({
49
+ [_cF]: [, __expectNonNull(input[_cF], `certificateField`)],
50
+ [_s]: [() => input.specifiers !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
51
+ });
52
+ let body;
53
+ b.m("DELETE").h(headers).q(query).b(body);
54
+ return b.build();
55
+ };
43
56
  export const se_DeleteCrlCommand = async (input, context) => {
44
57
  const b = rb(input, context);
45
58
  const headers = {};
@@ -233,6 +246,21 @@ export const se_ListTrustAnchorsCommand = async (input, context) => {
233
246
  b.m("GET").h(headers).q(query).b(body);
234
247
  return b.build();
235
248
  };
249
+ export const se_PutAttributeMappingCommand = async (input, context) => {
250
+ const b = rb(input, context);
251
+ const headers = {
252
+ "content-type": "application/json",
253
+ };
254
+ b.bp("/profiles/{profileId}/mappings");
255
+ b.p("profileId", () => input.profileId, "{profileId}", false);
256
+ let body;
257
+ body = JSON.stringify(take(input, {
258
+ certificateField: [],
259
+ mappingRules: (_) => _json(_),
260
+ }));
261
+ b.m("PUT").h(headers).b(body);
262
+ return b.build();
263
+ };
236
264
  export const se_PutNotificationSettingsCommand = async (input, context) => {
237
265
  const b = rb(input, context);
238
266
  const headers = {
@@ -365,6 +393,20 @@ export const de_CreateTrustAnchorCommand = async (output, context) => {
365
393
  Object.assign(contents, doc);
366
394
  return contents;
367
395
  };
396
+ export const de_DeleteAttributeMappingCommand = async (output, context) => {
397
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
398
+ return de_CommandError(output, context);
399
+ }
400
+ const contents = map({
401
+ $metadata: deserializeMetadata(output),
402
+ });
403
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
404
+ const doc = take(data, {
405
+ profile: (_) => de_ProfileDetail(_, context),
406
+ });
407
+ Object.assign(contents, doc);
408
+ return contents;
409
+ };
368
410
  export const de_DeleteCrlCommand = async (output, context) => {
369
411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
370
412
  return de_CommandError(output, context);
@@ -635,6 +677,20 @@ export const de_ListTrustAnchorsCommand = async (output, context) => {
635
677
  Object.assign(contents, doc);
636
678
  return contents;
637
679
  };
680
+ export const de_PutAttributeMappingCommand = async (output, context) => {
681
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
682
+ return de_CommandError(output, context);
683
+ }
684
+ const contents = map({
685
+ $metadata: deserializeMetadata(output),
686
+ });
687
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
688
+ const doc = take(data, {
689
+ profile: (_) => de_ProfileDetail(_, context),
690
+ });
691
+ Object.assign(contents, doc);
692
+ return contents;
693
+ };
638
694
  export const de_PutNotificationSettingsCommand = async (output, context) => {
639
695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
640
696
  return de_CommandError(output, context);
@@ -861,6 +917,7 @@ const de_InstanceProperty = (output, context) => {
861
917
  };
862
918
  const de_ProfileDetail = (output, context) => {
863
919
  return take(output, {
920
+ attributeMappings: _json,
864
921
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
865
922
  createdBy: __expectString,
866
923
  durationSeconds: __expectInt32,
@@ -947,6 +1004,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
947
1004
  value !== "" &&
948
1005
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
949
1006
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1007
+ const _cF = "certificateField";
950
1008
  const _nT = "nextToken";
951
1009
  const _pS = "pageSize";
952
1010
  const _rA = "resourceArn";
1011
+ const _s = "specifiers";
@@ -1,6 +1,7 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
3
3
  import { CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput } from "./commands/CreateTrustAnchorCommand";
4
+ import { DeleteAttributeMappingCommandInput, DeleteAttributeMappingCommandOutput } from "./commands/DeleteAttributeMappingCommand";
4
5
  import { DeleteCrlCommandInput, DeleteCrlCommandOutput } from "./commands/DeleteCrlCommand";
5
6
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
6
7
  import { DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput } from "./commands/DeleteTrustAnchorCommand";
@@ -20,6 +21,7 @@ import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/
20
21
  import { ListSubjectsCommandInput, ListSubjectsCommandOutput } from "./commands/ListSubjectsCommand";
21
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
23
  import { ListTrustAnchorsCommandInput, ListTrustAnchorsCommandOutput } from "./commands/ListTrustAnchorsCommand";
24
+ import { PutAttributeMappingCommandInput, PutAttributeMappingCommandOutput } from "./commands/PutAttributeMappingCommand";
23
25
  import { PutNotificationSettingsCommandInput, PutNotificationSettingsCommandOutput } from "./commands/PutNotificationSettingsCommand";
24
26
  import { ResetNotificationSettingsCommandInput, ResetNotificationSettingsCommandOutput } from "./commands/ResetNotificationSettingsCommand";
25
27
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -41,6 +43,12 @@ export interface RolesAnywhere {
41
43
  createTrustAnchor(args: CreateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrustAnchorCommandOutput>;
42
44
  createTrustAnchor(args: CreateTrustAnchorCommandInput, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
43
45
  createTrustAnchor(args: CreateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link DeleteAttributeMappingCommand}
48
+ */
49
+ deleteAttributeMapping(args: DeleteAttributeMappingCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAttributeMappingCommandOutput>;
50
+ deleteAttributeMapping(args: DeleteAttributeMappingCommandInput, cb: (err: any, data?: DeleteAttributeMappingCommandOutput) => void): void;
51
+ deleteAttributeMapping(args: DeleteAttributeMappingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAttributeMappingCommandOutput) => void): void;
44
52
  /**
45
53
  * @see {@link DeleteCrlCommand}
46
54
  */
@@ -159,6 +167,12 @@ export interface RolesAnywhere {
159
167
  listTrustAnchors(args: ListTrustAnchorsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrustAnchorsCommandOutput>;
160
168
  listTrustAnchors(args: ListTrustAnchorsCommandInput, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
161
169
  listTrustAnchors(args: ListTrustAnchorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
170
+ /**
171
+ * @see {@link PutAttributeMappingCommand}
172
+ */
173
+ putAttributeMapping(args: PutAttributeMappingCommandInput, options?: __HttpHandlerOptions): Promise<PutAttributeMappingCommandOutput>;
174
+ putAttributeMapping(args: PutAttributeMappingCommandInput, cb: (err: any, data?: PutAttributeMappingCommandOutput) => void): void;
175
+ putAttributeMapping(args: PutAttributeMappingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAttributeMappingCommandOutput) => void): void;
162
176
  /**
163
177
  * @see {@link PutNotificationSettingsCommand}
164
178
  */
@@ -9,6 +9,7 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
11
11
  import { CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput } from "./commands/CreateTrustAnchorCommand";
12
+ import { DeleteAttributeMappingCommandInput, DeleteAttributeMappingCommandOutput } from "./commands/DeleteAttributeMappingCommand";
12
13
  import { DeleteCrlCommandInput, DeleteCrlCommandOutput } from "./commands/DeleteCrlCommand";
13
14
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
14
15
  import { DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput } from "./commands/DeleteTrustAnchorCommand";
@@ -28,6 +29,7 @@ import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/
28
29
  import { ListSubjectsCommandInput, ListSubjectsCommandOutput } from "./commands/ListSubjectsCommand";
29
30
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
31
  import { ListTrustAnchorsCommandInput, ListTrustAnchorsCommandOutput } from "./commands/ListTrustAnchorsCommand";
32
+ import { PutAttributeMappingCommandInput, PutAttributeMappingCommandOutput } from "./commands/PutAttributeMappingCommand";
31
33
  import { PutNotificationSettingsCommandInput, PutNotificationSettingsCommandOutput } from "./commands/PutNotificationSettingsCommand";
32
34
  import { ResetNotificationSettingsCommandInput, ResetNotificationSettingsCommandOutput } from "./commands/ResetNotificationSettingsCommand";
33
35
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -41,11 +43,11 @@ export { __Client };
41
43
  /**
42
44
  * @public
43
45
  */
44
- export type ServiceInputTypes = CreateProfileCommandInput | CreateTrustAnchorCommandInput | DeleteCrlCommandInput | DeleteProfileCommandInput | DeleteTrustAnchorCommandInput | DisableCrlCommandInput | DisableProfileCommandInput | DisableTrustAnchorCommandInput | EnableCrlCommandInput | EnableProfileCommandInput | EnableTrustAnchorCommandInput | GetCrlCommandInput | GetProfileCommandInput | GetSubjectCommandInput | GetTrustAnchorCommandInput | ImportCrlCommandInput | ListCrlsCommandInput | ListProfilesCommandInput | ListSubjectsCommandInput | ListTagsForResourceCommandInput | ListTrustAnchorsCommandInput | PutNotificationSettingsCommandInput | ResetNotificationSettingsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCrlCommandInput | UpdateProfileCommandInput | UpdateTrustAnchorCommandInput;
46
+ export type ServiceInputTypes = CreateProfileCommandInput | CreateTrustAnchorCommandInput | DeleteAttributeMappingCommandInput | DeleteCrlCommandInput | DeleteProfileCommandInput | DeleteTrustAnchorCommandInput | DisableCrlCommandInput | DisableProfileCommandInput | DisableTrustAnchorCommandInput | EnableCrlCommandInput | EnableProfileCommandInput | EnableTrustAnchorCommandInput | GetCrlCommandInput | GetProfileCommandInput | GetSubjectCommandInput | GetTrustAnchorCommandInput | ImportCrlCommandInput | ListCrlsCommandInput | ListProfilesCommandInput | ListSubjectsCommandInput | ListTagsForResourceCommandInput | ListTrustAnchorsCommandInput | PutAttributeMappingCommandInput | PutNotificationSettingsCommandInput | ResetNotificationSettingsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCrlCommandInput | UpdateProfileCommandInput | UpdateTrustAnchorCommandInput;
45
47
  /**
46
48
  * @public
47
49
  */
48
- export type ServiceOutputTypes = CreateProfileCommandOutput | CreateTrustAnchorCommandOutput | DeleteCrlCommandOutput | DeleteProfileCommandOutput | DeleteTrustAnchorCommandOutput | DisableCrlCommandOutput | DisableProfileCommandOutput | DisableTrustAnchorCommandOutput | EnableCrlCommandOutput | EnableProfileCommandOutput | EnableTrustAnchorCommandOutput | GetCrlCommandOutput | GetProfileCommandOutput | GetSubjectCommandOutput | GetTrustAnchorCommandOutput | ImportCrlCommandOutput | ListCrlsCommandOutput | ListProfilesCommandOutput | ListSubjectsCommandOutput | ListTagsForResourceCommandOutput | ListTrustAnchorsCommandOutput | PutNotificationSettingsCommandOutput | ResetNotificationSettingsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCrlCommandOutput | UpdateProfileCommandOutput | UpdateTrustAnchorCommandOutput;
50
+ export type ServiceOutputTypes = CreateProfileCommandOutput | CreateTrustAnchorCommandOutput | DeleteAttributeMappingCommandOutput | DeleteCrlCommandOutput | DeleteProfileCommandOutput | DeleteTrustAnchorCommandOutput | DisableCrlCommandOutput | DisableProfileCommandOutput | DisableTrustAnchorCommandOutput | EnableCrlCommandOutput | EnableProfileCommandOutput | EnableTrustAnchorCommandOutput | GetCrlCommandOutput | GetProfileCommandOutput | GetSubjectCommandOutput | GetTrustAnchorCommandOutput | ImportCrlCommandOutput | ListCrlsCommandOutput | ListProfilesCommandOutput | ListSubjectsCommandOutput | ListTagsForResourceCommandOutput | ListTrustAnchorsCommandOutput | PutAttributeMappingCommandOutput | PutNotificationSettingsCommandOutput | ResetNotificationSettingsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCrlCommandOutput | UpdateProfileCommandOutput | UpdateTrustAnchorCommandOutput;
49
51
  /**
50
52
  * @public
51
53
  */
@@ -76,6 +76,16 @@ declare const CreateProfileCommand_base: {
76
76
  * // createdAt: new Date("TIMESTAMP"),
77
77
  * // updatedAt: new Date("TIMESTAMP"),
78
78
  * // durationSeconds: Number("int"),
79
+ * // attributeMappings: [ // AttributeMappings
80
+ * // { // AttributeMapping
81
+ * // certificateField: "STRING_VALUE",
82
+ * // mappingRules: [ // MappingRules
83
+ * // { // MappingRule
84
+ * // specifier: "STRING_VALUE", // required
85
+ * // },
86
+ * // ],
87
+ * // },
88
+ * // ],
79
89
  * // },
80
90
  * // };
81
91
  *
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteAttributeMappingRequest, DeleteAttributeMappingResponse } from "../models/models_0";
4
+ import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeleteAttributeMappingCommand}.
13
+ */
14
+ export interface DeleteAttributeMappingCommandInput extends DeleteAttributeMappingRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeleteAttributeMappingCommand}.
20
+ */
21
+ export interface DeleteAttributeMappingCommandOutput extends DeleteAttributeMappingResponse, __MetadataBearer {
22
+ }
23
+ declare const DeleteAttributeMappingCommand_base: {
24
+ new (input: DeleteAttributeMappingCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttributeMappingCommandInput, DeleteAttributeMappingCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteAttributeMappingCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAttributeMappingCommandInput, DeleteAttributeMappingCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Delete an entry from the attribute mapping rules enforced by a given profile.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { RolesAnywhereClient, DeleteAttributeMappingCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import
34
+ * // const { RolesAnywhereClient, DeleteAttributeMappingCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import
35
+ * const client = new RolesAnywhereClient(config);
36
+ * const input = { // DeleteAttributeMappingRequest
37
+ * profileId: "STRING_VALUE", // required
38
+ * certificateField: "STRING_VALUE", // required
39
+ * specifiers: [ // SpecifierList
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new DeleteAttributeMappingCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // DeleteAttributeMappingResponse
46
+ * // profile: { // ProfileDetail
47
+ * // profileId: "STRING_VALUE",
48
+ * // profileArn: "STRING_VALUE",
49
+ * // name: "STRING_VALUE",
50
+ * // requireInstanceProperties: true || false,
51
+ * // enabled: true || false,
52
+ * // createdBy: "STRING_VALUE",
53
+ * // sessionPolicy: "STRING_VALUE",
54
+ * // roleArns: [ // RoleArnList
55
+ * // "STRING_VALUE",
56
+ * // ],
57
+ * // managedPolicyArns: [ // ManagedPolicyList
58
+ * // "STRING_VALUE",
59
+ * // ],
60
+ * // createdAt: new Date("TIMESTAMP"),
61
+ * // updatedAt: new Date("TIMESTAMP"),
62
+ * // durationSeconds: Number("int"),
63
+ * // attributeMappings: [ // AttributeMappings
64
+ * // { // AttributeMapping
65
+ * // certificateField: "STRING_VALUE",
66
+ * // mappingRules: [ // MappingRules
67
+ * // { // MappingRule
68
+ * // specifier: "STRING_VALUE", // required
69
+ * // },
70
+ * // ],
71
+ * // },
72
+ * // ],
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param DeleteAttributeMappingCommandInput - {@link DeleteAttributeMappingCommandInput}
79
+ * @returns {@link DeleteAttributeMappingCommandOutput}
80
+ * @see {@link DeleteAttributeMappingCommandInput} for command's `input` shape.
81
+ * @see {@link DeleteAttributeMappingCommandOutput} for command's `response` shape.
82
+ * @see {@link RolesAnywhereClientResolvedConfig | config} for RolesAnywhereClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You do not have sufficient access to perform this action.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The resource could not be found.</p>
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * <p>Validation exception error.</p>
92
+ *
93
+ * @throws {@link RolesAnywhereServiceException}
94
+ * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
95
+ *
96
+ * @public
97
+ */
98
+ export declare class DeleteAttributeMappingCommand extends DeleteAttributeMappingCommand_base {
99
+ }