From da060f0ddddaa26febb9f1e0b8b7cb56a7af1d9a Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 3 Sep 2024 18:15:03 +0000 Subject: [PATCH] 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. --- .../AcceptSubscriptionRequestCommand.ts | 16 ++++ .../src/commands/CancelSubscriptionCommand.ts | 8 ++ .../CreateSubscriptionGrantCommand.ts | 8 ++ .../CreateSubscriptionRequestCommand.ts | 8 ++ ...nvironmentBlueprintConfigurationCommand.ts | 6 +- .../DeleteSubscriptionGrantCommand.ts | 8 ++ ...nvironmentBlueprintConfigurationCommand.ts | 6 +- .../src/commands/GetSubscriptionCommand.ts | 8 ++ .../commands/GetSubscriptionGrantCommand.ts | 8 ++ .../GetSubscriptionRequestDetailsCommand.ts | 8 ++ .../commands/ListSubscriptionGrantsCommand.ts | 8 ++ .../ListSubscriptionRequestsCommand.ts | 8 ++ .../src/commands/ListSubscriptionsCommand.ts | 8 ++ .../RejectSubscriptionRequestCommand.ts | 8 ++ .../src/commands/RevokeSubscriptionCommand.ts | 8 ++ .../UpdateSubscriptionGrantStatusCommand.ts | 8 ++ .../UpdateSubscriptionRequestCommand.ts | 8 ++ .../client-datazone/src/models/models_0.ts | 96 ++++++++++++++----- .../client-datazone/src/models/models_1.ts | 22 +++++ .../src/protocols/Aws_restJson1.ts | 13 +++ codegen/sdk-codegen/aws-models/datazone.json | 91 +++++++++++++++++- 21 files changed, 328 insertions(+), 34 deletions(-) diff --git a/clients/client-datazone/src/commands/AcceptSubscriptionRequestCommand.ts b/clients/client-datazone/src/commands/AcceptSubscriptionRequestCommand.ts index 0dfece3018e7..68ea692c494a 100644 --- a/clients/client-datazone/src/commands/AcceptSubscriptionRequestCommand.ts +++ b/clients/client-datazone/src/commands/AcceptSubscriptionRequestCommand.ts @@ -44,6 +44,14 @@ export interface AcceptSubscriptionRequestCommandOutput extends AcceptSubscripti * domainIdentifier: "STRING_VALUE", // required * identifier: "STRING_VALUE", // required * decisionComment: "STRING_VALUE", + * assetScopes: [ // AcceptedAssetScopes + * { // AcceptedAssetScope + * assetId: "STRING_VALUE", // required + * filterIds: [ // FilterIds // required + * "STRING_VALUE", + * ], + * }, + * ], * }; * const command = new AcceptSubscriptionRequestCommand(input); * const response = await client.send(command); @@ -82,6 +90,14 @@ export interface AcceptSubscriptionRequestCommandOutput extends AcceptSubscripti * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/CancelSubscriptionCommand.ts b/clients/client-datazone/src/commands/CancelSubscriptionCommand.ts index 246a7b8fc473..1517d51da9a1 100644 --- a/clients/client-datazone/src/commands/CancelSubscriptionCommand.ts +++ b/clients/client-datazone/src/commands/CancelSubscriptionCommand.ts @@ -76,6 +76,14 @@ export interface CancelSubscriptionCommandOutput extends CancelSubscriptionOutpu * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts b/clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts index 627008df68ca..020426f21d9a 100644 --- a/clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts +++ b/clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts @@ -81,6 +81,14 @@ export interface CreateSubscriptionGrantCommandOutput extends CreateSubscription * // }, * // grantedTimestamp: new Date("TIMESTAMP"), * // failureTimestamp: new Date("TIMESTAMP"), + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // ], * // subscriptionId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/CreateSubscriptionRequestCommand.ts b/clients/client-datazone/src/commands/CreateSubscriptionRequestCommand.ts index 11be14671101..f69ebc9cc27c 100644 --- a/clients/client-datazone/src/commands/CreateSubscriptionRequestCommand.ts +++ b/clients/client-datazone/src/commands/CreateSubscriptionRequestCommand.ts @@ -94,6 +94,14 @@ export interface CreateSubscriptionRequestCommandOutput extends CreateSubscripti * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/DeleteEnvironmentBlueprintConfigurationCommand.ts b/clients/client-datazone/src/commands/DeleteEnvironmentBlueprintConfigurationCommand.ts index 67bf0346ca9c..1a053e363351 100644 --- a/clients/client-datazone/src/commands/DeleteEnvironmentBlueprintConfigurationCommand.ts +++ b/clients/client-datazone/src/commands/DeleteEnvironmentBlueprintConfigurationCommand.ts @@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { - DeleteEnvironmentBlueprintConfigurationInput, - DeleteEnvironmentBlueprintConfigurationOutput, -} from "../models/models_0"; +import { DeleteEnvironmentBlueprintConfigurationInput } from "../models/models_0"; +import { DeleteEnvironmentBlueprintConfigurationOutput } from "../models/models_1"; import { de_DeleteEnvironmentBlueprintConfigurationCommand, se_DeleteEnvironmentBlueprintConfigurationCommand, diff --git a/clients/client-datazone/src/commands/DeleteSubscriptionGrantCommand.ts b/clients/client-datazone/src/commands/DeleteSubscriptionGrantCommand.ts index 701257777c0e..7957c4f7f33e 100644 --- a/clients/client-datazone/src/commands/DeleteSubscriptionGrantCommand.ts +++ b/clients/client-datazone/src/commands/DeleteSubscriptionGrantCommand.ts @@ -67,6 +67,14 @@ export interface DeleteSubscriptionGrantCommandOutput extends DeleteSubscription * // }, * // grantedTimestamp: new Date("TIMESTAMP"), * // failureTimestamp: new Date("TIMESTAMP"), + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // ], * // subscriptionId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/GetEnvironmentBlueprintConfigurationCommand.ts b/clients/client-datazone/src/commands/GetEnvironmentBlueprintConfigurationCommand.ts index 21fe3ef557e0..42a3cea81d82 100644 --- a/clients/client-datazone/src/commands/GetEnvironmentBlueprintConfigurationCommand.ts +++ b/clients/client-datazone/src/commands/GetEnvironmentBlueprintConfigurationCommand.ts @@ -6,8 +6,10 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetEnvironmentBlueprintConfigurationInput } from "../models/models_0"; -import { GetEnvironmentBlueprintConfigurationOutput } from "../models/models_1"; +import { + GetEnvironmentBlueprintConfigurationInput, + GetEnvironmentBlueprintConfigurationOutput, +} from "../models/models_1"; import { de_GetEnvironmentBlueprintConfigurationCommand, se_GetEnvironmentBlueprintConfigurationCommand, diff --git a/clients/client-datazone/src/commands/GetSubscriptionCommand.ts b/clients/client-datazone/src/commands/GetSubscriptionCommand.ts index 33514def5303..a6b54c82460d 100644 --- a/clients/client-datazone/src/commands/GetSubscriptionCommand.ts +++ b/clients/client-datazone/src/commands/GetSubscriptionCommand.ts @@ -76,6 +76,14 @@ export interface GetSubscriptionCommandOutput extends GetSubscriptionOutput, __M * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/GetSubscriptionGrantCommand.ts b/clients/client-datazone/src/commands/GetSubscriptionGrantCommand.ts index cba786608e7b..5d2df43eaa89 100644 --- a/clients/client-datazone/src/commands/GetSubscriptionGrantCommand.ts +++ b/clients/client-datazone/src/commands/GetSubscriptionGrantCommand.ts @@ -67,6 +67,14 @@ export interface GetSubscriptionGrantCommandOutput extends GetSubscriptionGrantO * // }, * // grantedTimestamp: new Date("TIMESTAMP"), * // failureTimestamp: new Date("TIMESTAMP"), + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // ], * // subscriptionId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/GetSubscriptionRequestDetailsCommand.ts b/clients/client-datazone/src/commands/GetSubscriptionRequestDetailsCommand.ts index 8cb873e2fa0a..7bd9d79864ec 100644 --- a/clients/client-datazone/src/commands/GetSubscriptionRequestDetailsCommand.ts +++ b/clients/client-datazone/src/commands/GetSubscriptionRequestDetailsCommand.ts @@ -85,6 +85,14 @@ export interface GetSubscriptionRequestDetailsCommandOutput * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/ListSubscriptionGrantsCommand.ts b/clients/client-datazone/src/commands/ListSubscriptionGrantsCommand.ts index e0712c11b3e9..11f804305ccd 100644 --- a/clients/client-datazone/src/commands/ListSubscriptionGrantsCommand.ts +++ b/clients/client-datazone/src/commands/ListSubscriptionGrantsCommand.ts @@ -77,6 +77,14 @@ export interface ListSubscriptionGrantsCommandOutput extends ListSubscriptionGra * // }, * // grantedTimestamp: new Date("TIMESTAMP"), * // failureTimestamp: new Date("TIMESTAMP"), + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // ], * // subscriptionId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/ListSubscriptionRequestsCommand.ts b/clients/client-datazone/src/commands/ListSubscriptionRequestsCommand.ts index e5fd726ca6b6..54e2db7addf9 100644 --- a/clients/client-datazone/src/commands/ListSubscriptionRequestsCommand.ts +++ b/clients/client-datazone/src/commands/ListSubscriptionRequestsCommand.ts @@ -89,6 +89,14 @@ export interface ListSubscriptionRequestsCommandOutput extends ListSubscriptionR * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/ListSubscriptionsCommand.ts b/clients/client-datazone/src/commands/ListSubscriptionsCommand.ts index d3bf9513aff4..ed1ee0ea5637 100644 --- a/clients/client-datazone/src/commands/ListSubscriptionsCommand.ts +++ b/clients/client-datazone/src/commands/ListSubscriptionsCommand.ts @@ -86,6 +86,14 @@ export interface ListSubscriptionsCommandOutput extends ListSubscriptionsOutput, * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/RejectSubscriptionRequestCommand.ts b/clients/client-datazone/src/commands/RejectSubscriptionRequestCommand.ts index 7dca7f7e6ca4..7b3c6107762c 100644 --- a/clients/client-datazone/src/commands/RejectSubscriptionRequestCommand.ts +++ b/clients/client-datazone/src/commands/RejectSubscriptionRequestCommand.ts @@ -82,6 +82,14 @@ export interface RejectSubscriptionRequestCommandOutput extends RejectSubscripti * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/RevokeSubscriptionCommand.ts b/clients/client-datazone/src/commands/RevokeSubscriptionCommand.ts index 30c8a23b726a..132e1ec1ab37 100644 --- a/clients/client-datazone/src/commands/RevokeSubscriptionCommand.ts +++ b/clients/client-datazone/src/commands/RevokeSubscriptionCommand.ts @@ -77,6 +77,14 @@ export interface RevokeSubscriptionCommandOutput extends RevokeSubscriptionOutpu * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/UpdateSubscriptionGrantStatusCommand.ts b/clients/client-datazone/src/commands/UpdateSubscriptionGrantStatusCommand.ts index 7ebd5143db4b..ac74cf17e2cc 100644 --- a/clients/client-datazone/src/commands/UpdateSubscriptionGrantStatusCommand.ts +++ b/clients/client-datazone/src/commands/UpdateSubscriptionGrantStatusCommand.ts @@ -78,6 +78,14 @@ export interface UpdateSubscriptionGrantStatusCommandOutput * // }, * // grantedTimestamp: new Date("TIMESTAMP"), * // failureTimestamp: new Date("TIMESTAMP"), + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // ], * // subscriptionId: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/UpdateSubscriptionRequestCommand.ts b/clients/client-datazone/src/commands/UpdateSubscriptionRequestCommand.ts index 98f94b9b4a85..dca09ca35dfe 100644 --- a/clients/client-datazone/src/commands/UpdateSubscriptionRequestCommand.ts +++ b/clients/client-datazone/src/commands/UpdateSubscriptionRequestCommand.ts @@ -82,6 +82,14 @@ export interface UpdateSubscriptionRequestCommandOutput extends UpdateSubscripti * // shortDescription: "STRING_VALUE", * // }, * // ], + * // assetScope: { // AssetScope + * // assetId: "STRING_VALUE", // required + * // filterIds: [ // FilterIds // required + * // "STRING_VALUE", + * // ], + * // status: "STRING_VALUE", // required + * // errorMessage: "STRING_VALUE", + * // }, * // }, * // productListing: { // SubscribedProductListing * // entityId: "STRING_VALUE", diff --git a/clients/client-datazone/src/models/models_0.ts b/clients/client-datazone/src/models/models_0.ts index d94f26f7f4d7..d09960292e03 100644 --- a/clients/client-datazone/src/models/models_0.ts +++ b/clients/client-datazone/src/models/models_0.ts @@ -30,6 +30,24 @@ export interface AcceptChoice { editedValue?: string; } +/** + *

