@aws-sdk/client-cloudtrail 3.78.0 → 3.79.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.
- package/CHANGELOG.md +11 -0
- package/dist-types/CloudTrail.d.ts +11 -6
- package/dist-types/commands/AddTagsCommand.d.ts +9 -4
- package/dist-types/commands/ListTagsCommand.d.ts +1 -1
- package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +47 -30
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cloudtrail:** Increases the retention period maximum to 2557 days. Deprecates unused fields of the ListEventDataStores API response. Updates documentation. ([13baee3](https://github.com/aws/aws-sdk-js-v3/commit/13baee38c049a4934b390f5a49c1feb8d55b652b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -49,10 +49,15 @@ import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/Up
|
|
|
49
49
|
*/
|
|
50
50
|
export declare class CloudTrail extends CloudTrailClient {
|
|
51
51
|
/**
|
|
52
|
-
* <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
52
|
+
* <p>Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an
|
|
53
|
+
* existing tag's value when a new value is specified for an existing tag key.
|
|
54
|
+
* Tag key names must be unique for a trail; you cannot have two keys with the same name but
|
|
55
|
+
* different values.
|
|
56
|
+
* If you specify a key without a value, the tag will be created with the specified key and a
|
|
57
|
+
* value of null.
|
|
58
|
+
* You can tag a trail or event data store that applies to all Amazon Web Services Regions
|
|
59
|
+
* only from the Region in which the trail or event data store was created (also known as its
|
|
60
|
+
* home region).</p>
|
|
56
61
|
*/
|
|
57
62
|
addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
|
|
58
63
|
addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
|
|
@@ -198,7 +203,7 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
198
203
|
listQueries(args: ListQueriesCommandInput, cb: (err: any, data?: ListQueriesCommandOutput) => void): void;
|
|
199
204
|
listQueries(args: ListQueriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListQueriesCommandOutput) => void): void;
|
|
200
205
|
/**
|
|
201
|
-
* <p>Lists the tags for the trail in the current region.</p>
|
|
206
|
+
* <p>Lists the tags for the trail or event data store in the current region.</p>
|
|
202
207
|
*/
|
|
203
208
|
listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
|
|
204
209
|
listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
|
|
@@ -322,7 +327,7 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
322
327
|
putInsightSelectors(args: PutInsightSelectorsCommandInput, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
|
|
323
328
|
putInsightSelectors(args: PutInsightSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
|
|
324
329
|
/**
|
|
325
|
-
* <p>Removes the specified tags from a trail.</p>
|
|
330
|
+
* <p>Removes the specified tags from a trail or event data store.</p>
|
|
326
331
|
*/
|
|
327
332
|
removeTags(args: RemoveTagsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveTagsCommandOutput>;
|
|
328
333
|
removeTags(args: RemoveTagsCommandInput, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;
|
|
@@ -7,10 +7,15 @@ export interface AddTagsCommandInput extends AddTagsRequest {
|
|
|
7
7
|
export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* <p>Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an
|
|
11
|
+
* existing tag's value when a new value is specified for an existing tag key.
|
|
12
|
+
* Tag key names must be unique for a trail; you cannot have two keys with the same name but
|
|
13
|
+
* different values.
|
|
14
|
+
* If you specify a key without a value, the tag will be created with the specified key and a
|
|
15
|
+
* value of null.
|
|
16
|
+
* You can tag a trail or event data store that applies to all Amazon Web Services Regions
|
|
17
|
+
* only from the Region in which the trail or event data store was created (also known as its
|
|
18
|
+
* home region).</p>
|
|
14
19
|
* @example
|
|
15
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
21
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface ListTagsCommandInput extends ListTagsRequest {
|
|
|
7
7
|
export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists the tags for the trail in the current region.</p>
|
|
10
|
+
* <p>Lists the tags for the trail or event data store in the current region.</p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface RemoveTagsCommandInput extends RemoveTagsRequest {
|
|
|
7
7
|
export interface RemoveTagsCommandOutput extends RemoveTagsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Removes the specified tags from a trail.</p>
|
|
10
|
+
* <p>Removes the specified tags from a trail or event data store.</p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -21,11 +21,11 @@ export declare namespace Tag {
|
|
|
21
21
|
const filterSensitiveLog: (obj: Tag) => any;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* <p>Specifies the tags to add to a trail.</p>
|
|
24
|
+
* <p>Specifies the tags to add to a trail or event data store.</p>
|
|
25
25
|
*/
|
|
26
26
|
export interface AddTagsRequest {
|
|
27
27
|
/**
|
|
28
|
-
* <p>Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:</p>
|
|
28
|
+
* <p>Specifies the ARN of the trail or event data store to which one or more tags will be added. The format of a trail ARN is:</p>
|
|
29
29
|
* <p>
|
|
30
30
|
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
31
31
|
* </p>
|
|
@@ -73,7 +73,7 @@ export declare class CloudTrailARNInvalidException extends __BaseException {
|
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* <p>This exception is thrown when the specified resource is not ready for an operation.
|
|
76
|
-
* This can occur when you try to run an operation on a
|
|
76
|
+
* This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource.
|
|
77
77
|
* If this exception occurs, wait a few minutes, and then try the operation again.</p>
|
|
78
78
|
*/
|
|
79
79
|
export declare class ConflictException extends __BaseException {
|
|
@@ -104,7 +104,7 @@ export declare class EventDataStoreNotFoundException extends __BaseException {
|
|
|
104
104
|
constructor(opts: __ExceptionOptionType<EventDataStoreNotFoundException, __BaseException>);
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
* <p>The event data store
|
|
107
|
+
* <p>The event data store is inactive.</p>
|
|
108
108
|
*/
|
|
109
109
|
export declare class InactiveEventDataStoreException extends __BaseException {
|
|
110
110
|
readonly name: "InactiveEventDataStoreException";
|
|
@@ -168,9 +168,10 @@ export declare class InvalidTrailNameException extends __BaseException {
|
|
|
168
168
|
constructor(opts: __ExceptionOptionType<InvalidTrailNameException, __BaseException>);
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
|
-
* <p>This exception is thrown when the Amazon Web Services account making the request to create
|
|
171
|
+
* <p>This exception is thrown when the Amazon Web Services account making the request to create
|
|
172
|
+
* or update an organization trail or event data store is not the management account for an
|
|
172
173
|
* organization in Organizations. For more information, see
|
|
173
|
-
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a>.</p>
|
|
174
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create an event data store</a>.</p>
|
|
174
175
|
*/
|
|
175
176
|
export declare class NotOrganizationMasterAccountException extends __BaseException {
|
|
176
177
|
readonly name: "NotOrganizationMasterAccountException";
|
|
@@ -834,9 +835,9 @@ export declare class EventDataStoreMaxLimitExceededException extends __BaseExcep
|
|
|
834
835
|
constructor(opts: __ExceptionOptionType<EventDataStoreMaxLimitExceededException, __BaseException>);
|
|
835
836
|
}
|
|
836
837
|
/**
|
|
837
|
-
* <p>This exception is thrown when the IAM user or role that is used to create
|
|
838
|
-
*
|
|
839
|
-
*
|
|
838
|
+
* <p>This exception is thrown when the IAM user or role that is used to create
|
|
839
|
+
* the organization resource lacks one or more required permissions for
|
|
840
|
+
* creating an organization resource in a required service.</p>
|
|
840
841
|
*/
|
|
841
842
|
export declare class InsufficientDependencyServiceAccessPermissionException extends __BaseException {
|
|
842
843
|
readonly name: "InsufficientDependencyServiceAccessPermissionException";
|
|
@@ -851,9 +852,9 @@ export declare class InsufficientDependencyServiceAccessPermissionException exte
|
|
|
851
852
|
constructor(opts: __ExceptionOptionType<InsufficientDependencyServiceAccessPermissionException, __BaseException>);
|
|
852
853
|
}
|
|
853
854
|
/**
|
|
854
|
-
* <p>This exception is thrown when Organizations is not configured to support all
|
|
855
|
-
*
|
|
856
|
-
*
|
|
855
|
+
* <p>This exception is thrown when Organizations is not configured to support all
|
|
856
|
+
* features. All features must be enabled in Organizations to support
|
|
857
|
+
* creating an organization trail or event data store.</p>
|
|
857
858
|
*/
|
|
858
859
|
export declare class OrganizationNotInAllFeaturesModeException extends __BaseException {
|
|
859
860
|
readonly name: "OrganizationNotInAllFeaturesModeException";
|
|
@@ -2394,35 +2395,51 @@ export interface EventDataStore {
|
|
|
2394
2395
|
*/
|
|
2395
2396
|
Name?: string;
|
|
2396
2397
|
/**
|
|
2397
|
-
*
|
|
2398
|
+
* @deprecated
|
|
2399
|
+
*
|
|
2400
|
+
* <p>This field is being deprecated. Indicates whether the event data store is protected from termination.</p>
|
|
2398
2401
|
*/
|
|
2399
2402
|
TerminationProtectionEnabled?: boolean;
|
|
2400
2403
|
/**
|
|
2401
|
-
*
|
|
2404
|
+
* @deprecated
|
|
2405
|
+
*
|
|
2406
|
+
* <p>This field is being deprecated. The status of an event data store. Values are <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
|
|
2402
2407
|
*/
|
|
2403
2408
|
Status?: EventDataStoreStatus | string;
|
|
2404
2409
|
/**
|
|
2405
|
-
*
|
|
2410
|
+
* @deprecated
|
|
2411
|
+
*
|
|
2412
|
+
* <p>This field is being deprecated. The advanced event selectors that were used to select events for the data store.</p>
|
|
2406
2413
|
*/
|
|
2407
2414
|
AdvancedEventSelectors?: AdvancedEventSelector[];
|
|
2408
2415
|
/**
|
|
2409
|
-
*
|
|
2416
|
+
* @deprecated
|
|
2417
|
+
*
|
|
2418
|
+
* <p>This field is being deprecated. Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
|
|
2410
2419
|
*/
|
|
2411
2420
|
MultiRegionEnabled?: boolean;
|
|
2412
2421
|
/**
|
|
2413
|
-
*
|
|
2422
|
+
* @deprecated
|
|
2423
|
+
*
|
|
2424
|
+
* <p>This field is being deprecated. Indicates that an event data store is collecting logged events for an organization.</p>
|
|
2414
2425
|
*/
|
|
2415
2426
|
OrganizationEnabled?: boolean;
|
|
2416
2427
|
/**
|
|
2417
|
-
*
|
|
2428
|
+
* @deprecated
|
|
2429
|
+
*
|
|
2430
|
+
* <p>This field is being deprecated. The retention period, in days.</p>
|
|
2418
2431
|
*/
|
|
2419
2432
|
RetentionPeriod?: number;
|
|
2420
2433
|
/**
|
|
2421
|
-
*
|
|
2434
|
+
* @deprecated
|
|
2435
|
+
*
|
|
2436
|
+
* <p>This field is being deprecated. The timestamp of the event data store's creation.</p>
|
|
2422
2437
|
*/
|
|
2423
2438
|
CreatedTimestamp?: Date;
|
|
2424
2439
|
/**
|
|
2425
|
-
*
|
|
2440
|
+
* @deprecated
|
|
2441
|
+
*
|
|
2442
|
+
* <p>This field is being deprecated. The timestamp showing when an event data store was updated, if applicable. <code>UpdatedTimestamp</code> is always either the same or newer than the time shown in <code>CreatedTimestamp</code>.</p>
|
|
2426
2443
|
*/
|
|
2427
2444
|
UpdatedTimestamp?: Date;
|
|
2428
2445
|
}
|
|
@@ -2553,7 +2570,8 @@ export declare namespace ListPublicKeysResponse {
|
|
|
2553
2570
|
const filterSensitiveLog: (obj: ListPublicKeysResponse) => any;
|
|
2554
2571
|
}
|
|
2555
2572
|
/**
|
|
2556
|
-
* <p>A date range for the query was specified that is not valid.
|
|
2573
|
+
* <p>A date range for the query was specified that is not valid. Be sure that the start time is chronologically
|
|
2574
|
+
* before the end time. For more information
|
|
2557
2575
|
* about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
|
|
2558
2576
|
* or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
2559
2577
|
*/
|
|
@@ -2660,15 +2678,12 @@ export declare namespace ListQueriesResponse {
|
|
|
2660
2678
|
const filterSensitiveLog: (obj: ListQueriesResponse) => any;
|
|
2661
2679
|
}
|
|
2662
2680
|
/**
|
|
2663
|
-
* <p>Specifies a list of
|
|
2681
|
+
* <p>Specifies a list of tags to return.</p>
|
|
2664
2682
|
*/
|
|
2665
2683
|
export interface ListTagsRequest {
|
|
2666
2684
|
/**
|
|
2667
|
-
* <p>Specifies a list of trail ARNs whose tags will be listed. The list
|
|
2668
|
-
* a
|
|
2669
|
-
* <p>
|
|
2670
|
-
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
2671
|
-
* </p>
|
|
2685
|
+
* <p>Specifies a list of trail and event data store ARNs whose tags will be listed. The list
|
|
2686
|
+
* has a limit of 20 ARNs.</p>
|
|
2672
2687
|
*/
|
|
2673
2688
|
ResourceIdList: string[] | undefined;
|
|
2674
2689
|
/**
|
|
@@ -3131,13 +3146,15 @@ export declare namespace PutInsightSelectorsResponse {
|
|
|
3131
3146
|
const filterSensitiveLog: (obj: PutInsightSelectorsResponse) => any;
|
|
3132
3147
|
}
|
|
3133
3148
|
/**
|
|
3134
|
-
* <p>Specifies the tags to remove from a trail.</p>
|
|
3149
|
+
* <p>Specifies the tags to remove from a trail or event data store.</p>
|
|
3135
3150
|
*/
|
|
3136
3151
|
export interface RemoveTagsRequest {
|
|
3137
3152
|
/**
|
|
3138
|
-
* <p>Specifies the ARN of the trail from which tags should be removed
|
|
3153
|
+
* <p>Specifies the ARN of the trail or event data store from which tags should be removed.</p>
|
|
3139
3154
|
* <p>
|
|
3140
|
-
*
|
|
3155
|
+
* Example trail ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
|
|
3156
|
+
* </p>
|
|
3157
|
+
* <p>Example event data store ARN format: <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
|
|
3141
3158
|
* </p>
|
|
3142
3159
|
*/
|
|
3143
3160
|
ResourceId: string | undefined;
|
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.
|
|
4
|
+
"version": "3.79.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",
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.79.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.79.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.79.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
27
27
|
"@aws-sdk/middleware-content-length": "3.78.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.78.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.78.0",
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.79.0",
|
|
31
31
|
"@aws-sdk/middleware-serde": "3.78.0",
|
|
32
32
|
"@aws-sdk/middleware-signing": "3.78.0",
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.78.0",
|
|
34
34
|
"@aws-sdk/middleware-user-agent": "3.78.0",
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.79.0",
|
|
36
36
|
"@aws-sdk/node-http-handler": "3.78.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.78.0",
|
|
38
38
|
"@aws-sdk/smithy-client": "3.78.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-defaults-mode-browser": "3.78.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.79.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.78.0",
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.79.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
51
|
"tslib": "^2.3.1"
|