@aws-sdk/client-detective 3.428.0 → 3.429.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.
@@ -38,7 +38,7 @@ export declare class AccessDeniedException extends __BaseException {
38
38
  * @public
39
39
  * <p>The SDK default error code associated with the access denied exception.</p>
40
40
  */
41
- ErrorCode?: ErrorCode | string;
41
+ ErrorCode?: ErrorCode;
42
42
  /**
43
43
  * @public
44
44
  * <p>The SDK default explanation of why access was denied.</p>
@@ -48,7 +48,7 @@ export declare class AccessDeniedException extends __BaseException {
48
48
  * @public
49
49
  * <p>The error code associated with the access denied exception.</p>
50
50
  */
51
- SubErrorCode?: ErrorCode | string;
51
+ SubErrorCode?: ErrorCode;
52
52
  /**
53
53
  * @public
54
54
  * <p> An explanation of why access was denied.</p>
@@ -110,7 +110,7 @@ export declare class ValidationException extends __BaseException {
110
110
  * @public
111
111
  * <p>The error code associated with the validation failure.</p>
112
112
  */
113
- ErrorCode?: ErrorCode | string;
113
+ ErrorCode?: ErrorCode;
114
114
  /**
115
115
  * @public
116
116
  * <p> An explanation of why validation failed.</p>
@@ -237,7 +237,7 @@ export interface MembershipDatasources {
237
237
  * @public
238
238
  * <p>Details on when a data source package was added to a behavior graph.</p>
239
239
  */
240
- DatasourcePackageIngestHistory?: Record<string, Record<string, TimestampForCollection>>;
240
+ DatasourcePackageIngestHistory?: Record<DatasourcePackage, Record<DatasourcePackageIngestState, TimestampForCollection>>;
241
241
  }
242
242
  /**
243
243
  * @public
@@ -538,7 +538,7 @@ export interface MemberDetail {
538
538
  * graph are not included. In the organization behavior graph, organization accounts that the
539
539
  * Detective administrator account did not enable are not included.</p>
540
540
  */
541
- Status?: MemberStatus | string;
541
+ Status?: MemberStatus;
542
542
  /**
543
543
  * @public
544
544
  * <p>For member accounts with a status of <code>ACCEPTED_BUT_DISABLED</code>, the reason that
@@ -558,7 +558,7 @@ export interface MemberDetail {
558
558
  * </li>
559
559
  * </ul>
560
560
  */
561
- DisabledReason?: MemberDisabledReason | string;
561
+ DisabledReason?: MemberDisabledReason;
562
562
  /**
563
563
  * @public
564
564
  * <p>For invited accounts, the date and time that Detective sent the invitation to
@@ -616,17 +616,17 @@ export interface MemberDetail {
616
616
  * <p>For an account that was invited to a behavior graph, the type is
617
617
  * <code>INVITATION</code>. </p>
618
618
  */
619
- InvitationType?: InvitationType | string;
619
+ InvitationType?: InvitationType;
620
620
  /**
621
621
  * @public
622
622
  * <p>Details on the volume of usage for each data source package in a behavior graph.</p>
623
623
  */
624
- VolumeUsageByDatasourcePackage?: Record<string, DatasourcePackageUsageInfo>;
624
+ VolumeUsageByDatasourcePackage?: Record<DatasourcePackage, DatasourcePackageUsageInfo>;
625
625
  /**
626
626
  * @public
627
627
  * <p>The state of a data source package for the behavior graph.</p>
628
628
  */
629
- DatasourcePackageIngestStates?: Record<string, DatasourcePackageIngestState | string>;
629
+ DatasourcePackageIngestStates?: Record<DatasourcePackage, DatasourcePackageIngestState>;
630
630
  }
631
631
  /**
632
632
  * @public
@@ -816,12 +816,12 @@ export interface DatasourcePackageIngestDetail {
816
816
  * @public
817
817
  * <p>Details on which data source packages are ingested for a member account.</p>
818
818
  */
819
- DatasourcePackageIngestState?: DatasourcePackageIngestState | string;
819
+ DatasourcePackageIngestState?: DatasourcePackageIngestState;
820
820
  /**
821
821
  * @public
822
822
  * <p>The date a data source package was enabled for this account</p>
823
823
  */
824
- LastIngestStateChange?: Record<string, TimestampForCollection>;
824
+ LastIngestStateChange?: Record<DatasourcePackageIngestState, TimestampForCollection>;
825
825
  }
826
826
  /**
827
827
  * @public
@@ -831,7 +831,7 @@ export interface ListDatasourcePackagesResponse {
831
831
  * @public
832
832
  * <p>Details on the data source packages active in the behavior graph.</p>
833
833
  */
