@aws-sdk/client-cloudtrail 3.454.0 → 3.458.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 (31) hide show
  1. package/README.md +62 -46
  2. package/dist-cjs/CloudTrail.js +4 -0
  3. package/dist-cjs/commands/DisableFederationCommand.js +51 -0
  4. package/dist-cjs/commands/EnableFederationCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +50 -2
  7. package/dist-cjs/protocols/Aws_json1_1.js +200 -2
  8. package/dist-es/CloudTrail.js +4 -0
  9. package/dist-es/commands/DisableFederationCommand.js +47 -0
  10. package/dist-es/commands/EnableFederationCommand.js +47 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +45 -0
  13. package/dist-es/protocols/Aws_json1_1.js +195 -1
  14. package/dist-types/CloudTrail.d.ts +14 -0
  15. package/dist-types/CloudTrailClient.d.ts +4 -2
  16. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +15 -2
  17. package/dist-types/commands/DisableFederationCommand.d.ts +135 -0
  18. package/dist-types/commands/EnableFederationCommand.d.ts +149 -0
  19. package/dist-types/commands/GetEventDataStoreCommand.d.ts +2 -0
  20. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +2 -0
  21. package/dist-types/commands/index.d.ts +2 -0
  22. package/dist-types/models/models_0.d.ts +177 -0
  23. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  24. package/dist-types/ts3.4/CloudTrail.d.ts +34 -0
  25. package/dist-types/ts3.4/CloudTrailClient.d.ts +12 -0
  26. package/dist-types/ts3.4/commands/DisableFederationCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/EnableFederationCommand.d.ts +38 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  30. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  31. package/package.json +3 -3
