aws-sdk-prometheusservice 1.42.0 → 1.44.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: dfa8850519d81fc48742c734710166c2594d3bcb8e285e7fc5b3bd4816584c74
4
- data.tar.gz: aae5be28700da187b12aac4ef699f857f58ecd1cf25e3c846f0ab8cd58516cd5
3
+ metadata.gz: 8929049020ac28c4578c52c6e7452516c31358a68fc218f5ba67a92fef058ee8
4
+ data.tar.gz: bd86945887c0dbfdcc6d49d67e4ee4c7176c2316bb53d6ad4e45392cf9c372e2
5
5
  SHA512:
6
- metadata.gz: 19676ff083199676453fb6d53bd559b8503685b6d76d573a901008b6b6829db652051ffd14c18a485cef1146822c655422bfeda2d058e5f094d4b7415ebb2e99
7
- data.tar.gz: 425e6dcfa4678d923d49d8350d0f957f69a932540091f73c740a39a45e6dc28378e31e99a0833d0fe9fcb8586b364c3cf4364b7eea315aa3b13074155555ba73
6
+ metadata.gz: bd1b5f7fa89e8851d22aabd5c10f7633823b26d56855821eec8fd8d64c6402c9c95d6162b176036e0be9b53f8ad223da4117faf396c67563b09404ed2310a3d2
7
+ data.tar.gz: bb60f4cb6fe959c104c588bae7cd0c72c99ca9ab6f0053d61e689ea23da9fd8b4f44af6d9c72b69fe6b59677f4547682f37da1be90692b8fd7469830f66a2316
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.44.0 (2024-10-31)
5
+ ------------------
6
+
7
+ * Feature - Added support for UpdateScraper API, to enable updating collector configuration in-place
8
+
9
+ 1.43.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.42.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.44.0
@@ -512,7 +512,8 @@ module Aws::PrometheusService
512
512
  #
513
513
  # @option params [required, String] :log_group_arn
514
514
  # The ARN of the CloudWatch log group to which the vended log data will
515
- # be published. This log group must exist prior to calling this API.
515
+ # be published. This log group must exist prior to calling this
516
+ # operation.
516
517
  #
517
518
  # @option params [required, String] :workspace_id
518
519
  # The ID of the workspace to create the logging configuration for.
@@ -621,36 +622,35 @@ module Aws::PrometheusService
621
622
  # The `CreateScraper` operation creates a scraper to collect metrics. A
622
623
  # scraper pulls metrics from Prometheus-compatible sources within an
623
624
  # Amazon EKS cluster, and sends them to your Amazon Managed Service for
624
- # Prometheus workspace. You can configure the scraper to control what
625
- # metrics are collected, and what transformations are applied prior to
626
- # sending them to your workspace.
625
+ # Prometheus workspace. Scrapers are flexible, and can be configured to
626
+ # control what metrics are collected, the frequency of collection, what
627
+ # transformations are applied to the metrics, and more.
627
628
  #
628
- # If needed, an IAM role will be created for you that gives Amazon
629
- # Managed Service for Prometheus access to the metrics in your cluster.
630
- # For more information, see [Using roles for scraping metrics from
631
- # EKS][1] in the *Amazon Managed Service for Prometheus User Guide*.
629
+ # An IAM role will be created for you that Amazon Managed Service for
630
+ # Prometheus uses to access the metrics in your cluster. You must
631
+ # configure this role with a policy that allows it to scrape metrics
632
+ # from your cluster. For more information, see [Configuring your Amazon
633
+ # EKS cluster][1] in the *Amazon Managed Service for Prometheus User
634
+ # Guide*.
632
635
  #
633
- # You cannot update a scraper. If you want to change the configuration
634
- # of the scraper, create a new scraper and delete the old one.
635
- #
636
- # The `scrapeConfiguration` parameter contains the base64-encoded
637
- # version of the YAML configuration file.
636
+ # The `scrapeConfiguration` parameter contains the base-64 encoded YAML
637
+ # configuration for the scraper.
638
638
  #
639
639
  # <note markdown="1"> For more information about collectors, including what metrics are
640
- # collected, and how to configure the scraper, see [Amazon Web Services
641
- # managed collectors][2] in the *Amazon Managed Service for Prometheus
642
- # User Guide*.
640
+ # collected, and how to configure the scraper, see [Using an Amazon Web
641
+ # Services managed collector][2] in the *Amazon Managed Service for
642
+ # Prometheus User Guide*.
643
643
  #
644
644
  # </note>
645
645
  #
646
646
  #
647
647
  #
648
- # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/using-service-linked-roles.html#using-service-linked-roles-prom-scraper
649
- # [2]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector.html
648
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup
649
+ # [2]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html
650
650
  #
651
651
  # @option params [String] :alias
652
- # (optional) a name to associate with the scraper. This is for your use,
653
- # and does not need to be unique.
652
+ # (optional) An alias to associate with the scraper. This is for your
653
+ # use, and does not need to be unique.
654
654
  #
655
655
  # @option params [String] :client_token
656
656
  # (Optional) A unique, case-sensitive identifier that you can provide to
@@ -665,9 +665,12 @@ module Aws::PrometheusService
665
665
  #
666
666
  # @option params [required, Types::ScrapeConfiguration] :scrape_configuration
667
667
  # The configuration file to use in the new scraper. For more
