aws-sdk-prometheusservice 1.14.0 → 1.16.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: 9febdb94b9d1016384545c15ed29e16373a59594300a88dbc33784ff8e6a728a
4
- data.tar.gz: 60fd39602b1ba8f5c8f85be88b6cc480791beb5fb3fc7e09dc1e34541ed8da1c
3
+ metadata.gz: c74e5a13b541239f2f4949d5a1f67b41c52a2dccc21fb856fc0095a41ed45e80
4
+ data.tar.gz: 96a623e2a1723c11d9c5c28ec8be7a0c4f57d06b6bb8254d9ef5874d61ebbfd2
5
5
  SHA512:
6
- metadata.gz: 8521c2c761a1fcd88521d899e17798c8fb6f658963a3641d61edd005c0399a1e44d6435c7c29a575fed58d6bac6482493f6ad858c04815682c557228cd2c27a1
7
- data.tar.gz: fd159c3f41b6de697184262d1405db6176776371edd32a0e1c39f7384cfd7cd361528a35aaa83bd1e4c569412679db0fa715bb92e1c7eb95c783e23bbe114fae
6
+ metadata.gz: 81647c1ad2fa4a76e844d13a29a3e5c1ccab91be87840b27acd3ee26a3a3f49ea8ac61ea567d0381ead90f643ebc8fa46df4fd7b46a217d0b77218235ab082ff
7
+ data.tar.gz: 585030f80288392453f48c32ce076129e76b35a169cf9b0f3eb34de05453b02416351cc976ebd0bfc2b25c25d6b90cdcd0cb7203bf63fa3896865df67de14ee3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.15.0 (2022-08-12)
10
+ ------------------
11
+
12
+ * Feature - This release adds log APIs that allow customers to manage logging for their Amazon Managed Service for Prometheus workspaces.
13
+
4
14
  1.14.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:prometheusservice)
@@ -79,8 +79,9 @@ module Aws::PrometheusService
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::PrometheusService::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::PrometheusService
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::PrometheusService
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::PrometheusService::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::PrometheusService::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -393,6 +410,48 @@ module Aws::PrometheusService
393
410
  req.send_request(options)
394
411
  end
395
412
 
413
+ # Create logging configuration.
414
+ #
415
+ # @option params [String] :client_token
416
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
417
+ # the idempotency of the request.
418
+ #
419
+ # **A suitable default value is auto-generated.** You should normally
420
+ # not need to pass this option.**
421
+ #
422
+ # @option params [required, String] :log_group_arn
423
+ # The ARN of the CW log group to which the vended log data will be
424
+ # published.
425
+ #
426
+ # @option params [required, String] :workspace_id
427
+ # The ID of the workspace to vend logs to.
428
+ #
429
+ # @return [Types::CreateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
430
+ #
431
+ # * {Types::CreateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
432
+ #
433
+ # @example Request syntax with placeholder values
434
+ #
435
+ # resp = client.create_logging_configuration({
436
+ # client_token: "IdempotencyToken",
437
+ # log_group_arn: "LogGroupArn", # required
438
+ # workspace_id: "WorkspaceId", # required
439
+ # })
440
+ #
441
+ # @example Response structure
442
+ #
443
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
444
+ # resp.status.status_reason #=> String
445
+ #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateLoggingConfiguration AWS API Documentation
447
+ #
448
+ # @overload create_logging_configuration(params = {})
449
+ # @param [Hash] params ({})
450
+ def create_logging_configuration(params = {}, options = {})
451
+ req = build_request(:create_logging_configuration, params)
452
+ req.send_request(options)
453
+ end
454
+
396
455
  # Create a rule group namespace.
397
456
  #
398
457
  # @option params [String] :client_token
@@ -532,6 +591,36 @@ module Aws::PrometheusService
532
591
  req.send_request(options)
533
592
  end
534
593
 
