@aws-sdk/client-datazone 3.641.0 → 3.644.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 (141) hide show
  1. package/README.md +88 -0
  2. package/dist-cjs/index.js +896 -99
  3. package/dist-es/DataZone.js +22 -0
  4. package/dist-es/commands/AddEntityOwnerCommand.js +24 -0
  5. package/dist-es/commands/AddPolicyGrantCommand.js +24 -0
  6. package/dist-es/commands/CreateDomainUnitCommand.js +25 -0
  7. package/dist-es/commands/DeleteDomainUnitCommand.js +24 -0
  8. package/dist-es/commands/GetDomainUnitCommand.js +25 -0
  9. package/dist-es/commands/GetEnvironmentBlueprintCommand.js +1 -1
  10. package/dist-es/commands/GetEnvironmentCommand.js +1 -1
  11. package/dist-es/commands/GetEnvironmentCredentialsCommand.js +1 -1
  12. package/dist-es/commands/GetEnvironmentProfileCommand.js +1 -1
  13. package/dist-es/commands/GetFormTypeCommand.js +1 -1
  14. package/dist-es/commands/GetGroupProfileCommand.js +1 -1
  15. package/dist-es/commands/GetLineageNodeCommand.js +1 -1
  16. package/dist-es/commands/GetProjectCommand.js +1 -1
  17. package/dist-es/commands/GetSubscriptionCommand.js +1 -1
  18. package/dist-es/commands/GetSubscriptionRequestDetailsCommand.js +1 -1
  19. package/dist-es/commands/GetSubscriptionTargetCommand.js +1 -1
  20. package/dist-es/commands/GetUserProfileCommand.js +1 -1
  21. package/dist-es/commands/ListDomainUnitsForParentCommand.js +24 -0
  22. package/dist-es/commands/ListEntityOwnersCommand.js +24 -0
  23. package/dist-es/commands/ListPolicyGrantsCommand.js +24 -0
  24. package/dist-es/commands/RemoveEntityOwnerCommand.js +24 -0
  25. package/dist-es/commands/RemovePolicyGrantCommand.js +24 -0
  26. package/dist-es/commands/UpdateDomainUnitCommand.js +25 -0
  27. package/dist-es/commands/index.js +11 -0
  28. package/dist-es/models/models_0.js +144 -78
  29. package/dist-es/models/models_1.js +97 -1
  30. package/dist-es/pagination/ListDomainUnitsForParentPaginator.js +4 -0
  31. package/dist-es/pagination/ListEntityOwnersPaginator.js +4 -0
  32. package/dist-es/pagination/ListPolicyGrantsPaginator.js +4 -0
  33. package/dist-es/pagination/index.js +3 -0
  34. package/dist-es/protocols/Aws_restJson1.js +360 -0
  35. package/dist-types/DataZone.d.ts +77 -0
  36. package/dist-types/DataZoneClient.d.ts +13 -2
  37. package/dist-types/commands/AcceptSubscriptionRequestCommand.d.ts +16 -0
  38. package/dist-types/commands/AddEntityOwnerCommand.d.ts +93 -0
  39. package/dist-types/commands/AddPolicyGrantCommand.d.ts +141 -0
  40. package/dist-types/commands/CancelSubscriptionCommand.d.ts +8 -0
  41. package/dist-types/commands/CreateDomainCommand.d.ts +1 -0
  42. package/dist-types/commands/CreateDomainUnitCommand.d.ts +104 -0
  43. package/dist-types/commands/CreateProjectCommand.d.ts +2 -0
  44. package/dist-types/commands/CreateSubscriptionGrantCommand.d.ts +8 -0
  45. package/dist-types/commands/CreateSubscriptionRequestCommand.d.ts +8 -0
  46. package/dist-types/commands/DeleteDomainUnitCommand.d.ts +80 -0
  47. package/dist-types/commands/DeleteEnvironmentBlueprintConfigurationCommand.d.ts +2 -1
  48. package/dist-types/commands/DeleteFormTypeCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteGlossaryCommand.d.ts +1 -2
  50. package/dist-types/commands/DeleteSubscriptionGrantCommand.d.ts +8 -0
  51. package/dist-types/commands/GetAssetFilterCommand.d.ts +1 -2
  52. package/dist-types/commands/GetDomainCommand.d.ts +1 -0
  53. package/dist-types/commands/GetDomainUnitCommand.d.ts +97 -0
  54. package/dist-types/commands/GetEnvironmentActionCommand.d.ts +1 -1
  55. package/dist-types/commands/GetEnvironmentBlueprintCommand.d.ts +1 -1
  56. package/dist-types/commands/GetEnvironmentBlueprintConfigurationCommand.d.ts +1 -1
  57. package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
  58. package/dist-types/commands/GetEnvironmentCredentialsCommand.d.ts +1 -1
  59. package/dist-types/commands/GetEnvironmentProfileCommand.d.ts +1 -1
  60. package/dist-types/commands/GetFormTypeCommand.d.ts +1 -1
  61. package/dist-types/commands/GetGroupProfileCommand.d.ts +1 -1
  62. package/dist-types/commands/GetIamPortalLoginUrlCommand.d.ts +1 -1
  63. package/dist-types/commands/GetLineageNodeCommand.d.ts +1 -1
  64. package/dist-types/commands/GetProjectCommand.d.ts +2 -1
  65. package/dist-types/commands/GetSubscriptionCommand.d.ts +9 -1
  66. package/dist-types/commands/GetSubscriptionGrantCommand.d.ts +9 -1
  67. package/dist-types/commands/GetSubscriptionRequestDetailsCommand.d.ts +9 -1
  68. package/dist-types/commands/GetSubscriptionTargetCommand.d.ts +1 -1
  69. package/dist-types/commands/GetTimeSeriesDataPointCommand.d.ts +1 -1
  70. package/dist-types/commands/GetUserProfileCommand.d.ts +1 -1
  71. package/dist-types/commands/ListDomainUnitsForParentCommand.d.ts +84 -0
  72. package/dist-types/commands/ListEntityOwnersCommand.d.ts +89 -0
  73. package/dist-types/commands/ListEnvironmentBlueprintConfigurationsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListPolicyGrantsCommand.d.ts +143 -0
  75. package/dist-types/commands/ListProjectsCommand.d.ts +1 -0
  76. package/dist-types/commands/ListSubscriptionGrantsCommand.d.ts +8 -0
  77. package/dist-types/commands/ListSubscriptionRequestsCommand.d.ts +8 -0
  78. package/dist-types/commands/ListSubscriptionsCommand.d.ts +8 -0
  79. package/dist-types/commands/PutEnvironmentBlueprintConfigurationCommand.d.ts +1 -1
  80. package/dist-types/commands/RejectSubscriptionRequestCommand.d.ts +8 -0
  81. package/dist-types/commands/RemoveEntityOwnerCommand.d.ts +87 -0
  82. package/dist-types/commands/RemovePolicyGrantCommand.d.ts +103 -0
  83. package/dist-types/commands/RevokeSubscriptionCommand.d.ts +8 -0
  84. package/dist-types/commands/UpdateDomainCommand.d.ts +1 -0
  85. package/dist-types/commands/UpdateDomainUnitCommand.d.ts +102 -0
  86. package/dist-types/commands/UpdateProjectCommand.d.ts +1 -0
  87. package/dist-types/commands/UpdateSubscriptionGrantStatusCommand.d.ts +8 -0
  88. package/dist-types/commands/UpdateSubscriptionRequestCommand.d.ts +8 -0
  89. package/dist-types/commands/index.d.ts +11 -0
  90. package/dist-types/models/models_0.d.ts +4782 -5094
  91. package/dist-types/models/models_1.d.ts +1939 -2
  92. package/dist-types/pagination/ListDomainUnitsForParentPaginator.d.ts +7 -0
  93. package/dist-types/pagination/ListEntityOwnersPaginator.d.ts +7 -0
  94. package/dist-types/pagination/ListPolicyGrantsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/index.d.ts +3 -0
  96. package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
  97. package/dist-types/ts3.4/DataZone.d.ts +187 -0
  98. package/dist-types/ts3.4/DataZoneClient.d.ts +66 -0
  99. package/dist-types/ts3.4/commands/AddEntityOwnerCommand.d.ts +36 -0
  100. package/dist-types/ts3.4/commands/AddPolicyGrantCommand.d.ts +36 -0
  101. package/dist-types/ts3.4/commands/CreateDomainUnitCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/DeleteDomainUnitCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/DeleteEnvironmentBlueprintConfigurationCommand.d.ts +2 -4
  104. package/dist-types/ts3.4/commands/DeleteFormTypeCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/DeleteGlossaryCommand.d.ts +1 -2
  106. package/dist-types/ts3.4/commands/GetAssetFilterCommand.d.ts +1 -2
  107. package/dist-types/ts3.4/commands/GetDomainUnitCommand.d.ts +36 -0
  108. package/dist-types/ts3.4/commands/GetEnvironmentActionCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/GetEnvironmentBlueprintCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/GetEnvironmentBlueprintConfigurationCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/GetEnvironmentCredentialsCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/GetEnvironmentProfileCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/GetFormTypeCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/GetGroupProfileCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/GetIamPortalLoginUrlCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/GetLineageNodeCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/GetSubscriptionGrantCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/GetSubscriptionRequestDetailsCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/GetSubscriptionTargetCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/GetTimeSeriesDataPointCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/GetUserProfileCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/ListDomainUnitsForParentCommand.d.ts +40 -0
  126. package/dist-types/ts3.4/commands/ListEntityOwnersCommand.d.ts +39 -0
  127. package/dist-types/ts3.4/commands/ListEnvironmentBlueprintConfigurationsCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ListPolicyGrantsCommand.d.ts +39 -0
  129. package/dist-types/ts3.4/commands/PutEnvironmentBlueprintConfigurationCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/RemoveEntityOwnerCommand.d.ts +39 -0
  131. package/dist-types/ts3.4/commands/RemovePolicyGrantCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/UpdateDomainUnitCommand.d.ts +39 -0
  133. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  134. package/dist-types/ts3.4/models/models_0.d.ts +585 -382
  135. package/dist-types/ts3.4/models/models_1.d.ts +492 -2
  136. package/dist-types/ts3.4/pagination/ListDomainUnitsForParentPaginator.d.ts +11 -0
  137. package/dist-types/ts3.4/pagination/ListEntityOwnersPaginator.d.ts +11 -0
  138. package/dist-types/ts3.4/pagination/ListPolicyGrantsPaginator.d.ts +11 -0
  139. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  140. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
  141. package/package.json +1 -1