668
- # information, see [Scraper
669
- # configuration](prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration)
670
- # in the *Amazon Managed Service for Prometheus User Guide*.
668
+ # information, see [Scraper configuration][1] in the *Amazon Managed
669
+ # Service for Prometheus User Guide*.
670
+ #
671
+ #
672
+ #
673
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration
671
674
  #
672
675
  # @option params [required, Types::Source] :source
673
676
  # The Amazon EKS cluster from which the scraper will collect metrics.
@@ -712,7 +715,7 @@ module Aws::PrometheusService
712
715
  #
713
716
  # resp.arn #=> String
714
717
  # resp.scraper_id #=> String
715
- # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
718
+ # resp.status.status_code #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
716
719
  # resp.tags #=> Hash
717
720
  # resp.tags["TagKey"] #=> String
718
721
  #
@@ -918,7 +921,7 @@ module Aws::PrometheusService
918
921
  # @example Response structure
919
922
  #
920
923
  # resp.scraper_id #=> String
921
- # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
924
+ # resp.status.status_code #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
922
925
  #
923
926
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraper AWS API Documentation
924
927
  #
@@ -1105,7 +1108,7 @@ module Aws::PrometheusService
1105
1108
  # resp.scraper.source.eks_configuration.security_group_ids[0] #=> String
1106
1109
  # resp.scraper.source.eks_configuration.subnet_ids #=> Array
1107
1110
  # resp.scraper.source.eks_configuration.subnet_ids[0] #=> String
1108
- # resp.scraper.status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
1111
+ # resp.scraper.status.status_code #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
1109
1112
  # resp.scraper.status_reason #=> String
1110
1113
  # resp.scraper.tags #=> Hash
1111
1114
  # resp.scraper.tags["TagKey"] #=> String
@@ -1314,7 +1317,7 @@ module Aws::PrometheusService
1314
1317
  # resp.scrapers[0].source.eks_configuration.security_group_ids[0] #=> String
1315
1318
  # resp.scrapers[0].source.eks_configuration.subnet_ids #=> Array
1316
1319
  # resp.scrapers[0].source.eks_configuration.subnet_ids[0] #=> String
1317
- # resp.scrapers[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "DELETING", "CREATION_FAILED", "DELETION_FAILED"
1320
+ # resp.scrapers[0].status.status_code #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
1318
1321
  # resp.scrapers[0].status_reason #=> String
1319
1322
  # resp.scrapers[0].tags #=> Hash
1320
1323
  # resp.scrapers[0].tags["TagKey"] #=> String
@@ -1330,12 +1333,12 @@ module Aws::PrometheusService
1330
1333
 
1331
1334
  # The `ListTagsForResource` operation returns the tags that are
1332
1335
  # associated with an Amazon Managed Service for Prometheus resource.
1333
- # Currently, the only resources that can be tagged are workspaces and
1334
- # rule groups namespaces.
1336
+ # Currently, the only resources that can be tagged are scrapers,
1337
+ # workspaces, and rule groups namespaces.
1335
1338
  #
1336
1339
  # @option params [required, String] :resource_arn
1337
- # The ARN of the resource to list tages for. Must be a workspace or rule
1338
- # groups namespace resource.
1340
+ # The ARN of the resource to list tages for. Must be a workspace,
1341
+ # scraper, or rule groups namespace resource.
1339
1342
  #
1340
1343
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1341
1344
  #
@@ -1545,20 +1548,21 @@ module Aws::PrometheusService
1545
1548
 
1546
1549
  # The `TagResource` operation associates tags with an Amazon Managed
1547
1550
  # Service for Prometheus resource. The only resources that can be tagged
1548
- # are workspaces and rule groups namespaces.
1551
+ # are rule groups namespaces, scrapers, and workspaces.
1549
1552
  #
1550
1553
  # If you specify a new tag key for the resource, this tag is appended to
1551
1554
  # the list of tags associated with the resource. If you specify a tag
1552
1555
  # key that is already associated with the resource, the new tag value
1553
- # that you specify replaces the previous value for that tag.
1556
+ # that you specify replaces the previous value for that tag. To remove a
1557
+ # tag, use `UntagResource`.
1554
1558
  #
1555
1559
  # @option params [required, String] :resource_arn
1556
- # The ARN of the workspace or rule groups namespace to apply tags to.
1560
+ # The ARN of the resource to apply tags to.
1557
1561
  #
1558
1562
  # @option params [required, Hash<String,String>] :tags
1559
1563
  # The list of tag keys and values to associate with the resource.
1560
1564
  #
1561
- # Keys may not begin with `aws:`.
1565
+ # Keys must not begin with `aws:`.
1562
1566
  #
1563
1567
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1564
1568
  #
@@ -1581,11 +1585,11 @@ module Aws::PrometheusService
1581
1585
  end
1582
1586
 
1583
1587
  # Removes the specified tags from an Amazon Managed Service for
1584
- # Prometheus resource. The only resources that can be tagged are
1585
- # workspaces and rule groups namespaces.
1588
+ # Prometheus resource. The only resources that can be tagged are rule
1589
+ # groups namespaces, scrapers, and workspaces.
1586
1590
  #
1587
1591
  # @option params [required, String] :resource_arn
1588
- # The ARN of the workspace or rule groups namespace.
1592
+ # The ARN of the resource from which to remove a tag.
1589
1593
  #
1590
1594
  # @option params [required, Array<String>] :tag_keys
1591
1595
  # The keys of the tags to remove.
