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