aws-sdk-prometheusservice 1.45.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-prometheusservice/client.rb +19 -1
- data/lib/aws-sdk-prometheusservice/client_api.rb +9 -0
- data/lib/aws-sdk-prometheusservice/types.rb +42 -0
- data/lib/aws-sdk-prometheusservice.rb +1 -1
- data/sig/client.rbs +8 -0
- data/sig/types.rbs +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0365dd2b84717a831a4a0442788a620347f1b07287d1aee34363ef843d2de99
|
4
|
+
data.tar.gz: 283651cdcc216fa4c4eb8d573b425f5f5f75dfd9dcff508c34136f8fb4aeaed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1e809024966c63bdf999a9c420b0ec24866605501ffec32f47c33d2c550988a1ea84d7b2091ebeba9ed9e9a1577ddf1dc9d0e725f29bfbee8008b96c9cf3ea
|
7
|
+
data.tar.gz: 1ede1eaa6240c107f645490ec0822a375ca9b190dfa82af056c56b38b91da0cdd419d186b892bdfec32930909b2548c5969cca65877eb4b9345247980feae1c8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2025-01-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add support for sending metrics to cross account and CMCK AMP workspaces through RoleConfiguration on Create/Update Scraper.
|
8
|
+
|
4
9
|
1.45.0 (2025-01-15)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
@@ -686,6 +686,9 @@ module Aws::PrometheusService
|
|
686
686
|
# The Amazon Managed Service for Prometheus workspace to send metrics
|
687
687
|
# to.
|
688
688
|
#
|
689
|
+
# @option params [Types::RoleConfiguration] :role_configuration
|
690
|
+
# The scraper role configuration for the workspace.
|
691
|
+
#
|
689
692
|
# @option params [required, Types::ScrapeConfiguration] :scrape_configuration
|
690
693
|
# The configuration file to use in the new scraper. For more
|
691
694
|
# information, see [Scraper configuration][1] in the *Amazon Managed
|
@@ -719,6 +722,10 @@ module Aws::PrometheusService
|
|
719
722
|
# workspace_arn: "WorkspaceArn", # required
|
720
723
|
# },
|
721
724
|
# },
|
725
|
+
# role_configuration: {
|
726
|
+
# source_role_arn: "IamRoleArn",
|
727
|
+
# target_role_arn: "IamRoleArn",
|
728
|
+
# },
|
722
729
|
# scrape_configuration: { # required
|
723
730
|
# configuration_blob: "data",
|
724
731
|
# },
|
@@ -1124,6 +1131,8 @@ module Aws::PrometheusService
|
|
1124
1131
|
# resp.scraper.destination.amp_configuration.workspace_arn #=> String
|
1125
1132
|
# resp.scraper.last_modified_at #=> Time
|
1126
1133
|
# resp.scraper.role_arn #=> String
|
1134
|
+
# resp.scraper.role_configuration.source_role_arn #=> String
|
1135
|
+
# resp.scraper.role_configuration.target_role_arn #=> String
|
1127
1136
|
# resp.scraper.scrape_configuration.configuration_blob #=> String
|
1128
1137
|
# resp.scraper.scraper_id #=> String
|
1129
1138
|
# resp.scraper.source.eks_configuration.cluster_arn #=> String
|
@@ -1334,6 +1343,8 @@ module Aws::PrometheusService
|
|
1334
1343
|
# resp.scrapers[0].destination.amp_configuration.workspace_arn #=> String
|
1335
1344
|
# resp.scrapers[0].last_modified_at #=> Time
|
1336
1345
|
# resp.scrapers[0].role_arn #=> String
|
1346
|
+
# resp.scrapers[0].role_configuration.source_role_arn #=> String
|
1347
|
+
# resp.scrapers[0].role_configuration.target_role_arn #=> String
|
1337
1348
|
# resp.scrapers[0].scraper_id #=> String
|
1338
1349
|
# resp.scrapers[0].source.eks_configuration.cluster_arn #=> String
|
1339
1350
|
# resp.scrapers[0].source.eks_configuration.security_group_ids #=> Array
|
@@ -1698,6 +1709,9 @@ module Aws::PrometheusService
|
|
1698
1709
|
# The new Amazon Managed Service for Prometheus workspace to send
|
1699
1710
|
# metrics to.
|
1700
1711
|
#
|
1712
|
+
# @option params [Types::RoleConfiguration] :role_configuration
|
1713
|
+
# The scraper role configuration for the workspace.
|
1714
|
+
#
|
1701
1715
|
# @option params [Types::ScrapeConfiguration] :scrape_configuration
|
1702
1716
|
# Contains the base-64 encoded YAML configuration for the scraper.
|
1703
1717
|
#
|
@@ -1731,6 +1745,10 @@ module Aws::PrometheusService
|
|
1731
1745
|
# workspace_arn: "WorkspaceArn", # required
|
1732
1746
|
# },
|
1733
1747
|
# },
|
1748
|
+
# role_configuration: {
|
1749
|
+
# source_role_arn: "IamRoleArn",
|
1750
|
+
# target_role_arn: "IamRoleArn",
|
1751
|
+
# },
|
1734
1752
|
# scrape_configuration: {
|
1735
1753
|
# configuration_blob: "data",
|
1736
1754
|
# },
|
@@ -1809,7 +1827,7 @@ module Aws::PrometheusService
|
|
1809
1827
|
tracer: tracer
|
1810
1828
|
)
|
1811
1829
|
context[:gem_name] = 'aws-sdk-prometheusservice'
|
1812
|
-
context[:gem_version] = '1.
|
1830
|
+
context[:gem_version] = '1.46.0'
|
1813
1831
|
Seahorse::Client::Request.new(handlers, context)
|
1814
1832
|
end
|
1815
1833
|
|
@@ -82,6 +82,7 @@ module Aws::PrometheusService
|
|
82
82
|
PutRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'PutRuleGroupsNamespaceRequest')
|
83
83
|
PutRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'PutRuleGroupsNamespaceResponse')
|
84
84
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
85
|
+
RoleConfiguration = Shapes::StructureShape.new(name: 'RoleConfiguration')
|
85
86
|
RuleGroupsNamespaceArn = Shapes::StringShape.new(name: 'RuleGroupsNamespaceArn')
|
86
87
|
RuleGroupsNamespaceData = Shapes::BlobShape.new(name: 'RuleGroupsNamespaceData')
|
87
88
|
RuleGroupsNamespaceDescription = Shapes::StructureShape.new(name: 'RuleGroupsNamespaceDescription')
|
@@ -190,6 +191,7 @@ module Aws::PrometheusService
|
|
190
191
|
CreateScraperRequest.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
|
191
192
|
CreateScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
192
193
|
CreateScraperRequest.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
194
|
+
CreateScraperRequest.add_member(:role_configuration, Shapes::ShapeRef.new(shape: RoleConfiguration, location_name: "roleConfiguration"))
|
193
195
|
CreateScraperRequest.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, required: true, location_name: "scrapeConfiguration"))
|
194
196
|
CreateScraperRequest.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
195
197
|
CreateScraperRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
@@ -362,6 +364,10 @@ module Aws::PrometheusService
|
|
362
364
|
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
363
365
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
364
366
|
|
367
|
+
RoleConfiguration.add_member(:source_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "sourceRoleArn"))
|
368
|
+
RoleConfiguration.add_member(:target_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "targetRoleArn"))
|
369
|
+
RoleConfiguration.struct_class = Types::RoleConfiguration
|
370
|
+
|
365
371
|
RuleGroupsNamespaceDescription.add_member(:arn, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceArn, required: true, location_name: "arn"))
|
366
372
|
RuleGroupsNamespaceDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
367
373
|
RuleGroupsNamespaceDescription.add_member(:data, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceData, required: true, location_name: "data"))
|
@@ -397,6 +403,7 @@ module Aws::PrometheusService
|
|
397
403
|
ScraperDescription.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
398
404
|
ScraperDescription.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastModifiedAt"))
|
399
405
|
ScraperDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "roleArn"))
|
406
|
+
ScraperDescription.add_member(:role_configuration, Shapes::ShapeRef.new(shape: RoleConfiguration, location_name: "roleConfiguration"))
|
400
407
|
ScraperDescription.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, required: true, location_name: "scrapeConfiguration"))
|
401
408
|
ScraperDescription.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
402
409
|
ScraperDescription.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
@@ -417,6 +424,7 @@ module Aws::PrometheusService
|
|
417
424
|
ScraperSummary.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
418
425
|
ScraperSummary.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastModifiedAt"))
|
419
426
|
ScraperSummary.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "roleArn"))
|
427
|
+
ScraperSummary.add_member(:role_configuration, Shapes::ShapeRef.new(shape: RoleConfiguration, location_name: "roleConfiguration"))
|
420
428
|
ScraperSummary.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
421
429
|
ScraperSummary.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
422
430
|
ScraperSummary.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
|
@@ -477,6 +485,7 @@ module Aws::PrometheusService
|
|
477
485
|
UpdateScraperRequest.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
|
478
486
|
UpdateScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
479
487
|
UpdateScraperRequest.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, location_name: "destination"))
|
488
|
+
UpdateScraperRequest.add_member(:role_configuration, Shapes::ShapeRef.new(shape: RoleConfiguration, location_name: "roleConfiguration"))
|
480
489
|
UpdateScraperRequest.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, location_name: "scrapeConfiguration"))
|
481
490
|
UpdateScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
|
482
491
|
UpdateScraperRequest.struct_class = Types::UpdateScraperRequest
|
@@ -317,6 +317,10 @@ module Aws::PrometheusService
|
|
317
317
|
# to.
|
318
318
|
# @return [Types::Destination]
|
319
319
|
#
|
320
|
+
# @!attribute [rw] role_configuration
|
321
|
+
# The scraper role configuration for the workspace.
|
322
|
+
# @return [Types::RoleConfiguration]
|
323
|
+
#
|
320
324
|
# @!attribute [rw] scrape_configuration
|
321
325
|
# The configuration file to use in the new scraper. For more
|
322
326
|
# information, see [Scraper configuration][1] in the *Amazon Managed
|
@@ -342,6 +346,7 @@ module Aws::PrometheusService
|
|
342
346
|
:alias,
|
343
347
|
:client_token,
|
344
348
|
:destination,
|
349
|
+
:role_configuration,
|
345
350
|
:scrape_configuration,
|
346
351
|
:source,
|
347
352
|
:tags)
|
@@ -1259,6 +1264,26 @@ module Aws::PrometheusService
|
|
1259
1264
|
include Aws::Structure
|
1260
1265
|
end
|
1261
1266
|
|
1267
|
+
# To configure roles that allows users to write to an Amazon Managed
|
1268
|
+
# Service for Prometheus workspace in a different account.
|
1269
|
+
#
|
1270
|
+
# @!attribute [rw] source_role_arn
|
1271
|
+
# A ARN identifying the source role configuration.
|
1272
|
+
# @return [String]
|
1273
|
+
#
|
1274
|
+
# @!attribute [rw] target_role_arn
|
1275
|
+
# A ARN identifying the target role configuration.
|
1276
|
+
# @return [String]
|
1277
|
+
#
|
1278
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/RoleConfiguration AWS API Documentation
|
1279
|
+
#
|
1280
|
+
class RoleConfiguration < Struct.new(
|
1281
|
+
:source_role_arn,
|
1282
|
+
:target_role_arn)
|
1283
|
+
SENSITIVE = []
|
1284
|
+
include Aws::Structure
|
1285
|
+
end
|
1286
|
+
|
1262
1287
|
# The details about one rule groups namespace.
|
1263
1288
|
#
|
1264
1289
|
# @!attribute [rw] arn
|
@@ -1438,6 +1463,11 @@ module Aws::PrometheusService
|
|
1438
1463
|
# `arn:aws:iam::123456789012:role/service-role/AmazonGrafanaServiceRole-12example`.
|
1439
1464
|
# @return [String]
|
1440
1465
|
#
|
1466
|
+
# @!attribute [rw] role_configuration
|
1467
|
+
# To configure roles that allows users to write to an Amazon Managed
|
1468
|
+
# Service for Prometheus workspace in a different account.
|
1469
|
+
# @return [Types::RoleConfiguration]
|
1470
|
+
#
|
1441
1471
|
# @!attribute [rw] scrape_configuration
|
1442
1472
|
# The configuration in use by the scraper.
|
1443
1473
|
# @return [Types::ScrapeConfiguration]
|
@@ -1473,6 +1503,7 @@ module Aws::PrometheusService
|
|
1473
1503
|
:destination,
|
1474
1504
|
:last_modified_at,
|
1475
1505
|
:role_arn,
|
1506
|
+
:role_configuration,
|
1476
1507
|
:scrape_configuration,
|
1477
1508
|
:scraper_id,
|
1478
1509
|
:source,
|
@@ -1528,6 +1559,11 @@ module Aws::PrometheusService
|
|
1528
1559
|
# behalf.
|
1529
1560
|
# @return [String]
|
1530
1561
|
#
|
1562
|
+
# @!attribute [rw] role_configuration
|
1563
|
+
# To configure roles that allows users to write to an Amazon Managed
|
1564
|
+
# Service for Prometheus workspace in a different account.
|
1565
|
+
# @return [Types::RoleConfiguration]
|
1566
|
+
#
|
1531
1567
|
# @!attribute [rw] scraper_id
|
1532
1568
|
# The ID of the scraper.
|
1533
1569
|
# @return [String]
|
@@ -1558,6 +1594,7 @@ module Aws::PrometheusService
|
|
1558
1594
|
:destination,
|
1559
1595
|
:last_modified_at,
|
1560
1596
|
:role_arn,
|
1597
|
+
:role_configuration,
|
1561
1598
|
:scraper_id,
|
1562
1599
|
:source,
|
1563
1600
|
:status,
|
@@ -1758,6 +1795,10 @@ module Aws::PrometheusService
|
|
1758
1795
|
# metrics to.
|
1759
1796
|
# @return [Types::Destination]
|
1760
1797
|
#
|
1798
|
+
# @!attribute [rw] role_configuration
|
1799
|
+
# The scraper role configuration for the workspace.
|
1800
|
+
# @return [Types::RoleConfiguration]
|
1801
|
+
#
|
1761
1802
|
# @!attribute [rw] scrape_configuration
|
1762
1803
|
# Contains the base-64 encoded YAML configuration for the scraper.
|
1763
1804
|
#
|
@@ -1782,6 +1823,7 @@ module Aws::PrometheusService
|
|
1782
1823
|
:alias,
|
1783
1824
|
:client_token,
|
1784
1825
|
:destination,
|
1826
|
+
:role_configuration,
|
1785
1827
|
:scrape_configuration,
|
1786
1828
|
:scraper_id)
|
1787
1829
|
SENSITIVE = []
|
data/sig/client.rbs
CHANGED
@@ -134,6 +134,10 @@ module Aws
|
|
134
134
|
workspace_arn: ::String
|
135
135
|
}?
|
136
136
|
},
|
137
|
+
?role_configuration: {
|
138
|
+
source_role_arn: ::String?,
|
139
|
+
target_role_arn: ::String?
|
140
|
+
},
|
137
141
|
scrape_configuration: {
|
138
142
|
configuration_blob: ::String?
|
139
143
|
},
|
@@ -392,6 +396,10 @@ module Aws
|
|
392
396
|
workspace_arn: ::String
|
393
397
|
}?
|
394
398
|
},
|
399
|
+
?role_configuration: {
|
400
|
+
source_role_arn: ::String?,
|
401
|
+
target_role_arn: ::String?
|
402
|
+
},
|
395
403
|
?scrape_configuration: {
|
396
404
|
configuration_blob: ::String?
|
397
405
|
},
|
data/sig/types.rbs
CHANGED
@@ -84,6 +84,7 @@ module Aws::PrometheusService
|
|
84
84
|
attr_accessor alias: ::String
|
85
85
|
attr_accessor client_token: ::String
|
86
86
|
attr_accessor destination: Types::Destination
|
87
|
+
attr_accessor role_configuration: Types::RoleConfiguration
|
87
88
|
attr_accessor scrape_configuration: Types::ScrapeConfiguration
|
88
89
|
attr_accessor source: Types::Source
|
89
90
|
attr_accessor tags: ::Hash[::String, ::String]
|
@@ -335,6 +336,12 @@ module Aws::PrometheusService
|
|
335
336
|
SENSITIVE: []
|
336
337
|
end
|
337
338
|
|
339
|
+
class RoleConfiguration
|
340
|
+
attr_accessor source_role_arn: ::String
|
341
|
+
attr_accessor target_role_arn: ::String
|
342
|
+
SENSITIVE: []
|
343
|
+
end
|
344
|
+
|
338
345
|
class RuleGroupsNamespaceDescription
|
339
346
|
attr_accessor arn: ::String
|
340
347
|
attr_accessor created_at: ::Time
|
@@ -380,6 +387,7 @@ module Aws::PrometheusService
|
|
380
387
|
attr_accessor destination: Types::Destination
|
381
388
|
attr_accessor last_modified_at: ::Time
|
382
389
|
attr_accessor role_arn: ::String
|
390
|
+
attr_accessor role_configuration: Types::RoleConfiguration
|
383
391
|
attr_accessor scrape_configuration: Types::ScrapeConfiguration
|
384
392
|
attr_accessor scraper_id: ::String
|
385
393
|
attr_accessor source: Types::Source
|
@@ -401,6 +409,7 @@ module Aws::PrometheusService
|
|
401
409
|
attr_accessor destination: Types::Destination
|
402
410
|
attr_accessor last_modified_at: ::Time
|
403
411
|
attr_accessor role_arn: ::String
|
412
|
+
attr_accessor role_configuration: Types::RoleConfiguration
|
404
413
|
attr_accessor scraper_id: ::String
|
405
414
|
attr_accessor source: Types::Source
|
406
415
|
attr_accessor status: Types::ScraperStatus
|
@@ -471,6 +480,7 @@ module Aws::PrometheusService
|
|
471
480
|
attr_accessor alias: ::String
|
472
481
|
attr_accessor client_token: ::String
|
473
482
|
attr_accessor destination: Types::Destination
|
483
|
+
attr_accessor role_configuration: Types::RoleConfiguration
|
474
484
|
attr_accessor scrape_configuration: Types::ScrapeConfiguration
|
475
485
|
attr_accessor scraper_id: ::String
|
476
486
|
SENSITIVE: []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-prometheusservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|