aws-sdk-prometheusservice 1.62.0 → 1.64.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.
@@ -98,6 +98,188 @@ module Aws::PrometheusService
98
98
  include Aws::Structure
99
99
  end
100
100
 
101
+ # The configuration for the anomaly detection algorithm.
102
+ #
103
+ # @note AnomalyDetectorConfiguration is a union - when making an API calls you must set exactly one of the members.
104
+ #
105
+ # @note AnomalyDetectorConfiguration is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AnomalyDetectorConfiguration corresponding to the set member.
106
+ #
107
+ # @!attribute [rw] random_cut_forest
108
+ # The Random Cut Forest algorithm configuration for anomaly detection.
109
+ # @return [Types::RandomCutForestConfiguration]
110
+ #
111
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AnomalyDetectorConfiguration AWS API Documentation
112
+ #
113
+ class AnomalyDetectorConfiguration < Struct.new(
114
+ :random_cut_forest,
115
+ :unknown)
116
+ SENSITIVE = []
117
+ include Aws::Structure
118
+ include Aws::Structure::Union
119
+
120
+ class RandomCutForest < AnomalyDetectorConfiguration; end
121
+ class Unknown < AnomalyDetectorConfiguration; end
122
+ end
123
+
124
+ # Detailed information about an anomaly detector.
125
+ #
126
+ # @!attribute [rw] arn
127
+ # The Amazon Resource Name (ARN) of the anomaly detector.
128
+ # @return [String]
129
+ #
130
+ # @!attribute [rw] anomaly_detector_id
131
+ # The unique identifier of the anomaly detector.
132
+ # @return [String]
133
+ #
134
+ # @!attribute [rw] alias
135
+ # The user-friendly name of the anomaly detector.
136
+ # @return [String]
137
+ #
138
+ # @!attribute [rw] evaluation_interval_in_seconds
139
+ # The frequency, in seconds, at which the anomaly detector evaluates
140
+ # metrics.
141
+ # @return [Integer]
142
+ #
143
+ # @!attribute [rw] missing_data_action
144
+ # The action taken when data is missing during evaluation.
145
+ # @return [Types::AnomalyDetectorMissingDataAction]
146
+ #
147
+ # @!attribute [rw] configuration
148
+ # The algorithm configuration of the anomaly detector.
149
+ # @return [Types::AnomalyDetectorConfiguration]
150
+ #
151
+ # @!attribute [rw] labels
152
+ # The Amazon Managed Service for Prometheus metric labels associated
153
+ # with the anomaly detector.
154
+ # @return [Hash<String,String>]
155
+ #
156
+ # @!attribute [rw] status
157
+ # The current status of the anomaly detector.
158
+ # @return [Types::AnomalyDetectorStatus]
159
+ #
160
+ # @!attribute [rw] created_at
161
+ # The timestamp when the anomaly detector was created.
162
+ # @return [Time]
163
+ #
164
+ # @!attribute [rw] modified_at
165
+ # The timestamp when the anomaly detector was last modified.
166
+ # @return [Time]
167
+ #
168
+ # @!attribute [rw] tags
169
+ # The tags applied to the anomaly detector.
170
+ # @return [Hash<String,String>]
171
+ #
172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AnomalyDetectorDescription AWS API Documentation
173
+ #
174
+ class AnomalyDetectorDescription < Struct.new(
175
+ :arn,
176
+ :anomaly_detector_id,
177
+ :alias,
178
+ :evaluation_interval_in_seconds,
179
+ :missing_data_action,
180
+ :configuration,
181
+ :labels,
182
+ :status,
183
+ :created_at,
184
+ :modified_at,
185
+ :tags)
186
+ SENSITIVE = []
187
+ include Aws::Structure
188
+ end
189
+
190
+ # Specifies the action to take when data is missing during anomaly
191
+ # detection evaluation.
192
+ #
193
+ # @note AnomalyDetectorMissingDataAction is a union - when making an API calls you must set exactly one of the members.
194
+ #
195
+ # @note AnomalyDetectorMissingDataAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AnomalyDetectorMissingDataAction corresponding to the set member.
196
+ #
197
+ # @!attribute [rw] mark_as_anomaly
198
+ # Marks missing data points as anomalies.
199
+ # @return [Boolean]
200
+ #
201
+ # @!attribute [rw] skip
202
+ # Skips evaluation when data is missing.
203
+ # @return [Boolean]
204
+ #
205
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AnomalyDetectorMissingDataAction AWS API Documentation
206
+ #
207
+ class AnomalyDetectorMissingDataAction < Struct.new(
208
+ :mark_as_anomaly,
209
+ :skip,
210
+ :unknown)
211
+ SENSITIVE = []
212
+ include Aws::Structure
213
+ include Aws::Structure::Union
214
+
215
+ class MarkAsAnomaly < AnomalyDetectorMissingDataAction; end
216
+ class Skip < AnomalyDetectorMissingDataAction; end
217
+ class Unknown < AnomalyDetectorMissingDataAction; end
218
+ end
219
+
220
+ # The status information of an anomaly detector.
221
+ #
222
+ # @!attribute [rw] status_code
223
+ # The status code of the anomaly detector.
224
+ # @return [String]
225
+ #
226
+ # @!attribute [rw] status_reason
227
+ # A description of the current status of the anomaly detector.
228
+ # @return [String]
229
+ #
230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AnomalyDetectorStatus AWS API Documentation
231
+ #
232
+ class AnomalyDetectorStatus < Struct.new(
233
+ :status_code,
234
+ :status_reason)
235
+ SENSITIVE = []
236
+ include Aws::Structure
237
+ end
238
+
239
+ # Summary information about an anomaly detector for list operations.
240
+ #
241
+ # @!attribute [rw] arn
242
+ # The Amazon Resource Name (ARN) of the anomaly detector.
243
+ # @return [String]
244
+ #
245
+ # @!attribute [rw] anomaly_detector_id
246
+ # The unique identifier of the anomaly detector.
247
+ # @return [String]
248
+ #
249
+ # @!attribute [rw] alias
250
+ # The user-friendly name of the anomaly detector.
251
+ # @return [String]
252
+ #
253
+ # @!attribute [rw] status
254
+ # The current status of the anomaly detector.
255
+ # @return [Types::AnomalyDetectorStatus]
256
+ #
257
+ # @!attribute [rw] created_at
258
+ # The timestamp when the anomaly detector was created.
259
+ # @return [Time]
260
+ #
261
+ # @!attribute [rw] modified_at
262
+ # The timestamp when the anomaly detector was last modified.
263
+ # @return [Time]
264
+ #
265
+ # @!attribute [rw] tags
266
+ # The tags applied to the anomaly detector.
267
+ # @return [Hash<String,String>]
268
+ #
269
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/AnomalyDetectorSummary AWS API Documentation
270
+ #
271
+ class AnomalyDetectorSummary < Struct.new(
272
+ :arn,
273
+ :anomaly_detector_id,
274
+ :alias,
275
+ :status,
276
+ :created_at,
277
+ :modified_at,
278
+ :tags)
279
+ SENSITIVE = []
280
+ include Aws::Structure
281
+ end
282
+
101
283
  # Configuration details for logging to CloudWatch Logs.
