@aws-sdk/client-datazone 3.931.0 → 3.933.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 (33) hide show
  1. package/dist-cjs/index.js +120 -47
  2. package/dist-es/models/models_0.js +10 -25
  3. package/dist-es/models/models_1.js +19 -0
  4. package/dist-es/schemas/schemas_0.js +109 -40
  5. package/dist-types/commands/AcceptSubscriptionRequestCommand.d.ts +36 -0
  6. package/dist-types/commands/CancelSubscriptionCommand.d.ts +23 -0
  7. package/dist-types/commands/CreateProjectCommand.d.ts +2 -1
  8. package/dist-types/commands/CreateSubscriptionGrantCommand.d.ts +6 -0
  9. package/dist-types/commands/CreateSubscriptionRequestCommand.d.ts +50 -0
  10. package/dist-types/commands/DeleteSubscriptionGrantCommand.d.ts +6 -0
  11. package/dist-types/commands/GetSubscriptionCommand.d.ts +23 -0
  12. package/dist-types/commands/GetSubscriptionGrantCommand.d.ts +6 -0
  13. package/dist-types/commands/GetSubscriptionRequestDetailsCommand.d.ts +23 -0
  14. package/dist-types/commands/ListSubscriptionGrantsCommand.d.ts +10 -1
  15. package/dist-types/commands/ListSubscriptionRequestsCommand.d.ts +26 -1
  16. package/dist-types/commands/ListSubscriptionsCommand.d.ts +26 -2
  17. package/dist-types/commands/RejectSubscriptionRequestCommand.d.ts +23 -0
  18. package/dist-types/commands/RevokeSubscriptionCommand.d.ts +23 -0
  19. package/dist-types/commands/UpdateSubscriptionGrantStatusCommand.d.ts +6 -0
  20. package/dist-types/commands/UpdateSubscriptionRequestCommand.d.ts +23 -0
  21. package/dist-types/models/models_0.d.ts +224 -234
  22. package/dist-types/models/models_1.d.ts +320 -379
  23. package/dist-types/models/models_2.d.ts +325 -3
  24. package/dist-types/schemas/schemas_0.d.ts +9 -1
  25. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +2 -1
  26. package/dist-types/ts3.4/commands/ListSubscriptionGrantsCommand.d.ts +2 -4
  27. package/dist-types/ts3.4/commands/ListSubscriptionRequestsCommand.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +4 -2
  29. package/dist-types/ts3.4/models/models_0.d.ts +96 -87
  30. package/dist-types/ts3.4/models/models_1.d.ts +121 -106
  31. package/dist-types/ts3.4/models/models_2.d.ts +76 -6
  32. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -1
  33. package/package.json +6 -6
@@ -206,6 +206,67 @@ export declare class ValidationException extends __BaseException {
206
206
  */
207
207
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
208
208
  }
209
+ /**
210
+ * @public
211
+ * @enum
212
+ */
213
+ export declare const S3Permission: {
214
+ readonly READ: "READ";
215
+ readonly WRITE: "WRITE";
216
+ };
217
+ /**
218
+ * @public
219
+ */
220
+ export type S3Permission = (typeof S3Permission)[keyof typeof S3Permission];
221
+ /**
222
+ * <p>The asset permissions.</p>
223
+ * @public
224
+ */
225
+ export type Permissions = Permissions.S3Member | Permissions.$UnknownMember;
226
+ /**
227
+ * @public
228
+ */
229
+ export declare namespace Permissions {
230
+ /**
231
+ * <p>The S3 details of the asset permissions.</p>
232
+ * @public
233
+ */
234
+ interface S3Member {
235
+ s3: S3Permission[];
236
+ $unknown?: never;
237
+ }
238
+ /**
239
+ * @public
240
+ */
241
+ interface $UnknownMember {
242
+ s3?: never;
243
+ $unknown: [string, any];
244
+ }
245
+ /**
246
+ * @deprecated unused in schema-serde mode.
247
+ *
248
+ */
249
+ interface Visitor<T> {
250
+ s3: (value: S3Permission[]) => T;
251
+ _: (name: string, value: any) => T;
252
+ }
253
+ }
254
+ /**
255
+ * <p>The asset permissions.</p>
256
+ * @public
257
+ */
258
+ export interface AssetPermission {
259
+ /**
260
+ * <p>The asset ID as part of the asset permissions.</p>
261
+ * @public
262
+ */
263
+ assetId: string | undefined;
264
+ /**
265
+ * <p>The details as part of the asset permissions.</p>
266
+ * @public
267
+ */
268
+ permissions: Permissions | undefined;
269
+ }
209
270
  /**
210
271
  * @public
211
272
  */
