aws-sdk-prometheusservice 1.75.0 → 1.76.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0107fac699504a2832a64578bd46a5a345ecd19b375bd19aedcb867cae86cd96
4
- data.tar.gz: 58bee0af000e5b0806882e98a5bf9c1e1a186414008442009f24341aaf47cda4
3
+ metadata.gz: efe9ba8f8e061bbeab39b277c2ae1773c80820893b26148928c048d3711918b5
4
+ data.tar.gz: 17afd1486f98281891e82942f679c1d1532c44d149b19ac25417ccf4ac771d5a
5
5
  SHA512:
6
- metadata.gz: aae2246042b1949e63de2f9b88a3e6c89388b3aaba2389d42d1013b92a4b5e205d658599dfa412e28d9d663aa4c1a4d09e8db7add6e432176a6aa4f1f04644f2
7
- data.tar.gz: 5a7dbade25ea9aedbc0deff7f218fa24a69fb0cc7b18675345cc1e30b399465e4adc2272f23da88bb9e3163e59620e990f9402e3d147146376fc6f5c81439619
6
+ metadata.gz: 9d758bd4940bf860ae407dca137f60347d20fba8f6259f537466214d115ce609a14ed04189ddaa407a690e10275784f8d0a09077c855daf4ffb2cb6cf0127d53
7
+ data.tar.gz: 39f552832d86437b4e64c303386190a172e6078fa03f663ed265c719df2a63c2565dcc38b8492336c8f88146b549e79c53f15371f15b17dbff8329bc9a64a4ba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.76.0 (2026-07-22)
5
+ ------------------
6
+
7
+ * Feature - Add CloudWatch dataset destinations for Amazon Managed Service for Prometheus collectors.
8
+
4
9
  1.75.0 (2026-07-09)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.0
1
+ 1.76.0
@@ -803,14 +803,14 @@ module Aws::PrometheusService
803
803
  req.send_request(options)
804
804
  end
805
805
 
806
- # The `CreateScraper` operation creates a scraper to collect metrics. A
807
- # scraper pulls metrics from Prometheus-compatible sources and sends
808
- # them to your Amazon Managed Service for Prometheus workspace. You can
806
+ # Creates a scraper to collect metrics from Prometheus-compatible
807
+ # sources. The scraper sends the collected metrics to Amazon Managed
808
+ # Service for Prometheus workspaces or CloudWatch datasets. You can
809
809
  # configure scrapers to collect metrics from Amazon EKS clusters, Amazon
810
810
  # MSK clusters, or from VPC-based sources that support DNS-based service
811
- # discovery. Scrapers are flexible, and can be configured to control
812
- # what metrics are collected, the frequency of collection, what
813
- # transformations are applied to the metrics, and more.
811
+ # discovery. Scrapers are flexible. You can configure a scraper to
812
+ # control which metrics to collect, the frequency of collection, which
813
+ # transformations to apply to the metrics, and more.
814
814
  #
815
815
  # An IAM role will be created for you that Amazon Managed Service for
816
816
  # Prometheus uses to access the metrics in your source. You must
@@ -857,8 +857,9 @@ module Aws::PrometheusService
857
857
  # will collect metrics.
858
858
  #
859
859
  # @option params [required, Types::Destination] :destination
860
- # The Amazon Managed Service for Prometheus workspace to send metrics
861
- # to.
860
+ # The destination where the scraper sends the collected metrics. Valid
861
+ # destinations are Amazon Managed Service for Prometheus workspaces and
862
+ # CloudWatch datasets.
862
863
  #
863
864
  # @option params [Types::RoleConfiguration] :role_configuration
864
865
  # Use this structure to enable cross-account access, so that you can use
@@ -986,6 +987,9 @@ module Aws::PrometheusService
986
987
  # amp_configuration: {
987
988
  # workspace_arn: "WorkspaceArn", # required
988
989
  # },
990
+ # cloud_watch_configuration: {
991
+ # dataset_arn: "CloudWatchDatasetArn", # required
992
+ # },
989
993
  # },
990
994
  # role_configuration: {
991
995
  # source_role_arn: "IamRoleArn",