102
284
  #
103
285
  # @!attribute [rw] log_group_arn
@@ -203,6 +385,88 @@ module Aws::PrometheusService
203
385
  include Aws::Structure
204
386
  end
205
387
 
388
+ # @!attribute [rw] workspace_id
389
+ # The identifier of the workspace where the anomaly detector will be
390
+ # created.
391
+ # @return [String]
392
+ #
393
+ # @!attribute [rw] alias
394
+ # A user-friendly name for the anomaly detector.
395
+ # @return [String]
396
+ #
397
+ # @!attribute [rw] evaluation_interval_in_seconds
398
+ # The frequency, in seconds, at which the anomaly detector evaluates
399
+ # metrics. The default value is 60 seconds.
400
+ # @return [Integer]
401
+ #
402
+ # @!attribute [rw] missing_data_action
403
+ # Specifies the action to take when data is missing during evaluation.
404
+ # @return [Types::AnomalyDetectorMissingDataAction]
405
+ #
406
+ # @!attribute [rw] configuration
407
+ # The algorithm configuration for the anomaly detector.
408
+ # @return [Types::AnomalyDetectorConfiguration]
409
+ #
410
+ # @!attribute [rw] labels
411
+ # The Amazon Managed Service for Prometheus metric labels to associate
412
+ # with the anomaly detector.
413
+ # @return [Hash<String,String>]
414
+ #
415
+ # @!attribute [rw] client_token
416
+ # A unique, case-sensitive identifier that you provide to ensure the
417
+ # idempotency of the request.
418
+ #
419
+ # **A suitable default value is auto-generated.** You should normally
420
+ # not need to pass this option.
421
+ # @return [String]
422
+ #
423
+ # @!attribute [rw] tags
424
+ # The metadata to apply to the anomaly detector to assist with
425
+ # categorization and organization.
426
+ # @return [Hash<String,String>]
427
+ #
428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateAnomalyDetectorRequest AWS API Documentation
429
+ #
430
+ class CreateAnomalyDetectorRequest < Struct.new(
431
+ :workspace_id,
432
+ :alias,
433
+ :evaluation_interval_in_seconds,
434
+ :missing_data_action,
435
+ :configuration,
436
+ :labels,
437
+ :client_token,
438
+ :tags)
439
+ SENSITIVE = []
440
+ include Aws::Structure
441
+ end
442
+
443
+ # @!attribute [rw] anomaly_detector_id
444
+ # The unique identifier of the created anomaly detector.
445
+ # @return [String]
446
+ #
447
+ # @!attribute [rw] arn
448
+ # The Amazon Resource Name (ARN) of the created anomaly detector.
449
+ # @return [String]
450
+ #
451
+ # @!attribute [rw] status
452
+ # The status information of the created anomaly detector.
453
+ # @return [Types::AnomalyDetectorStatus]
454
+ #
455
+ # @!attribute [rw] tags
456
+ # The tags applied to the created anomaly detector.
457
+ # @return [Hash<String,String>]
458
+ #
459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateAnomalyDetectorResponse AWS API Documentation
460
+ #
461
+ class CreateAnomalyDetectorResponse < Struct.new(
462
+ :anomaly_detector_id,
463
+ :arn,
464
+ :status,
465
+ :tags)
466
+ SENSITIVE = []
467
+ include Aws::Structure
468
+ end
469
+
206
470
  # Represents the input of a `CreateLoggingConfiguration` operation.