@@ -1,5 +1,13 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CloudTrailServiceException as __BaseException } from "./CloudTrailServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
3
11
  export declare class AccountHasOngoingImportException extends __BaseException {
4
12
  readonly name: "AccountHasOngoingImportException";
5
13
  readonly $fault: "client";
@@ -661,6 +669,17 @@ export interface DeleteEventDataStoreRequest {
661
669
  EventDataStore: string | undefined;
662
670
  }
663
671
  export interface DeleteEventDataStoreResponse {}
672
+ export declare class EventDataStoreFederationEnabledException extends __BaseException {
673
+ readonly name: "EventDataStoreFederationEnabledException";
674
+ readonly $fault: "client";
675
+ Message?: string;
676
+ constructor(
677
+ opts: __ExceptionOptionType<
678
+ EventDataStoreFederationEnabledException,
679
+ __BaseException
680
+ >
681
+ );
682
+ }
664
683
  export declare class EventDataStoreHasOngoingImportException extends __BaseException {
665
684
  readonly name: "EventDataStoreHasOngoingImportException";
666
685
  readonly $fault: "client";
@@ -800,6 +819,41 @@ export interface Trail {
800
819
  export interface DescribeTrailsResponse {
801
820
  trailList?: Trail[];
802
821
  }
822
+ export declare class ConcurrentModificationException extends __BaseException {
823
+ readonly name: "ConcurrentModificationException";
824
+ readonly $fault: "client";
825
+ Message?: string;
826
+ constructor(
827
+ opts: __ExceptionOptionType<
828
+ ConcurrentModificationException,
829
+ __BaseException
830
+ >
831
+ );
832
+ }
833
+ export interface DisableFederationRequest {
834
+ EventDataStore: string | undefined;
835
+ }
836
+ export declare const FederationStatus: {
837
+ readonly DISABLED: "DISABLED";
838
+ readonly DISABLING: "DISABLING";
839
+ readonly ENABLED: "ENABLED";
840
+ readonly ENABLING: "ENABLING";
841
+ };
842
+ export type FederationStatus =
843
+ (typeof FederationStatus)[keyof typeof FederationStatus];
844
+ export interface DisableFederationResponse {
845
+ EventDataStoreArn?: string;
846
+ FederationStatus?: FederationStatus;
847
+ }
848
+ export interface EnableFederationRequest {
849
+ EventDataStore: string | undefined;
850
+ FederationRoleArn: string | undefined;
851
+ }
852
+ export interface EnableFederationResponse {
853
+ EventDataStoreArn?: string;
854
+ FederationStatus?: FederationStatus;
855
+ FederationRoleArn?: string;
856
+ }
803
857
  export interface GetChannelRequest {
804
858
  Channel: string | undefined;
805
859
  }
@@ -838,6 +892,8 @@ export interface GetEventDataStoreResponse {
838
892
  UpdatedTimestamp?: Date;
839
893
  KmsKeyId?: string;
840
894
  BillingMode?: BillingMode;
895
+ FederationStatus?: FederationStatus;
896
+ FederationRoleArn?: string;
841
897
  }
842
898
  export interface GetEventSelectorsRequest {
843
899
  TrailName: string | undefined;
@@ -1440,6 +1496,8 @@ export interface UpdateEventDataStoreResponse {
1440
1496
  UpdatedTimestamp?: Date;
1441
1497
  KmsKeyId?: string;
1442
1498
  BillingMode?: BillingMode;
1499
+ FederationStatus?: FederationStatus;
1500
+ FederationRoleArn?: string;
1443
1501
  }
1444
1502
  export interface UpdateTrailRequest {
1445
1503
  Name: string | undefined;
@@ -51,6 +51,14 @@ import {
51
51
  DescribeTrailsCommandInput,
52
52
  DescribeTrailsCommandOutput,
53
53
  } from "../commands/DescribeTrailsCommand";
54
+ import {
55
+ DisableFederationCommandInput,
56
+ DisableFederationCommandOutput,
57
+ } from "../commands/DisableFederationCommand";
58
+ import {
59
+ EnableFederationCommandInput,
60
+ EnableFederationCommandOutput,
61
+ } from "../commands/EnableFederationCommand";
54
62
  import {
55
63
  GetChannelCommandInput,
56
64
  GetChannelCommandOutput,
@@ -235,6 +243,14 @@ export declare const se_DescribeTrailsCommand: (
235
243
  input: DescribeTrailsCommandInput,
236
244
  context: __SerdeContext
237
245
  ) => Promise<__HttpRequest>;
246
+ export declare const se_DisableFederationCommand: (
247
+ input: DisableFederationCommandInput,
248
+ context: __SerdeContext
249
+ ) => Promise<__HttpRequest>;
250
+ export declare const se_EnableFederationCommand: (
251
+ input: EnableFederationCommandInput,
252
+ context: __SerdeContext
253
+ ) => Promise<__HttpRequest>;
238
254
  export declare const se_GetChannelCommand: (
239
255
  input: GetChannelCommandInput,
240
256
  context: __SerdeContext
@@ -419,6 +435,14 @@ export declare const de_DescribeTrailsCommand: (
419
435
  output: __HttpResponse,
420
436
  context: __SerdeContext
421
437
  ) => Promise<DescribeTrailsCommandOutput>;
438
+ export declare const de_DisableFederationCommand: (
439
+ output: __HttpResponse,
440
+ context: __SerdeContext
441
+ ) => Promise<DisableFederationCommandOutput>;
442
+ export declare const de_EnableFederationCommand: (
443
+ output: __HttpResponse,
444
+ context: __SerdeContext
445
+ ) => Promise<EnableFederationCommandOutput>;
422
446
  export declare const de_GetChannelCommand: (
423
447
  output: __HttpResponse,
424
448
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail",
3
3
  "description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
4
- "version": "3.454.0",
4
+ "version": "3.458.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.454.0",
24
+ "@aws-sdk/client-sts": "3.458.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
- "@aws-sdk/credential-provider-node": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.458.0",
27
27
  "@aws-sdk/middleware-host-header": "3.451.0",
28
28
  "@aws-sdk/middleware-logger": "3.451.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.451.0",