@@ -230,6 +291,11 @@ export interface AcceptSubscriptionRequestInput {
230
291
  * @public
231
292
  */
232
293
  assetScopes?: AcceptedAssetScope[] | undefined;
294
+ /**
295
+ * <p>The asset permissions of the accept subscription request.</p>
296
+ * @public
297
+ */
298
+ assetPermissions?: AssetPermission[] | undefined;
233
299
  }
234
300
  /**
235
301
  * <p>The details of a metadata form.</p>
@@ -347,6 +413,11 @@ export interface SubscribedAssetListing {
347
413
  * @public
348
414
  */
349
415
  assetScope?: AssetScope | undefined;
416
+ /**
417
+ * <p>The asset permissions.</p>
418
+ * @public
419
+ */
420
+ permissions?: Permissions | undefined;
350
421
  }
351
422
  /**
352
423
  * <p>The listing of the asset in a data product.</p>
@@ -491,6 +562,22 @@ export interface SubscribedListing {
491
562
  */
492
563
  ownerProjectName?: string | undefined;
493
564
  }
565
+ /**
566
+ * <p>The group that subscribes to the asset.</p>
567
+ * @public
568
+ */
569
+ export interface SubscribedGroup {
570
+ /**
571
+ * <p>The ID of the subscribed group.</p>
572
+ * @public
573
+ */
574
+ id?: string | undefined;
575
+ /**
576
+ * <p>The name of the subscribed group.</p>
577
+ * @public
578
+ */
579
+ name?: string | undefined;
580
+ }
494
581
  /**
495
582
  * <p>The project that has the subscription grant.</p>
496
583
  * @public
@@ -507,11 +594,109 @@ export interface SubscribedProject {
507
594
  */
508
595
  name?: string | undefined;
509
596
  }
597
+ /**
598
+ * <p/>
599
+ * @public
600
+ */
601
+ export interface IamUserProfileDetails {
602
+ /**
603
+ * <p>The ARN of the IAM user.</p>
604
+ * @public
605
+ */
606
+ arn?: string | undefined;
607
+ /**
608
+ * <p>The principal ID as part of the IAM user profile details.</p>
609
+ * @public
610
+ */
611
+ principalId?: string | undefined;
612
+ }
613
+ /**
614
+ * <p>The SSO user profile detail.</p>
615
+ * @public
616
+ */
617
+ export interface SsoUserProfileDetails {
618
+ /**
619
+ * <p>The username as part of the SSO user profile detail. </p>
620
+ * @public
621
+ */
622
+ username?: string | undefined;
623
+ /**
624
+ * <p>The first name as part of the SSO user profile detail.</p>
625
+ * @public
626
+ */
627
+ firstName?: string | undefined;
628
+ /**
629
+ * <p>The last name as part of the SSO user profile detail.</p>
630
+ * @public
631
+ */
632
+ lastName?: string | undefined;
633
+ }
634
+ /**
635
+ * <p>The user profile details.</p>
636
+ * @public
637
+ */
638
+ export type UserProfileDetails = UserProfileDetails.IamMember | UserProfileDetails.SsoMember | UserProfileDetails.$UnknownMember;
639
+ /**
640
+ * @public
641
+ */
642
+ export declare namespace UserProfileDetails {
643
+ /**
644
+ * <p>The IAM details of the user profile.</p>
645
+ * @public
646
+ */
647
+ interface IamMember {
648
+ iam: IamUserProfileDetails;
649
+ sso?: never;
650
+ $unknown?: never;
651
+ }
652
+ /**
653
+ * <p>The SSO details of the user profile.</p>
654
+ * @public
655
+ */
656
+ interface SsoMember {
657
+ iam?: never;
658
+ sso: SsoUserProfileDetails;
659
+ $unknown?: never;
660
+ }
661
+ /**
662
+ * @public
663
+ */
664
+ interface $UnknownMember {
665
+ iam?: never;
666
+ sso?: never;
667
+ $unknown: [string, any];
668
+ }
669
+ /**
670
+ * @deprecated unused in schema-serde mode.
671
+ *
672
+ */
673
+ interface Visitor<T> {
674
+ iam: (value: IamUserProfileDetails) => T;
675
+ sso: (value: SsoUserProfileDetails) => T;
676
+ _: (name: string, value: any) => T;
677
+ }
678
+ }
679
+ /**
680
+ * <p>The subscribed user.</p>
681
+ * @public
682
+ */
683
+ export interface SubscribedUser {
684
+ /**
685
+ * <p>The ID of the subscribed user.</p>
686
+ * @public
687
+ */
688
+ id?: string | undefined;
689
+ /**
690
+ * <p>The subscribed user details.</p>
691
+ * @public
692
+ */
693
+ details?: UserProfileDetails | undefined;
694
+ }
510
695
  /**
511
696
  * <p>The principal that has the subscription grant for the asset.</p>
512
697
  * @public
513
698
  */