@@ -35,11 +35,48 @@ export const se_AcceptSubscriptionRequestCommand = async (input, context) => {
35
35
  b.p("identifier", () => input.identifier, "{identifier}", false);
36
36
  let body;
37
37
  body = JSON.stringify(take(input, {
38
+ assetScopes: (_) => _json(_),
38
39
  decisionComment: [],
39
40
  }));
40
41
  b.m("PUT").h(headers).b(body);
41
42
  return b.build();
42
43
  };
44
+ export const se_AddEntityOwnerCommand = async (input, context) => {
45
+ const b = rb(input, context);
46
+ const headers = {
47
+ "content-type": "application/json",
48
+ };
49
+ b.bp("/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/addOwner");
50
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
51
+ b.p("entityType", () => input.entityType, "{entityType}", false);
52
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
53
+ let body;
54
+ body = JSON.stringify(take(input, {
55
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
56
+ owner: (_) => _json(_),
57
+ }));
58
+ b.m("POST").h(headers).b(body);
59
+ return b.build();
60
+ };
61
+ export const se_AddPolicyGrantCommand = async (input, context) => {
62
+ const b = rb(input, context);
63
+ const headers = {
64
+ "content-type": "application/json",
65
+ };
66
+ b.bp("/v2/domains/{domainIdentifier}/policies/managed/{entityType}/{entityIdentifier}/addGrant");
67
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
68
+ b.p("entityType", () => input.entityType, "{entityType}", false);
69
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
70
+ let body;
71
+ body = JSON.stringify(take(input, {
72
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
73
+ detail: (_) => _json(_),
74
+ policyType: [],
75
+ principal: (_) => _json(_),
76
+ }));
77
+ b.m("POST").h(headers).b(body);
78
+ return b.build();
79
+ };
43
80
  export const se_AssociateEnvironmentRoleCommand = async (input, context) => {
44
81
  const b = rb(input, context);
45
82
  const headers = {};
@@ -234,6 +271,23 @@ export const se_CreateDomainCommand = async (input, context) => {
234
271
  b.m("POST").h(headers).b(body);
235
272
  return b.build();
236
273
  };
274
+ export const se_CreateDomainUnitCommand = async (input, context) => {
275
+ const b = rb(input, context);
276
+ const headers = {
277
+ "content-type": "application/json",
278
+ };
279
+ b.bp("/v2/domains/{domainIdentifier}/domain-units");
280
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
281
+ let body;
282
+ body = JSON.stringify(take(input, {
283
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
284
+ description: [],
285
+ name: [],
286
+ parentDomainUnitIdentifier: [],
287
+ }));
288
+ b.m("POST").h(headers).b(body);
289
+ return b.build();
290
+ };
237
291
  export const se_CreateEnvironmentCommand = async (input, context) => {
238
292
  const b = rb(input, context);
239
293
  const headers = {
@@ -392,6 +446,7 @@ export const se_CreateProjectCommand = async (input, context) => {
392
446
  let body;
393
447
  body = JSON.stringify(take(input, {
394
448
  description: [],
449
+ domainUnitId: [],
395
450
  glossaryTerms: (_) => _json(_),
396
451
  name: [],
397
452
  }));
@@ -555,6 +610,16 @@ export const se_DeleteDomainCommand = async (input, context) => {
555
610
  b.m("DELETE").h(headers).q(query).b(body);
556
611
  return b.build();
557
612
  };
613
+ export const se_DeleteDomainUnitCommand = async (input, context) => {
614
+ const b = rb(input, context);
615
+ const headers = {};
616
+ b.bp("/v2/domains/{domainIdentifier}/domain-units/{identifier}");
617
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
618
+ b.p("identifier", () => input.identifier, "{identifier}", false);
619
+ let body;
620
+ b.m("DELETE").h(headers).b(body);
621
+ return b.build();
622
+ };
558
623
  export const se_DeleteEnvironmentCommand = async (input, context) => {
559
624
  const b = rb(input, context);
560
625
  const headers = {};
@@ -800,6 +865,16 @@ export const se_GetDomainCommand = async (input, context) => {
800
865
  b.m("GET").h(headers).b(body);
801
866
  return b.build();
802
867
  };
868
+ export const se_GetDomainUnitCommand = async (input, context) => {
869
+ const b = rb(input, context);
870
+ const headers = {};
871
+ b.bp("/v2/domains/{domainIdentifier}/domain-units/{identifier}");
872
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
873
+ b.p("identifier", () => input.identifier, "{identifier}", false);
874
+ let body;
875
+ b.m("GET").h(headers).b(body);
876
+ return b.build();
877
+ };
803
878
  export const se_GetEnvironmentCommand = async (input, context) => {
804
879
  const b = rb(input, context);
805
880
  const headers = {};
@@ -1132,6 +1207,35 @@ export const se_ListDomainsCommand = async (input, context) => {
1132
1207
  b.m("GET").h(headers).q(query).b(body);
1133
1208
  return b.build();
1134
1209
  };
1210
+ export const se_ListDomainUnitsForParentCommand = async (input, context) => {
1211
+ const b = rb(input, context);
1212
+ const headers = {};
1213
+ b.bp("/v2/domains/{domainIdentifier}/domain-units");
1214
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1215
+ const query = map({
1216
+ [_pDUI]: [, __expectNonNull(input[_pDUI], `parentDomainUnitIdentifier`)],
1217
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1218
+ [_nT]: [, input[_nT]],
1219
+ });
1220
+ let body;
1221
+ b.m("GET").h(headers).q(query).b(body);
1222
+ return b.build();
1223
+ };
1224
+ export const se_ListEntityOwnersCommand = async (input, context) => {
1225
+ const b = rb(input, context);
1226
+ const headers = {};
1227
+ b.bp("/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/owners");
1228
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1229
+ b.p("entityType", () => input.entityType, "{entityType}", false);
1230
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
1231
+ const query = map({
1232
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1233
+ [_nT]: [, input[_nT]],
1234
+ });
1235
+ let body;
1236
+ b.m("GET").h(headers).q(query).b(body);
1237
+ return b.build();
1238
+ };
1135
1239
  export const se_ListEnvironmentActionsCommand = async (input, context) => {
1136
1240
  const b = rb(input, context);
1137
1241
  const headers = {};
@@ -1264,6 +1368,22 @@ export const se_ListNotificationsCommand = async (input, context) => {
1264
1368
  b.m("GET").h(headers).q(query).b(body);
1265
1369
  return b.build();
1266
1370
  };
1371
+ export const se_ListPolicyGrantsCommand = async (input, context) => {
1372
+ const b = rb(input, context);
1373
+ const headers = {};
1374
+ b.bp("/v2/domains/{domainIdentifier}/policies/managed/{entityType}/{entityIdentifier}/grants");
1375
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1376
+ b.p("entityType", () => input.entityType, "{entityType}", false);
1377
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
1378
+ const query = map({
1379
+ [_pT]: [, __expectNonNull(input[_pT], `policyType`)],
1380
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1381
+ [_nT]: [, input[_nT]],
1382
+ });
1383
+ let body;
1384
+ b.m("GET").h(headers).q(query).b(body);
1385
+ return b.build();
1386
+ };
1267
1387
  export const se_ListProjectMembershipsCommand = async (input, context) => {
1268
1388
  const b = rb(input, context);
1269
1389
  const headers = {};
@@ -1486,6 +1606,41 @@ export const se_RejectSubscriptionRequestCommand = async (input, context) => {
1486
1606
  b.m("PUT").h(headers).b(body);
1487
1607
  return b.build();
1488
1608
  };
1609
+ export const se_RemoveEntityOwnerCommand = async (input, context) => {
1610
+ const b = rb(input, context);
1611
+ const headers = {
1612
+ "content-type": "application/json",
1613
+ };
1614
+ b.bp("/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/removeOwner");
1615
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1616
+ b.p("entityType", () => input.entityType, "{entityType}", false);
1617
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
1618
+ let body;
1619
+ body = JSON.stringify(take(input, {
1620
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1621
+ owner: (_) => _json(_),
1622
+ }));
1623
+ b.m("POST").h(headers).b(body);
1624
+ return b.build();
1625
+ };
1626
+ export const se_RemovePolicyGrantCommand = async (input, context) => {
1627
+ const b = rb(input, context);
1628
+ const headers = {
1629
+ "content-type": "application/json",
1630
+ };
1631
+ b.bp("/v2/domains/{domainIdentifier}/policies/managed/{entityType}/{entityIdentifier}/removeGrant");
1632
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1633
+ b.p("entityType", () => input.entityType, "{entityType}", false);
1634
+ b.p("entityIdentifier", () => input.entityIdentifier, "{entityIdentifier}", false);
1635
+ let body;
1636
+ body = JSON.stringify(take(input, {
1637
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1638
+ policyType: [],
1639
+ principal: (_) => _json(_),
1640
+ }));
1641
+ b.m("POST").h(headers).b(body);
1642
+ return b.build();
1643
+ };
1489
1644
  export const se_RevokeSubscriptionCommand = async (input, context) => {
1490
1645
  const b = rb(input, context);
1491
1646
  const headers = {
@@ -1720,6 +1875,22 @@ export const se_UpdateDomainCommand = async (input, context) => {
1720
1875
  b.m("PUT").h(headers).q(query).b(body);
1721
1876
  return b.build();
1722
1877
  };
1878
+ export const se_UpdateDomainUnitCommand = async (input, context) => {
1879
+ const b = rb(input, context);
1880
+ const headers = {
1881
+ "content-type": "application/json",
1882
+ };
1883
+ b.bp("/v2/domains/{domainIdentifier}/domain-units/{identifier}");
1884
+ b.p("domainIdentifier", () => input.domainIdentifier, "{domainIdentifier}", false);
1885
+ b.p("identifier", () => input.identifier, "{identifier}", false);
1886
+ let body;
1887
+ body = JSON.stringify(take(input, {
1888
+ description: [],
1889
+ name: [],
1890
+ }));
1891
+ b.m("PUT").h(headers).b(body);
1892
+ return b.build();
1893
+ };
1723
1894
  export const se_UpdateEnvironmentCommand = async (input, context) => {
1724
1895
  const b = rb(input, context);
1725
1896
  const headers = {
@@ -1955,6 +2126,26 @@ export const de_AcceptSubscriptionRequestCommand = async (output, context) => {
1955
2126
  Object.assign(contents, doc);
1956
2127
  return contents;
1957
2128
  };
2129
+ export const de_AddEntityOwnerCommand = async (output, context) => {
2130
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
2131
+ return de_CommandError(output, context);
2132
+ }
2133
+ const contents = map({
2134
+ $metadata: deserializeMetadata(output),
2135
+ });
2136
+ await collectBody(output.body, context);
2137
+ return contents;
2138
+ };
2139
+ export const de_AddPolicyGrantCommand = async (output, context) => {
2140
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
2141
+ return de_CommandError(output, context);
2142
+ }
2143
+ const contents = map({
2144
+ $metadata: deserializeMetadata(output),
2145
+ });
2146
+ await collectBody(output.body, context);
2147
+ return contents;
2148
+ };
1958
2149
  export const de_AssociateEnvironmentRoleCommand = async (output, context) => {
1959
2150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1960
2151
  return de_CommandError(output, context);
@@ -2215,6 +2406,7 @@ export const de_CreateDomainCommand = async (output, context) => {
2215
2406
  kmsKeyIdentifier: __expectString,
2216
2407
  name: __expectString,
2217
2408
  portalUrl: __expectString,
2409
+ rootDomainUnitId: __expectString,
2218
2410
  singleSignOn: _json,
2219
2411
  status: __expectString,
2220
2412
  tags: _json,
@@ -2222,6 +2414,28 @@ export const de_CreateDomainCommand = async (output, context) => {
2222
2414
  Object.assign(contents, doc);
2223
2415
  return contents;
2224
2416
  };
2417
+ export const de_CreateDomainUnitCommand = async (output, context) => {
2418
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
2419
+ return de_CommandError(output, context);
2420
+ }
2421
+ const contents = map({
2422
+ $metadata: deserializeMetadata(output),
2423
+ });
2424
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2425
+ const doc = take(data, {
2426
+ ancestorDomainUnitIds: _json,
2427
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2428
+ createdBy: __expectString,
2429
+ description: __expectString,
2430
+ domainId: __expectString,
2431
+ id: __expectString,
2432
+ name: __expectString,
2433
+ owners: _json,
2434
+ parentDomainUnitId: __expectString,
2435
+ });
2436
+ Object.assign(contents, doc);
2437
+ return contents;
2438
+ };
2225
2439
  export const de_CreateEnvironmentCommand = async (output, context) => {
2226
2440
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2227
2441
  return de_CommandError(output, context);
@@ -2406,6 +2620,7 @@ export const de_CreateProjectCommand = async (output, context) => {
2406
2620
  createdBy: __expectString,
2407
2621
  description: __expectString,
2408
2622
  domainId: __expectString,
2623
+ domainUnitId: __expectString,
2409
2624
  failureReasons: _json,
2410
2625
  glossaryTerms: _json,
2411
2626
  id: __expectString,
@@ -2609,6 +2824,16 @@ export const de_DeleteDomainCommand = async (output, context) => {
2609
2824
  Object.assign(contents, doc);
2610
2825
  return contents;
2611
2826
  };
2827
+ export const de_DeleteDomainUnitCommand = async (output, context) => {
2828
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2829
+ return de_CommandError(output, context);
2830
+ }
2831
+ const contents = map({
2832
+ $metadata: deserializeMetadata(output),
2833
+ });
2834
+ await collectBody(output.body, context);
2835
+ return contents;
2836
+ };
2612
2837
  export const de_DeleteEnvironmentCommand = async (output, context) => {
2613
2838
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2614
2839
  return de_CommandError(output, context);
@@ -2959,6 +3184,7 @@ export const de_GetDomainCommand = async (output, context) => {
2959
3184
  lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2960
3185
  name: __expectString,
2961
3186
  portalUrl: __expectString,
3187
+ rootDomainUnitId: __expectString,
2962
3188
  singleSignOn: _json,
2963
3189
  status: __expectString,
2964
3190
  tags: _json,
@@ -2966,6 +3192,29 @@ export const de_GetDomainCommand = async (output, context) => {
2966
3192
  Object.assign(contents, doc);
2967
3193
  return contents;
2968
3194
  };
3195
+ export const de_GetDomainUnitCommand = async (output, context) => {
3196
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3197
+ return de_CommandError(output, context);
3198
+ }
3199
+ const contents = map({
3200
+ $metadata: deserializeMetadata(output),
3201
+ });
3202
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3203
+ const doc = take(data, {
3204
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3205
+ createdBy: __expectString,
3206
+ description: __expectString,
3207
+ domainId: __expectString,
3208
+ id: __expectString,
3209
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3210
+ lastUpdatedBy: __expectString,
3211
+ name: __expectString,
3212
+ owners: _json,
3213
+ parentDomainUnitId: __expectString,
3214
+ });
3215
+ Object.assign(contents, doc);
3216
+ return contents;
3217
+ };
2969
3218
  export const de_GetEnvironmentCommand = async (output, context) => {
2970
3219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2971
3220
  return de_CommandError(output, context);
@@ -3297,6 +3546,7 @@ export const de_GetProjectCommand = async (output, context) => {
3297
3546
  createdBy: __expectString,
3298
3547
  description: __expectString,
3299
3548
  domainId: __expectString,
3549
+ domainUnitId: __expectString,
3300
3550
  failureReasons: _json,
3301
3551
  glossaryTerms: _json,
3302
3552
  id: __expectString,
@@ -3549,6 +3799,36 @@ export const de_ListDomainsCommand = async (output, context) => {
3549
3799
  Object.assign(contents, doc);
3550
3800
  return contents;
3551
3801
  };
3802
+ export const de_ListDomainUnitsForParentCommand = async (output, context) => {
3803
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3804
+ return de_CommandError(output, context);
3805
+ }
3806
+ const contents = map({
3807
+ $metadata: deserializeMetadata(output),
3808
+ });
3809
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3810
+ const doc = take(data, {
3811
+ items: _json,
3812
+ nextToken: __expectString,
3813
+ });
3814
+ Object.assign(contents, doc);
3815
+ return contents;
3816
+ };
3817
+ export const de_ListEntityOwnersCommand = async (output, context) => {
3818
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3819
+ return de_CommandError(output, context);
3820
+ }
3821
+ const contents = map({
3822
+ $metadata: deserializeMetadata(output),
3823
+ });
3824
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3825
+ const doc = take(data, {
3826
+ nextToken: __expectString,
3827
+ owners: _json,
3828
+ });
3829
+ Object.assign(contents, doc);
3830
+ return contents;
3831
+ };
3552
3832
  export const de_ListEnvironmentActionsCommand = async (output, context) => {
3553
3833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3554
3834
  return de_CommandError(output, context);
@@ -3669,6 +3949,21 @@ export const de_ListNotificationsCommand = async (output, context) => {
3669
3949
  Object.assign(contents, doc);
3670
3950
  return contents;
3671
3951
  };
3952
+ export const de_ListPolicyGrantsCommand = async (output, context) => {
3953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3954
+ return de_CommandError(output, context);
3955
+ }
3956
+ const contents = map({
3957
+ $metadata: deserializeMetadata(output),
3958
+ });
3959
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3960
+ const doc = take(data, {
3961
+ grantList: (_) => de_PolicyGrantList(_, context),
3962
+ nextToken: __expectString,
3963
+ });
3964
+ Object.assign(contents, doc);
3965
+ return contents;
3966
+ };
3672
3967
  export const de_ListProjectMembershipsCommand = async (output, context) => {
3673
3968
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3674
3969
  return de_CommandError(output, context);
@@ -3878,6 +4173,26 @@ export const de_RejectSubscriptionRequestCommand = async (output, context) => {
3878
4173
  Object.assign(contents, doc);
3879
4174
  return contents;
3880
4175
  };
4176
+ export const de_RemoveEntityOwnerCommand = async (output, context) => {
4177
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4178
+ return de_CommandError(output, context);
4179
+ }
4180
+ const contents = map({
4181
+ $metadata: deserializeMetadata(output),
4182
+ });
4183
+ await collectBody(output.body, context);
4184
+ return contents;
4185
+ };
4186
+ export const de_RemovePolicyGrantCommand = async (output, context) => {
4187
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4188
+ return de_CommandError(output, context);
4189
+ }
4190
+ const contents = map({
4191
+ $metadata: deserializeMetadata(output),
4192
+ });
4193
+ await collectBody(output.body, context);
4194
+ return contents;
4195
+ };
3881
4196
  export const de_RevokeSubscriptionCommand = async (output, context) => {
3882
4197
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3883
4198
  return de_CommandError(output, context);
@@ -4119,11 +4434,35 @@ export const de_UpdateDomainCommand = async (output, context) => {
4119
4434
  id: __expectString,
4120
4435
  lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4121
4436
  name: __expectString,
4437
+ rootDomainUnitId: __expectString,
4122
4438
  singleSignOn: _json,
4123
4439
  });
4124
4440
  Object.assign(contents, doc);
4125
4441
  return contents;
4126
4442
  };
4443
+ export const de_UpdateDomainUnitCommand = async (output, context) => {
4444
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4445
+ return de_CommandError(output, context);
4446
+ }
4447
+ const contents = map({
4448
+ $metadata: deserializeMetadata(output),
4449
+ });
4450
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4451
+ const doc = take(data, {
4452
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4453
+ createdBy: __expectString,
4454
+ description: __expectString,
4455
+ domainId: __expectString,
4456
+ id: __expectString,
4457
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4458
+ lastUpdatedBy: __expectString,
4459
+ name: __expectString,
4460
+ owners: _json,
4461
+ parentDomainUnitId: __expectString,
4462
+ });
4463
+ Object.assign(contents, doc);
4464
+ return contents;
4465
+ };
4127
4466
  export const de_UpdateEnvironmentCommand = async (output, context) => {
4128
4467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4129
4468
  return de_CommandError(output, context);
@@ -4272,6 +4611,7 @@ export const de_UpdateProjectCommand = async (output, context) => {
4272
4611
  createdBy: __expectString,
4273
4612
  description: __expectString,
4274
4613
  domainId: __expectString,
4614
+ domainUnitId: __expectString,
4275
4615
  failureReasons: _json,
4276
4616
  glossaryTerms: _json,
4277
4617
  id: __expectString,
@@ -5113,6 +5453,22 @@ const de_NotificationsList = (output, context) => {
5113
5453
  });
5114
5454
  return retVal;
5115
5455
  };
5456
+ const de_PolicyGrantList = (output, context) => {
5457
+ const retVal = (output || [])
5458
+ .filter((e) => e != null)
5459
+ .map((entry) => {
5460
+ return de_PolicyGrantMember(entry, context);
5461
+ });
5462
+ return retVal;
5463
+ };
5464
+ const de_PolicyGrantMember = (output, context) => {
5465
+ return take(output, {
5466
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5467
+ createdBy: __expectString,
5468
+ detail: (_) => _json(__expectUnion(_)),
5469
+ principal: (_) => _json(__expectUnion(_)),
5470
+ });
5471
+ };
5116
5472
  const de_ProjectSummaries = (output, context) => {
5117
5473
  const retVal = (output || [])
5118
5474
  .filter((e) => e != null)
@@ -5127,6 +5483,7 @@ const de_ProjectSummary = (output, context) => {
5127
5483
  createdBy: __expectString,
5128
5484
  description: __expectString,
5129
5485
  domainId: __expectString,
5486
+ domainUnitId: __expectString,
5130
5487
  failureReasons: _json,
5131
5488
  id: __expectString,
5132
5489
  name: __expectString,
@@ -5248,6 +5605,7 @@ const de_SubscribedAsset = (output, context) => {
5248
5605
  return take(output, {
5249
5606
  assetId: __expectString,
5250
5607
  assetRevision: __expectString,
5608
+ assetScope: _json,
5251
5609
  failureCause: _json,
5252
5610
  failureTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5253
5611
  grantedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -5432,7 +5790,9 @@ const _n = "name";
5432
5790
  const _nT = "nextToken";
5433
5791
  const _oPI = "owningProjectId";
5434
5792
  const _p = "provider";
5793
+ const _pDUI = "parentDomainUnitIdentifier";
5435
5794
  const _pI = "projectIdentifier";
5795
+ const _pT = "policyType";
5436
5796
  const _r = "revision";
5437
5797
  const _rPORF = "retainPermissionsOnRevokeFailure";
5438
5798
  const _s = "status";