@@ -1734,6 +1738,7 @@ module Aws::PrometheusService
1734
1738
  # resp.scraper.source.vpc_configuration.subnet_ids #=> Array
1735
1739
  # resp.scraper.source.vpc_configuration.subnet_ids[0] #=> String
1736
1740
  # resp.scraper.destination.amp_configuration.workspace_arn #=> String
1741
+ # resp.scraper.destination.cloud_watch_configuration.dataset_arn #=> String
1737
1742
  # resp.scraper.role_configuration.source_role_arn #=> String
1738
1743
  # resp.scraper.role_configuration.target_role_arn #=> String
1739
1744
  #
@@ -2226,6 +2231,7 @@ module Aws::PrometheusService
2226
2231
  # resp.scrapers[0].source.vpc_configuration.subnet_ids #=> Array
2227
2232
  # resp.scrapers[0].source.vpc_configuration.subnet_ids[0] #=> String
2228
2233
  # resp.scrapers[0].destination.amp_configuration.workspace_arn #=> String
2234
+ # resp.scrapers[0].destination.cloud_watch_configuration.dataset_arn #=> String
2229
2235
  # resp.scrapers[0].role_configuration.source_role_arn #=> String
2230
2236
  # resp.scrapers[0].role_configuration.target_role_arn #=> String
2231
2237
  # resp.next_token #=> String
@@ -2823,8 +2829,9 @@ module Aws::PrometheusService
2823
2829
  # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html
2824
2830
  #
2825
2831
  # @option params [Types::Destination] :destination
2826
- # The new Amazon Managed Service for Prometheus workspace to send
2827
- # metrics to.
2832
+ # The new destination where the scraper sends metrics. Valid
2833
+ # destinations are Amazon Managed Service for Prometheus workspaces and
2834
+ # CloudWatch datasets.
2828
2835
  #
2829
2836
  # @option params [Types::RoleConfiguration] :role_configuration
2830
2837
  # Use this structure to enable cross-account access, so that you can use
@@ -2885,6 +2892,9 @@ module Aws::PrometheusService
2885
2892
  # amp_configuration: {
2886
2893
  # workspace_arn: "WorkspaceArn", # required
2887
2894
  # },
2895
+ # cloud_watch_configuration: {
2896
+ # dataset_arn: "CloudWatchDatasetArn", # required
2897
+ # },
2888
2898
  # },
2889
2899
  # role_configuration: {
2890
2900
  # source_role_arn: "IamRoleArn",
@@ -3094,7 +3104,7 @@ module Aws::PrometheusService
3094
3104
  tracer: tracer
3095
3105
  )
3096
3106
  context[:gem_name] = 'aws-sdk-prometheusservice'
3097
- context[:gem_version] = '1.75.0'
3107
+ context[:gem_version] = '1.76.0'
3098
3108
  Seahorse::Client::Request.new(handlers, context)
3099
3109
  end
3100
3110
 
@@ -33,6 +33,8 @@ module Aws::PrometheusService
33
33
  AnomalyDetectorSummaryList = Shapes::ListShape.new(name: 'AnomalyDetectorSummaryList')
34
34
  Blob = Shapes::BlobShape.new(name: 'Blob')
35
35
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
36
+ CloudWatchConfiguration = Shapes::StructureShape.new(name: 'CloudWatchConfiguration')
37
+ CloudWatchDatasetArn = Shapes::StringShape.new(name: 'CloudWatchDatasetArn')
36
38
  CloudWatchLogDestination = Shapes::StructureShape.new(name: 'CloudWatchLogDestination')
37
39
  ClusterArn = Shapes::StringShape.new(name: 'ClusterArn')
38
40
  ComponentConfig = Shapes::StructureShape.new(name: 'ComponentConfig')
@@ -284,6 +286,9 @@ module Aws::PrometheusService
284
286
 
285
287
  AnomalyDetectorSummaryList.member = Shapes::ShapeRef.new(shape: AnomalyDetectorSummary)
286
288
 
289
+ CloudWatchConfiguration.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: CloudWatchDatasetArn, required: true, location_name: "datasetArn"))
290
+ CloudWatchConfiguration.struct_class = Types::CloudWatchConfiguration
291
+
287
292
  CloudWatchLogDestination.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
