aws-sdk-prometheusservice 1.59.0 → 1.60.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: '0779dff824e6a207a8c20aa1513fd9fcf4f97982856fa8e924a346e04da05893'
4
- data.tar.gz: 791094314e4c4027608a04f82276cab99122d1971df220bfb93df98fb234331f
3
+ metadata.gz: 6f0af02419e5f79e85d7e8c139357c100717c051fb10862294ecf107d58896a8
4
+ data.tar.gz: fd2a51982d4937aa2242d9eb76b2207136cebdbb7af9bfcb680e1bb27e7e103c
5
5
  SHA512:
6
- metadata.gz: 2759e8808e188802950d7898fa8833422dfab2930c732aa46170dee5d19eaced29d6a4426e81f4491d2e3cf641bf005c7cc60e0ff65dfdcc4ae386ba637b605d
7
- data.tar.gz: e85a97252cf7bbf4c4dd2e590092b6da027f3e23da4e4de465e32145bdfdb755f37fa36ae61f98b7d143ce7ab912e5fed14e8839360d140674daa63d8e3886bb
6
+ metadata.gz: 839a82f66eebc2d046382519c6db2953b0f7957223697e9da653b3f4b2c6f096eea59951071324373c42e1f386acd373c73833dc4b25380e2581a1a3c145625d
7
+ data.tar.gz: c60895769cc8fbe53b139f55f343d451b7554f46da5508ff0850f2677dddab01aab801ad0af6a6648faa0135f63cbd9d46120f179dce353b671b44bfee856603
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.60.0 (2025-09-11)
5
+ ------------------
6
+
7
+ * Feature - Add Vended Logs APIs for Amazon Prometheus Managed Collector
8
+
4
9
  1.59.0 (2025-08-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.60.0
@@ -1162,6 +1162,37 @@ module Aws::PrometheusService
1162
1162
  req.send_request(options)
1163
1163
  end
1164
1164
 
1165
+ # Deletes the logging configuration for a Amazon Managed Service for
1166
+ # Prometheus scraper.
1167
+ #
1168
+ # @option params [required, String] :scraper_id
1169
+ # The ID of the scraper whose logging configuration will be deleted.
1170
+ #
1171
+ # @option params [String] :client_token
1172
+ # A unique, case-sensitive identifier that you provide to ensure the
1173
+ # request is processed exactly once.
1174
+ #
1175
+ # **A suitable default value is auto-generated.** You should normally
1176
+ # not need to pass this option.**
1177
+ #
1178
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1179
+ #
1180
+ # @example Request syntax with placeholder values
1181
+ #
1182
+ # resp = client.delete_scraper_logging_configuration({
1183
+ # scraper_id: "ScraperId", # required
1184
+ # client_token: "IdempotencyToken",
1185
+ # })
1186
+ #
1187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraperLoggingConfiguration AWS API Documentation
1188
+ #
1189
+ # @overload delete_scraper_logging_configuration(params = {})
1190
+ # @param [Hash] params ({})
1191
+ def delete_scraper_logging_configuration(params = {}, options = {})
1192
+ req = build_request(:delete_scraper_logging_configuration, params)
1193
+ req.send_request(options)
1194
+ end
1195
+
1165
1196
  # Deletes an existing workspace.
1166
1197
  #
1167
1198
  # <note markdown="1"> When you delete a workspace, the data that has been ingested into it
@@ -1478,6 +1509,47 @@ module Aws::PrometheusService
1478
1509
  req.send_request(options)
1479
1510
  end
1480
1511
 
1512
+ # Describes the logging configuration for a Amazon Managed Service for
1513
+ # Prometheus scraper.
1514
+ #
1515
+ # @option params [required, String] :scraper_id
1516
+ # The ID of the scraper whose logging configuration will be described.
1517
+ #
1518
+ # @return [Types::DescribeScraperLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1519
+ #
1520
+ # * {Types::DescribeScraperLoggingConfigurationResponse#status #status} => Types::ScraperLoggingConfigurationStatus
1521
+ # * {Types::DescribeScraperLoggingConfigurationResponse#scraper_id #scraper_id} => String
1522
+ # * {Types::DescribeScraperLoggingConfigurationResponse#logging_destination #logging_destination} => Types::ScraperLoggingDestination
1523
+ # * {Types::DescribeScraperLoggingConfigurationResponse#scraper_components #scraper_components} => Array&lt;Types::ScraperComponent&gt;
1524
+ # * {Types::DescribeScraperLoggingConfigurationResponse#modified_at #modified_at} => Time
1525
+ #
1526
+ # @example Request syntax with placeholder values
1527
+ #
1528
+ # resp = client.describe_scraper_logging_configuration({
1529
+ # scraper_id: "ScraperId", # required
1530
+ # })
1531
+ #
1532
+ # @example Response structure
1533
+ #
1534
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
1535
+ # resp.status.status_reason #=> String
1536
+ # resp.scraper_id #=> String
1537
+ # resp.logging_destination.cloud_watch_logs.log_group_arn #=> String
1538
+ # resp.scraper_components #=> Array
1539
+ # resp.scraper_components[0].type #=> String, one of "SERVICE_DISCOVERY", "COLLECTOR", "EXPORTER"
1540
+ # resp.scraper_components[0].config.options #=> Hash
1541
+ # resp.scraper_components[0].config.options["String"] #=> String
1542
+ # resp.modified_at #=> Time
1543
+ #
1544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraperLoggingConfiguration AWS API Documentation
1545
+ #
1546
+ # @overload describe_scraper_logging_configuration(params = {})
1547
+ # @param [Hash] params ({})
1548
+ def describe_scraper_logging_configuration(params = {}, options = {})
1549
+ req = build_request(:describe_scraper_logging_configuration, params)
1550
+ req.send_request(options)
1551
+ end
1552
+
1481
1553
  # Returns information about an existing workspace.
1482
1554
  #
1483
1555
  # @option params [required, String] :workspace_id
@@ -2436,6 +2508,57 @@ module Aws::PrometheusService
2436
2508
  req.send_request(options)
2437
2509
  end
2438
2510
 
2511
+ # Updates the logging configuration for a Amazon Managed Service for
2512
+ # Prometheus scraper.
2513
+ #
2514
+ # @option params [required, String] :scraper_id
2515
+ # The ID of the scraper whose logging configuration will be updated.
2516
+ #
2517
+ # @option params [required, Types::ScraperLoggingDestination] :logging_destination
2518
+ # The destination where scraper logs will be sent.
2519
+ #
2520
+ # @option params [Array<Types::ScraperComponent>] :scraper_components
2521
+ # The list of scraper components to configure for logging.
2522
+ #
2523
+ # @return [Types::UpdateScraperLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2524
+ #
2525
+ # * {Types::UpdateScraperLoggingConfigurationResponse#status #status} => Types::ScraperLoggingConfigurationStatus
2526
+ #
2527
+ # @example Request syntax with placeholder values
2528
+ #
2529
+ # resp = client.update_scraper_logging_configuration({
2530
+ # scraper_id: "ScraperId", # required
2531
+ # logging_destination: { # required
2532
+ # cloud_watch_logs: {
2533
+ # log_group_arn: "LogGroupArn", # required
2534
+ # },
2535
+ # },
2536
+ # scraper_components: [
2537
+ # {
2538
+ # type: "SERVICE_DISCOVERY", # required, accepts SERVICE_DISCOVERY, COLLECTOR, EXPORTER
2539
+ # config: {
2540
+ # options: {
2541
+ # "String" => "String",
2542
+ # },
2543
+ # },
2544
+ # },
2545
+ # ],
2546
+ # })
2547
+ #
2548
+ # @example Response structure
2549
+ #
2550
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
2551
+ # resp.status.status_reason #=> String
2552
+ #
2553
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraperLoggingConfiguration AWS API Documentation
2554
+ #
2555
+ # @overload update_scraper_logging_configuration(params = {})
2556
+ # @param [Hash] params ({})
2557
+ def update_scraper_logging_configuration(params = {}, options = {})
2558
+ req = build_request(:update_scraper_logging_configuration, params)
2559
+ req.send_request(options)
2560
+ end
2561
+
2439
2562
  # Updates the alias of an existing workspace.
2440
2563
  #
2441
2564
  # @option params [required, String] :workspace_id
@@ -2558,7 +2681,7 @@ module Aws::PrometheusService
2558
2681
  tracer: tracer
2559
2682
  )