@@ -1651,6 +1655,82 @@ module Aws::PrometheusService
1651
1655
  req.send_request(options)
1652
1656
  end
1653
1657
 
1658
+ # Updates an existing scraper.
1659
+ #
1660
+ # You can't use this function to update the source from which the
1661
+ # scraper is collecting metrics. To change the source, delete the
1662
+ # scraper and create a new one.
1663
+ #
1664
+ # @option params [String] :alias
1665
+ # The new alias of the scraper.
1666
+ #
1667
+ # @option params [String] :client_token
1668
+ # A unique identifier that you can provide to ensure the idempotency of
1669
+ # the request. Case-sensitive.
1670
+ #
1671
+ # **A suitable default value is auto-generated.** You should normally
1672
+ # not need to pass this option.**
1673
+ #
1674
+ # @option params [Types::Destination] :destination
1675
+ # The new Amazon Managed Service for Prometheus workspace to send
1676
+ # metrics to.
1677
+ #
1678
+ # @option params [Types::ScrapeConfiguration] :scrape_configuration
1679
+ # Contains the base-64 encoded YAML configuration for the scraper.
1680
+ #
1681
+ # <note markdown="1"> For more information about configuring a scraper, see [Using an Amazon
1682
+ # Web Services managed collector][1] in the *Amazon Managed Service for
1683
+ # Prometheus User Guide*.
1684
+ #
1685
+ # </note>
1686
+ #
1687
+ #
1688
+ #
1689
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html
1690
+ #
1691
+ # @option params [required, String] :scraper_id
1692
+ # The ID of the scraper to update.
1693
+ #
1694
+ # @return [Types::UpdateScraperResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1695
+ #
1696
+ # * {Types::UpdateScraperResponse#arn #arn} => String
1697
+ # * {Types::UpdateScraperResponse#scraper_id #scraper_id} => String
1698
+ # * {Types::UpdateScraperResponse#status #status} => Types::ScraperStatus
1699
+ # * {Types::UpdateScraperResponse#tags #tags} => Hash&lt;String,String&gt;
1700
+ #
1701
+ # @example Request syntax with placeholder values
1702
+ #
1703
+ # resp = client.update_scraper({
1704
+ # alias: "ScraperAlias",
1705
+ # client_token: "IdempotencyToken",
1706
+ # destination: {
1707
+ # amp_configuration: {
1708
+ # workspace_arn: "WorkspaceArn", # required
1709
+ # },
1710
+ # },
1711
+ # scrape_configuration: {
1712
+ # configuration_blob: "data",
1713
+ # },
1714
+ # scraper_id: "ScraperId", # required
1715
+ # })
1716
+ #
1717
+ # @example Response structure
1718
+ #
1719
+ # resp.arn #=> String
1720
+ # resp.scraper_id #=> String
1721
+ # resp.status.status_code #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "CREATION_FAILED", "UPDATE_FAILED", "DELETION_FAILED"
1722
+ # resp.tags #=> Hash
1723
+ # resp.tags["TagKey"] #=> String
1724
+ #
1725
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraper AWS API Documentation
1726
+ #
1727
+ # @overload update_scraper(params = {})
1728
+ # @param [Hash] params ({})
1729
+ def update_scraper(params = {}, options = {})
1730
+ req = build_request(:update_scraper, params)
1731
+ req.send_request(options)
1732
+ end
1733
+
1654
1734
  # Updates the alias of an existing workspace.
1655
1735
  #
1656
1736
  # @option params [String] :alias
@@ -1706,7 +1786,7 @@ module Aws::PrometheusService
1706
1786
  tracer: tracer
1707
1787
  )
1708
1788
  context[:gem_name] = 'aws-sdk-prometheusservice'
1709
- context[:gem_version] = '1.42.0'
1789
+ context[:gem_version] = '1.44.0'
1710
1790
  Seahorse::Client::Request.new(handlers, context)
1711
1791
  end
1712
1792
 
@@ -120,6 +120,8 @@ module Aws::PrometheusService
120
120
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
121
121
  UpdateLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateLoggingConfigurationRequest')
122
122
  UpdateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateLoggingConfigurationResponse')
123
+ UpdateScraperRequest = Shapes::StructureShape.new(name: 'UpdateScraperRequest')
124
+ UpdateScraperResponse = Shapes::StructureShape.new(name: 'UpdateScraperResponse')
123
125
  UpdateWorkspaceAliasRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceAliasRequest')
124
126
  Uri = Shapes::StringShape.new(name: 'Uri')
125
127
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -472,6 +474,19 @@ module Aws::PrometheusService
472
474
  UpdateLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: LoggingConfigurationStatus, required: true, location_name: "status"))
473
475
  UpdateLoggingConfigurationResponse.struct_class = Types::UpdateLoggingConfigurationResponse
474
476
 
477
+ UpdateScraperRequest.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
478
+ UpdateScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
479
+ UpdateScraperRequest.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, location_name: "destination"))
480
+ UpdateScraperRequest.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, location_name: "scrapeConfiguration"))
481
+ UpdateScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
482
+ UpdateScraperRequest.struct_class = Types::UpdateScraperRequest
483
+
484
+ UpdateScraperResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ScraperArn, required: true, location_name: "arn"))
485
+ UpdateScraperResponse.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
486
+ UpdateScraperResponse.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
487
+ UpdateScraperResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
488
+ UpdateScraperResponse.struct_class = Types::UpdateScraperResponse
489
+
475
490
  UpdateWorkspaceAliasRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location_name: "alias"))