288
293
  CloudWatchLogDestination.struct_class = Types::CloudWatchLogDestination
289
294
 
@@ -491,8 +496,10 @@ module Aws::PrometheusService
491
496
  DescribeWorkspaceResponse.struct_class = Types::DescribeWorkspaceResponse
492
497
 
493
498
  Destination.add_member(:amp_configuration, Shapes::ShapeRef.new(shape: AmpConfiguration, location_name: "ampConfiguration"))
499
+ Destination.add_member(:cloud_watch_configuration, Shapes::ShapeRef.new(shape: CloudWatchConfiguration, location_name: "cloudWatchConfiguration"))
494
500
  Destination.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
495
501
  Destination.add_member_subclass(:amp_configuration, Types::Destination::AmpConfiguration)
502
+ Destination.add_member_subclass(:cloud_watch_configuration, Types::Destination::CloudWatchConfiguration)
496
503
  Destination.add_member_subclass(:unknown, Types::Destination::Unknown)
497
504
  Destination.struct_class = Types::Destination
498
505
 
@@ -280,6 +280,23 @@ module Aws::PrometheusService
280
280
  include Aws::Structure
281
281
  end
282
282
 
283
+ # The configuration identifies the CloudWatch dataset used as a scraper
284
+ # destination.
285
+ #
286
+ # @!attribute [rw] dataset_arn
287
+ # The Amazon Resource Name (ARN) of the CloudWatch dataset. To use the
288
+ # default dataset, specify
289
+ # `arn:aws:cloudwatch:<region>:<account-id>:dataset/default`.
290
+ # @return [String]
291
+ #
292
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CloudWatchConfiguration AWS API Documentation
293
+ #
294
+ class CloudWatchConfiguration < Struct.new(
295
+ :dataset_arn)
296
+ SENSITIVE = []
297
+ include Aws::Structure
298
+ end
299
+
283
300
  # Configuration details for logging to CloudWatch Logs.
284
301
  #
285
302
  # @!attribute [rw] log_group_arn
@@ -654,8 +671,9 @@ module Aws::PrometheusService
654
671
  # @return [Types::Source]
655
672
  #
656
673
  # @!attribute [rw] destination
657
- # The Amazon Managed Service for Prometheus workspace to send metrics
658
- # to.
674
+ # The destination where the scraper sends the collected metrics. Valid
675
+ # destinations are Amazon Managed Service for Prometheus workspaces
676
+ # and CloudWatch datasets.
659
677
  # @return [Types::Destination]
660
678
  #
661
679
  # @!attribute [rw] role_configuration
@@ -1364,16 +1382,22 @@ module Aws::PrometheusService
1364
1382
  # to.
1365
1383
  # @return [Types::AmpConfiguration]
1366
1384
  #
1385
+ # @!attribute [rw] cloud_watch_configuration
1386
+ # The CloudWatch dataset to send metrics to.
1387
+ # @return [Types::CloudWatchConfiguration]
1388
+ #
1367
1389
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/Destination AWS API Documentation
1368
1390
  #
1369
1391
  class Destination < Struct.new(
1370
1392
  :amp_configuration,
1393
+ :cloud_watch_configuration,
1371
1394
  :unknown)
1372
1395
  SENSITIVE = []
1373
1396
  include Aws::Structure
1374
1397
  include Aws::Structure::Union
1375
1398
 
1376
1399
  class AmpConfiguration < Destination; end
1400
+ class CloudWatchConfiguration < Destination; end
1377
1401
  class Unknown < Destination; end
1378
1402
  end
1379
1403
 
@@ -2536,8 +2560,9 @@ module Aws::PrometheusService
2536
2560
  # @return [Types::Source]
2537
2561
  #
2538
2562
  # @!attribute [rw] destination
2539
- # The Amazon Managed Service for Prometheus workspace the scraper
2540
- # sends metrics to.
2563
+ # The destination where the scraper sends metrics. Valid destinations
2564
+ # are Amazon Managed Service for Prometheus workspaces and CloudWatch
2565
+ # datasets.
2541
2566
  # @return [Types::Destination]