The accepted asset scope.

+ * @public + */ +export interface AcceptedAssetScope { + /** + *

The asset ID of the accepted asset scope.

+ * @public + */ + assetId: string | undefined; + + /** + *

The filter IDs of the accepted asset scope.

+ * @public + */ + filterIds: string[] | undefined; +} + /** * @public * @enum @@ -293,6 +311,12 @@ export interface AcceptSubscriptionRequestInput { * @public */ decisionComment?: string; + + /** + *

The asset scopes of the accept subscription request.

+ * @public + */ + assetScopes?: AcceptedAssetScope[]; } /** @@ -310,6 +334,36 @@ export const SubscriptionRequestStatus = { */ export type SubscriptionRequestStatus = (typeof SubscriptionRequestStatus)[keyof typeof SubscriptionRequestStatus]; +/** + *

The asset scope.

+ * @public + */ +export interface AssetScope { + /** + *

The asset ID of the asset scope.

+ * @public + */ + assetId: string | undefined; + + /** + *

The filter IDs of the asset scope.

+ * @public + */ + filterIds: string[] | undefined; + + /** + *

The status of the asset scope.

+ * @public + */ + status: string | undefined; + + /** + *

The error message of the asset scope.

+ * @public + */ + errorMessage?: string; +} + /** *

Details of a glossary term attached to the inventory asset.

* @public @@ -365,6 +419,12 @@ export interface SubscribedAssetListing { * @public */ glossaryTerms?: DetailedGlossaryTerm[]; + + /** + *

The asset scope of the subscribed asset listing.

+ * @public + */ + assetScope?: AssetScope; } /** @@ -1330,8 +1390,8 @@ export type DomainUnitDesignation = (typeof DomainUnitDesignation)[keyof typeof export interface AllDomainUnitsGrantFilter {} /** - *

The grant filter for the domain unit. In the current release of Amazon DataZone, the only - * supported filter is the allDomainUnitsGrantFilter.

+ *

The grant filter for the domain unit. In the current release of Amazon DataZone, the + * only supported filter is the allDomainUnitsGrantFilter.

* @public */ export type DomainUnitGrantFilter = @@ -6735,8 +6795,8 @@ export interface CreateProjectInput { glossaryTerms?: string[]; /** - *

The ID of the domain unit. This parameter is not required and if it is not specified, then - * the project is created at the root domain unit level.

+ *

The ID of the domain unit. This parameter is not required and if it is not specified, + * then the project is created at the root domain unit level.

* @public */ domainUnitId?: string; @@ -7129,6 +7189,12 @@ export interface SubscribedAsset { * @public */ failureTimestamp?: Date; + + /** + *

The asset scope of the subscribed asset.

+ * @public + */ + assetScope?: AssetScope; } /** @@ -10580,28 +10646,6 @@ export interface DeleteEnvironmentBlueprintConfigurationInput { environmentBlueprintIdentifier: string | undefined; } -/** - * @public - */ -export interface DeleteEnvironmentBlueprintConfigurationOutput {} - -/** - * @public - */ -export interface GetEnvironmentBlueprintConfigurationInput { - /** - *

The ID of the Amazon DataZone domain where this blueprint exists.

- * @public - */ - domainIdentifier: string | undefined; - - /** - *

He ID of the blueprint.

- * @public - */ - environmentBlueprintIdentifier: string | undefined; -} - /** * @internal */ diff --git a/clients/client-datazone/src/models/models_1.ts b/clients/client-datazone/src/models/models_1.ts index 246c4b36c6dd..0a26a5dfd393 100644 --- a/clients/client-datazone/src/models/models_1.ts +++ b/clients/client-datazone/src/models/models_1.ts @@ -76,6 +76,28 @@ import { UserProfileType, } from "./models_0"; +/** + * @public + */ +export interface DeleteEnvironmentBlueprintConfigurationOutput {} + +/** + * @public + */ +export interface GetEnvironmentBlueprintConfigurationInput { + /** + *

The ID of the Amazon DataZone domain where this blueprint exists.

+ * @public + */ + domainIdentifier: string | undefined; + + /** + *

He ID of the blueprint.

+ * @public + */ + environmentBlueprintIdentifier: string | undefined; +} + /** *

The Lake Formation configuration of the Data Lake blueprint.

* @public diff --git a/clients/client-datazone/src/protocols/Aws_restJson1.ts b/clients/client-datazone/src/protocols/Aws_restJson1.ts index 0d3c15830c91..d0c447e621db 100644 --- a/clients/client-datazone/src/protocols/Aws_restJson1.ts +++ b/clients/client-datazone/src/protocols/Aws_restJson1.ts @@ -347,6 +347,7 @@ import { UpdateUserProfileCommandInput, UpdateUserProfileCommandOutput } from ". import { DataZoneServiceException as __BaseException } from "../models/DataZoneServiceException"; import { AcceptChoice, + AcceptedAssetScope, AcceptRule, AccessDeniedException, ActionParameters, @@ -530,6 +531,7 @@ export const se_AcceptSubscriptionRequestCommand = async ( let body: any; body = JSON.stringify( take(input, { + assetScopes: (_) => _json(_), decisionComment: [], }) ); @@ -7469,6 +7471,10 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont // se_AcceptChoices omitted. +// se_AcceptedAssetScope omitted. + +// se_AcceptedAssetScopes omitted. + /** * serializeAws_restJson1AcceptRule */ @@ -7566,6 +7572,8 @@ const se_FilterClause = (input: FilterClause, context: __SerdeContext): any => { // se_FilterExpressions omitted. +// se_FilterIds omitted. + /** * serializeAws_restJson1FilterList */ @@ -7955,6 +7963,8 @@ const de_AssetRevisions = (output: any, context: __SerdeContext): AssetRevision[ return retVal; }; +// de_AssetScope omitted. + /** * deserializeAws_restJson1AssetTypeItem */ @@ -8398,6 +8408,8 @@ const de_EnvironmentSummary = (output: any, context: __SerdeContext): Environmen // de_FilterExpressions omitted. +// de_FilterIds omitted. + // de_FormEntryOutput omitted. // de_FormOutput omitted. @@ -8966,6 +8978,7 @@ const de_SubscribedAsset = (output: any, context: __SerdeContext): SubscribedAss return take(output, { assetId: __expectString, assetRevision: __expectString, + assetScope: _json, failureCause: _json, failureTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), grantedTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), diff --git a/codegen/sdk-codegen/aws-models/datazone.json b/codegen/sdk-codegen/aws-models/datazone.json index 010b090366ad..ebe2c2864ac9 100644 --- a/codegen/sdk-codegen/aws-models/datazone.json +++ b/codegen/sdk-codegen/aws-models/datazone.json @@ -251,6 +251,12 @@ "traits": { "smithy.api#documentation": "

A description that specifies the reason for accepting the specified subscription\n request.

" } + }, + "assetScopes": { + "target": "com.amazonaws.datazone#AcceptedAssetScopes", + "traits": { + "smithy.api#documentation": "

The asset scopes of the accept subscription request.

" + } } }, "traits": { @@ -354,6 +360,34 @@ "smithy.api#output": {} } }, + "com.amazonaws.datazone#AcceptedAssetScope": { + "type": "structure", + "members": { + "assetId": { + "target": "com.amazonaws.datazone#AssetId", + "traits": { + "smithy.api#documentation": "

The asset ID of the accepted asset scope.

", + "smithy.api#required": {} + } + }, + "filterIds": { + "target": "com.amazonaws.datazone#FilterIds", + "traits": { + "smithy.api#documentation": "

The filter IDs of the accepted asset scope.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The accepted asset scope.

" + } + }, + "com.amazonaws.datazone#AcceptedAssetScopes": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#AcceptedAssetScope" + } + }, "com.amazonaws.datazone#AccessDeniedException": { "type": "structure", "members": { @@ -1221,6 +1255,41 @@ "target": "com.amazonaws.datazone#AssetRevision" } }, + "com.amazonaws.datazone#AssetScope": { + "type": "structure", + "members": { + "assetId": { + "target": "com.amazonaws.datazone#AssetId", + "traits": { + "smithy.api#documentation": "

The asset ID of the asset scope.

", + "smithy.api#required": {} + } + }, + "filterIds": { + "target": "com.amazonaws.datazone#FilterIds", + "traits": { + "smithy.api#documentation": "

The filter IDs of the asset scope.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the asset scope.

", + "smithy.api#required": {} + } + }, + "errorMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The error message of the asset scope.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The asset scope.

" + } + }, "com.amazonaws.datazone#AssetTargetNameMap": { "type": "structure", "members": { @@ -5110,7 +5179,7 @@ "domainUnitId": { "target": "com.amazonaws.datazone#DomainUnitId", "traits": { - "smithy.api#documentation": "

The ID of the domain unit. This parameter is not required and if it is not specified, then\n the project is created at the root domain unit level.

" + "smithy.api#documentation": "

The ID of the domain unit. This parameter is not required and if it is not specified,\n then the project is created at the root domain unit level.

" } } }, @@ -10217,7 +10286,7 @@ } }, "traits": { - "smithy.api#documentation": "

The grant filter for the domain unit. In the current release of Amazon DataZone, the only\nsupported filter is the allDomainUnitsGrantFilter.

" + "smithy.api#documentation": "

The grant filter for the domain unit. In the current release of Amazon DataZone, the\n only supported filter is the allDomainUnitsGrantFilter.

" } }, "com.amazonaws.datazone#DomainUnitGroupProperties": { @@ -11225,6 +11294,12 @@ "smithy.api#pattern": "^[a-zA-Z0-9_-]{1,36}$" } }, + "com.amazonaws.datazone#FilterIds": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#FilterId" + } + }, "com.amazonaws.datazone#FilterList": { "type": "list", "member": { @@ -24198,6 +24273,12 @@ "traits": { "smithy.api#documentation": "

The failure timestamp included in the details of the asset for which the subscription\n grant is created.

" } + }, + "assetScope": { + "target": "com.amazonaws.datazone#AssetScope", + "traits": { + "smithy.api#documentation": "

The asset scope of the subscribed asset.

" + } } }, "traits": { @@ -24236,6 +24317,12 @@ "traits": { "smithy.api#documentation": "

The glossary terms attached to the published asset for which the subscription grant is\n created.

" } + }, + "assetScope": { + "target": "com.amazonaws.datazone#AssetScope", + "traits": { + "smithy.api#documentation": "

The asset scope of the subscribed asset listing.

" + } } }, "traits": {