2560
2683
  context[:gem_name] = 'aws-sdk-prometheusservice'
2561
- context[:gem_version] = '1.59.0'
2684
+ context[:gem_version] = '1.60.0'
2562
2685
  Seahorse::Client::Request.new(handlers, context)
2563
2686
  end
2564
2687
 
@@ -23,6 +23,7 @@ module Aws::PrometheusService
23
23
  Blob = Shapes::BlobShape.new(name: 'Blob')
24
24
  CloudWatchLogDestination = Shapes::StructureShape.new(name: 'CloudWatchLogDestination')
25
25
  ClusterArn = Shapes::StringShape.new(name: 'ClusterArn')
26
+ ComponentConfig = Shapes::StructureShape.new(name: 'ComponentConfig')
26
27
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
27
28
  CreateAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionRequest')
28
29
  CreateAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionResponse')
@@ -41,6 +42,7 @@ module Aws::PrometheusService
41
42
  DeleteQueryLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteQueryLoggingConfigurationRequest')
42
43
  DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
43
44
  DeleteRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DeleteRuleGroupsNamespaceRequest')
45
+ DeleteScraperLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteScraperLoggingConfigurationRequest')
44
46
  DeleteScraperRequest = Shapes::StructureShape.new(name: 'DeleteScraperRequest')