834
- DatasourcePackages?: Record<string, DatasourcePackageIngestDetail>;
834
+ DatasourcePackages?: Record<DatasourcePackage, DatasourcePackageIngestDetail>;
835
835
  /**
836
836
  * @public
837
837
  * <p>For requests to get the next page of results, the pagination token that was returned
@@ -1111,7 +1111,7 @@ export interface UpdateDatasourcePackagesRequest {
1111
1111
  * @public
1112
1112
  * <p>The data source package start for the behavior graph.</p>
1113
1113
  */
1114
- DatasourcePackages: (DatasourcePackage | string)[] | undefined;
1114
+ DatasourcePackages: DatasourcePackage[] | undefined;
1115
1115
  }
1116
1116
  /**
1117
1117
  * @public
@@ -13,9 +13,9 @@ export declare class AccessDeniedException extends __BaseException {
13
13
  readonly name: "AccessDeniedException";
14
14
  readonly $fault: "client";
15
15
  Message?: string;
16
- ErrorCode?: ErrorCode | string;
16
+ ErrorCode?: ErrorCode;
17
17
  ErrorCodeReason?: string;
18
- SubErrorCode?: ErrorCode | string;
18
+ SubErrorCode?: ErrorCode;
19
19
  SubErrorCodeReason?: string;
20
20
  constructor(
21
21
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
@@ -47,7 +47,7 @@ export declare class ValidationException extends __BaseException {
47
47
  readonly name: "ValidationException";
48
48
  readonly $fault: "client";
49
49
  Message?: string;
50
- ErrorCode?: ErrorCode | string;
50
+ ErrorCode?: ErrorCode;
51
51
  ErrorCodeReason?: string;
52
52
  constructor(
53
53
  opts: __ExceptionOptionType<ValidationException, __BaseException>
@@ -87,8 +87,8 @@ export interface MembershipDatasources {
87
87
  AccountId?: string;
88
88
  GraphArn?: string;
89
89
  DatasourcePackageIngestHistory?: Record<
90
- string,
91
- Record<string, TimestampForCollection>
90
+ DatasourcePackage,
91
+ Record<DatasourcePackageIngestState, TimestampForCollection>
92
92
  >;
93
93
  }
94
94
  export interface UnprocessedAccount {
@@ -161,19 +161,22 @@ export interface MemberDetail {
161
161
  GraphArn?: string;
162
162
  MasterId?: string;
163
163
  AdministratorId?: string;
164
- Status?: MemberStatus | string;
165
- DisabledReason?: MemberDisabledReason | string;
164
+ Status?: MemberStatus;
165
+ DisabledReason?: MemberDisabledReason;
166
166
  InvitedTime?: Date;
167
167
  UpdatedTime?: Date;
168
168
  VolumeUsageInBytes?: number;
169
169
  VolumeUsageUpdatedTime?: Date;
170
170
  PercentOfGraphUtilization?: number;
171
171
  PercentOfGraphUtilizationUpdatedTime?: Date;
172
- InvitationType?: InvitationType | string;
173
- VolumeUsageByDatasourcePackage?: Record<string, DatasourcePackageUsageInfo>;
172
+ InvitationType?: InvitationType;
173
+ VolumeUsageByDatasourcePackage?: Record<
174
+ DatasourcePackage,
175
+ DatasourcePackageUsageInfo
176
+ >;
174
177
  DatasourcePackageIngestStates?: Record<
175
- string,
176
- DatasourcePackageIngestState | string
178
+ DatasourcePackage,
179
+ DatasourcePackageIngestState
177
180
  >;
178
181
  }
179
182
  export interface CreateMembersResponse {
@@ -225,11 +228,14 @@ export interface ListDatasourcePackagesRequest {
225
228
  MaxResults?: number;
226
229
  }
227
230
  export interface DatasourcePackageIngestDetail {
228
- DatasourcePackageIngestState?: DatasourcePackageIngestState | string;
229
- LastIngestStateChange?: Record<string, TimestampForCollection>;
231
+ DatasourcePackageIngestState?: DatasourcePackageIngestState;
232
+ LastIngestStateChange?: Record<
233
+ DatasourcePackageIngestState,
234
+ TimestampForCollection
235
+ >;
230
236
  }
231
237
  export interface ListDatasourcePackagesResponse {
232
- DatasourcePackages?: Record<string, DatasourcePackageIngestDetail>;
238
+ DatasourcePackages?: Record<DatasourcePackage, DatasourcePackageIngestDetail>;
233
239
  NextToken?: string;
234
240
  }
235
241
  export interface ListGraphsRequest {
@@ -294,7 +300,7 @@ export interface UntagResourceRequest {
294
300
  export interface UntagResourceResponse {}
295
301
  export interface UpdateDatasourcePackagesRequest {
296
302
  GraphArn: string | undefined;
297
- DatasourcePackages: (DatasourcePackage | string)[] | undefined;
303
+ DatasourcePackages: DatasourcePackage[] | undefined;
298
304
  }
299
305
  export interface UpdateOrganizationConfigurationRequest {
300
306
  GraphArn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-detective",
3
3
  "description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
4
- "version": "3.428.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",