594
+ # Delete logging configuration.
595
+ #
596
+ # @option params [String] :client_token
597
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
598
+ # the idempotency of the request.
599
+ #
600
+ # **A suitable default value is auto-generated.** You should normally
601
+ # not need to pass this option.**
602
+ #
603
+ # @option params [required, String] :workspace_id
604
+ # The ID of the workspace to vend logs to.
605
+ #
606
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
607
+ #
608
+ # @example Request syntax with placeholder values
609
+ #
610
+ # resp = client.delete_logging_configuration({
611
+ # client_token: "IdempotencyToken",
612
+ # workspace_id: "WorkspaceId", # required
613
+ # })
614
+ #
615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteLoggingConfiguration AWS API Documentation
616
+ #
617
+ # @overload delete_logging_configuration(params = {})
618
+ # @param [Hash] params ({})
619
+ def delete_logging_configuration(params = {}, options = {})
620
+ req = build_request(:delete_logging_configuration, params)
621
+ req.send_request(options)
622
+ end
623
+
535
624
  # Delete a rule groups namespace.
536
625
  #
537
626
  # @option params [String] :client_token
@@ -628,6 +717,39 @@ module Aws::PrometheusService
628
717
  req.send_request(options)
629
718
  end
630
719
 
720
+ # Describes logging configuration.
721
+ #
722
+ # @option params [required, String] :workspace_id
723
+ # The ID of the workspace to vend logs to.
724
+ #
725
+ # @return [Types::DescribeLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
726
+ #
727
+ # * {Types::DescribeLoggingConfigurationResponse#logging_configuration #logging_configuration} => Types::LoggingConfigurationMetadata
728
+ #
729
+ # @example Request syntax with placeholder values
730
+ #
731
+ # resp = client.describe_logging_configuration({
732
+ # workspace_id: "WorkspaceId", # required
733
+ # })
734
+ #
735
+ # @example Response structure
736
+ #
737
+ # resp.logging_configuration.created_at #=> Time
738
+ # resp.logging_configuration.log_group_arn #=> String
739
+ # resp.logging_configuration.modified_at #=> Time
740
+ # resp.logging_configuration.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
741
+ # resp.logging_configuration.status.status_reason #=> String
742
+ # resp.logging_configuration.workspace #=> String
743
+ #
744
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfiguration AWS API Documentation
745
+ #
746
+ # @overload describe_logging_configuration(params = {})
747
+ # @param [Hash] params ({})
748
+ def describe_logging_configuration(params = {}, options = {})
749
+ req = build_request(:describe_logging_configuration, params)
750
+ req.send_request(options)
751
+ end
752
+
631
753
  # Describe a rule groups namespace.
632
754
  #
633
755
  # @option params [required, String] :name
@@ -992,6 +1114,48 @@ module Aws::PrometheusService
992
1114
  req.send_request(options)
993
1115
  end
994
1116
 
1117
+ # Update logging configuration.
1118
+ #
1119
+ # @option params [String] :client_token
1120
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
1121
+ # the idempotency of the request.
1122
+ #
1123
+ # **A suitable default value is auto-generated.** You should normally
1124
+ # not need to pass this option.**
1125
+ #
1126
+ # @option params [required, String] :log_group_arn
1127
+ # The ARN of the CW log group to which the vended log data will be
1128
+ # published.
1129
+ #
1130
+ # @option params [required, String] :workspace_id
1131
+ # The ID of the workspace to vend logs to.
1132
+ #
1133
+ # @return [Types::UpdateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1134
+ #
1135
+ # * {Types::UpdateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
1136
+ #
1137
+ # @example Request syntax with placeholder values
1138
+ #
1139
+ # resp = client.update_logging_configuration({
1140
+ # client_token: "IdempotencyToken",
1141
+ # log_group_arn: "LogGroupArn", # required
1142
+ # workspace_id: "WorkspaceId", # required
1143
+ # })
1144
+ #
1145
+ # @example Response structure
1146
+ #
1147
+ # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
1148
+ # resp.status.status_reason #=> String
1149
+ #
1150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateLoggingConfiguration AWS API Documentation
1151
+ #
1152
+ # @overload update_logging_configuration(params = {})
1153
+ # @param [Hash] params ({})
1154
+ def update_logging_configuration(params = {}, options = {})
1155
+ req = build_request(:update_logging_configuration, params)
1156
+ req.send_request(options)
1157
+ end
1158
+
995
1159
  # Updates an AMP workspace alias.