45
47
  DeleteScraperResponse = Shapes::StructureShape.new(name: 'DeleteScraperResponse')
46
48
  DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
@@ -54,6 +56,8 @@ module Aws::PrometheusService
54
56
  DescribeResourcePolicyResponse = Shapes::StructureShape.new(name: 'DescribeResourcePolicyResponse')
55
57
  DescribeRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceRequest')
56
58
  DescribeRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceResponse')
59
+ DescribeScraperLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeScraperLoggingConfigurationRequest')
60
+ DescribeScraperLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeScraperLoggingConfigurationResponse')
57
61
  DescribeScraperRequest = Shapes::StructureShape.new(name: 'DescribeScraperRequest')
58
62
  DescribeScraperResponse = Shapes::StructureShape.new(name: 'DescribeScraperResponse')
59
63
  DescribeWorkspaceConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceConfigurationRequest')
@@ -121,9 +125,15 @@ module Aws::PrometheusService
121
125
  ScrapeConfiguration = Shapes::UnionShape.new(name: 'ScrapeConfiguration')
122
126
  ScraperAlias = Shapes::StringShape.new(name: 'ScraperAlias')
123
127
  ScraperArn = Shapes::StringShape.new(name: 'ScraperArn')
128
+ ScraperComponent = Shapes::StructureShape.new(name: 'ScraperComponent')
129
+ ScraperComponentType = Shapes::StringShape.new(name: 'ScraperComponentType')
130
+ ScraperComponents = Shapes::ListShape.new(name: 'ScraperComponents')
124
131
  ScraperDescription = Shapes::StructureShape.new(name: 'ScraperDescription')
125
132
  ScraperFilters = Shapes::MapShape.new(name: 'ScraperFilters')
126
133
  ScraperId = Shapes::StringShape.new(name: 'ScraperId')
134
+ ScraperLoggingConfigurationStatus = Shapes::StructureShape.new(name: 'ScraperLoggingConfigurationStatus')
135
+ ScraperLoggingConfigurationStatusCode = Shapes::StringShape.new(name: 'ScraperLoggingConfigurationStatusCode')
136
+ ScraperLoggingDestination = Shapes::UnionShape.new(name: 'ScraperLoggingDestination')
127
137
  ScraperStatus = Shapes::StructureShape.new(name: 'ScraperStatus')
128
138
  ScraperStatusCode = Shapes::StringShape.new(name: 'ScraperStatusCode')
129
139
  ScraperSummary = Shapes::StructureShape.new(name: 'ScraperSummary')
@@ -134,6 +144,7 @@ module Aws::PrometheusService
134
144
  Source = Shapes::UnionShape.new(name: 'Source')
135
145
  StatusReason = Shapes::StringShape.new(name: 'StatusReason')
136
146
  String = Shapes::StringShape.new(name: 'String')
147
+ StringMap = Shapes::MapShape.new(name: 'StringMap')
137
148
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
138
149
  SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
139
150
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -150,6 +161,8 @@ module Aws::PrometheusService
150
161
  UpdateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateLoggingConfigurationResponse')
151
162
  UpdateQueryLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateQueryLoggingConfigurationRequest')
152
163
  UpdateQueryLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateQueryLoggingConfigurationResponse')
164
+ UpdateScraperLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateScraperLoggingConfigurationRequest')
165
+ UpdateScraperLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateScraperLoggingConfigurationResponse')
153
166
  UpdateScraperRequest = Shapes::StructureShape.new(name: 'UpdateScraperRequest')
154
167
  UpdateScraperResponse = Shapes::StructureShape.new(name: 'UpdateScraperResponse')
155
168
  UpdateWorkspaceAliasRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceAliasRequest')
@@ -194,6 +207,9 @@ module Aws::PrometheusService
194
207
  CloudWatchLogDestination.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
195
208
  CloudWatchLogDestination.struct_class = Types::CloudWatchLogDestination
196
209
 
210
+ ComponentConfig.add_member(:options, Shapes::ShapeRef.new(shape: StringMap, location_name: "options"))
211
+ ComponentConfig.struct_class = Types::ComponentConfig
212
+
197
213
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
198
214
  ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
199
215
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
@@ -286,6 +302,10 @@ module Aws::PrometheusService
286
302
  DeleteRuleGroupsNamespaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
287
303
  DeleteRuleGroupsNamespaceRequest.struct_class = Types::DeleteRuleGroupsNamespaceRequest
288
304
 
305
+ DeleteScraperLoggingConfigurationRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
306
+ DeleteScraperLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
307
+ DeleteScraperLoggingConfigurationRequest.struct_class = Types::DeleteScraperLoggingConfigurationRequest
308
+
289
309
  DeleteScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