476
491
  UpdateWorkspaceAliasRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
477
492
  UpdateWorkspaceAliasRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
@@ -520,9 +535,11 @@ module Aws::PrometheusService
520
535
 
521
536
  api.metadata = {
522
537
  "apiVersion" => "2020-08-01",
538
+ "auth" => ["aws.auth#sigv4"],
523
539
  "endpointPrefix" => "aps",
524
540
  "jsonVersion" => "1.1",
525
541
  "protocol" => "rest-json",
542
+ "protocols" => ["rest-json"],
526
543
  "serviceFullName" => "Amazon Prometheus Service",
527
544
  "serviceId" => "amp",
528
545
  "signatureVersion" => "v4",
@@ -882,6 +899,21 @@ module Aws::PrometheusService
882
899
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
883
900
  end)
884
901
 
902
+ api.add_operation(:update_scraper, Seahorse::Model::Operation.new.tap do |o|
903
+ o.name = "UpdateScraper"
904
+ o.http_method = "PUT"
905
+ o.http_request_uri = "/scrapers/{scraperId}"
906
+ o.input = Shapes::ShapeRef.new(shape: UpdateScraperRequest)
907
+ o.output = Shapes::ShapeRef.new(shape: UpdateScraperResponse)
908
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
909
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
910
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
911
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
912
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
913
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
914
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
915
+ end)
916
+
885
917
  api.add_operation(:update_workspace_alias, Seahorse::Model::Operation.new.tap do |o|
886
918
  o.name = "UpdateWorkspaceAlias"
887
919
  o.http_method = "POST"
@@ -52,15 +52,18 @@ module Aws::PrometheusService
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,291 +12,9 @@ module Aws::PrometheusService
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class CreateAlertManagerDefinition
16
- def self.build(context)
17
- Aws::PrometheusService::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class CreateLoggingConfiguration
27
- def self.build(context)
28
- Aws::PrometheusService::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class CreateRuleGroupsNamespace
38
- def self.build(context)
39
- Aws::PrometheusService::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class CreateScraper
49
- def self.build(context)
50
- Aws::PrometheusService::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class CreateWorkspace
60
- def self.build(context)
61
- Aws::PrometheusService::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class DeleteAlertManagerDefinition
71
- def self.build(context)
72
- Aws::PrometheusService::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class DeleteLoggingConfiguration
82
- def self.build(context)
83
- Aws::PrometheusService::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class DeleteRuleGroupsNamespace
93
- def self.build(context)
94
- Aws::PrometheusService::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
-
103
- class DeleteScraper
104
- def self.build(context)
105
- Aws::PrometheusService::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
112
- end
113
-
114
- class DeleteWorkspace
115
- def self.build(context)
116
- Aws::PrometheusService::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class DescribeAlertManagerDefinition
126
- def self.build(context)
127
- Aws::PrometheusService::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
- class DescribeLoggingConfiguration
137
- def self.build(context)
138
- Aws::PrometheusService::EndpointParameters.new(
139
- region: context.config.region,
140
- use_dual_stack: context.config.use_dualstack_endpoint,
141
- use_fips: context.config.use_fips_endpoint,
142
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
143
- )
144
- end
145
- end
146
-
147
- class DescribeRuleGroupsNamespace
148
- def self.build(context)
149
- Aws::PrometheusService::EndpointParameters.new(
150
- region: context.config.region,
151
- use_dual_stack: context.config.use_dualstack_endpoint,
152
- use_fips: context.config.use_fips_endpoint,
153
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
- )
155
- end
156
- end
157
15
 
158
- class DescribeScraper
159
- def self.build(context)
160
- Aws::PrometheusService::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
165
- )
166
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::PrometheusService::EndpointParameters.create(context.config)
167
18
  end
