Skip to content

Commit 13baee3

Browse files
author
awstools
committed
feat(client-cloudtrail): Increases the retention period maximum to 2557 days. Deprecates unused fields of the ListEventDataStores API response. Updates documentation.
1 parent 12fb21d commit 13baee3

File tree

6 files changed

+117
-66
lines changed

6 files changed

+117
-66
lines changed

clients/client-cloudtrail/src/CloudTrail.ts

+11-6
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ import { UpdateTrailCommand, UpdateTrailCommandInput, UpdateTrailCommandOutput }
119119
*/
120120
export class CloudTrail extends CloudTrailClient {
121121
/**
122-
* <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key.
123-
* Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
124-
* If you specify a key without a value, the tag will be created with the specified key and a value of null.
125-
* You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).</p>
122+
* <p>Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an
123+
* existing tag's value when a new value is specified for an existing tag key.
124+
* Tag key names must be unique for a trail; you cannot have two keys with the same name but
125+
* different values.
126+
* If you specify a key without a value, the tag will be created with the specified key and a
127+
* value of null.
128+
* You can tag a trail or event data store that applies to all Amazon Web Services Regions
129+
* only from the Region in which the trail or event data store was created (also known as its
130+
* home region).</p>
126131
*/
127132
public addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
128133
public addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
@@ -674,7 +679,7 @@ export class CloudTrail extends CloudTrailClient {
674679
}
675680

676681
/**
677-
* <p>Lists the tags for the trail in the current region.</p>
682+
* <p>Lists the tags for the trail or event data store in the current region.</p>
678683
*/
679684
public listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
680685
public listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
@@ -913,7 +918,7 @@ export class CloudTrail extends CloudTrailClient {
913918
}
914919

915920
/**
916-
* <p>Removes the specified tags from a trail.</p>
921+
* <p>Removes the specified tags from a trail or event data store.</p>
917922
*/
918923
public removeTags(args: RemoveTagsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveTagsCommandOutput>;
919924
public removeTags(args: RemoveTagsCommandInput, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;

clients/client-cloudtrail/src/commands/AddTagsCommand.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ export interface AddTagsCommandInput extends AddTagsRequest {}
1919
export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {}
2020

2121
/**
22-
* <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key.
23-
* Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
24-
* If you specify a key without a value, the tag will be created with the specified key and a value of null.
25-
* You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).</p>
22+
* <p>Adds one or more tags to a trail or event data store, up to a limit of 50. Overwrites an
23+
* existing tag's value when a new value is specified for an existing tag key.
24+
* Tag key names must be unique for a trail; you cannot have two keys with the same name but
25+
* different values.
26+
* If you specify a key without a value, the tag will be created with the specified key and a
27+
* value of null.
28+
* You can tag a trail or event data store that applies to all Amazon Web Services Regions
29+
* only from the Region in which the trail or event data store was created (also known as its
30+
* home region).</p>
2631
* @example
2732
* Use a bare-bones client and the command you need to make an API call.
2833
* ```javascript

clients/client-cloudtrail/src/commands/ListTagsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface ListTagsCommandInput extends ListTagsRequest {}
1919
export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {}
2020

2121
/**
22-
* <p>Lists the tags for the trail in the current region.</p>
22+
* <p>Lists the tags for the trail or event data store in the current region.</p>
2323
* @example
2424
* Use a bare-bones client and the command you need to make an API call.
2525
* ```javascript

clients/client-cloudtrail/src/commands/RemoveTagsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface RemoveTagsCommandInput extends RemoveTagsRequest {}
2222
export interface RemoveTagsCommandOutput extends RemoveTagsResponse, __MetadataBearer {}
2323

2424
/**
25-
* <p>Removes the specified tags from a trail.</p>
25+
* <p>Removes the specified tags from a trail or event data store.</p>
2626
* @example
2727
* Use a bare-bones client and the command you need to make an API call.
2828
* ```javascript

clients/client-cloudtrail/src/models/models_0.ts

+47-30
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export namespace Tag {
2929
}
3030

3131
/**
32-
* <p>Specifies the tags to add to a trail.</p>
32+
* <p>Specifies the tags to add to a trail or event data store.</p>
3333
*/
3434
export interface AddTagsRequest {
3535
/**
36-
* <p>Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:</p>
36+
* <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>
3737
* <p>
3838
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
3939
* </p>
@@ -98,7 +98,7 @@ export class CloudTrailARNInvalidException extends __BaseException {
9898

9999
/**
100100
* <p>This exception is thrown when the specified resource is not ready for an operation.
101-
* This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail.
101+
* This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource.
102102
* If this exception occurs, wait a few minutes, and then try the operation again.</p>
103103
*/
104104
export class ConflictException extends __BaseException {
@@ -147,7 +147,7 @@ export class EventDataStoreNotFoundException extends __BaseException {
147147
}
148148

149149
/**
150-
* <p>The event data store against which you ran your query is inactive.</p>
150+
* <p>The event data store is inactive.</p>
151151
*/
152152
export class InactiveEventDataStoreException extends __BaseException {
153153
readonly name: "InactiveEventDataStoreException" = "InactiveEventDataStoreException";
@@ -238,9 +238,10 @@ export class InvalidTrailNameException extends __BaseException {
238238
}
239239

240240
/**
241-
* <p>This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail is not the management account for an
241+
* <p>This exception is thrown when the Amazon Web Services account making the request to create
242+
* or update an organization trail or event data store is not the management account for an
242243
* organization in Organizations. For more information, see
243-
* <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>
244+
* <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>
244245
*/
245246
export class NotOrganizationMasterAccountException extends __BaseException {
246247
readonly name: "NotOrganizationMasterAccountException" = "NotOrganizationMasterAccountException";
@@ -1072,9 +1073,9 @@ export class EventDataStoreMaxLimitExceededException extends __BaseException {
10721073
}
10731074

10741075
/**
1075-
* <p>This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for
1076-
* creating an organization trail in a required service. For more information, see
1077-
* <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>
1076+
* <p>This exception is thrown when the IAM user or role that is used to create
1077+
* the organization resource lacks one or more required permissions for
1078+
* creating an organization resource in a required service.</p>
10781079
*/
10791080
export class InsufficientDependencyServiceAccessPermissionException extends __BaseException {
10801081
readonly name: "InsufficientDependencyServiceAccessPermissionException" =
@@ -1099,9 +1100,9 @@ export class InsufficientDependencyServiceAccessPermissionException extends __Ba
10991100
}
11001101

11011102
/**
1102-
* <p>This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support
1103-
* creating an organization trail. For more information, see
1104-
* <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>
1103+
* <p>This exception is thrown when Organizations is not configured to support all
1104+
* features. All features must be enabled in Organizations to support
1105+
* creating an organization trail or event data store.</p>
11051106
*/
11061107
export class OrganizationNotInAllFeaturesModeException extends __BaseException {
11071108
readonly name: "OrganizationNotInAllFeaturesModeException" = "OrganizationNotInAllFeaturesModeException";
@@ -3091,42 +3092,58 @@ export interface EventDataStore {
30913092
Name?: string;
30923093

30933094
/**
3094-
* <p>Indicates whether the event data store is protected from termination.</p>
3095+
* @deprecated
3096+
*
3097+
* <p>This field is being deprecated. Indicates whether the event data store is protected from termination.</p>
30953098
*/
30963099
TerminationProtectionEnabled?: boolean;
30973100

30983101
/**
3099-
* <p>The status of an event data store. Values are <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
3102+
* @deprecated
3103+
*
3104+
* <p>This field is being deprecated. The status of an event data store. Values are <code>ENABLED</code> and <code>PENDING_DELETION</code>.</p>
31003105
*/
31013106
Status?: EventDataStoreStatus | string;
31023107

31033108
/**
3104-
* <p>The advanced event selectors that were used to select events for the data store.</p>
3109+
* @deprecated
3110+
*
3111+
* <p>This field is being deprecated. The advanced event selectors that were used to select events for the data store.</p>
31053112
*/
31063113
AdvancedEventSelectors?: AdvancedEventSelector[];
31073114

31083115
/**
3109-
* <p>Indicates whether the event data store includes events from all regions, or only from the region in which it was created.</p>
3116+
* @deprecated
3117+
*
3118+
* <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>
31103119
*/
31113120
MultiRegionEnabled?: boolean;
31123121

31133122
/**
3114-
* <p>Indicates that an event data store is collecting logged events for an organization.</p>
3123+
* @deprecated
3124+
*
3125+
* <p>This field is being deprecated. Indicates that an event data store is collecting logged events for an organization.</p>
31153126
*/
31163127
OrganizationEnabled?: boolean;
31173128

31183129
/**
3119-
* <p>The retention period, in days.</p>
3130+
* @deprecated
3131+
*
3132+
* <p>This field is being deprecated. The retention period, in days.</p>
31203133
*/
31213134
RetentionPeriod?: number;
31223135

31233136
/**
3124-
* <p>The timestamp of the event data store's creation.</p>
3137+
* @deprecated
3138+
*
3139+
* <p>This field is being deprecated. The timestamp of the event data store's creation.</p>
31253140
*/
31263141
CreatedTimestamp?: Date;
31273142

31283143
/**
3129-
* <p>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>
3144+
* @deprecated
3145+
*
3146+
* <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>
31303147
*/
31313148
UpdatedTimestamp?: Date;
31323149
}
@@ -3302,7 +3319,8 @@ export namespace ListPublicKeysResponse {
33023319
}
33033320

33043321
/**
3305-
* <p>A date range for the query was specified that is not valid. For more information
3322+
* <p>A date range for the query was specified that is not valid. Be sure that the start time is chronologically
3323+
* before the end time. For more information
33063324
* about writing a query, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create
33073325
* or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
33083326
*/
@@ -3447,15 +3465,12 @@ export namespace ListQueriesResponse {
34473465
}
34483466

34493467
/**
3450-
* <p>Specifies a list of trail tags to return.</p>
3468+
* <p>Specifies a list of tags to return.</p>
34513469
*/
34523470
export interface ListTagsRequest {
34533471
/**
3454-
* <p>Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of
3455-
* a trail ARN.</p>
3456-
* <p>
3457-
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
3458-
* </p>
3472+
* <p>Specifies a list of trail and event data store ARNs whose tags will be listed. The list
3473+
* has a limit of 20 ARNs.</p>
34593474
*/
34603475
ResourceIdList: string[] | undefined;
34613476

@@ -4044,13 +4059,15 @@ export namespace PutInsightSelectorsResponse {
40444059
}
40454060

40464061
/**
4047-
* <p>Specifies the tags to remove from a trail.</p>
4062+
* <p>Specifies the tags to remove from a trail or event data store.</p>
40484063
*/
40494064
export interface RemoveTagsRequest {
40504065
/**
4051-
* <p>Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:</p>
4066+
* <p>Specifies the ARN of the trail or event data store from which tags should be removed.</p>
40524067
* <p>
4053-
* <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
4068+
* Example trail ARN format: <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
4069+
* </p>
4070+
* <p>Example event data store ARN format: <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
40544071
* </p>
40554072
*/
40564073
ResourceId: string | undefined;

0 commit comments

Comments
 (0)