996
1160
  #
997
1161
  # @option params [String] :alias
@@ -1039,7 +1203,7 @@ module Aws::PrometheusService
1039
1203
  params: params,
1040
1204
  config: config)
1041
1205
  context[:gem_name] = 'aws-sdk-prometheusservice'
1042
- context[:gem_version] = '1.14.0'
1206
+ context[:gem_version] = '1.16.0'
1043
1207
  Seahorse::Client::Request.new(handlers, context)
1044
1208
  end
1045
1209
 
@@ -21,15 +21,20 @@ module Aws::PrometheusService
21
21
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
22
  CreateAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionRequest')
23
23
  CreateAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionResponse')
24
+ CreateLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'CreateLoggingConfigurationRequest')
25
+ CreateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'CreateLoggingConfigurationResponse')
24
26
  CreateRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'CreateRuleGroupsNamespaceRequest')
25
27
  CreateRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'CreateRuleGroupsNamespaceResponse')
26
28
  CreateWorkspaceRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceRequest')
27
29
  CreateWorkspaceResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceResponse')
28
30
  DeleteAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteAlertManagerDefinitionRequest')
31
+ DeleteLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteLoggingConfigurationRequest')
29
32
  DeleteRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DeleteRuleGroupsNamespaceRequest')
30
33
  DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
31
34
  DescribeAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionRequest')
32
35
  DescribeAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionResponse')
36
+ DescribeLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeLoggingConfigurationRequest')
37
+ DescribeLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeLoggingConfigurationResponse')
33
38
  DescribeRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceRequest')
34
39
  DescribeRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceResponse')
35
40
  DescribeWorkspaceRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceRequest')
@@ -45,6 +50,10 @@ module Aws::PrometheusService
45
50
  ListWorkspacesRequest = Shapes::StructureShape.new(name: 'ListWorkspacesRequest')
46
51
  ListWorkspacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListWorkspacesRequestMaxResultsInteger')
47
52
  ListWorkspacesResponse = Shapes::StructureShape.new(name: 'ListWorkspacesResponse')
53
+ LogGroupArn = Shapes::StringShape.new(name: 'LogGroupArn')
54
+ LoggingConfigurationMetadata = Shapes::StructureShape.new(name: 'LoggingConfigurationMetadata')
55
+ LoggingConfigurationStatus = Shapes::StructureShape.new(name: 'LoggingConfigurationStatus')
56
+ LoggingConfigurationStatusCode = Shapes::StringShape.new(name: 'LoggingConfigurationStatusCode')
48
57
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
49
58
  PutAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'PutAlertManagerDefinitionRequest')
50
59
  PutAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'PutAlertManagerDefinitionResponse')
@@ -71,6 +80,8 @@ module Aws::PrometheusService
71
80
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
72
81
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
73
82
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
83
+ UpdateLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateLoggingConfigurationRequest')
84
+ UpdateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateLoggingConfigurationResponse')
74
85
  UpdateWorkspaceAliasRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceAliasRequest')
75
86
  Uri = Shapes::StringShape.new(name: 'Uri')
76
87
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -112,6 +123,14 @@ module Aws::PrometheusService
112
123
  CreateAlertManagerDefinitionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AlertManagerDefinitionStatus, required: true, location_name: "status"))
113
124
  CreateAlertManagerDefinitionResponse.struct_class = Types::CreateAlertManagerDefinitionResponse
114
125
 
126
+ CreateLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
127
+ CreateLoggingConfigurationRequest.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
128
+ CreateLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
129
+ CreateLoggingConfigurationRequest.struct_class = Types::CreateLoggingConfigurationRequest
130
+
131
+ CreateLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: LoggingConfigurationStatus, required: true, location_name: "status"))
132
+ CreateLoggingConfigurationResponse.struct_class = Types::CreateLoggingConfigurationResponse
133
+
115
134
  CreateRuleGroupsNamespaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