514
- export type SubscribedPrincipal = SubscribedPrincipal.ProjectMember | SubscribedPrincipal.$UnknownMember;
699
+ export type SubscribedPrincipal = SubscribedPrincipal.GroupMember | SubscribedPrincipal.ProjectMember | SubscribedPrincipal.UserMember | SubscribedPrincipal.$UnknownMember;
515
700
  /**
516
701
  * @public
517
702
  */
@@ -522,6 +707,28 @@ export declare namespace SubscribedPrincipal {
522
707
  */
523
708
  interface ProjectMember {
524
709
  project: SubscribedProject;
710
+ user?: never;
711
+ group?: never;
712
+ $unknown?: never;
713
+ }
714
+ /**
715
+ * <p>The subscribed user.</p>
716
+ * @public
717
+ */
718
+ interface UserMember {
719
+ project?: never;
720
+ user: SubscribedUser;
721
+ group?: never;
722
+ $unknown?: never;
723
+ }
724
+ /**
725
+ * <p>The subscribed group.</p>
726
+ * @public
727
+ */
728
+ interface GroupMember {
729
+ project?: never;
730
+ user?: never;
731
+ group: SubscribedGroup;
525
732
  $unknown?: never;
526
733
  }
527
734
  /**
@@ -529,6 +736,8 @@ export declare namespace SubscribedPrincipal {
529
736
  */
530
737
  interface $UnknownMember {
531
738
  project?: never;
739
+ user?: never;
740
+ group?: never;
532
741
  $unknown: [string, any];
533
742
  }
534
743
  /**
@@ -537,6 +746,8 @@ export declare namespace SubscribedPrincipal {
537
746
  */
538
747
  interface Visitor<T> {
539
748
  project: (value: SubscribedProject) => T;
749
+ user: (value: SubscribedUser) => T;
750
+ group: (value: SubscribedGroup) => T;
540
751
  _: (name: string, value: any) => T;
541
752
  }
542
753
  }
@@ -615,6 +826,18 @@ export interface AcceptSubscriptionRequestOutput {
615
826
  */
616
827
  metadataForms?: FormOutput[] | undefined;
617
828
  }
829
+ /**
830
+ * <p>The request has exceeded the specified service quota.</p>
831
+ * @public
832
+ */
833
+ export declare class ServiceQuotaExceededException extends __BaseException {
834
+ readonly name: "ServiceQuotaExceededException";
835
+ readonly $fault: "client";
836
+ /**
837
+ * @internal
838
+ */
839
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
840
+ }
618
841
  /**
619
842
  * <p>The account information within an account pool.</p>
620
843
  * @public
@@ -906,18 +1129,6 @@ export interface AddEntityOwnerInput {
906
1129
  */
907
1130
  export interface AddEntityOwnerOutput {
908
1131
  }