207
471
  #
208
472
  # @!attribute [rw] workspace_id
@@ -385,7 +649,8 @@ module Aws::PrometheusService
385
649
  # @return [Types::ScrapeConfiguration]
386
650
  #
387
651
  # @!attribute [rw] source
388
- # The Amazon EKS cluster from which the scraper will collect metrics.
652
+ # The Amazon EKS or Amazon Web Services cluster from which the scraper
653
+ # will collect metrics.
389
654
  # @return [Types::Source]
390
655
  #
391
656
  # @!attribute [rw] destination
@@ -560,6 +825,33 @@ module Aws::PrometheusService
560
825
  include Aws::Structure
561
826
  end
562
827
 
828
+ # @!attribute [rw] workspace_id
829
+ # The identifier of the workspace containing the anomaly detector to
830
+ # delete.
831
+ # @return [String]
832
+ #
833
+ # @!attribute [rw] anomaly_detector_id
834
+ # The identifier of the anomaly detector to delete.
835
+ # @return [String]
836
+ #
837
+ # @!attribute [rw] client_token
838
+ # A unique, case-sensitive identifier that you provide to ensure the
839
+ # idempotency of the request.
840
+ #
841
+ # **A suitable default value is auto-generated.** You should normally
842
+ # not need to pass this option.
843
+ # @return [String]
844
+ #
845
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteAnomalyDetectorRequest AWS API Documentation
846
+ #
847
+ class DeleteAnomalyDetectorRequest < Struct.new(
848
+ :workspace_id,
849
+ :anomaly_detector_id,
850
+ :client_token)
851
+ SENSITIVE = []
852
+ include Aws::Structure
853
+ end
854
+
563
855
  # Represents the input of a `DeleteLoggingConfiguration` operation.
564
856
  #
565
857
  # @!attribute [rw] workspace_id
@@ -778,6 +1070,35 @@ module Aws::PrometheusService
778
1070
  include Aws::Structure
779
1071
  end
780
1072
 