290
310
  DeleteScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken" => true}))
291
311
  DeleteScraperRequest.struct_class = Types::DeleteScraperRequest
@@ -331,6 +351,16 @@ module Aws::PrometheusService
331
351
  DescribeRuleGroupsNamespaceResponse.add_member(:rule_groups_namespace, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceDescription, required: true, location_name: "ruleGroupsNamespace"))
332
352
  DescribeRuleGroupsNamespaceResponse.struct_class = Types::DescribeRuleGroupsNamespaceResponse
333
353
 
354
+ DescribeScraperLoggingConfigurationRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
355
+ DescribeScraperLoggingConfigurationRequest.struct_class = Types::DescribeScraperLoggingConfigurationRequest
356
+
357
+ DescribeScraperLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: ScraperLoggingConfigurationStatus, required: true, location_name: "status"))
358
+ DescribeScraperLoggingConfigurationResponse.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
359
+ DescribeScraperLoggingConfigurationResponse.add_member(:logging_destination, Shapes::ShapeRef.new(shape: ScraperLoggingDestination, required: true, location_name: "loggingDestination"))
360
+ DescribeScraperLoggingConfigurationResponse.add_member(:scraper_components, Shapes::ShapeRef.new(shape: ScraperComponents, required: true, location_name: "scraperComponents"))
361
+ DescribeScraperLoggingConfigurationResponse.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
362
+ DescribeScraperLoggingConfigurationResponse.struct_class = Types::DescribeScraperLoggingConfigurationResponse
363
+
334
364
  DescribeScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
335
365
  DescribeScraperRequest.struct_class = Types::DescribeScraperRequest
336
366
 
@@ -516,6 +546,12 @@ module Aws::PrometheusService
516
546
  ScrapeConfiguration.add_member_subclass(:unknown, Types::ScrapeConfiguration::Unknown)
517
547
  ScrapeConfiguration.struct_class = Types::ScrapeConfiguration
518
548
 
549
+ ScraperComponent.add_member(:type, Shapes::ShapeRef.new(shape: ScraperComponentType, required: true, location_name: "type"))
550
+ ScraperComponent.add_member(:config, Shapes::ShapeRef.new(shape: ComponentConfig, location_name: "config"))
551
+ ScraperComponent.struct_class = Types::ScraperComponent
552
+
553
+ ScraperComponents.member = Shapes::ShapeRef.new(shape: ScraperComponent)
554
+
519
555
  ScraperDescription.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
520
556
  ScraperDescription.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
521
557
  ScraperDescription.add_member(:arn, Shapes::ShapeRef.new(shape: ScraperArn, required: true, location_name: "arn"))
@@ -534,6 +570,16 @@ module Aws::PrometheusService
534
570
  ScraperFilters.key = Shapes::ShapeRef.new(shape: FilterKey)
535
571
  ScraperFilters.value = Shapes::ShapeRef.new(shape: FilterValues)
536
572
 
573
+ ScraperLoggingConfigurationStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: ScraperLoggingConfigurationStatusCode, required: true, location_name: "statusCode"))
574
+ ScraperLoggingConfigurationStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
575
+ ScraperLoggingConfigurationStatus.struct_class = Types::ScraperLoggingConfigurationStatus
576
+
577
+ ScraperLoggingDestination.add_member(:cloud_watch_logs, Shapes::ShapeRef.new(shape: CloudWatchLogDestination, location_name: "cloudWatchLogs"))
578
+ ScraperLoggingDestination.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
579
+ ScraperLoggingDestination.add_member_subclass(:cloud_watch_logs, Types::ScraperLoggingDestination::CloudWatchLogs)
580
+ ScraperLoggingDestination.add_member_subclass(:unknown, Types::ScraperLoggingDestination::Unknown)
581
+ ScraperLoggingDestination.struct_class = Types::ScraperLoggingDestination
582
+
537
583
  ScraperStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: ScraperStatusCode, required: true, location_name: "statusCode"))
538
584
  ScraperStatus.struct_class = Types::ScraperStatus
539
585
 
@@ -568,6 +614,9 @@ module Aws::PrometheusService
568
614
  Source.add_member_subclass(:unknown, Types::Source::Unknown)
569
615
  Source.struct_class = Types::Source
570
616
 
617
+ StringMap.key = Shapes::ShapeRef.new(shape: String)
618
+ StringMap.value = Shapes::ShapeRef.new(shape: String)
619
+
571
620
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
572
621
 
573
622
  TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
@@ -609,6 +658,14 @@ module Aws::PrometheusService
609
658
  UpdateQueryLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: QueryLoggingConfigurationStatus, required: true, location_name: "status"))
610
659
  UpdateQueryLoggingConfigurationResponse.struct_class = Types::UpdateQueryLoggingConfigurationResponse
611
660
 
