aws-sdk-cloudtrail 1.74.0 → 1.75.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91edac860f1d3195c8a03259a925c5a8561024b08857941651f3960933507423
4
- data.tar.gz: 23a753272c4869b98496f9462ac9c1d5ada370228dd2ef25559611ab25dca2ad
3
+ metadata.gz: 1894cf5fd4e3eb0fa034c855cb55b05f17903e62603c6e559e86ded3d1ca590c
4
+ data.tar.gz: 415105679ee0befcf6cd0f258c8a859bb88c69c7fbb9c1bf04ecd808d2d0d63c
5
5
  SHA512:
6
- metadata.gz: 9f4ce5eab5052adbebb1afa18cc74004962b5811ee1179455767d38b37f051036cddbd7baf7238a5cfd87b582e8158e98f4b6cde6d497ffed642dd0a95c6c4fb
7
- data.tar.gz: 73f9b634c44c4656db2b5d9fd388af1eba7e79211aa2d6ae4a8addcb7256839f3e5317784ad78bb0ad3154dce86b0d22b1779cd26873a385a8e66192afcd2a51
6
+ metadata.gz: f7c6c327842f3c30b86a8259a4b4d795c9de7e979c4d85e9e15f80dcbd2704f2c1e3cd969c04270213c14d5ea243f510a1a4935b467197c97c2cce10083c9b9b
7
+ data.tar.gz: e30da2cb3248ead42155656eb8e8a46bd0c7bd0a9dd00d4254bdeea5fd5632ad6bcf4a245b2f8f3bdcb2d045e2e8c012e3531de8617a12e92e5b6761d9d82a2e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2024-01-18)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new API ListInsightsMetricData to retrieve metric data from CloudTrail Insights.
8
+
4
9
  1.74.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.74.0
1
+ 1.75.0
@@ -862,11 +862,6 @@ module Aws::CloudTrail
862
862
  #
863
863
  # Not required unless you specify `CloudWatchLogsRoleArn`.
864
864
  #
865
- # <note markdown="1"> Only the management account can configure a CloudWatch Logs log group
866
- # for an organization trail.
867
- #
868
- # </note>
869
- #
870
865
  # @option params [String] :cloud_watch_logs_role_arn
871
866
  # Specifies the role for the CloudWatch Logs endpoint to assume to write
872
867
  # to a user's log group. You must use a role that exists in your
@@ -1240,11 +1235,12 @@ module Aws::CloudTrail
1240
1235
  end
1241
1236
 
1242
1237
  # Disables Lake query federation on the specified event data store. When
1243
- # you disable federation, CloudTrail removes the metadata associated
1244
- # with the federated event data store in the Glue Data Catalog and
1245
- # removes registration for the federation role ARN and event data store
1246
- # in Lake Formation. No CloudTrail Lake data is deleted when you disable
1247
- # federation.
1238
+ # you disable federation, CloudTrail disables the integration with Glue,
1239
+ # Lake Formation, and Amazon Athena. After disabling Lake query
1240
+ # federation, you can no longer query your event data in Amazon Athena.
1241
+ #
1242
+ # No CloudTrail Lake data is deleted when you disable federation and you
1243
+ # can continue to run queries in CloudTrail Lake.
1248
1244
  #
1249
1245
  # @option params [required, String] :event_data_store
1250
1246
  # The ARN (or ID suffix of the ARN) of the event data store for which
@@ -1282,13 +1278,13 @@ module Aws::CloudTrail
1282
1278
  # metadata stored in the Glue Data Catalog lets the Athena query engine
1283
1279
  # know how to find, read, and process the data that you want to query.
1284
1280
  #
1285
- # When you enable Lake query federation, CloudTrail creates a federated
1281
+ # When you enable Lake query federation, CloudTrail creates a managed
1286
1282
  # database named `aws:cloudtrail` (if the database doesn't already
1287
- # exist) and a federated table in the Glue Data Catalog. The event data
1288
- # store ID is used for the table name. CloudTrail registers the role ARN
1289
- # and event data store in [Lake Formation][2], the service responsible
1290
- # for revoking or granting permissions to the federated resources in the
1291
- # Glue Data Catalog.
1283
+ # exist) and a managed federated table in the Glue Data Catalog. The
1284
+ # event data store ID is used for the table name. CloudTrail registers
1285
+ # the role ARN and event data store in [Lake Formation][2], the service
1286
+ # responsible for allowing fine-grained access control of the federated
1287
+ # resources in the Glue Data Catalog.
1292
1288
  #
1293
1289
  # For more information about Lake query federation, see [Federate an
1294
1290
  # event data store][3].
@@ -1296,7 +1292,7 @@ module Aws::CloudTrail
1296
1292
  #
1297
1293
  #
1298
1294
  # [1]: https://docs.aws.amazon.com/glue/latest/dg/components-overview.html#data-catalog-intro
1299
- # [2]: https://docs.aws.amazon.com/lake-formation/latest/dg/how-it-works.html
1295
+ # [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation-lake-formation.html
1300
1296
  # [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html
1301
1297
  #
1302
1298
  # @option params [required, String] :event_data_store
@@ -2102,6 +2098,134 @@ module Aws::CloudTrail
2102
2098
  req.send_request(options)
2103
2099
  end
2104
2100
 