1073
+ # @!attribute [rw] workspace_id
1074
+ # The identifier of the workspace containing the anomaly detector.
1075
+ # @return [String]
1076
+ #
1077
+ # @!attribute [rw] anomaly_detector_id
1078
+ # The identifier of the anomaly detector to describe.
1079
+ # @return [String]
1080
+ #
1081
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeAnomalyDetectorRequest AWS API Documentation
1082
+ #
1083
+ class DescribeAnomalyDetectorRequest < Struct.new(
1084
+ :workspace_id,
1085
+ :anomaly_detector_id)
1086
+ SENSITIVE = []
1087
+ include Aws::Structure
1088
+ end
1089
+
1090
+ # @!attribute [rw] anomaly_detector
1091
+ # The detailed information about the anomaly detector.
1092
+ # @return [Types::AnomalyDetectorDescription]
1093
+ #
1094
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeAnomalyDetectorResponse AWS API Documentation
1095
+ #
1096
+ class DescribeAnomalyDetectorResponse < Struct.new(
1097
+ :anomaly_detector)
1098
+ SENSITIVE = []
1099
+ include Aws::Structure
1100
+ end
1101
+
781
1102
  # Represents the input of a `DescribeLoggingConfiguration` operation.
782
1103
  #
783
1104
  # @!attribute [rw] workspace_id
@@ -1110,6 +1431,38 @@ module Aws::PrometheusService
1110
1431
  include Aws::Structure
1111
1432
  end
1112
1433
 
1434
+ # Configuration for threshold settings that determine when values near
1435
+ # expected values should be ignored during anomaly detection.
1436
+ #
1437
+ # @note IgnoreNearExpected is a union - when making an API calls you must set exactly one of the members.
1438
+ #
1439
+ # @note IgnoreNearExpected is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of IgnoreNearExpected corresponding to the set member.
1440
+ #
1441
+ # @!attribute [rw] amount
1442
+ # The absolute amount by which values can differ from expected values
1443
+ # before being considered anomalous.
1444
+ # @return [Float]
1445
+ #
1446
+ # @!attribute [rw] ratio
1447
+ # The ratio by which values can differ from expected values before
1448
+ # being considered anomalous.
1449
+ # @return [Float]
1450
+ #
1451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/IgnoreNearExpected AWS API Documentation
1452
+ #
1453
+ class IgnoreNearExpected < Struct.new(
1454
+ :amount,
1455
+ :ratio,
1456
+ :unknown)
1457
+ SENSITIVE = []
1458
+ include Aws::Structure
1459
+ include Aws::Structure::Union
1460
+
1461
+ class Amount < IgnoreNearExpected; end
1462
+ class Ratio < IgnoreNearExpected; end
1463
+ class Unknown < IgnoreNearExpected; end
1464
+ end
1465
+
1113
1466
  # An unexpected error occurred during the processing of the request.
1114
1467
  #
1115
1468
  # @!attribute [rw] message
@@ -1182,6 +1535,52 @@ module Aws::PrometheusService
1182
1535
  include Aws::Structure
1183
1536
  end
1184
1537
 
1538
+ # @!attribute [rw] workspace_id
1539
+ # The identifier of the workspace containing the anomaly detectors to
1540
+ # list.
1541
+ # @return [String]
1542
+ #
1543
+ # @!attribute [rw] alias
1544
+ # Filters the results to anomaly detectors with the specified alias.
1545
+ # @return [String]
1546
+ #
1547
+ # @!attribute [rw] max_results
1548
+ # The maximum number of results to return in a single call. Valid
1549
+ # range is 1 to 1000.
1550
+ # @return [Integer]
1551
+ #
1552
+ # @!attribute [rw] next_token
1553
+ # The pagination token to continue retrieving results.
1554
+ # @return [String]
1555
+ #
1556
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListAnomalyDetectorsRequest AWS API Documentation
1557
+ #
1558
+ class ListAnomalyDetectorsRequest < Struct.new(
1559
+ :workspace_id,
1560
+ :alias,
1561
+ :max_results,
1562
+ :next_token)
1563
+ SENSITIVE = []
1564
+ include Aws::Structure
1565
+ end
1566
+
1567
+ # @!attribute [rw] anomaly_detectors
1568
+ # The list of anomaly detectors in the workspace.
1569
+ # @return [Array<Types::AnomalyDetectorSummary>]
1570
+ #
1571
+ # @!attribute [rw] next_token
1572
+ # The pagination token to retrieve the next set of results.
1573
+ # @return [String]
1574
+ #
1575
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListAnomalyDetectorsResponse AWS API Documentation
1576
+ #
1577
+ class ListAnomalyDetectorsResponse < Struct.new(
1578
+ :anomaly_detectors,
1579
+ :next_token)
1580
+ SENSITIVE = []
1581
+ include Aws::Structure
1582
+ end
1583
+
1185
1584
  # Represents the input of a `ListRuleGroupsNamespaces` operation.
1186
1585
  #
