Skip to content

Commit da060f0

Browse files
author
awstools
committed
feat(client-datazone): Add support to let data publisher specify a subset of the data asset that a subscriber will have access to based on the asset filters provided, when accepting a subscription request.
1 parent 594c589 commit da060f0

21 files changed

+328
-34
lines changed

clients/client-datazone/src/commands/AcceptSubscriptionRequestCommand.ts

+16
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ export interface AcceptSubscriptionRequestCommandOutput extends AcceptSubscripti
4444
* domainIdentifier: "STRING_VALUE", // required
4545
* identifier: "STRING_VALUE", // required
4646
* decisionComment: "STRING_VALUE",
47+
* assetScopes: [ // AcceptedAssetScopes
48+
* { // AcceptedAssetScope
49+
* assetId: "STRING_VALUE", // required
50+
* filterIds: [ // FilterIds // required
51+
* "STRING_VALUE",
52+
* ],
53+
* },
54+
* ],
4755
* };
4856
* const command = new AcceptSubscriptionRequestCommand(input);
4957
* const response = await client.send(command);
@@ -82,6 +90,14 @@ export interface AcceptSubscriptionRequestCommandOutput extends AcceptSubscripti
8290
* // shortDescription: "STRING_VALUE",
8391
* // },
8492
* // ],
93+
* // assetScope: { // AssetScope
94+
* // assetId: "STRING_VALUE", // required
95+
* // filterIds: [ // FilterIds // required
96+
* // "STRING_VALUE",
97+
* // ],
98+
* // status: "STRING_VALUE", // required
99+
* // errorMessage: "STRING_VALUE",
100+
* // },
85101
* // },
86102
* // productListing: { // SubscribedProductListing
87103
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/CancelSubscriptionCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ export interface CancelSubscriptionCommandOutput extends CancelSubscriptionOutpu
7676
* // shortDescription: "STRING_VALUE",
7777
* // },
7878
* // ],
79+
* // assetScope: { // AssetScope
80+
* // assetId: "STRING_VALUE", // required
81+
* // filterIds: [ // FilterIds // required
82+
* // "STRING_VALUE",
83+
* // ],
84+
* // status: "STRING_VALUE", // required
85+
* // errorMessage: "STRING_VALUE",
86+
* // },
7987
* // },
8088
* // productListing: { // SubscribedProductListing
8189
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ export interface CreateSubscriptionGrantCommandOutput extends CreateSubscription
8181
* // },
8282
* // grantedTimestamp: new Date("TIMESTAMP"),
8383
* // failureTimestamp: new Date("TIMESTAMP"),
84+
* // assetScope: { // AssetScope
85+
* // assetId: "STRING_VALUE", // required
86+
* // filterIds: [ // FilterIds // required
87+
* // "STRING_VALUE",
88+
* // ],
89+
* // status: "STRING_VALUE", // required
90+
* // errorMessage: "STRING_VALUE",
91+
* // },
8492
* // },
8593
* // ],
8694
* // subscriptionId: "STRING_VALUE",