2101
+ # Returns Insights metrics data for trails that have enabled Insights.
2102
+ # The request must include the `EventSource`, `EventName`, and
2103
+ # `InsightType` parameters.
2104
+ #
2105
+ # If the `InsightType` is set to `ApiErrorRateInsight`, the request must
2106
+ # also include the `ErrorCode` parameter.
2107
+ #
2108
+ # The following are the available time periods for
2109
+ # `ListInsightsMetricData`. Each cutoff is inclusive.
2110
+ #
2111
+ # * Data points with a period of 60 seconds (1-minute) are available for
2112
+ # 15 days.
2113
+ #
2114
+ # * Data points with a period of 300 seconds (5-minute) are available
2115
+ # for 63 days.
2116
+ #
2117
+ # * Data points with a period of 3600 seconds (1 hour) are available for
2118
+ # 90 days.
2119
+ #
2120
+ # Access to the `ListInsightsMetricData` API operation is linked to the
2121
+ # `cloudtrail:LookupEvents` action. To use this operation, you must have
2122
+ # permissions to perform the `cloudtrail:LookupEvents` action.
2123
+ #
2124
+ # @option params [required, String] :event_source
2125
+ # The Amazon Web Services service to which the request was made, such as
2126
+ # `iam.amazonaws.com` or `s3.amazonaws.com`.
2127
+ #
2128
+ # @option params [required, String] :event_name
2129
+ # The name of the event, typically the Amazon Web Services API on which
2130
+ # unusual levels of activity were recorded.
2131
+ #
2132
+ # @option params [required, String] :insight_type
2133
+ # The type of CloudTrail Insights event, which is either
2134
+ # `ApiCallRateInsight` or `ApiErrorRateInsight`. The
2135
+ # `ApiCallRateInsight` Insights type analyzes write-only management API
2136
+ # calls that are aggregated per minute against a baseline API call
2137
+ # volume. The `ApiErrorRateInsight` Insights type analyzes management
2138
+ # API calls that result in error codes.
2139
+ #
2140
+ # @option params [String] :error_code
2141
+ # Conditionally required if the `InsightType` parameter is set to
2142
+ # `ApiErrorRateInsight`.
2143
+ #
2144
+ # If returning metrics for the `ApiErrorRateInsight` Insights type, this
2145
+ # is the error to retrieve data for. For example, `AccessDenied`.
2146
+ #
2147
+ # @option params [Time,DateTime,Date,Integer,String] :start_time
2148
+ # Specifies, in UTC, the start time for time-series data. The value
2149
+ # specified is inclusive; results include data points with the specified
2150
+ # time stamp.
2151
+ #
2152
+ # The default is 90 days before the time of request.
2153
+ #
2154
+ # @option params [Time,DateTime,Date,Integer,String] :end_time
2155
+ # Specifies, in UTC, the end time for time-series data. The value
2156
+ # specified is exclusive; results include data points up to the
2157
+ # specified time stamp.
2158
+ #
2159
+ # The default is the time of request.
2160
+ #
2161
+ # @option params [Integer] :period
2162
+ # Granularity of data to retrieve, in seconds. Valid values are `60`,
2163
+ # `300`, and `3600`. If you specify any other value, you will get an
2164
+ # error. The default is 3600 seconds.
2165
+ #
2166
+ # @option params [String] :data_type
2167
+ # Type of datapoints to return. Valid values are `NonZeroData` and
2168
+ # `FillWithZeros`. The default is `NonZeroData`.
2169
+ #
2170
+ # @option params [Integer] :max_results
2171
+ # The maximum number of datapoints to return. Valid values are integers
2172
+ # from 1 to 21600. The default value is 21600.
2173
+ #
2174
+ # @option params [String] :next_token
2175
+ # Returned if all datapoints can't be returned in a single call. For
2176
+ # example, due to reaching `MaxResults`.
2177
+ #
2178
+ # Add this parameter to the request to continue retrieving results
2179
+ # starting from the last evaluated point.
2180
+ #
2181
+ # @return [Types::ListInsightsMetricDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2182
+ #
2183
+ # * {Types::ListInsightsMetricDataResponse#event_source #event_source} => String
2184
+ # * {Types::ListInsightsMetricDataResponse#event_name #event_name} => String
2185
+ # * {Types::ListInsightsMetricDataResponse#insight_type #insight_type} => String
2186
+ # * {Types::ListInsightsMetricDataResponse#error_code #error_code} => String
2187
+ # * {Types::ListInsightsMetricDataResponse#timestamps #timestamps} => Array&lt;Time&gt;
2188
+ # * {Types::ListInsightsMetricDataResponse#values #values} => Array&lt;Float&gt;
2189
+ # * {Types::ListInsightsMetricDataResponse#next_token #next_token} => String
2190
+ #
2191
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2192
+ #
2193
+ # @example Request syntax with placeholder values
2194
+ #
2195
+ # resp = client.list_insights_metric_data({
2196
+ # event_source: "EventSource", # required
2197
+ # event_name: "EventName", # required
2198
+ # insight_type: "ApiCallRateInsight", # required, accepts ApiCallRateInsight, ApiErrorRateInsight
2199
+ # error_code: "ErrorCode",
2200
+ # start_time: Time.now,
2201
+ # end_time: Time.now,
2202
+ # period: 1,
2203
+ # data_type: "FillWithZeros", # accepts FillWithZeros, NonZeroData
2204
+ # max_results: 1,
2205
+ # next_token: "InsightsMetricNextToken",
2206
+ # })
2207
+ #
2208
+ # @example Response structure
2209
+ #
2210
+ # resp.event_source #=> String
2211
+ # resp.event_name #=> String
2212
+ # resp.insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
2213
+ # resp.error_code #=> String
2214
+ # resp.timestamps #=> Array
2215
+ # resp.timestamps[0] #=> Time
2216
+ # resp.values #=> Array
2217
+ # resp.values[0] #=> Float
2218
+ # resp.next_token #=> String
2219
+ #
2220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricData AWS API Documentation
2221
+ #
2222
+ # @overload list_insights_metric_data(params = {})
2223
+ # @param [Hash] params ({})
2224
+ def list_insights_metric_data(params = {}, options = {})
2225
+ req = build_request(:list_insights_metric_data, params)
2226
+ req.send_request(options)
2227
+ end
2228
+
2105
2229
  # Returns all public keys whose private keys were used to sign the
2106
2230
  # digest files within the specified time range. The public key is needed
2107
2231
  # to validate digest files that were signed with its corresponding
@@ -3305,13 +3429,14 @@ module Aws::CloudTrail
3305
3429
  # `TerminationProtection` is enabled.
3306
3430
  #
3307
3431
  # For event data stores for CloudTrail events, `AdvancedEventSelectors`
3308
- # includes or excludes management, data, or Insights events in your
3309
- # event data store. For more information about `AdvancedEventSelectors`,
3310
- # see [AdvancedEventSelectors][1].
3432
+ # includes or excludes management or data events in your event data
3433
+ # store. For more information about `AdvancedEventSelectors`, see
3434
+ # [AdvancedEventSelectors][1].
3311
3435
  #