661
+ UpdateScraperLoggingConfigurationRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
662
+ UpdateScraperLoggingConfigurationRequest.add_member(:logging_destination, Shapes::ShapeRef.new(shape: ScraperLoggingDestination, required: true, location_name: "loggingDestination"))
663
+ UpdateScraperLoggingConfigurationRequest.add_member(:scraper_components, Shapes::ShapeRef.new(shape: ScraperComponents, location_name: "scraperComponents"))
664
+ UpdateScraperLoggingConfigurationRequest.struct_class = Types::UpdateScraperLoggingConfigurationRequest
665
+
666
+ UpdateScraperLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: ScraperLoggingConfigurationStatus, required: true, location_name: "status"))
667
+ UpdateScraperLoggingConfigurationResponse.struct_class = Types::UpdateScraperLoggingConfigurationResponse
668
+
612
669
  UpdateScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
613
670
  UpdateScraperRequest.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
614
671
  UpdateScraperRequest.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, location_name: "scrapeConfiguration"))
@@ -865,6 +922,19 @@ module Aws::PrometheusService
865
922
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
866
923
  end)
867
924
 
925
+ api.add_operation(:delete_scraper_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
926
+ o.name = "DeleteScraperLoggingConfiguration"
927
+ o.http_method = "DELETE"
928
+ o.http_request_uri = "/scrapers/{scraperId}/logging-configuration"
929
+ o.input = Shapes::ShapeRef.new(shape: DeleteScraperLoggingConfigurationRequest)
930
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
931
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
932
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
933
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
934
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
935
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
936
+ end)
937
+
868
938
  api.add_operation(:delete_workspace, Seahorse::Model::Operation.new.tap do |o|
869
939
  o.name = "DeleteWorkspace"
870
940
  o.http_method = "DELETE"
@@ -955,6 +1025,18 @@ module Aws::PrometheusService
955
1025
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
956
1026
  end)
957
1027
 
1028
+ api.add_operation(:describe_scraper_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
1029
+ o.name = "DescribeScraperLoggingConfiguration"
1030
+ o.http_method = "GET"
1031
+ o.http_request_uri = "/scrapers/{scraperId}/logging-configuration"
1032
+ o.input = Shapes::ShapeRef.new(shape: DescribeScraperLoggingConfigurationRequest)
1033
+ o.output = Shapes::ShapeRef.new(shape: DescribeScraperLoggingConfigurationResponse)
1034
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1035
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1037
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1038
+ end)
1039
+
958
1040
  api.add_operation(:describe_workspace, Seahorse::Model::Operation.new.tap do |o|
959
1041
  o.name = "DescribeWorkspace"
960
1042
  o.http_method = "GET"
@@ -1171,6 +1253,19 @@ module Aws::PrometheusService
1171
1253
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1172
1254
  end)
1173
1255
 
