aws-sdk-cloudtrail 1.74.0 → 1.76.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: 49561e7e3b18730dedacd1f75dccc6e1c2acbce86dbd419b5b7f4f3b49354c45
4
+ data.tar.gz: a40b5508c8547fda8f4566cf77e247586d9da4c5e9d372e6b745529f8a8c2151
5
5
  SHA512:
6
- metadata.gz: 9f4ce5eab5052adbebb1afa18cc74004962b5811ee1179455767d38b37f051036cddbd7baf7238a5cfd87b582e8158e98f4b6cde6d497ffed642dd0a95c6c4fb
7
- data.tar.gz: 73f9b634c44c4656db2b5d9fd388af1eba7e79211aa2d6ae4a8addcb7256839f3e5317784ad78bb0ad3154dce86b0d22b1779cd26873a385a8e66192afcd2a51
6
+ metadata.gz: c1dd9cba547b50e4490bcbeacec3faadf275a9eec8f4da579a8062f79017d3da1950cc9fc1312455b5a83d9639b69dfecea33c1816e3f62fc1f2aa7f3a851124
7
+ data.tar.gz: 35d33a2c9b826d26e18be727f5ef0c46bbf960fe2d57e01754aa5fe3cae1ac38f32ecf1e8c7b2abc2fa6399ec310174aa3756eb140e762426d77c8ccf5046120
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.76.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.75.0 (2024-01-18)
10
+ ------------------
11
+
12
+ * Feature - This release adds a new API ListInsightsMetricData to retrieve metric data from CloudTrail Insights.
13
+
4
14
  1.74.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.74.0
1
+ 1.76.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.76.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
@@ -14,6 +14,7 @@ module Aws::CloudTrail
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::CloudTrail::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -111,6 +112,8 @@ module Aws::CloudTrail
111
112
  Aws::CloudTrail::Endpoints::ListImportFailures.build(context)
112
113
  when :list_imports
113
114
  Aws::CloudTrail::Endpoints::ListImports.build(context)
115
+ when :list_insights_metric_data
116
+ Aws::CloudTrail::Endpoints::ListInsightsMetricData.build(context)
114
117
  when :list_public_keys
115
118
  Aws::CloudTrail::Endpoints::ListPublicKeys.build(context)
116
119
  when :list_queries