clients/client-datazone/src/commands/CreateSubscriptionRequestCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ export interface CreateSubscriptionRequestCommandOutput extends CreateSubscripti
9494
* // shortDescription: "STRING_VALUE",
9595
* // },
9696
* // ],
97+
* // assetScope: { // AssetScope
98+
* // assetId: "STRING_VALUE", // required
99+
* // filterIds: [ // FilterIds // required
100+
* // "STRING_VALUE",
101+
* // ],
102+
* // status: "STRING_VALUE", // required
103+
* // errorMessage: "STRING_VALUE",
104+
* // },
97105
* // },
98106
* // productListing: { // SubscribedProductListing
99107
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/DeleteEnvironmentBlueprintConfigurationCommand.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import {
10-
DeleteEnvironmentBlueprintConfigurationInput,
11-
DeleteEnvironmentBlueprintConfigurationOutput,
12-
} from "../models/models_0";
9+
import { DeleteEnvironmentBlueprintConfigurationInput } from "../models/models_0";
10+
import { DeleteEnvironmentBlueprintConfigurationOutput } from "../models/models_1";
1311
import {
1412
de_DeleteEnvironmentBlueprintConfigurationCommand,
1513
se_DeleteEnvironmentBlueprintConfigurationCommand,

clients/client-datazone/src/commands/DeleteSubscriptionGrantCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ export interface DeleteSubscriptionGrantCommandOutput extends DeleteSubscription
6767
* // },
6868
* // grantedTimestamp: new Date("TIMESTAMP"),
6969
* // failureTimestamp: new Date("TIMESTAMP"),
70+
* // assetScope: { // AssetScope
71+
* // assetId: "STRING_VALUE", // required
72+
* // filterIds: [ // FilterIds // required
73+
* // "STRING_VALUE",
74+
* // ],
75+
* // status: "STRING_VALUE", // required
76+
* // errorMessage: "STRING_VALUE",
77+
* // },
7078
* // },
7179
* // ],
7280
* // subscriptionId: "STRING_VALUE",

clients/client-datazone/src/commands/GetEnvironmentBlueprintConfigurationCommand.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { GetEnvironmentBlueprintConfigurationInput } from "../models/models_0";
10-
import { GetEnvironmentBlueprintConfigurationOutput } from "../models/models_1";
9+
import {
10+
GetEnvironmentBlueprintConfigurationInput,
11+
GetEnvironmentBlueprintConfigurationOutput,
12+
} from "../models/models_1";
1113
import {
1214
de_GetEnvironmentBlueprintConfigurationCommand,
1315
se_GetEnvironmentBlueprintConfigurationCommand,

clients/client-datazone/src/commands/GetSubscriptionCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ export interface GetSubscriptionCommandOutput extends GetSubscriptionOutput, __M
7676
* // shortDescription: "STRING_VALUE",
7777
* // },
7878
* // ],
79+
* // assetScope: { // AssetScope
80+
* // assetId: "STRING_VALUE", // required
81+
* // filterIds: [ // FilterIds // required
82+
* // "STRING_VALUE",
83+
* // ],
84+
* // status: "STRING_VALUE", // required
85+
* // errorMessage: "STRING_VALUE",
86+
* // },
7987
* // },
8088
* // productListing: { // SubscribedProductListing
8189
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/GetSubscriptionGrantCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ export interface GetSubscriptionGrantCommandOutput extends GetSubscriptionGrantO
6767
* // },
6868
* // grantedTimestamp: new Date("TIMESTAMP"),
6969
* // failureTimestamp: new Date("TIMESTAMP"),
70+
* // assetScope: { // AssetScope
71+
* // assetId: "STRING_VALUE", // required
72+
* // filterIds: [ // FilterIds // required
73+
* // "STRING_VALUE",
74+
* // ],
75+
* // status: "STRING_VALUE", // required
76+
* // errorMessage: "STRING_VALUE",
77+
* // },
7078
* // },
7179
* // ],
7280
* // subscriptionId: "STRING_VALUE",

clients/client-datazone/src/commands/GetSubscriptionRequestDetailsCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ export interface GetSubscriptionRequestDetailsCommandOutput
8585
* // shortDescription: "STRING_VALUE",
8686
* // },
8787
* // ],
88+
* // assetScope: { // AssetScope
89+
* // assetId: "STRING_VALUE", // required
90+
* // filterIds: [ // FilterIds // required
91+
* // "STRING_VALUE",
92+
* // ],
93+
* // status: "STRING_VALUE", // required
94+
* // errorMessage: "STRING_VALUE",
95+
* // },
8896
* // },
8997
* // productListing: { // SubscribedProductListing
9098
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/ListSubscriptionGrantsCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ export interface ListSubscriptionGrantsCommandOutput extends ListSubscriptionGra
7777
* // },
7878
* // grantedTimestamp: new Date("TIMESTAMP"),
7979
* // failureTimestamp: new Date("TIMESTAMP"),
80+
* // assetScope: { // AssetScope
81+
* // assetId: "STRING_VALUE", // required
82+
* // filterIds: [ // FilterIds // required
83+
* // "STRING_VALUE",
84+
* // ],
85+
* // status: "STRING_VALUE", // required
86+
* // errorMessage: "STRING_VALUE",
87+
* // },
8088
* // },
8189
* // ],
8290
* // subscriptionId: "STRING_VALUE",

clients/client-datazone/src/commands/ListSubscriptionRequestsCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ export interface ListSubscriptionRequestsCommandOutput extends ListSubscriptionR
8989
* // shortDescription: "STRING_VALUE",
9090
* // },
9191
* // ],
92+
* // assetScope: { // AssetScope
93+
* // assetId: "STRING_VALUE", // required
94+
* // filterIds: [ // FilterIds // required
95+
* // "STRING_VALUE",
96+
* // ],
97+
* // status: "STRING_VALUE", // required
98+
* // errorMessage: "STRING_VALUE",
99+
* // },
92100
* // },
93101
* // productListing: { // SubscribedProductListing
94102
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/ListSubscriptionsCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ export interface ListSubscriptionsCommandOutput extends ListSubscriptionsOutput,
8686
* // shortDescription: "STRING_VALUE",
8787
* // },
8888
* // ],
89+
* // assetScope: { // AssetScope
90+
* // assetId: "STRING_VALUE", // required
91+
* // filterIds: [ // FilterIds // required
92+
* // "STRING_VALUE",
93+
* // ],
94+
* // status: "STRING_VALUE", // required
95+
* // errorMessage: "STRING_VALUE",
96+
* // },
8997
* // },
9098
* // productListing: { // SubscribedProductListing
9199
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/RejectSubscriptionRequestCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ export interface RejectSubscriptionRequestCommandOutput extends RejectSubscripti
8282
* // shortDescription: "STRING_VALUE",
8383
* // },
8484
* // ],
85+
* // assetScope: { // AssetScope
86+
* // assetId: "STRING_VALUE", // required
87+
* // filterIds: [ // FilterIds // required
88+
* // "STRING_VALUE",
89+
* // ],
90+
* // status: "STRING_VALUE", // required
91+
* // errorMessage: "STRING_VALUE",
92+
* // },
8593
* // },
8694
* // productListing: { // SubscribedProductListing
8795
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/RevokeSubscriptionCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ export interface RevokeSubscriptionCommandOutput extends RevokeSubscriptionOutpu
7777
* // shortDescription: "STRING_VALUE",
7878
* // },
7979
* // ],
80+
* // assetScope: { // AssetScope
81+
* // assetId: "STRING_VALUE", // required
82+
* // filterIds: [ // FilterIds // required
83+
* // "STRING_VALUE",
84+
* // ],
85+
* // status: "STRING_VALUE", // required
86+
* // errorMessage: "STRING_VALUE",
87+
* // },
8088
* // },
8189
* // productListing: { // SubscribedProductListing
8290
* // entityId: "STRING_VALUE",

clients/client-datazone/src/commands/UpdateSubscriptionGrantStatusCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ export interface UpdateSubscriptionGrantStatusCommandOutput
7878
* // },
7979
* // grantedTimestamp: new Date("TIMESTAMP"),
8080
* // failureTimestamp: new Date("TIMESTAMP"),
81+
* // assetScope: { // AssetScope
82+
* // assetId: "STRING_VALUE", // required
83+
* // filterIds: [ // FilterIds // required
84+
* // "STRING_VALUE",
85+
* // ],
86+
* // status: "STRING_VALUE", // required
87+
* // errorMessage: "STRING_VALUE",
88+
* // },
8189
* // },
8290
* // ],
8391
* // subscriptionId: "STRING_VALUE",

clients/client-datazone/src/commands/UpdateSubscriptionRequestCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ export interface UpdateSubscriptionRequestCommandOutput extends UpdateSubscripti
8282
* // shortDescription: "STRING_VALUE",
8383
* // },
8484
* // ],
85+
* // assetScope: { // AssetScope
86+
* // assetId: "STRING_VALUE", // required
87+
* // filterIds: [ // FilterIds // required
88+
* // "STRING_VALUE",
89+
* // ],
90+
* // status: "STRING_VALUE", // required
91+
* // errorMessage: "STRING_VALUE",
92+
* // },
8593
* // },
8694
* // productListing: { // SubscribedProductListing
8795
* // entityId: "STRING_VALUE",

0 commit comments

Comments
 (0)