1256
+ api.add_operation(:update_scraper_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
1257
+ o.name = "UpdateScraperLoggingConfiguration"
1258
+ o.http_method = "PUT"
1259
+ o.http_request_uri = "/scrapers/{scraperId}/logging-configuration"
1260
+ o.input = Shapes::ShapeRef.new(shape: UpdateScraperLoggingConfigurationRequest)
1261
+ o.output = Shapes::ShapeRef.new(shape: UpdateScraperLoggingConfigurationResponse)
1262
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1263
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1264
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1265
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1266
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1267
+ end)
1268
+
1174
1269
  api.add_operation(:update_workspace_alias, Seahorse::Model::Operation.new.tap do |o|
1175
1270
  o.name = "UpdateWorkspaceAlias"
1176
1271
  o.http_method = "POST"
@@ -114,6 +114,20 @@ module Aws::PrometheusService
114
114
  include Aws::Structure
115
115
  end
116
116
 
117
+ # Configuration settings for a scraper component.
118
+ #
119
+ # @!attribute [rw] options
120
+ # Configuration options for the scraper component.
121
+ # @return [Hash<String,String>]
122
+ #
123
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ComponentConfig AWS API Documentation
124
+ #
125
+ class ComponentConfig < Struct.new(
126
+ :options)
127
+ SENSITIVE = []
128
+ include Aws::Structure
129
+ end
130
+
117
131
  # The request would cause an inconsistent state.
118
132
  #
119
133
  # @!attribute [rw] message
@@ -649,6 +663,27 @@ module Aws::PrometheusService
649
663
  include Aws::Structure
650
664
  end
651
665
 
666
+ # @!attribute [rw] scraper_id
667
+ # The ID of the scraper whose logging configuration will be deleted.
668
+ # @return [String]
669
+ #
670
+ # @!attribute [rw] client_token
671
+ # A unique, case-sensitive identifier that you provide to ensure the
672
+ # request is processed exactly once.
673
+ #
674
+ # **A suitable default value is auto-generated.** You should normally
675
+ # not need to pass this option.
676
+ # @return [String]
677
+ #
678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraperLoggingConfigurationRequest AWS API Documentation
679
+ #
680
+ class DeleteScraperLoggingConfigurationRequest < Struct.new(
681
+ :scraper_id,
682
+ :client_token)
683
+ SENSITIVE = []
684
+ include Aws::Structure
685
+ end
686
+
652
687
  # Represents the input of a `DeleteScraper` operation.
653
688
  #
654
689
  # @!attribute [rw] scraper_id
@@ -866,6 +901,50 @@ module Aws::PrometheusService
866
901
  include Aws::Structure
867
902
  end
868
903
 
904
+ # @!attribute [rw] scraper_id
905
+ # The ID of the scraper whose logging configuration will be described.
906
+ # @return [String]
907
+ #
908
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraperLoggingConfigurationRequest AWS API Documentation
909
+ #
910
+ class DescribeScraperLoggingConfigurationRequest < Struct.new(
911
+ :scraper_id)
912
+ SENSITIVE = []
913
+ include Aws::Structure
914
+ end
915
+
916
+ # @!attribute [rw] status
917
+ # The status of the scraper logging configuration.
918
+ # @return [Types::ScraperLoggingConfigurationStatus]
919
+ #
920
+ # @!attribute [rw] scraper_id
921
+ # The ID of the scraper.
922
+ # @return [String]
923
+ #
924
+ # @!attribute [rw] logging_destination
925
+ # The destination where scraper logs are sent.
926
+ # @return [Types::ScraperLoggingDestination]
927
+ #
928
+ # @!attribute [rw] scraper_components
929
+ # The list of scraper components configured for logging.
930
+ # @return [Array<Types::ScraperComponent>]
931
+ #
932
+ # @!attribute [rw] modified_at
933
+ # The date and time when the logging configuration was last modified.
934
+ # @return [Time]
935
+ #
936
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraperLoggingConfigurationResponse AWS API Documentation
937
+ #
938
+ class DescribeScraperLoggingConfigurationResponse < Struct.new(
939
+ :status,
940
+ :scraper_id,
941
+ :logging_destination,
942
+ :scraper_components,
943
+ :modified_at)
944
+ SENSITIVE = []
945
+ include Aws::Structure
946
+ end
947
+
869
948
  # Represents the input of a `DescribeScraper` operation.
870
949
  #
871
950
  # @!attribute [rw] scraper_id
@@ -1852,6 +1931,26 @@ module Aws::PrometheusService
1852
1931
  class Unknown < ScrapeConfiguration; end
1853
1932
  end
1854
1933
 
1934
+ # A component of a Amazon Managed Service for Prometheus scraper that
1935
+ # can be configured for logging.
1936
+ #
1937
+ # @!attribute [rw] type
1938
+ # The type of the scraper component.
1939
+ # @return [String]
1940
+ #
1941
+ # @!attribute [rw] config
1942
+ # The configuration settings for the scraper component.
1943
+ # @return [Types::ComponentConfig]
1944
+ #
1945
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ScraperComponent AWS API Documentation
1946
+ #
1947
+ class ScraperComponent < Struct.new(
1948
+ :type,
1949
+ :config)
1950
+ SENSITIVE = []
1951
+ include Aws::Structure
1952
+ end
1953
+
1855
1954
  # The `ScraperDescription` structure contains the full details about one
1856
1955
  # scraper in your account.
1857
1956
  #
@@ -1937,6 +2036,50 @@ module Aws::PrometheusService
1937
2036
  include Aws::Structure
1938
2037
  end
1939
2038
 
2039
+ # The status of a scraper logging configuration.
2040
+ #
2041
+ # @!attribute [rw] status_code
2042
+ # The status code of the scraper logging configuration.
2043
+ # @return [String]
2044
+ #
2045
+ # @!attribute [rw] status_reason
2046
+ # The reason for the current status of the scraper logging
2047
+ # configuration.
2048
+ # @return [String]
2049
+ #
2050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ScraperLoggingConfigurationStatus AWS API Documentation
2051
+ #
2052
+ class ScraperLoggingConfigurationStatus < Struct.new(
2053
+ :status_code,
2054
+ :status_reason)
2055
+ SENSITIVE = []
2056
+ include Aws::Structure
2057
+ end
2058
+
2059
+ # The destination where scraper logs are sent.
2060
+ #
2061
+ # @note ScraperLoggingDestination is a union - when making an API calls you must set exactly one of the members.
2062
+ #
2063
+ # @note ScraperLoggingDestination is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ScraperLoggingDestination corresponding to the set member.
2064
+ #
2065
+ # @!attribute [rw] cloud_watch_logs
2066
+ # The CloudWatch Logs configuration for the scraper logging
2067
+ # destination.
2068
+ # @return [Types::CloudWatchLogDestination]
2069
+ #
2070
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ScraperLoggingDestination AWS API Documentation
2071
+ #
2072
+ class ScraperLoggingDestination < Struct.new(
2073
+ :cloud_watch_logs,
2074
+ :unknown)
2075
+ SENSITIVE = []
2076
+ include Aws::Structure
2077
+ include Aws::Structure::Union
2078
+
2079
+ class CloudWatchLogs < ScraperLoggingDestination; end
2080
+ class Unknown < ScraperLoggingDestination; end
2081
+ end
2082
+
1940
2083
  # The `ScraperStatus` structure contains status information about the
1941
2084
  # scraper.
1942
2085
  #
@@ -2241,6 +2384,40 @@ module Aws::PrometheusService
2241
2384
  include Aws::Structure
2242
2385
  end
2243
2386
 
2387
+ # @!attribute [rw] scraper_id
2388
+ # The ID of the scraper whose logging configuration will be updated.
2389
+ # @return [String]
2390
+ #
2391
+ # @!attribute [rw] logging_destination
2392
+ # The destination where scraper logs will be sent.
2393
+ # @return [Types::ScraperLoggingDestination]
2394
+ #
2395
+ # @!attribute [rw] scraper_components
2396
+ # The list of scraper components to configure for logging.
2397
+ # @return [Array<Types::ScraperComponent>]
2398
+ #
2399
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraperLoggingConfigurationRequest AWS API Documentation
2400
+ #
2401
+ class UpdateScraperLoggingConfigurationRequest < Struct.new(
2402
+ :scraper_id,
2403
+ :logging_destination,
2404
+ :scraper_components)
2405
+ SENSITIVE = []
2406
+ include Aws::Structure
2407
+ end
2408
+
2409
+ # @!attribute [rw] status
2410
+ # The status of the updated scraper logging configuration.
2411
+ # @return [Types::ScraperLoggingConfigurationStatus]
2412
+ #
2413
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateScraperLoggingConfigurationResponse AWS API Documentation
2414
+ #
2415
+ class UpdateScraperLoggingConfigurationResponse < Struct.new(
2416
+ :status)
2417
+ SENSITIVE = []
2418
+ include Aws::Structure
2419
+ end
2420
+
2244
2421
  # @!attribute [rw] scraper_id
2245
2422
  # The ID of the scraper to update.
2246
2423
  # @return [String]
@@ -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.59.0'
58
+ GEM_VERSION = '1.60.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -240,6 +240,13 @@ module Aws
240
240
  ) -> _DeleteScraperResponseSuccess