1187
1586
  # @!attribute [rw] workspace_id
@@ -1544,6 +1943,82 @@ module Aws::PrometheusService
1544
1943
  include Aws::Structure
1545
1944
  end
1546
1945
 
1946
+ # @!attribute [rw] workspace_id
1947
+ # The identifier of the workspace containing the anomaly detector to
1948
+ # update.
1949
+ # @return [String]
1950
+ #
1951
+ # @!attribute [rw] anomaly_detector_id
1952
+ # The identifier of the anomaly detector to update.
1953
+ # @return [String]
1954
+ #
1955
+ # @!attribute [rw] evaluation_interval_in_seconds
1956
+ # The frequency, in seconds, at which the anomaly detector evaluates
1957
+ # metrics.
1958
+ # @return [Integer]
1959
+ #
1960
+ # @!attribute [rw] missing_data_action
1961
+ # Specifies the action to take when data is missing during evaluation.
1962
+ # @return [Types::AnomalyDetectorMissingDataAction]
1963
+ #
1964
+ # @!attribute [rw] configuration
1965
+ # The algorithm configuration for the anomaly detector.
1966
+ # @return [Types::AnomalyDetectorConfiguration]
1967
+ #
1968
+ # @!attribute [rw] labels
1969
+ # The Amazon Managed Service for Prometheus metric labels to associate
1970
+ # with the anomaly detector.
1971
+ # @return [Hash<String,String>]
1972
+ #
1973
+ # @!attribute [rw] client_token
1974
+ # A unique, case-sensitive identifier that you provide to ensure the
1975
+ # idempotency of the request.
1976
+ #
1977
+ # **A suitable default value is auto-generated.** You should normally
1978
+ # not need to pass this option.
1979
+ # @return [String]
1980
+ #
1981
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutAnomalyDetectorRequest AWS API Documentation
1982
+ #
1983
+ class PutAnomalyDetectorRequest < Struct.new(
1984
+ :workspace_id,
1985
+ :anomaly_detector_id,
1986
+ :evaluation_interval_in_seconds,
1987
+ :missing_data_action,
1988
+ :configuration,
1989
+ :labels,
1990
+ :client_token)
1991
+ SENSITIVE = []
1992
+ include Aws::Structure
1993
+ end
1994
+
1995
+ # @!attribute [rw] anomaly_detector_id
1996
+ # The unique identifier of the updated anomaly detector.
1997
+ # @return [String]
1998
+ #
1999
+ # @!attribute [rw] arn
2000
+ # The Amazon Resource Name (ARN) of the updated anomaly detector.
2001
+ # @return [String]
2002
+ #
2003
+ # @!attribute [rw] status
2004
+ # The status information of the updated anomaly detector.
2005
+ # @return [Types::AnomalyDetectorStatus]
2006
+ #
2007
+ # @!attribute [rw] tags
2008
+ # The tags applied to the updated anomaly detector.
2009
+ # @return [Hash<String,String>]
2010
+ #
2011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutAnomalyDetectorResponse AWS API Documentation
2012
+ #
2013
+ class PutAnomalyDetectorResponse < Struct.new(
2014
+ :anomaly_detector_id,
2015
+ :arn,
2016
+ :status,
2017
+ :tags)
2018
+ SENSITIVE = []
2019
+ include Aws::Structure
2020
+ end
2021
+
1547
2022
  # @!attribute [rw] workspace_id
1548
2023
  # The ID of the workspace to attach the resource-based policy to.
1549
2024
  # @return [String]
@@ -1730,6 +2205,60 @@ module Aws::PrometheusService
1730
2205
  include Aws::Structure
1731
2206
  end
1732
2207
 