168
-
169
- class DescribeWorkspace
170
- def self.build(context)
171
- Aws::PrometheusService::EndpointParameters.new(
172
- region: context.config.region,
173
- use_dual_stack: context.config.use_dualstack_endpoint,
174
- use_fips: context.config.use_fips_endpoint,
175
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
176
- )
177
- end
178
- end
179
-
180
- class GetDefaultScraperConfiguration
181
- def self.build(context)
182
- Aws::PrometheusService::EndpointParameters.new(
183
- region: context.config.region,
184
- use_dual_stack: context.config.use_dualstack_endpoint,
185
- use_fips: context.config.use_fips_endpoint,
186
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
187
- )
188
- end
189
- end
190
-
191
- class ListRuleGroupsNamespaces
192
- def self.build(context)
193
- Aws::PrometheusService::EndpointParameters.new(
194
- region: context.config.region,
195
- use_dual_stack: context.config.use_dualstack_endpoint,
196
- use_fips: context.config.use_fips_endpoint,
197
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
198
- )
199
- end
200
- end
201
-
202
- class ListScrapers
203
- def self.build(context)
204
- Aws::PrometheusService::EndpointParameters.new(
205
- region: context.config.region,
206
- use_dual_stack: context.config.use_dualstack_endpoint,
207
- use_fips: context.config.use_fips_endpoint,
208
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
209
- )
210
- end
211
- end
212
-
213
- class ListTagsForResource
214
- def self.build(context)
215
- Aws::PrometheusService::EndpointParameters.new(
216
- region: context.config.region,
217
- use_dual_stack: context.config.use_dualstack_endpoint,
218
- use_fips: context.config.use_fips_endpoint,
219
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
220
- )
221
- end
222
- end
223
-
224
- class ListWorkspaces
225
- def self.build(context)
226
- Aws::PrometheusService::EndpointParameters.new(
227
- region: context.config.region,
228
- use_dual_stack: context.config.use_dualstack_endpoint,
229
- use_fips: context.config.use_fips_endpoint,
230
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
231
- )
232
- end
233
- end
234
-
235
- class PutAlertManagerDefinition
236
- def self.build(context)
237
- Aws::PrometheusService::EndpointParameters.new(
238
- region: context.config.region,
239
- use_dual_stack: context.config.use_dualstack_endpoint,
240
- use_fips: context.config.use_fips_endpoint,
241
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
242
- )
243
- end
244
- end
245
-
246
- class PutRuleGroupsNamespace
247
- def self.build(context)
248
- Aws::PrometheusService::EndpointParameters.new(
249
- region: context.config.region,
250
- use_dual_stack: context.config.use_dualstack_endpoint,
251
- use_fips: context.config.use_fips_endpoint,
252
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
253
- )
254
- end
255
- end
256
-
257
- class TagResource
258
- def self.build(context)
259
- Aws::PrometheusService::EndpointParameters.new(
260
- region: context.config.region,
261
- use_dual_stack: context.config.use_dualstack_endpoint,
262
- use_fips: context.config.use_fips_endpoint,
263
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
264
- )
265
- end
266
- end
267
-
268
- class UntagResource
269
- def self.build(context)
270
- Aws::PrometheusService::EndpointParameters.new(
271
- region: context.config.region,
272
- use_dual_stack: context.config.use_dualstack_endpoint,
273
- use_fips: context.config.use_fips_endpoint,
274
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
275
- )
276
- end
277
- end
278
-
279
- class UpdateLoggingConfiguration
280
- def self.build(context)
281
- Aws::PrometheusService::EndpointParameters.new(
282
- region: context.config.region,
283
- use_dual_stack: context.config.use_dualstack_endpoint,
284
- use_fips: context.config.use_fips_endpoint,
285
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
286
- )
287
- end
288
- end
289
-
290
- class UpdateWorkspaceAlias
291
- def self.build(context)
292
- Aws::PrometheusService::EndpointParameters.new(
293
- region: context.config.region,
294
- use_dual_stack: context.config.use_dualstack_endpoint,
295
- use_fips: context.config.use_fips_endpoint,
296
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
297
- )
298
- end
299
- end
300
-
301
19
  end
302
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::PrometheusService::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,63 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_alert_manager_definition
74
- Aws::PrometheusService::Endpoints::CreateAlertManagerDefinition.build(context)
75
- when :create_logging_configuration
76
- Aws::PrometheusService::Endpoints::CreateLoggingConfiguration.build(context)
77
- when :create_rule_groups_namespace
78
- Aws::PrometheusService::Endpoints::CreateRuleGroupsNamespace.build(context)
79
- when :create_scraper
80
- Aws::PrometheusService::Endpoints::CreateScraper.build(context)
81
- when :create_workspace
82
- Aws::PrometheusService::Endpoints::CreateWorkspace.build(context)
83
- when :delete_alert_manager_definition
84
- Aws::PrometheusService::Endpoints::DeleteAlertManagerDefinition.build(context)
85
- when :delete_logging_configuration
86
- Aws::PrometheusService::Endpoints::DeleteLoggingConfiguration.build(context)
87
- when :delete_rule_groups_namespace
88
- Aws::PrometheusService::Endpoints::DeleteRuleGroupsNamespace.build(context)
89
- when :delete_scraper
90
- Aws::PrometheusService::Endpoints::DeleteScraper.build(context)
91
- when :delete_workspace
92
- Aws::PrometheusService::Endpoints::DeleteWorkspace.build(context)
93
- when :describe_alert_manager_definition
94
- Aws::PrometheusService::Endpoints::DescribeAlertManagerDefinition.build(context)
95
- when :describe_logging_configuration
96
- Aws::PrometheusService::Endpoints::DescribeLoggingConfiguration.build(context)
97
- when :describe_rule_groups_namespace
98
- Aws::PrometheusService::Endpoints::DescribeRuleGroupsNamespace.build(context)
99
- when :describe_scraper
100
- Aws::PrometheusService::Endpoints::DescribeScraper.build(context)
101
- when :describe_workspace
102
- Aws::PrometheusService::Endpoints::DescribeWorkspace.build(context)
103
- when :get_default_scraper_configuration
104
- Aws::PrometheusService::Endpoints::GetDefaultScraperConfiguration.build(context)
105
- when :list_rule_groups_namespaces
106
- Aws::PrometheusService::Endpoints::ListRuleGroupsNamespaces.build(context)
107
- when :list_scrapers
108
- Aws::PrometheusService::Endpoints::ListScrapers.build(context)
109
- when :list_tags_for_resource
110
- Aws::PrometheusService::Endpoints::ListTagsForResource.build(context)
111
- when :list_workspaces
112
- Aws::PrometheusService::Endpoints::ListWorkspaces.build(context)
113
- when :put_alert_manager_definition
114
- Aws::PrometheusService::Endpoints::PutAlertManagerDefinition.build(context)
115
- when :put_rule_groups_namespace
116
- Aws::PrometheusService::Endpoints::PutRuleGroupsNamespace.build(context)
117
- when :tag_resource
118
- Aws::PrometheusService::Endpoints::TagResource.build(context)
119
- when :untag_resource
120
- Aws::PrometheusService::Endpoints::UntagResource.build(context)
121
- when :update_logging_configuration
122
- Aws::PrometheusService::Endpoints::UpdateLoggingConfiguration.build(context)
123
- when :update_workspace_alias
124
- Aws::PrometheusService::Endpoints::UpdateWorkspaceAlias.build(context)
125
- end
126
- end
127
70
  end