241
241
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteScraperResponseSuccess
242
242
 
243
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#delete_scraper_logging_configuration-instance_method
244
+ def delete_scraper_logging_configuration: (
245
+ scraper_id: ::String,
246
+ ?client_token: ::String
247
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
248
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
249
+
243
250
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#delete_workspace-instance_method
244
251
  def delete_workspace: (
245
252
  workspace_id: ::String,
@@ -310,6 +317,20 @@ module Aws
310
317
  ) -> _DescribeScraperResponseSuccess
311
318
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeScraperResponseSuccess
312
319
 
320
+ interface _DescribeScraperLoggingConfigurationResponseSuccess
321
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeScraperLoggingConfigurationResponse]
322
+ def status: () -> Types::ScraperLoggingConfigurationStatus
323
+ def scraper_id: () -> ::String
324
+ def logging_destination: () -> Types::ScraperLoggingDestination
325
+ def scraper_components: () -> ::Array[Types::ScraperComponent]
326
+ def modified_at: () -> ::Time
327
+ end
328
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#describe_scraper_logging_configuration-instance_method
329
+ def describe_scraper_logging_configuration: (
330
+ scraper_id: ::String
331
+ ) -> _DescribeScraperLoggingConfigurationResponseSuccess
332
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeScraperLoggingConfigurationResponseSuccess
333
+
313
334
  interface _DescribeWorkspaceResponseSuccess
314
335
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeWorkspaceResponse]
315
336
  def workspace: () -> Types::WorkspaceDescription
@@ -511,6 +532,29 @@ module Aws
511
532
  ) -> _UpdateScraperResponseSuccess
512
533
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScraperResponseSuccess
513
534
 