2542
2567
  #
2543
2568
  # @!attribute [rw] role_configuration
@@ -2671,8 +2696,9 @@ module Aws::PrometheusService
2671
2696
  # @return [Types::Source]
2672
2697
  #
2673
2698
  # @!attribute [rw] destination
2674
- # The Amazon Managed Service for Prometheus workspace the scraper
2675
- # sends metrics to.
2699
+ # The destination where the scraper sends metrics. Valid destinations
2700
+ # are Amazon Managed Service for Prometheus workspaces and CloudWatch
2701
+ # datasets.
2676
2702
  # @return [Types::Destination]
2677
2703
  #
2678
2704
  # @!attribute [rw] role_configuration
@@ -2979,8 +3005,9 @@ module Aws::PrometheusService
2979
3005
  # @return [Types::ScrapeConfiguration]
2980
3006
  #
2981
3007
  # @!attribute [rw] destination
2982
- # The new Amazon Managed Service for Prometheus workspace to send
2983
- # metrics to.
3008
+ # The new destination where the scraper sends metrics. Valid
3009
+ # destinations are Amazon Managed Service for Prometheus workspaces
3010
+ # and CloudWatch datasets.
2984
3011
  # @return [Types::Destination]
2985
3012
  #
2986
3013
  # @!attribute [rw] role_configuration
@@ -55,7 +55,7 @@ module Aws::PrometheusService
55
55
  autoload :EndpointProvider, 'aws-sdk-prometheusservice/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-prometheusservice/endpoints'
57
57
 
58
- GEM_VERSION = '1.75.0'
58
+ GEM_VERSION = '1.76.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -180,11 +180,7 @@ module Aws
180
180
  subnet_ids: Array[::String]
181
181
  }?
182
182
  },
183
- destination: {
184
- amp_configuration: {
185
- workspace_arn: ::String
186
- }?
187
- },
183
+ destination: Params::destination,
188
184
  ?role_configuration: {
189
185
  source_role_arn: ::String?,
190
186
  target_role_arn: ::String?
@@ -587,11 +583,7 @@ module Aws
587
583
  ?scrape_configuration: {
588
584
  configuration_blob: ::String?
589
585
  },
590
- ?destination: {
591
- amp_configuration: {
592
- workspace_arn: ::String
593
- }?
594
- },
586
+ ?destination: Params::destination,
595
587
  ?role_configuration: {
596
588
  source_role_arn: ::String?,
597
589
  target_role_arn: ::String?
data/sig/params.rbs CHANGED
@@ -35,6 +35,15 @@ module Aws
35
35
  }
36
36
  }
37
37
 
38
+ type destination = {
39
+ amp_configuration: {
40
+ workspace_arn: ::String
41
+ }?,
42
+ cloud_watch_configuration: {
43
+ dataset_arn: ::String
44
+ }?
45
+ }
46
+
38
47
  end
39
48
  end
40
49
  end
data/sig/types.rbs CHANGED
@@ -89,6 +89,11 @@ module Aws::PrometheusService
89
89
  SENSITIVE: []
90
90
  end
91
91
 
92
+ class CloudWatchConfiguration
93
+ attr_accessor dataset_arn: ::String
94
+ SENSITIVE: []
95
+ end
96
+
92
97
  class CloudWatchLogDestination
93
98
  attr_accessor log_group_arn: ::String
94
99
  SENSITIVE: []
@@ -388,11 +393,14 @@ module Aws::PrometheusService
388
393
 
389
394
  class Destination
390
395
  attr_accessor amp_configuration: Types::AmpConfiguration
396
+ attr_accessor cloud_watch_configuration: Types::CloudWatchConfiguration
391
397
  attr_accessor unknown: untyped
392
398
  SENSITIVE: []
393
399
 
394
400
  class AmpConfiguration < Destination
395
401
  end
402
+ class CloudWatchConfiguration < Destination
403
+ end
396
404
  class Unknown < Destination
397
405
  end
398
406
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-prometheusservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.0
4
+ version: 1.76.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services