116
135
  CreateRuleGroupsNamespaceRequest.add_member(:data, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceData, required: true, location_name: "data"))
117
136
  CreateRuleGroupsNamespaceRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceName, required: true, location_name: "name"))
@@ -140,6 +159,10 @@ module Aws::PrometheusService
140
159
  DeleteAlertManagerDefinitionRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
141
160
  DeleteAlertManagerDefinitionRequest.struct_class = Types::DeleteAlertManagerDefinitionRequest
142
161
 
162
+ DeleteLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
163
+ DeleteLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
164
+ DeleteLoggingConfigurationRequest.struct_class = Types::DeleteLoggingConfigurationRequest
165
+
143
166
  DeleteRuleGroupsNamespaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
144
167
  DeleteRuleGroupsNamespaceRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceName, required: true, location: "uri", location_name: "name"))
145
168
  DeleteRuleGroupsNamespaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
@@ -155,6 +178,12 @@ module Aws::PrometheusService
155
178
  DescribeAlertManagerDefinitionResponse.add_member(:alert_manager_definition, Shapes::ShapeRef.new(shape: AlertManagerDefinitionDescription, required: true, location_name: "alertManagerDefinition"))
156
179
  DescribeAlertManagerDefinitionResponse.struct_class = Types::DescribeAlertManagerDefinitionResponse
157
180
 
181
+ DescribeLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
182
+ DescribeLoggingConfigurationRequest.struct_class = Types::DescribeLoggingConfigurationRequest
183
+
184
+ DescribeLoggingConfigurationResponse.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfigurationMetadata, required: true, location_name: "loggingConfiguration"))
185
+ DescribeLoggingConfigurationResponse.struct_class = Types::DescribeLoggingConfigurationResponse
186
+
158
187
  DescribeRuleGroupsNamespaceRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceName, required: true, location: "uri", location_name: "name"))
159
188
  DescribeRuleGroupsNamespaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
160
189
  DescribeRuleGroupsNamespaceRequest.struct_class = Types::DescribeRuleGroupsNamespaceRequest
@@ -197,6 +226,17 @@ module Aws::PrometheusService
197
226
  ListWorkspacesResponse.add_member(:workspaces, Shapes::ShapeRef.new(shape: WorkspaceSummaryList, required: true, location_name: "workspaces"))
198
227
  ListWorkspacesResponse.struct_class = Types::ListWorkspacesResponse
199
228
 
229
+ LoggingConfigurationMetadata.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
230
+ LoggingConfigurationMetadata.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
231
+ LoggingConfigurationMetadata.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedAt"))
232
+ LoggingConfigurationMetadata.add_member(:status, Shapes::ShapeRef.new(shape: LoggingConfigurationStatus, required: true, location_name: "status"))
233
+ LoggingConfigurationMetadata.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspace"))
234
+ LoggingConfigurationMetadata.struct_class = Types::LoggingConfigurationMetadata
235
+
236
+ LoggingConfigurationStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: LoggingConfigurationStatusCode, required: true, location_name: "statusCode"))
237
+ LoggingConfigurationStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
238
+ LoggingConfigurationStatus.struct_class = Types::LoggingConfigurationStatus
239
+
200
240
  PutAlertManagerDefinitionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
201
241
  PutAlertManagerDefinitionRequest.add_member(:data, Shapes::ShapeRef.new(shape: AlertManagerDefinitionData, required: true, location_name: "data"))
202
242
  PutAlertManagerDefinitionRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
@@ -275,6 +315,14 @@ module Aws::PrometheusService
275
315
 
276
316
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
277
317
 