535
+ interface _UpdateScraperLoggingConfigurationResponseSuccess
536
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateScraperLoggingConfigurationResponse]
537
+ def status: () -> Types::ScraperLoggingConfigurationStatus
538
+ end
539
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#update_scraper_logging_configuration-instance_method
540
+ def update_scraper_logging_configuration: (
541
+ scraper_id: ::String,
542
+ logging_destination: {
543
+ cloud_watch_logs: {
544
+ log_group_arn: ::String
545
+ }?
546
+ },
547
+ ?scraper_components: Array[
548
+ {
549
+ type: ("SERVICE_DISCOVERY" | "COLLECTOR" | "EXPORTER"),
550
+ config: {
551
+ options: Hash[::String, ::String]?
552
+ }?
553
+ },
554
+ ]
555
+ ) -> _UpdateScraperLoggingConfigurationResponseSuccess
556
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScraperLoggingConfigurationResponseSuccess
557
+
514
558
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PrometheusService/Client.html#update_workspace_alias-instance_method
515
559
  def update_workspace_alias: (
516
560
  workspace_id: ::String,
data/sig/types.rbs CHANGED
@@ -37,6 +37,11 @@ module Aws::PrometheusService
37
37
  SENSITIVE: []
38
38
  end
39
39
 
40
+ class ComponentConfig
41
+ attr_accessor options: ::Hash[::String, ::String]
42
+ SENSITIVE: []
43
+ end
44
+
40
45
  class ConflictException
41
46
  attr_accessor message: ::String
42
47
  attr_accessor resource_id: ::String
@@ -165,6 +170,12 @@ module Aws::PrometheusService
165
170
  SENSITIVE: []
166
171
  end
167
172
 
173
+ class DeleteScraperLoggingConfigurationRequest
174
+ attr_accessor scraper_id: ::String
175
+ attr_accessor client_token: ::String
176
+ SENSITIVE: []
177
+ end
178
+
168
179
  class DeleteScraperRequest
169
180
  attr_accessor scraper_id: ::String
170
181
  attr_accessor client_token: ::String
@@ -236,6 +247,20 @@ module Aws::PrometheusService
236
247
  SENSITIVE: []
237
248
  end
238
249
 
250
+ class DescribeScraperLoggingConfigurationRequest
251
+ attr_accessor scraper_id: ::String
252
+ SENSITIVE: []
253
+ end
254
+
255
+ class DescribeScraperLoggingConfigurationResponse
256
+ attr_accessor status: Types::ScraperLoggingConfigurationStatus
257
+ attr_accessor scraper_id: ::String
258
+ attr_accessor logging_destination: Types::ScraperLoggingDestination
259
+ attr_accessor scraper_components: ::Array[Types::ScraperComponent]
260
+ attr_accessor modified_at: ::Time
261
+ SENSITIVE: []
262
+ end
263
+
239
264
  class DescribeScraperRequest
240
265
  attr_accessor scraper_id: ::String
241
266
  SENSITIVE: []
@@ -493,6 +518,12 @@ module Aws::PrometheusService
493
518
  end
494
519
  end
495
520
 
521
+ class ScraperComponent
522
+ attr_accessor type: ("SERVICE_DISCOVERY" | "COLLECTOR" | "EXPORTER")
523
+ attr_accessor config: Types::ComponentConfig
524
+ SENSITIVE: []
525
+ end
526
+
496
527
  class ScraperDescription
497
528
  attr_accessor alias: ::String
498
529
  attr_accessor scraper_id: ::String
@@ -510,6 +541,23 @@ module Aws::PrometheusService
510
541
  SENSITIVE: []
511
542
  end
512
543
 
544
+ class ScraperLoggingConfigurationStatus
545
+ attr_accessor status_code: ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "CREATION_FAILED" | "UPDATE_FAILED")
546
+ attr_accessor status_reason: ::String
547
+ SENSITIVE: []
548
+ end
549
+
550
+ class ScraperLoggingDestination
551
+ attr_accessor cloud_watch_logs: Types::CloudWatchLogDestination
552
+ attr_accessor unknown: untyped
553
+ SENSITIVE: []
554
+
555
+ class CloudWatchLogs < ScraperLoggingDestination
556
+ end
557
+ class Unknown < ScraperLoggingDestination
558
+ end
559
+ end
560
+
513
561
  class ScraperStatus
514
562
  attr_accessor status_code: ("CREATING" | "UPDATING" | "ACTIVE" | "DELETING" | "CREATION_FAILED" | "UPDATE_FAILED" | "DELETION_FAILED")
515
563
  SENSITIVE: []
@@ -601,6 +649,18 @@ module Aws::PrometheusService
601
649
  SENSITIVE: []
602
650
  end
603
651
 
652
+ class UpdateScraperLoggingConfigurationRequest
653
+ attr_accessor scraper_id: ::String
654
+ attr_accessor logging_destination: Types::ScraperLoggingDestination
655
+ attr_accessor scraper_components: ::Array[Types::ScraperComponent]
656
+ SENSITIVE: []
657
+ end
658
+
659
+ class UpdateScraperLoggingConfigurationResponse
660
+ attr_accessor status: Types::ScraperLoggingConfigurationStatus
661
+ SENSITIVE: []
662
+ end
663
+
604
664
  class UpdateScraperRequest
605
665
  attr_accessor scraper_id: ::String
606
666
  attr_accessor alias: ::String
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.59.0
4
+ version: 1.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services