3312
- # For event data stores for Config configuration items, Audit Manager
3313
- # evidence, or non-Amazon Web Services events, `AdvancedEventSelectors`
3314
- # includes events of that type in your event data store.
3436
+ # For event data stores for CloudTrail Insights events, Config
3437
+ # configuration items, Audit Manager evidence, or non-Amazon Web
3438
+ # Services events, `AdvancedEventSelectors` includes events of that type
3439
+ # in your event data store.
3315
3440
  #
3316
3441
  #
3317
3442
  #
@@ -3609,11 +3734,6 @@ module Aws::CloudTrail
3609
3734
  #
3610
3735
  # Not required unless you specify `CloudWatchLogsRoleArn`.
3611
3736
  #
3612
- # <note markdown="1"> Only the management account can configure a CloudWatch Logs log group
3613
- # for an organization trail.
3614
- #
3615
- # </note>
3616
- #
3617
3737
  # @option params [String] :cloud_watch_logs_role_arn
3618
3738
  # Specifies the role for the CloudWatch Logs endpoint to assume to write
3619
3739
  # to a user's log group. You must use a role that exists in your
@@ -3731,7 +3851,7 @@ module Aws::CloudTrail
3731
3851
  params: params,
3732
3852
  config: config)
3733
3853
  context[:gem_name] = 'aws-sdk-cloudtrail'
3734
- context[:gem_version] = '1.74.0'
3854
+ context[:gem_version] = '1.75.0'
3735
3855
  Seahorse::Client::Request.new(handlers, context)
3736
3856
  end
3737
3857
 
@@ -78,8 +78,10 @@ module Aws::CloudTrail
78
78
  Destinations = Shapes::ListShape.new(name: 'Destinations')
79
79
  DisableFederationRequest = Shapes::StructureShape.new(name: 'DisableFederationRequest')
80
80
  DisableFederationResponse = Shapes::StructureShape.new(name: 'DisableFederationResponse')
81
+ Double = Shapes::FloatShape.new(name: 'Double')
81
82
  EnableFederationRequest = Shapes::StructureShape.new(name: 'EnableFederationRequest')
82
83
  EnableFederationResponse = Shapes::StructureShape.new(name: 'EnableFederationResponse')
84
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
83
85
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
84
86
  Event = Shapes::StructureShape.new(name: 'Event')
85
87
  EventCategory = Shapes::StringShape.new(name: 'EventCategory')
@@ -96,8 +98,10 @@ module Aws::CloudTrail
96
98
  EventDataStoreStatus = Shapes::StringShape.new(name: 'EventDataStoreStatus')
97
99
  EventDataStoreTerminationProtectedException = Shapes::StructureShape.new(name: 'EventDataStoreTerminationProtectedException')
98
100
  EventDataStores = Shapes::ListShape.new(name: 'EventDataStores')
101
+ EventName = Shapes::StringShape.new(name: 'EventName')
99
102
  EventSelector = Shapes::StructureShape.new(name: 'EventSelector')
100
103
  EventSelectors = Shapes::ListShape.new(name: 'EventSelectors')
104
+ EventSource = Shapes::StringShape.new(name: 'EventSource')
101
105
  EventsList = Shapes::ListShape.new(name: 'EventsList')
102
106
  ExcludeManagementEventSources = Shapes::ListShape.new(name: 'ExcludeManagementEventSources')
103
107
  FederationRoleArn = Shapes::StringShape.new(name: 'FederationRoleArn')
@@ -137,6 +141,11 @@ module Aws::CloudTrail
137
141
  InsightSelector = Shapes::StructureShape.new(name: 'InsightSelector')
138
142
  InsightSelectors = Shapes::ListShape.new(name: 'InsightSelectors')
139
143
  InsightType = Shapes::StringShape.new(name: 'InsightType')
144
+ InsightsMetricDataType = Shapes::StringShape.new(name: 'InsightsMetricDataType')
145
+ InsightsMetricMaxResults = Shapes::IntegerShape.new(name: 'InsightsMetricMaxResults')
146
+ InsightsMetricNextToken = Shapes::StringShape.new(name: 'InsightsMetricNextToken')
147
+ InsightsMetricPeriod = Shapes::IntegerShape.new(name: 'InsightsMetricPeriod')
148
+ InsightsMetricValues = Shapes::ListShape.new(name: 'InsightsMetricValues')
140
149
  InsufficientDependencyServiceAccessPermissionException = Shapes::StructureShape.new(name: 'InsufficientDependencyServiceAccessPermissionException')
141
150
  InsufficientEncryptionPolicyException = Shapes::StructureShape.new(name: 'InsufficientEncryptionPolicyException')
142
151
  InsufficientS3BucketPolicyException = Shapes::StructureShape.new(name: 'InsufficientS3BucketPolicyException')
@@ -183,6 +192,8 @@ module Aws::CloudTrail
183
192
  ListImportsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportsMaxResultsCount')
184
193
  ListImportsRequest = Shapes::StructureShape.new(name: 'ListImportsRequest')
185
194
  ListImportsResponse = Shapes::StructureShape.new(name: 'ListImportsResponse')
195
+ ListInsightsMetricDataRequest = Shapes::StructureShape.new(name: 'ListInsightsMetricDataRequest')
196
+ ListInsightsMetricDataResponse = Shapes::StructureShape.new(name: 'ListInsightsMetricDataResponse')
186
197
  ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
187
198
  ListPublicKeysResponse = Shapes::StructureShape.new(name: 'ListPublicKeysResponse')
188
199
  ListQueriesMaxResultsCount = Shapes::IntegerShape.new(name: 'ListQueriesMaxResultsCount')
@@ -285,6 +296,7 @@ module Aws::CloudTrail
285
296
  TagsList = Shapes::ListShape.new(name: 'TagsList')
286
297
  TerminationProtectionEnabled = Shapes::BooleanShape.new(name: 'TerminationProtectionEnabled')
287
298
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
299
+ Timestamps = Shapes::ListShape.new(name: 'Timestamps')
288
300
  Trail = Shapes::StructureShape.new(name: 'Trail')
289
301
  TrailAlreadyExistsException = Shapes::StructureShape.new(name: 'TrailAlreadyExistsException')