318
+ UpdateLoggingConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
319
+ UpdateLoggingConfigurationRequest.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "logGroupArn"))
320
+ UpdateLoggingConfigurationRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
321
+ UpdateLoggingConfigurationRequest.struct_class = Types::UpdateLoggingConfigurationRequest
322
+
323
+ UpdateLoggingConfigurationResponse.add_member(:status, Shapes::ShapeRef.new(shape: LoggingConfigurationStatus, required: true, location_name: "status"))
324
+ UpdateLoggingConfigurationResponse.struct_class = Types::UpdateLoggingConfigurationResponse
325
+
278
326
  UpdateWorkspaceAliasRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location_name: "alias"))
279
327
  UpdateWorkspaceAliasRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
280
328
  UpdateWorkspaceAliasRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
@@ -346,6 +394,18 @@ module Aws::PrometheusService
346
394
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
347
395
  end)
348
396
 
397
+ api.add_operation(:create_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
398
+ o.name = "CreateLoggingConfiguration"
399
+ o.http_method = "POST"
400
+ o.http_request_uri = "/workspaces/{workspaceId}/logging"
401
+ o.input = Shapes::ShapeRef.new(shape: CreateLoggingConfigurationRequest)
402
+ o.output = Shapes::ShapeRef.new(shape: CreateLoggingConfigurationResponse)
403
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
405
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
406
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
407
+ end)
408
+
349
409
  api.add_operation(:create_rule_groups_namespace, Seahorse::Model::Operation.new.tap do |o|
350
410
  o.name = "CreateRuleGroupsNamespace"
351
411
  o.http_method = "POST"
@@ -389,6 +449,19 @@ module Aws::PrometheusService
389
449
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
390
450
  end)
391
451
 
452
+ api.add_operation(:delete_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
453
+ o.name = "DeleteLoggingConfiguration"
454
+ o.http_method = "DELETE"
455
+ o.http_request_uri = "/workspaces/{workspaceId}/logging"
456
+ o.input = Shapes::ShapeRef.new(shape: DeleteLoggingConfigurationRequest)
457
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
458
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
459
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
460
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
461
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
462
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
463
+ end)
464
+
392
465
  api.add_operation(:delete_rule_groups_namespace, Seahorse::Model::Operation.new.tap do |o|
393
466
  o.name = "DeleteRuleGroupsNamespace"
394
467
  o.http_method = "DELETE"
@@ -430,6 +503,18 @@ module Aws::PrometheusService
430
503
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
431
504
  end)
432
505
 
506
+ api.add_operation(:describe_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
507
+ o.name = "DescribeLoggingConfiguration"
508
+ o.http_method = "GET"
509
+ o.http_request_uri = "/workspaces/{workspaceId}/logging"
510
+ o.input = Shapes::ShapeRef.new(shape: DescribeLoggingConfigurationRequest)
511
+ o.output = Shapes::ShapeRef.new(shape: DescribeLoggingConfigurationResponse)
512
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
513
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
514
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
515
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
516
+ end)
517
+
433
518
  api.add_operation(:describe_rule_groups_namespace, Seahorse::Model::Operation.new.tap do |o|
434
519
  o.name = "DescribeRuleGroupsNamespace"
435
520
  o.http_method = "GET"
@@ -562,6 +647,19 @@ module Aws::PrometheusService
562
647
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
563
648
  end)
564
649
 
650
+ api.add_operation(:update_logging_configuration, Seahorse::Model::Operation.new.tap do |o|
651
+ o.name = "UpdateLoggingConfiguration"
652
+ o.http_method = "PUT"
653
+ o.http_request_uri = "/workspaces/{workspaceId}/logging"
654
+ o.input = Shapes::ShapeRef.new(shape: UpdateLoggingConfigurationRequest)
655
+ o.output = Shapes::ShapeRef.new(shape: UpdateLoggingConfigurationResponse)
656
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
657
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
658
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
659
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
660
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
661
+ end)
662
+
565
663
  api.add_operation(:update_workspace_alias, Seahorse::Model::Operation.new.tap do |o|
566
664
  o.name = "UpdateWorkspaceAlias"
567
665
  o.http_method = "POST"
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::PrometheusService
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
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
+ self[:use_fips] = options[:use_fips]
59
+ 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
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::PrometheusService
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdp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