128
71
 
129
72
  def add_handlers(handlers, _config)
@@ -24,7 +24,9 @@ module Aws::PrometheusService
24
24
  include Aws::Structure
25
25
  end
26
26
 
27
- # The details of an alert manager definition.
27
+ # The details of an alert manager definition. It is the configuration
28
+ # for the alert manager, including information about receivers for
29
+ # routing alerts.
28
30
  #
29
31
  # @!attribute [rw] created_at
30
32
  # The date and time that the alert manager definition was created.
@@ -184,7 +186,7 @@ module Aws::PrometheusService
184
186
  # @!attribute [rw] log_group_arn
185
187
  # The ARN of the CloudWatch log group to which the vended log data
186
188
  # will be published. This log group must exist prior to calling this
187
- # API.
189
+ # operation.
188
190
  # @return [String]
189
191
  #
190
192
  # @!attribute [rw] workspace_id
@@ -298,7 +300,7 @@ module Aws::PrometheusService
298
300
  # Represents the input of a `CreateScraper` operation.
299
301
  #
300
302
  # @!attribute [rw] alias
301
- # (optional) a name to associate with the scraper. This is for your
303
+ # (optional) An alias to associate with the scraper. This is for your
302
304
  # use, and does not need to be unique.
303
305
  # @return [String]
304
306
  #
@@ -317,9 +319,12 @@ module Aws::PrometheusService
317
319
  #
318
320
  # @!attribute [rw] scrape_configuration
319
321
  # The configuration file to use in the new scraper. For more
320
- # information, see [Scraper
321
- # configuration](prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration)
322
- # in the *Amazon Managed Service for Prometheus User Guide*.
322
+ # information, see [Scraper configuration][1] in the *Amazon Managed
323
+ # Service for Prometheus User Guide*.
324
+ #
325
+ #
326
+ #
327
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration
323
328
  # @return [Types::ScrapeConfiguration]
324
329
  #
325
330
  # @!attribute [rw] source
@@ -750,7 +755,7 @@ module Aws::PrometheusService
750
755
  # @note Destination is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Destination corresponding to the set member.
751
756
  #
752
757
  # @!attribute [rw] amp_configuration
753
- # The Amazon Managed Service for Prometheusworkspace to send metrics
758
+ # The Amazon Managed Service for Prometheus workspace to send metrics
754
759
  # to.
755
760
  # @return [Types::AmpConfiguration]
756
761
  #
@@ -967,8 +972,8 @@ module Aws::PrometheusService
967
972
  end
968
973
 
969
974
  # @!attribute [rw] resource_arn
970
- # The ARN of the resource to list tages for. Must be a workspace or
971
- # rule groups namespace resource.
975
+ # The ARN of the resource to list tages for. Must be a workspace,
976
+ # scraper, or rule groups namespace resource.
972
977
  # @return [String]
973
978
  #
974
979
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResourceRequest AWS API Documentation
@@ -1050,7 +1055,8 @@ module Aws::PrometheusService
1050
1055
  include Aws::Structure
1051
1056
  end
1052
1057
 
1053
- # Contains information about the logging configuration.
1058
+ # Contains information about the logging configuration for the
1059
+ # workspace.
1054
1060
  #
1055
1061
  # @!attribute [rw] created_at
1056
1062
  # The date and time that the logging configuration was created.
@@ -1256,7 +1262,8 @@ module Aws::PrometheusService
1256
1262
  # The details about one rule groups namespace.
1257
1263
  #
1258
1264
  # @!attribute [rw] arn
1259
- # The ARN of the rule groups namespace.
1265
+ # The ARN of the rule groups namespace. For example,
1266
+ # `arn:aws:aps:<region>:123456789012:rulegroupsnamespace/ws-example1-1234-abcd-5678-ef90abcd1234/rulesfile1`.
1260
1267
  # @return [String]
1261
1268
  #
1262
1269
  # @!attribute [rw] created_at
@@ -1369,9 +1376,12 @@ module Aws::PrometheusService
1369
1376
  end
1370
1377
 
1371
1378
  # A scrape configuration for a scraper, base 64 encoded. For more
1372
- # information, see [Scraper
1373
- # configuration](prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration)
1374
- # in the *Amazon Managed Service for Prometheus User Guide*.
1379
+ # information, see [Scraper configuration][1] in the *Amazon Managed
1380
+ # Service for Prometheus User Guide*.
1381
+ #
1382
+ #
1383
+ #
1384
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration
1375
1385
  #
1376
1386
  # @note ScrapeConfiguration is a union - when making an API calls you must set exactly one of the members.
1377
1387
  #
@@ -1402,7 +1412,8 @@ module Aws::PrometheusService
1402
1412
  # @return [String]
1403
1413
  #
1404
1414
  # @!attribute [rw] arn