2208
+ # Configuration for the Random Cut Forest algorithm used for anomaly
2209
+ # detection in time-series data.
2210
+ #
2211
+ # @!attribute [rw] query
2212
+ # The Prometheus query used to retrieve the time-series data for
2213
+ # anomaly detection.
2214
+ #
2215
+ # Random Cut Forest queries must be wrapped by a supported PromQL
2216
+ # aggregation operator. For more information, see [Aggregation
2217
+ # operators][1] on the *Prometheus docs* website.
2218
+ #
2219
+ # **Supported PromQL aggregation operators**: `avg`, `count`,
2220
+ # `group`,
2221
+ # `max`, `min`, `quantile`, `stddev`, `stdvar`, and `sum`.
2222
+ #
2223
+ #
2224
+ #
2225
+ # [1]: https://prometheus.io/docs/prometheus/latest/querying/operators/#aggregation-operators
2226
+ # @return [String]
2227
+ #
2228
+ # @!attribute [rw] shingle_size
2229
+ # The number of consecutive data points used to create a shingle for
2230
+ # the Random Cut Forest algorithm. The default number is 8 consecutive
2231
+ # data points.
2232
+ # @return [Integer]
2233
+ #
2234
+ # @!attribute [rw] sample_size
2235
+ # The number of data points sampled from the input stream for the
2236
+ # Random Cut Forest algorithm. The default number is 256 consecutive
2237
+ # data points.
2238
+ # @return [Integer]
2239
+ #
2240
+ # @!attribute [rw] ignore_near_expected_from_above
2241
+ # Configuration for ignoring values that are near expected values from
2242
+ # above during anomaly detection.
2243
+ # @return [Types::IgnoreNearExpected]
2244
+ #
2245
+ # @!attribute [rw] ignore_near_expected_from_below
2246
+ # Configuration for ignoring values that are near expected values from
2247
+ # below during anomaly detection.
2248
+ # @return [Types::IgnoreNearExpected]
2249
+ #
2250
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/RandomCutForestConfiguration AWS API Documentation
2251
+ #
2252
+ class RandomCutForestConfiguration < Struct.new(
2253
+ :query,
2254
+ :shingle_size,
2255
+ :sample_size,
2256
+ :ignore_near_expected_from_above,
2257
+ :ignore_near_expected_from_below)
2258
+ SENSITIVE = []
2259
+ include Aws::Structure
2260
+ end
2261
+
1733
2262
  # The request references a resources that doesn't exist.
1734
2263
  #
1735
2264
  # @!attribute [rw] message
@@ -2214,16 +2743,25 @@ module Aws::PrometheusService
2214
2743
  # The Amazon EKS cluster from which a scraper collects metrics.
2215
2744
  # @return [Types::EksConfiguration]
2216
2745
  #
2746
+ # @!attribute [rw] vpc_configuration
2747
+ # The Amazon VPC configuration for the Prometheus collector when
2748
+ # connecting to Amazon MSK clusters. This configuration enables
2749
+ # secure, private network connectivity between the collector and your
2750
+ # Amazon MSK cluster within your Amazon VPC.
2751
+ # @return [Types::VpcConfiguration]
2752
+ #
2217
2753
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/Source AWS API Documentation
2218
2754
  #
2219
2755
  class Source < Struct.new(
2220
2756
  :eks_configuration,
2757
+ :vpc_configuration,
2221
2758
  :unknown)
2222
2759
  SENSITIVE = []
2223
2760
  include Aws::Structure
2224
2761
  include Aws::Structure::Union
2225
2762
 
2226
2763
  class EksConfiguration < Source; end
2764
+ class VpcConfiguration < Source; end
2227
2765
  class Unknown < Source; end
2228
2766
  end
2229
2767
 
@@ -2629,6 +3167,32 @@ module Aws::PrometheusService
2629
3167
  include Aws::Structure
2630
3168
  end
2631
3169
 
3170
+ # The Amazon VPC configuration that specifies the network settings for a
3171
+ # Prometheus collector to securely connect to Amazon MSK clusters. This
3172
+ # configuration includes the security groups and subnets that control
3173
+ # network access and placement for the collector.
3174
+ #
3175
+ # @!attribute [rw] security_group_ids
3176
+ # The security group IDs that control network access for the
3177
+ # Prometheus collector. These security groups must allow the collector
3178
+ # to communicate with your Amazon MSK cluster on the required ports.
3179
+ # @return [Array<String>]
3180
+ #
3181
+ # @!attribute [rw] subnet_ids
3182
+ # The subnet IDs where the Prometheus collector will be deployed. The
3183
+ # subnets must be in the same Amazon VPC as your Amazon MSK cluster
3184
+ # and have network connectivity to the cluster.
3185
+ # @return [Array<String>]
3186
+ #
3187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/VpcConfiguration AWS API Documentation
3188
+ #
3189
+ class VpcConfiguration < Struct.new(
3190
+ :security_group_ids,
3191
+ :subnet_ids)
3192
+ SENSITIVE = []
3193
+ include Aws::Structure
3194
+ end
3195
+
2632
3196
  # This structure contains the description of the workspace
2633
3197
  # configuration.
2634
3198
  #