909
- /**
910
- * <p>The request has exceeded the specified service quota.</p>
911
- * @public
912
- */
913
- export declare class ServiceQuotaExceededException extends __BaseException {
914
- readonly name: "ServiceQuotaExceededException";
915
- readonly $fault: "client";
916
- /**
917
- * @internal
918
- */
919
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
920
- }
921
1132
  /**
922
1133
  * <p>The details of the policy grant.</p>
923
1134
  * @public
@@ -8963,224 +9174,3 @@ export declare const OverallDeploymentStatus: {
8963
9174
  * @public
8964
9175
  */
8965
9176
  export type OverallDeploymentStatus = (typeof OverallDeploymentStatus)[keyof typeof OverallDeploymentStatus];
8966
- /**
8967
- * <p>The environment deployment details.</p>
8968
- * @public
8969
- */
8970
- export interface EnvironmentDeploymentDetails {
8971
- /**
8972
- * <p>The overall deployment status of the environment.</p>
8973
- * @public
8974
- */
8975
- overallDeploymentStatus?: OverallDeploymentStatus | undefined;
8976
- /**
8977
- * <p>Environment failure reasons.</p>
8978
- * @public
8979
- */
8980
- environmentFailureReasons?: Record<string, EnvironmentError[]> | undefined;
8981
- }
8982
- /**
8983
- * <p>Specifies the error message that is returned if the operation cannot be successfully completed.</p>
8984
- * @public
8985
- */
8986
- export interface ProjectDeletionError {
8987
- /**
8988
- * <p>The code of the project deletion error.</p>
8989
- * @public
8990
- */
8991
- code?: string | undefined;
8992
- /**
8993
- * <p>The message of the project deletion error.</p>
8994
- * @public
8995
- */
8996
- message?: string | undefined;
8997
- }
8998
- /**
8999
- * @public
9000
- * @enum
9001
- */
9002
- export declare const ProjectStatus: {
9003
- readonly ACTIVE: "ACTIVE";
9004
- readonly DELETE_FAILED: "DELETE_FAILED";
9005
- readonly DELETING: "DELETING";
9006
- readonly MOVING: "MOVING";
9007
- readonly UPDATE_FAILED: "UPDATE_FAILED";
9008
- readonly UPDATING: "UPDATING";
9009
- };
9010
- /**
9011
- * @public
9012
- */
9013
- export type ProjectStatus = (typeof ProjectStatus)[keyof typeof ProjectStatus];
9014
- /**
9015
- * @public
9016
- * @enum
9017
- */
9018
- export declare const ResourceTagSource: {
9019
- readonly PROJECT: "PROJECT";
9020
- readonly PROJECT_PROFILE: "PROJECT_PROFILE";
9021
- };
9022
- /**
9023
- * @public
9024
- */
9025
- export type ResourceTagSource = (typeof ResourceTagSource)[keyof typeof ResourceTagSource];
9026
- /**
9027
- * <p>The resource tag of the project.</p>
9028
- * @public
9029
- */
9030
- export interface ResourceTag {
9031
- /**
9032
- * <p>The key of the resource tag of the project.</p>
9033
- * @public
9034
- */
9035
- key: string | undefined;
9036
- /**
9037
- * <p>The value of the resource tag of the project.</p>
9038
- * @public
9039
- */
9040
- value: string | undefined;
9041
- /**
9042
- * <p>The source of the resource tag of the project.</p>
9043
- * @public
9044
- */
9045
- source: ResourceTagSource | undefined;
9046
- }
9047
- /**
9048
- * @public
9049
- */
9050
- export interface CreateProjectOutput {
9051
- /**
9052
- * <p>The identifier of the Amazon DataZone domain in which the project was created.</p>
9053
- * @public
9054
- */
9055
- domainId: string | undefined;
9056
- /**
9057
- * <p>The ID of the Amazon DataZone project.</p>
9058
- * @public
9059
- */
9060
- id: string | undefined;
9061
- /**
9062
- * <p>The name of the project.</p>
9063
- * @public
9064
- */
9065
- name: string | undefined;
9066
- /**
9067
- * <p>The description of the project.</p>
9068
- * @public
9069
- */
9070
- description?: string | undefined;
9071
- /**
9072
- * <p>The status of the Amazon DataZone project that was created.</p>
9073
- * @public
9074
- */
9075
- projectStatus?: ProjectStatus | undefined;
9076
- /**
9077
- * <p>Specifies the error message that is returned if the operation cannot be successfully completed.</p>
9078
- * @public
9079
- */
9080
- failureReasons?: ProjectDeletionError[] | undefined;
9081
- /**
9082
- * <p>The Amazon DataZone user who created the project.</p>
9083
- * @public
9084
- */
9085
- createdBy: string | undefined;
9086
- /**
9087
- * <p>The timestamp of when the project was created.</p>
9088
- * @public
9089
- */
9090
- createdAt?: Date | undefined;
9091
- /**
9092
- * <p>The timestamp of when the project was last updated.</p>
9093
- * @public
9094
- */
9095
- lastUpdatedAt?: Date | undefined;
9096
- /**
9097
- * <p>The resource tags of the project.</p>
9098
- * @public
9099
- */
9100
- resourceTags?: ResourceTag[] | undefined;
9101
- /**
9102
- * <p>The glossary terms that can be used in the project.</p>
9103
- * @public
9104
- */
9105
- glossaryTerms?: string[] | undefined;
9106
- /**
9107
- * <p>The ID of the domain unit.</p>
9108
- * @public
9109
- */
9110
- domainUnitId?: string | undefined;
9111
- /**
9112
- * <p>The project profile ID.</p>
9113
- * @public
9114
- */
9115
- projectProfileId?: string | undefined;
9116
- /**
9117
- * <p>The user parameters of the project.</p>
9118
- * @public
9119
- */
9120
- userParameters?: EnvironmentConfigurationUserParameter[] | undefined;
9121
- /**
9122
- * <p>The environment deployment details.</p>
9123
- * @public
9124
- */
9125
- environmentDeploymentDetails?: EnvironmentDeploymentDetails | undefined;
9126
- }
9127
- /**
9128
- * @public
9129
- * @enum
9130
- */
9131
- export declare const UserDesignation: {
9132
- readonly PROJECT_CATALOG_CONSUMER: "PROJECT_CATALOG_CONSUMER";
9133
- readonly PROJECT_CATALOG_STEWARD: "PROJECT_CATALOG_STEWARD";
9134
- readonly PROJECT_CATALOG_VIEWER: "PROJECT_CATALOG_VIEWER";
9135
- readonly PROJECT_CONTRIBUTOR: "PROJECT_CONTRIBUTOR";
9136
- readonly PROJECT_OWNER: "PROJECT_OWNER";
9137
- };
9138
- /**
9139
- * @public
9140
- */
9141
- export type UserDesignation = (typeof UserDesignation)[keyof typeof UserDesignation];
9142
- /**
9143
- * <p>The details about a project member.</p>
9144
- * @public
9145
- */
9146
- export type Member = Member.GroupIdentifierMember | Member.UserIdentifierMember | Member.$UnknownMember;
9147
- /**
9148
- * @public
9149
- */
9150
- export declare namespace Member {
9151
- /**
9152
- * <p>The user ID of a project member.</p>
9153
- * @public
9154
- */
9155
- interface UserIdentifierMember {
9156
- userIdentifier: string;
9157
- groupIdentifier?: never;
9158
- $unknown?: never;
9159
- }
9160
- /**
9161
- * <p>The ID of the group of a project member.</p>
9162
- * @public
9163
- */
9164
- interface GroupIdentifierMember {
9165
- userIdentifier?: never;
9166
- groupIdentifier: string;
9167
- $unknown?: never;
9168
- }
9169
- /**
9170
- * @public
9171
- */
9172
- interface $UnknownMember {
9173
- userIdentifier?: never;
9174
- groupIdentifier?: never;
9175
- $unknown: [string, any];
9176
- }
9177
- /**
9178
- * @deprecated unused in schema-serde mode.
9179
- *
9180
- */
9181
- interface Visitor<T> {
9182
- userIdentifier: (value: string) => T;
9183
- groupIdentifier: (value: string) => T;
9184
- _: (name: string, value: any) => T;
9185
- }
9186
- }