1405
- # The Amazon Resource Name (ARN) of the scraper.
1415
+ # The Amazon Resource Name (ARN) of the scraper. For example,
1416
+ # `arn:aws:aps:<region>:123456798012:scraper/s-example1-1234-abcd-5678-ef9012abcd34`.
1406
1417
  # @return [String]
1407
1418
  #
1408
1419
  # @!attribute [rw] created_at
@@ -1422,14 +1433,18 @@ module Aws::PrometheusService
1422
1433
  # The Amazon Resource Name (ARN) of the IAM role that provides
1423
1434
  # permissions for the scraper to discover and collect metrics on your
1424
1435
  # behalf.
1436
+ #
1437
+ # For example,
1438
+ # `arn:aws:iam::123456789012:role/service-role/AmazonGrafanaServiceRole-12example`.
1425
1439
  # @return [String]
1426
1440
  #
1427
1441
  # @!attribute [rw] scrape_configuration
1428
- # The configuration file in use by the scraper.
1442
+ # The configuration in use by the scraper.
1429
1443
  # @return [Types::ScrapeConfiguration]
1430
1444
  #
1431
1445
  # @!attribute [rw] scraper_id
1432
- # The ID of the scraper.
1446
+ # The ID of the scraper. For example,
1447
+ # `s-example1-1234-abcd-5678-ef9012abcd34`.
1433
1448
  # @return [String]
1434
1449
  #
1435
1450
  # @!attribute [rw] source
@@ -1610,13 +1625,13 @@ module Aws::PrometheusService
1610
1625
  end
1611
1626
 
1612
1627
  # @!attribute [rw] resource_arn
1613
- # The ARN of the workspace or rule groups namespace to apply tags to.
1628
+ # The ARN of the resource to apply tags to.
1614
1629
  # @return [String]
1615
1630
  #
1616
1631
  # @!attribute [rw] tags
1617
1632
  # The list of tag keys and values to associate with the resource.
1618
1633
  #
1619
- # Keys may not begin with `aws:`.
1634
+ # Keys must not begin with `aws:`.
1620
1635
  # @return [Hash<String,String>]
1621
1636
  #
1622
1637
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResourceRequest AWS API Documentation
@@ -1662,7 +1677,7 @@ module Aws::PrometheusService
1662
1677
  end
1663
1678
 
1664
1679
  # @!attribute [rw] resource_arn
1665
- # The ARN of the workspace or rule groups namespace.
1680
+ # The ARN of the resource from which to remove a tag.
1666
1681
  # @return [String]
1667
1682
  #
1668
1683
  # @!attribute [rw] tag_keys
@@ -1726,6 +1741,81 @@ module Aws::PrometheusService
1726
1741
  include Aws::Structure
1727
1742
  end
1728
1743
 
1744
+ # @!attribute [rw] alias
1745
+ # The new alias of the scraper.
1746
+ # @return [String]
1747
+ #
1748
+ # @!attribute [rw] client_token
1749
+ # A unique identifier that you can provide to ensure the idempotency
1750
+ # of the request. Case-sensitive.
1751
+ #
1752
+ # **A suitable default value is auto-generated.** You should normally
1753
+ # not need to pass this option.
1754
+ # @return [String]
1755
+ #
1756
+ # @!attribute [rw] destination
1757
+ # The new Amazon Managed Service for Prometheus workspace to send
1758
+ # metrics to.
1759
+ # @return [Types::Destination]
1760
+ #
1761
+ # @!attribute [rw] scrape_configuration
1762
+ # Contains the base-64 encoded YAML configuration for the scraper.
1763
+ #
1764
+ # <note markdown="1"> For more information about configuring a scraper, see [Using an
1765
+ # Amazon Web Services managed collector][1] in the *Amazon Managed
1766
+ # Service for Prometheus User Guide*.
1767
+ #
1768
+ # </note>
1769
+ #
1770
+ #
1771
+ #
1772
+ # [1]: https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html
1773
+ # @return [Types::ScrapeConfiguration]
1774
+ #
1775
+ # @!attribute [rw] scraper_id
1776
+ # The ID of the scraper to update.
1777
+ # @return [String]
1778
+ #
1779
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraperRequest AWS API Documentation
1780
+ #
1781
+ class UpdateScraperRequest < Struct.new(
1782
+ :alias,
1783
+ :client_token,
1784
+ :destination,
1785
+ :scrape_configuration,
1786
+ :scraper_id)
1787
+ SENSITIVE = []
1788
+ include Aws::Structure
1789
+ end
1790
+
1791
+ # @!attribute [rw] arn
1792
+ # The Amazon Resource Name (ARN) of the updated scraper.
1793
+ # @return [String]
1794
+ #
1795
+ # @!attribute [rw] scraper_id
1796
+ # The ID of the updated scraper.
1797
+ # @return [String]
1798
+ #
1799
+ # @!attribute [rw] status
1800
+ # A structure that displays the current status of the scraper.
1801
+ # @return [Types::ScraperStatus]
1802
+ #
1803
+ # @!attribute [rw] tags
1804
+ # The list of tag keys and values that are associated with the
1805
+ # scraper.
1806
+ # @return [Hash<String,String>]
1807
+ #
1808
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraperResponse AWS API Documentation
1809
+ #
1810
+ class UpdateScraperResponse < Struct.new(
1811
+ :arn,
1812
+ :scraper_id,
1813
+ :status,
1814
+ :tags)
1815
+ SENSITIVE = []
1816
+ include Aws::Structure
1817
+ end
1818
+
1729
1819
  # Represents the input of an `UpdateWorkspaceAlias` operation.
