@aws-sdk/client-cloudtrail 3.451.0 → 3.452.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/dist-cjs/models/models_0.js +6 -2
- package/dist-cjs/protocols/Aws_json1_1.js +4 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +4 -0
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +1 -0
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +1 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +4 -2
- package/dist-types/models/models_0.d.ts +89 -6
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.ResourcePolicyNotValidException = exports.InvalidInsightSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.ImportFailureStatus = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = exports.ImportNotFoundException = exports.ImportStatus = exports.ReadWriteType = exports.DeliveryStatus = exports.NotOrganizationManagementAccountException = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.ResourcePolicyNotFoundException = exports.ResourceARNNotValidException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.ThrottlingException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyDisabledException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = void 0;
|
|
3
|
+
exports.InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsLogGroupArnException = exports.InsufficientSnsTopicPolicyException = exports.InsufficientS3BucketPolicyException = exports.CloudWatchLogsDeliveryUnavailableException = exports.CloudTrailInvalidClientTokenIdException = exports.OrganizationsNotInUseException = exports.OrganizationNotInAllFeaturesModeException = exports.KmsKeyNotFoundException = exports.KmsException = exports.InvalidKmsKeyIdException = exports.InvalidEventSelectorsException = exports.InsufficientEncryptionPolicyException = exports.InsufficientDependencyServiceAccessPermissionException = exports.EventDataStoreMaxLimitExceededException = exports.EventDataStoreAlreadyExistsException = exports.EventDataStoreStatus = exports.CloudTrailAccessNotEnabledException = exports.InvalidSourceException = exports.InvalidEventDataStoreCategoryException = exports.DestinationType = exports.ChannelMaxLimitExceededException = exports.ChannelExistsForEDSException = exports.ChannelAlreadyExistsException = exports.CannotDelegateManagementAccountException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = exports.QueryStatus = exports.BillingMode = exports.UnsupportedOperationException = exports.TagsLimitExceededException = exports.ResourceTypeNotSupportedException = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.NotOrganizationMasterAccountException = exports.NoManagementAccountSLRExistsException = exports.InvalidTrailNameException = exports.InvalidTagParameterException = exports.InactiveEventDataStoreException = exports.EventDataStoreNotFoundException = exports.EventDataStoreARNInvalidException = exports.ConflictException = exports.CloudTrailARNInvalidException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.AccountRegisteredException = exports.AccountNotRegisteredException = exports.AccountNotFoundException = exports.AccountHasOngoingImportException = void 0;
|
|
4
|
+
exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreStatusException = exports.DelegatedAdminAccountLimitExceededException = exports.ResourcePolicyNotValidException = exports.InvalidInsightSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.ImportFailureStatus = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = exports.ImportNotFoundException = exports.ImportStatus = exports.ReadWriteType = exports.DeliveryStatus = exports.NotOrganizationManagementAccountException = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.ResourcePolicyNotFoundException = exports.ResourceARNNotValidException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.ThrottlingException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyDisabledException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = exports.InvalidParameterCombinationException = void 0;
|
|
5
5
|
const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
|
|
6
6
|
class AccountHasOngoingImportException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -283,6 +283,10 @@ class UnsupportedOperationException extends CloudTrailServiceException_1.CloudTr
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
exports.UnsupportedOperationException = UnsupportedOperationException;
|
|
286
|
+
exports.BillingMode = {
|
|
287
|
+
EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING",
|
|
288
|
+
FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING",
|
|
289
|
+
};
|
|
286
290
|
exports.QueryStatus = {
|
|
287
291
|
CANCELLED: "CANCELLED",
|
|
288
292
|
FAILED: "FAILED",
|
|
@@ -3853,6 +3853,7 @@ const se_StartImportRequest = (input, context) => {
|
|
|
3853
3853
|
const de_CreateEventDataStoreResponse = (output, context) => {
|
|
3854
3854
|
return (0, smithy_client_1.take)(output, {
|
|
3855
3855
|
AdvancedEventSelectors: smithy_client_1._json,
|
|
3856
|
+
BillingMode: smithy_client_1.expectString,
|
|
3856
3857
|
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3857
3858
|
EventDataStoreArn: smithy_client_1.expectString,
|
|
3858
3859
|
KmsKeyId: smithy_client_1.expectString,
|
|
@@ -3933,6 +3934,7 @@ const de_GetChannelResponse = (output, context) => {
|
|
|
3933
3934
|
const de_GetEventDataStoreResponse = (output, context) => {
|
|
3934
3935
|
return (0, smithy_client_1.take)(output, {
|
|
3935
3936
|
AdvancedEventSelectors: smithy_client_1._json,
|
|
3937
|
+
BillingMode: smithy_client_1.expectString,
|
|
3936
3938
|
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3937
3939
|
EventDataStoreArn: smithy_client_1.expectString,
|
|
3938
3940
|
KmsKeyId: smithy_client_1.expectString,
|
|
@@ -4101,6 +4103,7 @@ const de_QueryStatisticsForDescribeQuery = (output, context) => {
|
|
|
4101
4103
|
const de_RestoreEventDataStoreResponse = (output, context) => {
|
|
4102
4104
|
return (0, smithy_client_1.take)(output, {
|
|
4103
4105
|
AdvancedEventSelectors: smithy_client_1._json,
|
|
4106
|
+
BillingMode: smithy_client_1.expectString,
|
|
4104
4107
|
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4105
4108
|
EventDataStoreArn: smithy_client_1.expectString,
|
|
4106
4109
|
KmsKeyId: smithy_client_1.expectString,
|
|
@@ -4141,6 +4144,7 @@ const de_StopImportResponse = (output, context) => {
|
|
|
4141
4144
|
const de_UpdateEventDataStoreResponse = (output, context) => {
|
|
4142
4145
|
return (0, smithy_client_1.take)(output, {
|
|
4143
4146
|
AdvancedEventSelectors: smithy_client_1._json,
|
|
4147
|
+
BillingMode: smithy_client_1.expectString,
|
|
4144
4148
|
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4145
4149
|
EventDataStoreArn: smithy_client_1.expectString,
|
|
4146
4150
|
KmsKeyId: smithy_client_1.expectString,
|
|
@@ -259,6 +259,10 @@ export class UnsupportedOperationException extends __BaseException {
|
|
|
259
259
|
this.Message = opts.Message;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
+
export const BillingMode = {
|
|
263
|
+
EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING",
|
|
264
|
+
FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING",
|
|
265
|
+
};
|
|
262
266
|
export const QueryStatus = {
|
|
263
267
|
CANCELLED: "CANCELLED",
|
|
264
268
|
FAILED: "FAILED",
|
|
@@ -3757,6 +3757,7 @@ const se_StartImportRequest = (input, context) => {
|
|
|
3757
3757
|
const de_CreateEventDataStoreResponse = (output, context) => {
|
|
3758
3758
|
return take(output, {
|
|
3759
3759
|
AdvancedEventSelectors: _json,
|
|
3760
|
+
BillingMode: __expectString,
|
|
3760
3761
|
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3761
3762
|
EventDataStoreArn: __expectString,
|
|
3762
3763
|
KmsKeyId: __expectString,
|
|
@@ -3837,6 +3838,7 @@ const de_GetChannelResponse = (output, context) => {
|
|
|
3837
3838
|
const de_GetEventDataStoreResponse = (output, context) => {
|
|
3838
3839
|
return take(output, {
|
|
3839
3840
|
AdvancedEventSelectors: _json,
|
|
3841
|
+
BillingMode: __expectString,
|
|
3840
3842
|
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3841
3843
|
EventDataStoreArn: __expectString,
|
|
3842
3844
|
KmsKeyId: __expectString,
|
|
@@ -4005,6 +4007,7 @@ const de_QueryStatisticsForDescribeQuery = (output, context) => {
|
|
|
4005
4007
|
const de_RestoreEventDataStoreResponse = (output, context) => {
|
|
4006
4008
|
return take(output, {
|
|
4007
4009
|
AdvancedEventSelectors: _json,
|
|
4010
|
+
BillingMode: __expectString,
|
|
4008
4011
|
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4009
4012
|
EventDataStoreArn: __expectString,
|
|
4010
4013
|
KmsKeyId: __expectString,
|
|
@@ -4045,6 +4048,7 @@ const de_StopImportResponse = (output, context) => {
|
|
|
4045
4048
|
const de_UpdateEventDataStoreResponse = (output, context) => {
|
|
4046
4049
|
return take(output, {
|
|
4047
4050
|
AdvancedEventSelectors: _json,
|
|
4051
|
+
BillingMode: __expectString,
|
|
4048
4052
|
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4049
4053
|
EventDataStoreArn: __expectString,
|
|
4050
4054
|
KmsKeyId: __expectString,
|
|
@@ -70,6 +70,7 @@ export interface CreateEventDataStoreCommandOutput extends CreateEventDataStoreR
|
|
|
70
70
|
* ],
|
|
71
71
|
* KmsKeyId: "STRING_VALUE",
|
|
72
72
|
* StartIngestion: true || false,
|
|
73
|
+
* BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
73
74
|
* };
|
|
74
75
|
* const command = new CreateEventDataStoreCommand(input);
|
|
75
76
|
* const response = await client.send(command);
|
|
@@ -116,6 +117,7 @@ export interface CreateEventDataStoreCommandOutput extends CreateEventDataStoreR
|
|
|
116
117
|
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
117
118
|
* // UpdatedTimestamp: new Date("TIMESTAMP"),
|
|
118
119
|
* // KmsKeyId: "STRING_VALUE",
|
|
120
|
+
* // BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
119
121
|
* // };
|
|
120
122
|
*
|
|
121
123
|
* ```
|
|
@@ -73,6 +73,7 @@ export interface GetEventDataStoreCommandOutput extends GetEventDataStoreRespons
|
|
|
73
73
|
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
74
74
|
* // UpdatedTimestamp: new Date("TIMESTAMP"),
|
|
75
75
|
* // KmsKeyId: "STRING_VALUE",
|
|
76
|
+
* // BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
76
77
|
* // };
|
|
77
78
|
*
|
|
78
79
|
* ```
|
|
@@ -75,6 +75,7 @@ export interface RestoreEventDataStoreCommandOutput extends RestoreEventDataStor
|
|
|
75
75
|
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
76
76
|
* // UpdatedTimestamp: new Date("TIMESTAMP"),
|
|
77
77
|
* // KmsKeyId: "STRING_VALUE",
|
|
78
|
+
* // BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
78
79
|
* // };
|
|
79
80
|
*
|
|
80
81
|
* ```
|
|
@@ -26,8 +26,8 @@ export interface UpdateEventDataStoreCommandOutput extends UpdateEventDataStoreR
|
|
|
26
26
|
* <p>Updates an event data store. The required <code>EventDataStore</code> value is an ARN or
|
|
27
27
|
* the ID portion of the ARN. Other parameters are optional, but at least one optional
|
|
28
28
|
* parameter must be specified, or CloudTrail throws an error.
|
|
29
|
-
* <code>RetentionPeriod</code> is in days, and valid values are integers between
|
|
30
|
-
* 2557
|
|
29
|
+
* <code>RetentionPeriod</code> is in days, and valid values are integers between 7 and
|
|
30
|
+
* 3653 if the <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, or between 7 and 2557 if <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>. By default, <code>TerminationProtection</code> is enabled.</p>
|
|
31
31
|
* <p>For event data stores for CloudTrail events, <code>AdvancedEventSelectors</code>
|
|
32
32
|
* includes or excludes management, data, or Insights events in your event data store. For more
|
|
33
33
|
* information about <code>AdvancedEventSelectors</code>, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html">AdvancedEventSelectors</a>.</p>
|
|
@@ -73,6 +73,7 @@ export interface UpdateEventDataStoreCommandOutput extends UpdateEventDataStoreR
|
|
|
73
73
|
* RetentionPeriod: Number("int"),
|
|
74
74
|
* TerminationProtectionEnabled: true || false,
|
|
75
75
|
* KmsKeyId: "STRING_VALUE",
|
|
76
|
+
* BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
76
77
|
* };
|
|
77
78
|
* const command = new UpdateEventDataStoreCommand(input);
|
|
78
79
|
* const response = await client.send(command);
|
|
@@ -113,6 +114,7 @@ export interface UpdateEventDataStoreCommandOutput extends UpdateEventDataStoreR
|
|
|
113
114
|
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
114
115
|
* // UpdatedTimestamp: new Date("TIMESTAMP"),
|
|
115
116
|
* // KmsKeyId: "STRING_VALUE",
|
|
117
|
+
* // BillingMode: "EXTENDABLE_RETENTION_PRICING" || "FIXED_RETENTION_PRICING",
|
|
116
118
|
* // };
|
|
117
119
|
*
|
|
118
120
|
* ```
|
|
@@ -1109,6 +1109,18 @@ export interface AdvancedEventSelector {
|
|
|
1109
1109
|
*/
|
|
1110
1110
|
FieldSelectors: AdvancedFieldSelector[] | undefined;
|
|
1111
1111
|
}
|
|
1112
|
+
/**
|
|
1113
|
+
* @public
|
|
1114
|
+
* @enum
|
|
1115
|
+
*/
|
|
1116
|
+
export declare const BillingMode: {
|
|
1117
|
+
readonly EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING";
|
|
1118
|
+
readonly FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING";
|
|
1119
|
+
};
|
|
1120
|
+
/**
|
|
1121
|
+
* @public
|
|
1122
|
+
*/
|
|
1123
|
+
export type BillingMode = (typeof BillingMode)[keyof typeof BillingMode];
|
|
1112
1124
|
/**
|
|
1113
1125
|
* @public
|
|
1114
1126
|
*/
|
|
@@ -1482,8 +1494,10 @@ export interface CreateEventDataStoreRequest {
|
|
|
1482
1494
|
OrganizationEnabled?: boolean;
|
|
1483
1495
|
/**
|
|
1484
1496
|
* @public
|
|
1485
|
-
* <p>The retention period of the event data store, in days.
|
|
1486
|
-
* up to
|
|
1497
|
+
* <p>The retention period of the event data store, in days. If <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of
|
|
1498
|
+
* up to 3653 days, the equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention period of
|
|
1499
|
+
* up to 2557 days, the equivalent of seven years.</p>
|
|
1500
|
+
* <p>CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code>
|
|
1487
1501
|
* of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events
|
|
1488
1502
|
* when the <code>eventTime</code> is older than 90 days.</p>
|
|
1489
1503
|
* <note>
|
|
@@ -1555,6 +1569,28 @@ export interface CreateEventDataStoreRequest {
|
|
|
1555
1569
|
* <p>Specifies whether the event data store should start ingesting live events. The default is true.</p>
|
|
1556
1570
|
*/
|
|
1557
1571
|
StartIngestion?: boolean;
|
|
1572
|
+
/**
|
|
1573
|
+
* @public
|
|
1574
|
+
* <p>The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.</p>
|
|
1575
|
+
* <p>The following are the possible values:</p>
|
|
1576
|
+
* <ul>
|
|
1577
|
+
* <li>
|
|
1578
|
+
* <p>
|
|
1579
|
+
* <code>EXTENDABLE_RETENTION_PRICING</code> - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years).
|
|
1580
|
+
* The default retention period for this billing mode is 366 days.</p>
|
|
1581
|
+
* </li>
|
|
1582
|
+
* <li>
|
|
1583
|
+
* <p>
|
|
1584
|
+
* <code>FIXED_RETENTION_PRICING</code> - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years).
|
|
1585
|
+
* The default retention period for this billing mode is 2557 days.</p>
|
|
1586
|
+
* </li>
|
|
1587
|
+
* </ul>
|
|
1588
|
+
* <p>The default value is <code>EXTENDABLE_RETENTION_PRICING</code>.</p>
|
|
1589
|
+
* <p>For more information about CloudTrail pricing,
|
|
1590
|
+
* see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a> and
|
|
1591
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html">Managing CloudTrail Lake costs</a>.</p>
|
|
1592
|
+
*/
|
|
1593
|
+
BillingMode?: BillingMode;
|
|
1558
1594
|
}
|
|
1559
1595
|
/**
|
|
1560
1596
|
* @public
|
|
@@ -1645,6 +1681,11 @@ export interface CreateEventDataStoreResponse {
|
|
|
1645
1681
|
* </p>
|
|
1646
1682
|
*/
|
|
1647
1683
|
KmsKeyId?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* @public
|
|
1686
|
+
* <p>The billing mode for the event data store.</p>
|
|
1687
|
+
*/
|
|
1688
|
+
BillingMode?: BillingMode;
|
|
1648
1689
|
}
|
|
1649
1690
|
/**
|
|
1650
1691
|
* @public
|
|
@@ -3054,6 +3095,11 @@ export interface GetEventDataStoreResponse {
|
|
|
3054
3095
|
* </p>
|
|
3055
3096
|
*/
|
|
3056
3097
|
KmsKeyId?: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* @public
|
|
3100
|
+
* <p>The billing mode for the event data store.</p>
|
|
3101
|
+
*/
|
|
3102
|
+
BillingMode?: BillingMode;
|
|
3057
3103
|
}
|
|
3058
3104
|
/**
|
|
3059
3105
|
* @public
|
|
@@ -4106,8 +4152,7 @@ export interface ListEventDataStoresRequest {
|
|
|
4106
4152
|
/**
|
|
4107
4153
|
* @public
|
|
4108
4154
|
* <p>A storage lake of event data against which you can run complex SQL-based queries. An
|
|
4109
|
-
* event data store can include events that you have logged on your account
|
|
4110
|
-
* to 2557 days (about three months to up to seven years). To select events for an event data
|
|
4155
|
+
* event data store can include events that you have logged on your account. To select events for an event data
|
|
4111
4156
|
* store, use <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">advanced event selectors</a>.</p>
|
|
4112
4157
|
*/
|
|
4113
4158
|
export interface EventDataStore {
|
|
@@ -5344,6 +5389,11 @@ export interface RestoreEventDataStoreResponse {
|
|
|
5344
5389
|
* </p>
|
|
5345
5390
|
*/
|
|
5346
5391
|
KmsKeyId?: string;
|
|
5392
|
+
/**
|
|
5393
|
+
* @public
|
|
5394
|
+
* <p>The billing mode for the event data store.</p>
|
|
5395
|
+
*/
|
|
5396
|
+
BillingMode?: BillingMode;
|
|
5347
5397
|
}
|
|
5348
5398
|
/**
|
|
5349
5399
|
* @public
|
|
@@ -5756,8 +5806,10 @@ export interface UpdateEventDataStoreRequest {
|
|
|
5756
5806
|
OrganizationEnabled?: boolean;
|
|
5757
5807
|
/**
|
|
5758
5808
|
* @public
|
|
5759
|
-
* <p>The retention period of the event data store, in days.
|
|
5760
|
-
* up to
|
|
5809
|
+
* <p>The retention period of the event data store, in days. If <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of
|
|
5810
|
+
* up to 3653 days, the equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention period of
|
|
5811
|
+
* up to 2557 days, the equivalent of seven years.</p>
|
|
5812
|
+
* <p>CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code>
|
|
5761
5813
|
* of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events
|
|
5762
5814
|
* when the <code>eventTime</code> is older than 90 days.</p>
|
|
5763
5815
|
* <note>
|
|
@@ -5814,6 +5866,32 @@ export interface UpdateEventDataStoreRequest {
|
|
|
5814
5866
|
* </ul>
|
|
5815
5867
|
*/
|
|
5816
5868
|
KmsKeyId?: string;
|
|
5869
|
+
/**
|
|
5870
|
+
* @public
|
|
5871
|
+
* <note>
|
|
5872
|
+
* <p>You can't change the billing mode from <code>EXTENDABLE_RETENTION_PRICING</code> to <code>FIXED_RETENTION_PRICING</code>. If <code>BillingMode</code> is set to
|
|
5873
|
+
* <code>EXTENDABLE_RETENTION_PRICING</code> and you want to use <code>FIXED_RETENTION_PRICING</code> instead, you'll need to stop ingestion on the event data store and create a new event data store that uses <code>FIXED_RETENTION_PRICING</code>.</p>
|
|
5874
|
+
* </note>
|
|
5875
|
+
* <p>The billing mode for the event data store determines the cost
|
|
5876
|
+
* for ingesting events and the default and maximum retention period for the event data store.</p>
|
|
5877
|
+
* <p>The following are the possible values:</p>
|
|
5878
|
+
* <ul>
|
|
5879
|
+
* <li>
|
|
5880
|
+
* <p>
|
|
5881
|
+
* <code>EXTENDABLE_RETENTION_PRICING</code> - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is
|
|
5882
|
+
* 366 days.</p>
|
|
5883
|
+
* </li>
|
|
5884
|
+
* <li>
|
|
5885
|
+
* <p>
|
|
5886
|
+
* <code>FIXED_RETENTION_PRICING</code> - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years).
|
|
5887
|
+
* The default retention period for this billing mode is 2557 days.</p>
|
|
5888
|
+
* </li>
|
|
5889
|
+
* </ul>
|
|
5890
|
+
* <p>For more information about CloudTrail pricing,
|
|
5891
|
+
* see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a> and
|
|
5892
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html">Managing CloudTrail Lake costs</a>.</p>
|
|
5893
|
+
*/
|
|
5894
|
+
BillingMode?: BillingMode;
|
|
5817
5895
|
}
|
|
5818
5896
|
/**
|
|
5819
5897
|
* @public
|
|
@@ -5882,6 +5960,11 @@ export interface UpdateEventDataStoreResponse {
|
|
|
5882
5960
|
* </p>
|
|
5883
5961
|
*/
|
|
5884
5962
|
KmsKeyId?: string;
|
|
5963
|
+
/**
|
|
5964
|
+
* @public
|
|
5965
|
+
* <p>The billing mode for the event data store.</p>
|
|
5966
|
+
*/
|
|
5967
|
+
BillingMode?: BillingMode;
|
|
5885
5968
|
}
|
|
5886
5969
|
/**
|
|
5887
5970
|
* @public
|
|
@@ -201,6 +201,11 @@ export interface AdvancedEventSelector {
|
|
|
201
201
|
Name?: string;
|
|
202
202
|
FieldSelectors: AdvancedFieldSelector[] | undefined;
|
|
203
203
|
}
|
|
204
|
+
export declare const BillingMode: {
|
|
205
|
+
readonly EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING";
|
|
206
|
+
readonly FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING";
|
|
207
|
+
};
|
|
208
|
+
export type BillingMode = (typeof BillingMode)[keyof typeof BillingMode];
|
|
204
209
|
export interface CancelQueryRequest {
|
|
205
210
|
EventDataStore?: string;
|
|
206
211
|
QueryId: string | undefined;
|
|
@@ -347,6 +352,7 @@ export interface CreateEventDataStoreRequest {
|
|
|
347
352
|
TagsList?: Tag[];
|
|
348
353
|
KmsKeyId?: string;
|
|
349
354
|
StartIngestion?: boolean;
|
|
355
|
+
BillingMode?: BillingMode;
|
|
350
356
|
}
|
|
351
357
|
export declare const EventDataStoreStatus: {
|
|
352
358
|
readonly CREATED: "CREATED";
|
|
@@ -371,6 +377,7 @@ export interface CreateEventDataStoreResponse {
|
|
|
371
377
|
CreatedTimestamp?: Date;
|
|
372
378
|
UpdatedTimestamp?: Date;
|
|
373
379
|
KmsKeyId?: string;
|
|
380
|
+
BillingMode?: BillingMode;
|
|
374
381
|
}
|
|
375
382
|
export declare class EventDataStoreAlreadyExistsException extends __BaseException {
|
|
376
383
|
readonly name: "EventDataStoreAlreadyExistsException";
|
|
@@ -830,6 +837,7 @@ export interface GetEventDataStoreResponse {
|
|
|
830
837
|
CreatedTimestamp?: Date;
|
|
831
838
|
UpdatedTimestamp?: Date;
|
|
832
839
|
KmsKeyId?: string;
|
|
840
|
+
BillingMode?: BillingMode;
|
|
833
841
|
}
|
|
834
842
|
export interface GetEventSelectorsRequest {
|
|
835
843
|
TrailName: string | undefined;
|
|
@@ -1315,6 +1323,7 @@ export interface RestoreEventDataStoreResponse {
|
|
|
1315
1323
|
CreatedTimestamp?: Date;
|
|
1316
1324
|
UpdatedTimestamp?: Date;
|
|
1317
1325
|
KmsKeyId?: string;
|
|
1326
|
+
BillingMode?: BillingMode;
|
|
1318
1327
|
}
|
|
1319
1328
|
export interface StartEventDataStoreIngestionRequest {
|
|
1320
1329
|
EventDataStore: string | undefined;
|
|
@@ -1416,6 +1425,7 @@ export interface UpdateEventDataStoreRequest {
|
|
|
1416
1425
|
RetentionPeriod?: number;
|
|
1417
1426
|
TerminationProtectionEnabled?: boolean;
|
|
1418
1427
|
KmsKeyId?: string;
|
|
1428
|
+
BillingMode?: BillingMode;
|
|
1419
1429
|
}
|
|
1420
1430
|
export interface UpdateEventDataStoreResponse {
|
|
1421
1431
|
EventDataStoreArn?: string;
|
|
@@ -1429,6 +1439,7 @@ export interface UpdateEventDataStoreResponse {
|
|
|
1429
1439
|
CreatedTimestamp?: Date;
|
|
1430
1440
|
UpdatedTimestamp?: Date;
|
|
1431
1441
|
KmsKeyId?: string;
|
|
1442
|
+
BillingMode?: BillingMode;
|
|
1432
1443
|
}
|
|
1433
1444
|
export interface UpdateTrailRequest {
|
|
1434
1445
|
Name: 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.452.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",
|