290
302
  TrailInfo = Shapes::StructureShape.new(name: 'TrailInfo')
@@ -731,6 +743,8 @@ module Aws::CloudTrail
731
743
 
732
744
  InsightSelectors.member = Shapes::ShapeRef.new(shape: InsightSelector)
733
745
 
746
+ InsightsMetricValues.member = Shapes::ShapeRef.new(shape: Double)
747
+
734
748
  InsufficientDependencyServiceAccessPermissionException.struct_class = Types::InsufficientDependencyServiceAccessPermissionException
735
749
 
736
750
  InsufficientEncryptionPolicyException.struct_class = Types::InsufficientEncryptionPolicyException
@@ -832,6 +846,27 @@ module Aws::CloudTrail
832
846
  ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
833
847
  ListImportsResponse.struct_class = Types::ListImportsResponse
834
848
 
849
+ ListInsightsMetricDataRequest.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, required: true, location_name: "EventSource"))
850
+ ListInsightsMetricDataRequest.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, required: true, location_name: "EventName"))
851
+ ListInsightsMetricDataRequest.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, required: true, location_name: "InsightType"))
852
+ ListInsightsMetricDataRequest.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
853
+ ListInsightsMetricDataRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
854
+ ListInsightsMetricDataRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
855
+ ListInsightsMetricDataRequest.add_member(:period, Shapes::ShapeRef.new(shape: InsightsMetricPeriod, location_name: "Period"))
856
+ ListInsightsMetricDataRequest.add_member(:data_type, Shapes::ShapeRef.new(shape: InsightsMetricDataType, location_name: "DataType"))
857
+ ListInsightsMetricDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightsMetricMaxResults, location_name: "MaxResults"))
858
+ ListInsightsMetricDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: InsightsMetricNextToken, location_name: "NextToken"))
859
+ ListInsightsMetricDataRequest.struct_class = Types::ListInsightsMetricDataRequest
860
+
861
+ ListInsightsMetricDataResponse.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, location_name: "EventSource"))
862
+ ListInsightsMetricDataResponse.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, location_name: "EventName"))
863
+ ListInsightsMetricDataResponse.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
864
+ ListInsightsMetricDataResponse.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
865
+ ListInsightsMetricDataResponse.add_member(:timestamps, Shapes::ShapeRef.new(shape: Timestamps, location_name: "Timestamps"))
866
+ ListInsightsMetricDataResponse.add_member(:values, Shapes::ShapeRef.new(shape: InsightsMetricValues, location_name: "Values"))
867
+ ListInsightsMetricDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: InsightsMetricNextToken, location_name: "NextToken"))
868
+ ListInsightsMetricDataResponse.struct_class = Types::ListInsightsMetricDataResponse
869
+
835
870
  ListPublicKeysRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
836
871
  ListPublicKeysRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
837
872
  ListPublicKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -1105,6 +1140,8 @@ module Aws::CloudTrail
1105
1140
 
1106
1141
  ThrottlingException.struct_class = Types::ThrottlingException
1107
1142
 
1143
+ Timestamps.member = Shapes::ShapeRef.new(shape: Date)
1144
+
1108
1145
  Trail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
1109
1146
  Trail.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "S3BucketName"))
1110
1147
  Trail.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
@@ -1720,6 +1757,23 @@ module Aws::CloudTrail
1720
1757
  )
1721
1758
  end)
1722
1759
 
1760
+ api.add_operation(:list_insights_metric_data, Seahorse::Model::Operation.new.tap do |o|
1761
+ o.name = "ListInsightsMetricData"
1762
+ o.http_method = "POST"
1763
+ o.http_request_uri = "/"
1764
+ o.input = Shapes::ShapeRef.new(shape: ListInsightsMetricDataRequest)
1765
+ o.output = Shapes::ShapeRef.new(shape: ListInsightsMetricDataResponse)
1766
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1767
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1768
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1769
+ o[:pager] = Aws::Pager.new(
1770
+ limit_key: "max_results",
1771
+ tokens: {
1772
+ "next_token" => "next_token"
1773
+ }
1774
+ )
1775
+ end)
1776
+
1723
1777
  api.add_operation(:list_public_keys, Seahorse::Model::Operation.new.tap do |o|
1724
1778
  o.name = "ListPublicKeys"
1725
1779
  o.http_method = "POST"
@@ -390,6 +390,20 @@ module Aws::CloudTrail
390
390
  end
391
391
  end
392
392
 
393
+ class ListInsightsMetricData
394
+ def self.build(context)
395
+ unless context.config.regional_endpoint
396
+ endpoint = context.config.endpoint.to_s
397
+ end
398
+ Aws::CloudTrail::EndpointParameters.new(
399
+ region: context.config.region,
400
+ use_dual_stack: context.config.use_dualstack_endpoint,
401
+ use_fips: context.config.use_fips_endpoint,
402
+ endpoint: endpoint,
403
+ )
404
+ end
405
+ end
406
+
393
407
  class ListPublicKeys
394
408
  def self.build(context)
395
409
  unless context.config.regional_endpoint
@@ -111,6 +111,8 @@ module Aws::CloudTrail
111
111
  Aws::CloudTrail::Endpoints::ListImportFailures.build(context)
112
112
  when :list_imports
113
113
  Aws::CloudTrail::Endpoints::ListImports.build(context)
114
+ when :list_insights_metric_data
115
+ Aws::CloudTrail::Endpoints::ListInsightsMetricData.build(context)
114
116
  when :list_public_keys
115
117
  Aws::CloudTrail::Endpoints::ListPublicKeys.build(context)
116
118
  when :list_queries
@@ -127,17 +127,20 @@ module Aws::CloudTrail
127
127
  #
128
128
  # @!attribute [rw] field
129
129
  # A field in a CloudTrail event record on which to filter events to be
130
- # logged. For event data stores for Config configuration items, Audit
131
- # Manager evidence, or non-Amazon Web Services events, the field is
132
- # used only for selecting events as filtering is not supported.
130
+ # logged. For event data stores for CloudTrail Insights events, Config
131
+ # configuration items, Audit Manager evidence, or events outside of
132
+ # Amazon Web Services, the field is used only for selecting events as
133
+ # filtering is not supported.
133
134
  #
134
- # For CloudTrail event records, supported fields include `readOnly`,
135
- # `eventCategory`, `eventSource` (for management events), `eventName`,
136
- # `resources.type`, and `resources.ARN`.
135
+ # For CloudTrail management events, supported fields include
136
+ # `readOnly`, `eventCategory`, and `eventSource`.
137
137
  #
138
- # For event data stores for Config configuration items, Audit Manager
139
- # evidence, or non-Amazon Web Services events, the only supported
140
- # field is `eventCategory`.
138
+ # For CloudTrail data events, supported fields include `readOnly`,
139
+ # `eventCategory`, `eventName`, `resources.type`, and `resources.ARN`.
140
+ #
141
+ # For event data stores for CloudTrail Insights events, Config
142
+ # configuration items, Audit Manager evidence, or events outside of
143
+ # Amazon Web Services, the only supported field is `eventCategory`.
141
144
  #
142
145
  # * <b> <code>readOnly</code> </b> - Optional. Can be set to `Equals`
143
146
  # a value of `true` or `false`. If you do not add this field,
@@ -157,11 +160,14 @@ module Aws::CloudTrail
157
160
  # * <b> <code>eventCategory</code> </b> - This is required and must be
158
161
  # set to `Equals`.
159
162
  #
160
- # * For CloudTrail event records, the value must be `Management` or
161
- # `Data`.
163
+ # * For CloudTrail management events, the value must be
164
+ # `Management`.
165
+ #
166
+ # * For CloudTrail data events, the value must be `Data`.
162
167
  #
163
- # * For CloudTrail Insights event records, the value must be
164
- # `Insight`.
168
+ # The following are used only for event data stores:
169
+ #
170
+ # * For CloudTrail Insights events, the value must be `Insight`.
165
171
  #
166
172
  # * For Config configuration items, the value must be
167
173
  # `ConfigurationItem`.
@@ -181,6 +187,16 @@ module Aws::CloudTrail
181
187
  #
182
188
  # * `AWS::S3::Object`
183
189
  #
190
+ # * `AWS::B2BI::Transformer`
191
+ #
192
+ # * `AWS::Bedrock::AgentAlias`
193
+ #
194
+ # * `AWS::Bedrock::KnowledgeBase`
195
+ #
196
+ # * `AWS::Cassandra::Table`
197
+ #
198
+ # * `AWS::CloudFront::KeyValueStore`
199
+ #
184
200
  # * `AWS::CloudTrail::Channel`
185
201
  #
186
202
  # * `AWS::CodeWhisperer::Customization`
@@ -201,6 +217,10 @@ module Aws::CloudTrail
201
217
  #
202
218
  # * `AWS::GuardDuty::Detector`
203
219
  #
220
+ # * `AWS::IoTTwinMaker::Entity`
221
+ #
222
+ # * `AWS::IoTTwinMaker::Workspace`
223
+ #
204
224
  # * `AWS::KendraRanking::ExecutionPlan`
205
225
  #
206
226
  # * `AWS::KinesisVideo::Stream`
@@ -211,18 +231,38 @@ module Aws::CloudTrail
211
231
  #
212
232
  # * `AWS::MedicalImaging::Datastore`
213
233
  #
234
+ # * `AWS::NeptuneGraph::Graph`
235
+ #
214
236
  # * `AWS::PCAConnectorAD::Connector`
215
237
  #
238
+ # * `AWS::QBusiness::Application`
239
+ #
240
+ # * `AWS::QBusiness::DataSource`
241
+ #
242
+ # * `AWS::QBusiness::Index`
243
+ #
244
+ # * `AWS::QBusiness::WebExperience`
245
+ #
246
+ # * `AWS::RDS::DBCluster`
247
+ #
216
248
  # * `AWS::SageMaker::Endpoint`
217
249
  #
218
250
  # * `AWS::SageMaker::ExperimentTrialComponent`
219
251
  #
220
252
  # * `AWS::SageMaker::FeatureGroup`
221
253
  #
254
+ # * `AWS::ServiceDiscovery::Namespace `
255
+ #
256
+ # * `AWS::ServiceDiscovery::Service`
257
+ #
258
+ # * `AWS::SCN::Instance`
259
+ #
222
260
  # * `AWS::SNS::PlatformEndpoint`
223
261
  #
224
262
  # * `AWS::SNS::Topic`
225
263
  #
264
+ # * `AWS::SQS::Queue`
265
+ #
226
266
  # * `AWS::S3::AccessPoint`
227
267
  #
228
268
  # * `AWS::S3ObjectLambda::AccessPoint`
@@ -231,6 +271,10 @@ module Aws::CloudTrail
231
271
  #
232
272
  # * `AWS::SSMMessages::ControlChannel`
233
273
  #
274
+ # * `AWS::ThinClient::Device`
275
+ #
276
+ # * `AWS::ThinClient::Environment`
277
+ #
234
278
  # * `AWS::Timestream::Database`
235
279
  #
236
280
  # * `AWS::Timestream::Table`
@@ -273,6 +317,46 @@ module Aws::CloudTrail
273
317
  #
274
318
  # ^
275
319
  #
320
+ # When resources.type equals `AWS::B2BI::Transformer`, and the
321
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
322
+ # following format:
323
+ #
324
+ # * `arn:<partition>:b2bi:<region>:<account_ID>:transformer/<transformer_ID>`
325
+ #
326
+ # ^
327
+ #
328
+ # When resources.type equals `AWS::Bedrock::AgentAlias`, and the
329
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
330
+ # following format:
331
+ #
332
+ # * `arn:<partition>:bedrock:<region>:<account_ID>:agent-alias/<agent_ID>/<alias_ID>`
333
+ #
334
+ # ^
335
+ #
336
+ # When resources.type equals `AWS::Bedrock::KnowledgeBase`, and the
337
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
338
+ # following format:
339
+ #
340
+ # * `arn:<partition>:bedrock:<region>:<account_ID>:knowledge-base/<knowledge_base_ID>`
341
+ #
342
+ # ^
343
+ #
344
+ # When resources.type equals `AWS::Cassandra::Table`, and the
345
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
346
+ # following format:
347
+ #
348
+ # * `arn:<partition>:cassandra:<region>:<account_ID>:/keyspace/<keyspace_name>/table/<table_name>`
349
+ #
350
+ # ^
351
+ #
352
+ # When resources.type equals `AWS::CloudFront::KeyValueStore`, and
353
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
354
+ # the following format:
355
+ #
356
+ # * `arn:<partition>:cloudfront:<region>:<account_ID>:key-value-store/<KVS_name>`
357
+ #
358
+ # ^
359
+ #
276
360
  # When resources.type equals `AWS::CloudTrail::Channel`, and the
277
361
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
278
362
  # following format:
@@ -325,7 +409,7 @@ module Aws::CloudTrail
325
409
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
326
410
  # following format:
327
411
  #
328
- # * `arn:<partition>:emrwal:<region>::workspace/<workspace_name>`
412
+ # * `arn:<partition>:emrwal:<region>:<account_ID>:workspace/<workspace_name>`
329
413
  #
330
414
  # ^
331
415
  #
@@ -353,6 +437,22 @@ module Aws::CloudTrail
353
437
  #
354
438
  # ^
355
439
  #
440
+ # When `resources.type` equals `AWS::IoTTwinMaker::Entity`, and the
441
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
442
+ # following format:
443
+ #
444
+ # * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>/entity/<entity_ID>`
445
+ #
446
+ # ^
447
+ #
448
+ # When `resources.type` equals `AWS::IoTTwinMaker::Workspace`, and
449
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
450
+ # the following format:
451
+ #
452
+ # * `arn:<partition>:iottwinmaker:<region>:<account_ID>:workspace/<workspace_ID>`
453
+ #
454
+ # ^
455
+ #
356
456
  # When `resources.type` equals `AWS::KendraRanking::ExecutionPlan`,
357
457
  # and the operator is set to `Equals` or `NotEquals`, the ARN must
358
458
  # be in the following format:
@@ -365,7 +465,7 @@ module Aws::CloudTrail
365
465
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
366
466
  # following format:
367
467
  #
368
- # * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name/<creation_time>`
468
+ # * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name>/<creation_time>`
369
469
  #
370
470
  # ^
371
471
  #
@@ -393,6 +493,14 @@ module Aws::CloudTrail
393
493
  #
394
494
  # ^
395
495
  #
496
+ # When `resources.type` equals `AWS::NeptuneGraph::Graph`, and the
497
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
498
+ # following format:
499
+ #
500
+ # * `arn:<partition>:neptune-graph:<region>:<account_ID>:graph/<graph_ID>`
501
+ #
502
+ # ^
503
+ #
396
504
  # When `resources.type` equals `AWS::PCAConnectorAD::Connector`, and
397
505
  # the operator is set to `Equals` or `NotEquals`, the ARN must be in
398
506
  # the following format:
@@ -401,6 +509,46 @@ module Aws::CloudTrail
401
509
  #
402
510
  # ^
403
511
  #
512
+ # When `resources.type` equals `AWS::QBusiness::Application`, and
513
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
514
+ # the following format:
515
+ #
516
+ # * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>`
517
+ #
518
+ # ^
519
+ #
520
+ # When `resources.type` equals `AWS::QBusiness::DataSource`, and the
521
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
522
+ # following format:
523
+ #
524
+ # * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>/data-source/<datasource_ID>`
525
+ #
526
+ # ^
527
+ #
528
+ # When `resources.type` equals `AWS::QBusiness::Index`, and the
529
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
530
+ # following format:
531
+ #
532
+ # * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/index/<index_ID>`
533
+ #
534
+ # ^
535
+ #
536
+ # When `resources.type` equals `AWS::QBusiness::WebExperience`, and
537
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
538
+ # the following format:
539
+ #
540
+ # * `arn:<partition>:qbusiness:<region>:<account_ID>:application/<application_ID>/web-experience/<web_experience_ID>`
541
+ #
542
+ # ^
543
+ #
544
+ # When `resources.type` equals `AWS::RDS::DBCluster`, and the
545
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
546
+ # following format:
547
+ #
548
+ # * `arn:<partition>:rds:<region>:<account_ID>:cluster/<cluster_name>`
549
+ #
550
+ # ^
551
+ #
404
552
  # When `resources.type` equals `AWS::SageMaker::Endpoint`, and the
405
553
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
406
554
  # following format:
@@ -426,6 +574,30 @@ module Aws::CloudTrail
426
574
  #
427
575
  # ^
428
576
  #
577
+ # When `resources.type` equals `AWS::SCN::Instance`, and the
578
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
579
+ # following format:
580
+ #
581
+ # * `arn:<partition>:scn:<region>:<account_ID>:instance/<instance_ID>`
582
+ #
583
+ # ^
584
+ #
585
+ # When `resources.type` equals `AWS::ServiceDiscovery::Namespace`,
586
+ # and the operator is set to `Equals` or `NotEquals`, the ARN must
587
+ # be in the following format:
588
+ #
589
+ # * `arn:<partition>:servicediscovery:<region>:<account_ID>:namespace/<namespace_ID>`
590
+ #
591
+ # ^
592
+ #
593
+ # When `resources.type` equals `AWS::ServiceDiscovery::Service`, and
594
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
595
+ # the following format:
596
+ #
597
+ # * `arn:<partition>:servicediscovery:<region>:<account_ID>:service/<service_ID>`
598
+ #
599
+ # ^
600
+ #
429
601
  # When `resources.type` equals `AWS::SNS::PlatformEndpoint`, and the
430
602
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
431
603
  # following format:
@@ -442,6 +614,14 @@ module Aws::CloudTrail
442
614
  #
443
615
  # ^
444
616
  #
617
+ # When `resources.type` equals `AWS::SQS::Queue`, and the operator
618
+ # is set to `Equals` or `NotEquals`, the ARN must be in the
619
+ # following format:
620
+ #
621
+ # * `arn:<partition>:sqs:<region>:<account_ID>:<queue_name>`
622
+ #
623
+ # ^
624
+ #
445
625
  # When `resources.type` equals `AWS::S3::AccessPoint`, and the
446
626
  # operator is set to `Equals` or `NotEquals`, the ARN must be in one
447
627
  # of the following formats. To log events on all objects in an S3
@@ -477,6 +657,22 @@ module Aws::CloudTrail
477
657
  #
478
658
  # ^
479
659
  #
660
+ # When `resources.type` equals `AWS::ThinClient::Device`, and the
661
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
662
+ # following format:
663
+ #
664
+ # * `arn:<partition>:thinclient:<region>:<account_ID>:device/<device_ID>`
665
+ #
666
+ # ^
667
+ #
668
+ # When `resources.type` equals `AWS::ThinClient::Environment`, and
669
+ # the operator is set to `Equals` or `NotEquals`, the ARN must be in
670
+ # the following format:
671
+ #
672
+ # * `arn:<partition>:thinclient:<region>:<account_ID>:environment/<environment_ID>`
673
+ #
674
+ # ^
675
+ #
480
676
  # When `resources.type` equals `AWS::Timestream::Database`, and the
481
677
  # operator is set to `Equals` or `NotEquals`, the ARN must be in the
482
678
  # following format:
@@ -1106,11 +1302,6 @@ module Aws::CloudTrail
1106
1302
  # account.
1107
1303
  #
1108
1304
  # Not required unless you specify `CloudWatchLogsRoleArn`.
1109
- #
1110
- # <note markdown="1"> Only the management account can configure a CloudWatch Logs log
1111
- # group for an organization trail.
1112
- #
1113
- # </note>
1114
1305
  # @return [String]
1115
1306
  #
1116
1307
  # @!attribute [rw] cloud_watch_logs_role_arn
@@ -1339,67 +1530,9 @@ module Aws::CloudTrail
1339
1530
  #
1340
1531
  # * `AWS::S3::Object`
1341
1532
  #
1342
- # The following resource types are also available through *advanced*
1343
- # event selectors. Basic event selector resource types are valid in
1344
- # advanced event selectors, but advanced event selector resource types
1345
- # are not valid in basic event selectors. For more information, see
1346
- # [AdvancedFieldSelector][1].
1347
- #
1348
- # * `AWS::CloudTrail::Channel`
1349
- #
1350
- # * `AWS::CodeWhisperer::Customization`
1351
- #
1352
- # * `AWS::CodeWhisperer::Profile`
1353
- #
1354
- # * `AWS::Cognito::IdentityPool`
1355
- #
1356
- # * `AWS::DynamoDB::Stream`
1357
- #
1358
- # * `AWS::EC2::Snapshot`
1359
- #
1360
- # * `AWS::EMRWAL::Workspace`
1361
- #
1362
- # * `AWS::FinSpace::Environment`
1363
- #
1364
- # * `AWS::Glue::Table`
1365
- #
1366
- # * `AWS::GuardDuty::Detector`
1367
- #
1368
- # * `AWS::KendraRanking::ExecutionPlan`
1369
- #
1370
- # * `AWS::KinesisVideo::Stream`
1371
- #
1372
- # * `AWS::ManagedBlockchain::Network`
1373
- #
1374
- # * `AWS::ManagedBlockchain::Node`
1375
- #
1376
- # * `AWS::MedicalImaging::Datastore`
1377
- #
1378
- # * `AWS::PCAConnectorAD::Connector`
1379
- #
1380
- # * `AWS::SageMaker::Endpoint`
1381
- #
1382
- # * `AWS::SageMaker::ExperimentTrialComponent`
1383
- #
1384
- # * `AWS::SageMaker::FeatureGroup`
1385
- #
1386
- # * `AWS::SNS::PlatformEndpoint`
1387
- #
1388
- # * `AWS::SNS::Topic`
1389
- #
1390
- # * `AWS::S3::AccessPoint`
1391
- #
1392
- # * `AWS::S3ObjectLambda::AccessPoint`
1393
- #
1394
- # * `AWS::S3Outposts::Object`
1395
- #
1396
- # * `AWS::SSMMessages::ControlChannel`
1397
- #
1398
- # * `AWS::Timestream::Database`
1399
- #
1400
- # * `AWS::Timestream::Table`
1401
- #
1402
- # * `AWS::VerifiedPermissions::PolicyStore`
1533
+ # Additional resource types are available through *advanced* event
1534
+ # selectors. For more information about these additional resource
1535
+ # types, see [AdvancedFieldSelector][1].
1403
1536
  #
1404
1537
  #
1405
1538
  #
@@ -1712,7 +1845,7 @@ module Aws::CloudTrail
1712
1845
  # @!attribute [rw] type
1713
1846
  # The type of destination for events arriving from a channel. For
1714
1847
  # channels used for a CloudTrail Lake integration, the value is
1715
- # `EventDataStore`. For service-linked channels, the value is
1848
+ # `EVENT_DATA_STORE`. For service-linked channels, the value is
1716
1849
  # `AWS_SERVICE`.
1717
1850
  # @return [String]
1718
1851
  #
@@ -3371,6 +3504,148 @@ module Aws::CloudTrail
3371
3504
  include Aws::Structure
3372
3505
  end
3373
3506
 
3507
+ # @!attribute [rw] event_source
3508
+ # The Amazon Web Services service to which the request was made, such
3509
+ # as `iam.amazonaws.com` or `s3.amazonaws.com`.
3510
+ # @return [String]
3511
+ #
3512
+ # @!attribute [rw] event_name
3513
+ # The name of the event, typically the Amazon Web Services API on
3514
+ # which unusual levels of activity were recorded.
3515
+ # @return [String]
3516
+ #
3517
+ # @!attribute [rw] insight_type
3518
+ # The type of CloudTrail Insights event, which is either
3519
+ # `ApiCallRateInsight` or `ApiErrorRateInsight`. The
3520
+ # `ApiCallRateInsight` Insights type analyzes write-only management
3521
+ # API calls that are aggregated per minute against a baseline API call
3522
+ # volume. The `ApiErrorRateInsight` Insights type analyzes management
3523
+ # API calls that result in error codes.
3524
+ # @return [String]
3525
+ #
3526
+ # @!attribute [rw] error_code
3527
+ # Conditionally required if the `InsightType` parameter is set to
3528
+ # `ApiErrorRateInsight`.
3529
+ #
3530
+ # If returning metrics for the `ApiErrorRateInsight` Insights type,
3531
+ # this is the error to retrieve data for. For example, `AccessDenied`.
3532
+ # @return [String]
3533
+ #
3534
+ # @!attribute [rw] start_time
3535
+ # Specifies, in UTC, the start time for time-series data. The value
3536
+ # specified is inclusive; results include data points with the
3537
+ # specified time stamp.
3538
+ #
3539
+ # The default is 90 days before the time of request.
3540
+ # @return [Time]
3541
+ #
3542
+ # @!attribute [rw] end_time
3543
+ # Specifies, in UTC, the end time for time-series data. The value
3544
+ # specified is exclusive; results include data points up to the
3545
+ # specified time stamp.
3546
+ #
3547
+ # The default is the time of request.
3548
+ # @return [Time]
3549
+ #
3550
+ # @!attribute [rw] period
3551
+ # Granularity of data to retrieve, in seconds. Valid values are `60`,
3552
+ # `300`, and `3600`. If you specify any other value, you will get an
3553
+ # error. The default is 3600 seconds.
3554
+ # @return [Integer]
3555
+ #
3556
+ # @!attribute [rw] data_type
3557
+ # Type of datapoints to return. Valid values are `NonZeroData` and
3558
+ # `FillWithZeros`. The default is `NonZeroData`.
3559
+ # @return [String]
3560
+ #
3561
+ # @!attribute [rw] max_results
3562
+ # The maximum number of datapoints to return. Valid values are
3563
+ # integers from 1 to 21600. The default value is 21600.
3564
+ # @return [Integer]
3565
+ #
3566
+ # @!attribute [rw] next_token
3567
+ # Returned if all datapoints can't be returned in a single call. For
3568
+ # example, due to reaching `MaxResults`.
3569
+ #
3570
+ # Add this parameter to the request to continue retrieving results
3571
+ # starting from the last evaluated point.
3572
+ # @return [String]
3573
+ #
3574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataRequest AWS API Documentation
3575
+ #
3576
+ class ListInsightsMetricDataRequest < Struct.new(
3577
+ :event_source,
3578
+ :event_name,
3579
+ :insight_type,
3580
+ :error_code,
3581
+ :start_time,
3582
+ :end_time,
3583
+ :period,
3584
+ :data_type,
3585
+ :max_results,
3586
+ :next_token)
3587
+ SENSITIVE = []
3588
+ include Aws::Structure
3589
+ end
3590
+
3591
+ # @!attribute [rw] event_source
3592
+ # The Amazon Web Services service to which the request was made, such
3593
+ # as `iam.amazonaws.com` or `s3.amazonaws.com`.
3594
+ # @return [String]
3595
+ #
3596
+ # @!attribute [rw] event_name
3597
+ # The name of the event, typically the Amazon Web Services API on
3598
+ # which unusual levels of activity were recorded.
3599
+ # @return [String]
3600
+ #
3601
+ # @!attribute [rw] insight_type
3602
+ # The type of CloudTrail Insights event, which is either
3603
+ # `ApiCallRateInsight` or `ApiErrorRateInsight`. The
3604
+ # `ApiCallRateInsight` Insights type analyzes write-only management
3605
+ # API calls that are aggregated per minute against a baseline API call
3606
+ # volume. The `ApiErrorRateInsight` Insights type analyzes management
3607
+ # API calls that result in error codes.
3608
+ # @return [String]
3609
+ #
3610
+ # @!attribute [rw] error_code
3611
+ # Only returned if `InsightType` parameter was set to
3612
+ # `ApiErrorRateInsight`.
3613
+ #
3614
+ # If returning metrics for the `ApiErrorRateInsight` Insights type,
3615
+ # this is the error to retrieve data for. For example, `AccessDenied`.
3616
+ # @return [String]
3617
+ #
3618
+ # @!attribute [rw] timestamps
3619
+ # List of timestamps at intervals corresponding to the specified time
3620
+ # period.
3621
+ # @return [Array<Time>]
3622
+ #
3623
+ # @!attribute [rw] values
3624
+ # List of values representing the API call rate or error rate at each
3625
+ # timestamp. The number of values is equal to the number of
3626
+ # timestamps.
3627
+ # @return [Array<Float>]
3628
+ #
3629
+ # @!attribute [rw] next_token
3630
+ # Only returned if the full results could not be returned in a single
3631
+ # query. You can set the `NextToken` parameter in the next request to
3632
+ # this value to continue retrieval.
3633
+ # @return [String]
3634
+ #
3635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataResponse AWS API Documentation
3636
+ #
3637
+ class ListInsightsMetricDataResponse < Struct.new(
3638
+ :event_source,
3639
+ :event_name,
3640
+ :insight_type,
3641
+ :error_code,
3642
+ :timestamps,
3643
+ :values,
3644
+ :next_token)
3645
+ SENSITIVE = []
3646
+ include Aws::Structure
3647
+ end
3648
+
3374
3649
  # Requests the public keys for a specified time range.
3375
3650
  #
3376
3651
  # @!attribute [rw] start_time
@@ -5248,11 +5523,6 @@ module Aws::CloudTrail
5248
5523
  # account.
5249
5524
  #
5250
5525
  # Not required unless you specify `CloudWatchLogsRoleArn`.
5251
- #
5252
- # <note markdown="1"> Only the management account can configure a CloudWatch Logs log
5253
- # group for an organization trail.
5254
- #
5255
- # </note>
5256
5526
  # @return [String]
5257
5527
  #
5258
5528
  # @!attribute [rw] cloud_watch_logs_role_arn
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudtrail/customizations'
52
52
  # @!group service
53
53
  module Aws::CloudTrail
54
54
 
55
- GEM_VERSION = '1.74.0'
55
+ GEM_VERSION = '1.75.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.74.0
4
+ version: 1.75.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -72,7 +72,7 @@ licenses:
72
72
  metadata:
73
73
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudtrail
74
74
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudtrail/CHANGELOG.md
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.1.6
91
- signing_key:
90
+ rubygems_version: 3.4.10
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: AWS SDK for Ruby - CloudTrail
94
94
  test_files: []