1730
1820
  #
1731
1821
  # @!attribute [rw] alias
@@ -1808,11 +1898,12 @@ module Aws::PrometheusService
1808
1898
  #
1809
1899
  # @!attribute [rw] alias
1810
1900
  # The alias that is assigned to this workspace to help identify it. It
1811
- # may not be unique.
1901
+ # does not need to be unique.
1812
1902
  # @return [String]
1813
1903
  #
1814
1904
  # @!attribute [rw] arn
1815
- # The ARN of the workspace.
1905
+ # The ARN of the workspace. For example,
1906
+ # `arn:aws:aps:<region>:123456789012:workspace/ws-example1-1234-abcd-5678-ef90abcd1234`.
1816
1907
  # @return [String]
1817
1908
  #
1818
1909
  # @!attribute [rw] created_at
@@ -1825,7 +1916,8 @@ module Aws::PrometheusService
1825
1916
  # @return [String]
1826
1917
  #
1827
1918
  # @!attribute [rw] prometheus_endpoint
1828
- # The Prometheus endpoint available for this workspace.
1919
+ # The Prometheus endpoint available for this workspace. For example,
1920
+ # `https://aps-workspaces.<region>.amazonaws.com/workspaces/ws-example1-1234-abcd-5678-ef90abcd1234/api/v1/`.
1829
1921
  # @return [String]
1830
1922
  #
1831
1923
  # @!attribute [rw] status
@@ -1838,7 +1930,8 @@ module Aws::PrometheusService
1838
1930
  # @return [Hash<String,String>]
1839
1931
  #
1840
1932
  # @!attribute [rw] workspace_id
1841
- # The unique ID for the workspace.
1933
+ # The unique ID for the workspace. For example,
1934
+ # `ws-example1-1234-abcd-5678-ef90abcd1234`.
1842
1935
  # @return [String]
1843
1936
  #
1844
1937
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/WorkspaceDescription AWS API Documentation
@@ -1875,7 +1968,7 @@ module Aws::PrometheusService
1875
1968
  #
1876
1969
  # @!attribute [rw] alias
1877
1970
  # The alias that is assigned to this workspace to help identify it. It
1878
- # may not be unique.
1971
+ # does not need to be unique.
1879
1972
  # @return [String]
1880
1973
  #
1881
1974
  # @!attribute [rw] arn
@@ -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.42.0'
58
+ GEM_VERSION = '1.44.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -374,6 +374,29 @@ module Aws
374
374
  ) -> _UpdateLoggingConfigurationResponseSuccess
375
375
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateLoggingConfigurationResponseSuccess
376
376
 
377
+ interface _UpdateScraperResponseSuccess
378
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateScraperResponse]
379
+ def arn: () -> ::String
380
+ def scraper_id: () -> ::String
381
+ def status: () -> Types::ScraperStatus
382
+ def tags: () -> ::Hash[::String, ::String]
383
+ end
384
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#update_scraper-instance_method
385
+ def update_scraper: (
386
+ ?alias: ::String,
387
+ ?client_token: ::String,
388
+ ?destination: {
389
+ amp_configuration: {
390
+ workspace_arn: ::String
391
+ }?
392
+ },
393
+ ?scrape_configuration: {
394
+ configuration_blob: ::String?
395
+ },
396
+ scraper_id: ::String
397
+ ) -> _UpdateScraperResponseSuccess
398
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScraperResponseSuccess
399
+
377
400
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#update_workspace_alias-instance_method
378
401
  def update_workspace_alias: (
379
402
  ?alias: ::String,
data/sig/types.rbs CHANGED
@@ -390,7 +390,7 @@ module Aws::PrometheusService
390
390
  end
391
391
 
392
392
  class ScraperStatus
393
- attr_accessor status_code: ("CREATING" | "ACTIVE" | "DELETING" | "CREATION_FAILED" | "DELETION_FAILED")
393
+ attr_accessor status_code: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "CREATION_FAILED" | "UPDATE_FAILED" | "DELETION_FAILED")
394
394
  SENSITIVE: []
395
395
  end
396
396
 
@@ -467,6 +467,23 @@ module Aws::PrometheusService
467
467
  SENSITIVE: []
468
468
  end
469
469
 
470
+ class UpdateScraperRequest
471
+ attr_accessor alias: ::String
472
+ attr_accessor client_token: ::String
473
+ attr_accessor destination: Types::Destination
474
+ attr_accessor scrape_configuration: Types::ScrapeConfiguration
475
+ attr_accessor scraper_id: ::String
476
+ SENSITIVE: []
477
+ end
478
+
479
+ class UpdateScraperResponse
480
+ attr_accessor arn: ::String
481
+ attr_accessor scraper_id: ::String
482
+ attr_accessor status: Types::ScraperStatus
483
+ attr_accessor tags: ::Hash[::String, ::String]
484
+ SENSITIVE: []
485
+ end
486
+
470
487
  class UpdateWorkspaceAliasRequest
471
488
  attr_accessor alias: ::String
472
489
  attr_accessor client_token: ::String
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.42.0
4
+ version: 1.44.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: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: '1.5'
47
47
  description: Official AWS Ruby gem for Amazon Prometheus Service. This gem is part
48
48
  of the AWS SDK for Ruby.
49
49
  email: