aws-sdk-prometheusservice 1.14.0 → 1.15.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-prometheusservice/client.rb +148 -1
- data/lib/aws-sdk-prometheusservice/client_api.rb +98 -0
- data/lib/aws-sdk-prometheusservice/types.rb +225 -0
- data/lib/aws-sdk-prometheusservice.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e777501f52a4a2ba560f9b605b7c0b2afdaaeae5e5b0938c1f8170d26495ce2
|
4
|
+
data.tar.gz: c399cfe0373207a19f2cd871848c477c566737b69147861b09e59c701100b969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37049c1032774de83fd175f2a67f1993ac55c8dce02ed170133a231154b0929da17af842a0ea8138fb8a3c1b6ced2d84839691c8bc24c789b50e632b56c1611
|
7
|
+
data.tar.gz: 9203aa7f90016d781e3eb6d76ccab6a45fc5bcf966b4a3c3f895117199be2f29afb1645de1a1b65063525b735327104d012d2092adf9e496edd2a2d7bfd24dd5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.15.0 (2022-08-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds log APIs that allow customers to manage logging for their Amazon Managed Service for Prometheus workspaces.
|
8
|
+
|
4
9
|
1.14.0 (2022-02-24)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.0
|
@@ -393,6 +393,48 @@ module Aws::PrometheusService
|
|
393
393
|
req.send_request(options)
|
394
394
|
end
|
395
395
|
|
396
|
+
# Create logging configuration.
|
397
|
+
#
|
398
|
+
# @option params [String] :client_token
|
399
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
400
|
+
# the idempotency of the request.
|
401
|
+
#
|
402
|
+
# **A suitable default value is auto-generated.** You should normally
|
403
|
+
# not need to pass this option.**
|
404
|
+
#
|
405
|
+
# @option params [required, String] :log_group_arn
|
406
|
+
# The ARN of the CW log group to which the vended log data will be
|
407
|
+
# published.
|
408
|
+
#
|
409
|
+
# @option params [required, String] :workspace_id
|
410
|
+
# The ID of the workspace to vend logs to.
|
411
|
+
#
|
412
|
+
# @return [Types::CreateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
413
|
+
#
|
414
|
+
# * {Types::CreateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
|
415
|
+
#
|
416
|
+
# @example Request syntax with placeholder values
|
417
|
+
#
|
418
|
+
# resp = client.create_logging_configuration({
|
419
|
+
# client_token: "IdempotencyToken",
|
420
|
+
# log_group_arn: "LogGroupArn", # required
|
421
|
+
# workspace_id: "WorkspaceId", # required
|
422
|
+
# })
|
423
|
+
#
|
424
|
+
# @example Response structure
|
425
|
+
#
|
426
|
+
# resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
|
427
|
+
# resp.status.status_reason #=> String
|
428
|
+
#
|
429
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateLoggingConfiguration AWS API Documentation
|
430
|
+
#
|
431
|
+
# @overload create_logging_configuration(params = {})
|
432
|
+
# @param [Hash] params ({})
|
433
|
+
def create_logging_configuration(params = {}, options = {})
|
434
|
+
req = build_request(:create_logging_configuration, params)
|
435
|
+
req.send_request(options)
|
436
|
+
end
|
437
|
+
|
396
438
|
# Create a rule group namespace.
|
397
439
|
#
|
398
440
|
# @option params [String] :client_token
|
@@ -532,6 +574,36 @@ module Aws::PrometheusService
|
|
532
574
|
req.send_request(options)
|
533
575
|
end
|
534
576
|
|
577
|
+
# Delete logging configuration.
|
578
|
+
#
|
579
|
+
# @option params [String] :client_token
|
580
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
581
|
+
# the idempotency of the request.
|
582
|
+
#
|
583
|
+
# **A suitable default value is auto-generated.** You should normally
|
584
|
+
# not need to pass this option.**
|
585
|
+
#
|
586
|
+
# @option params [required, String] :workspace_id
|
587
|
+
# The ID of the workspace to vend logs to.
|
588
|
+
#
|
589
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
590
|
+
#
|
591
|
+
# @example Request syntax with placeholder values
|
592
|
+
#
|
593
|
+
# resp = client.delete_logging_configuration({
|
594
|
+
# client_token: "IdempotencyToken",
|
595
|
+
# workspace_id: "WorkspaceId", # required
|
596
|
+
# })
|
597
|
+
#
|
598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteLoggingConfiguration AWS API Documentation
|
599
|
+
#
|
600
|
+
# @overload delete_logging_configuration(params = {})
|
601
|
+
# @param [Hash] params ({})
|
602
|
+
def delete_logging_configuration(params = {}, options = {})
|
603
|
+
req = build_request(:delete_logging_configuration, params)
|
604
|
+
req.send_request(options)
|
605
|
+
end
|
606
|
+
|
535
607
|
# Delete a rule groups namespace.
|
536
608
|
#
|
537
609
|
# @option params [String] :client_token
|
@@ -628,6 +700,39 @@ module Aws::PrometheusService
|
|
628
700
|
req.send_request(options)
|
629
701
|
end
|
630
702
|
|
703
|
+
# Describes logging configuration.
|
704
|
+
#
|
705
|
+
# @option params [required, String] :workspace_id
|
706
|
+
# The ID of the workspace to vend logs to.
|
707
|
+
#
|
708
|
+
# @return [Types::DescribeLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
709
|
+
#
|
710
|
+
# * {Types::DescribeLoggingConfigurationResponse#logging_configuration #logging_configuration} => Types::LoggingConfigurationMetadata
|
711
|
+
#
|
712
|
+
# @example Request syntax with placeholder values
|
713
|
+
#
|
714
|
+
# resp = client.describe_logging_configuration({
|
715
|
+
# workspace_id: "WorkspaceId", # required
|
716
|
+
# })
|
717
|
+
#
|
718
|
+
# @example Response structure
|
719
|
+
#
|
720
|
+
# resp.logging_configuration.created_at #=> Time
|
721
|
+
# resp.logging_configuration.log_group_arn #=> String
|
722
|
+
# resp.logging_configuration.modified_at #=> Time
|
723
|
+
# resp.logging_configuration.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
|
724
|
+
# resp.logging_configuration.status.status_reason #=> String
|
725
|
+
# resp.logging_configuration.workspace #=> String
|
726
|
+
#
|
727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfiguration AWS API Documentation
|
728
|
+
#
|
729
|
+
# @overload describe_logging_configuration(params = {})
|
730
|
+
# @param [Hash] params ({})
|
731
|
+
def describe_logging_configuration(params = {}, options = {})
|
732
|
+
req = build_request(:describe_logging_configuration, params)
|
733
|
+
req.send_request(options)
|
734
|
+
end
|
735
|
+
|
631
736
|
# Describe a rule groups namespace.
|
632
737
|
#
|
633
738
|
# @option params [required, String] :name
|
@@ -992,6 +1097,48 @@ module Aws::PrometheusService
|
|
992
1097
|
req.send_request(options)
|
993
1098
|
end
|
994
1099
|
|
1100
|
+
# Update logging configuration.
|
1101
|
+
#
|
1102
|
+
# @option params [String] :client_token
|
1103
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
1104
|
+
# the idempotency of the request.
|
1105
|
+
#
|
1106
|
+
# **A suitable default value is auto-generated.** You should normally
|
1107
|
+
# not need to pass this option.**
|
1108
|
+
#
|
1109
|
+
# @option params [required, String] :log_group_arn
|
1110
|
+
# The ARN of the CW log group to which the vended log data will be
|
1111
|
+
# published.
|
1112
|
+
#
|
1113
|
+
# @option params [required, String] :workspace_id
|
1114
|
+
# The ID of the workspace to vend logs to.
|
1115
|
+
#
|
1116
|
+
# @return [Types::UpdateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1117
|
+
#
|
1118
|
+
# * {Types::UpdateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
|
1119
|
+
#
|
1120
|
+
# @example Request syntax with placeholder values
|
1121
|
+
#
|
1122
|
+
# resp = client.update_logging_configuration({
|
1123
|
+
# client_token: "IdempotencyToken",
|
1124
|
+
# log_group_arn: "LogGroupArn", # required
|
1125
|
+
# workspace_id: "WorkspaceId", # required
|
1126
|
+
# })
|
1127
|
+
#
|
1128
|
+
# @example Response structure
|
1129
|
+
#
|
1130
|
+
# resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
|
1131
|
+
# resp.status.status_reason #=> String
|
1132
|
+
#
|
1133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateLoggingConfiguration AWS API Documentation
|
1134
|
+
#
|
1135
|
+
# @overload update_logging_configuration(params = {})
|
1136
|
+
# @param [Hash] params ({})
|
1137
|
+
def update_logging_configuration(params = {}, options = {})
|
1138
|
+
req = build_request(:update_logging_configuration, params)
|
1139
|
+
req.send_request(options)
|
1140
|
+
end
|
1141
|
+
|
995
1142
|
# Updates an AMP workspace alias.
|
996
1143
|
#
|
997
1144
|
# @option params [String] :alias
|
@@ -1039,7 +1186,7 @@ module Aws::PrometheusService
|
|
1039
1186
|
params: params,
|
1040
1187
|
config: config)
|
1041
1188
|
context[:gem_name] = 'aws-sdk-prometheusservice'
|
1042
|
-
context[:gem_version] = '1.
|
1189
|
+
context[:gem_version] = '1.15.0'
|
1043
1190
|
Seahorse::Client::Request.new(handlers, context)
|
1044
1191
|
end
|
1045
1192
|
|
@@ -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"
|
@@ -148,6 +148,58 @@ module Aws::PrometheusService
|
|
148
148
|
include Aws::Structure
|
149
149
|
end
|
150
150
|
|
151
|
+
# Represents the input of a CreateLoggingConfiguration operation.
|
152
|
+
#
|
153
|
+
# @note When making an API call, you may pass CreateLoggingConfigurationRequest
|
154
|
+
# data as a hash:
|
155
|
+
#
|
156
|
+
# {
|
157
|
+
# client_token: "IdempotencyToken",
|
158
|
+
# log_group_arn: "LogGroupArn", # required
|
159
|
+
# workspace_id: "WorkspaceId", # required
|
160
|
+
# }
|
161
|
+
#
|
162
|
+
# @!attribute [rw] client_token
|
163
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
164
|
+
# the idempotency of the request.
|
165
|
+
#
|
166
|
+
# **A suitable default value is auto-generated.** You should normally
|
167
|
+
# not need to pass this option.
|
168
|
+
# @return [String]
|
169
|
+
#
|
170
|
+
# @!attribute [rw] log_group_arn
|
171
|
+
# The ARN of the CW log group to which the vended log data will be
|
172
|
+
# published.
|
173
|
+
# @return [String]
|
174
|
+
#
|
175
|
+
# @!attribute [rw] workspace_id
|
176
|
+
# The ID of the workspace to vend logs to.
|
177
|
+
# @return [String]
|
178
|
+
#
|
179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateLoggingConfigurationRequest AWS API Documentation
|
180
|
+
#
|
181
|
+
class CreateLoggingConfigurationRequest < Struct.new(
|
182
|
+
:client_token,
|
183
|
+
:log_group_arn,
|
184
|
+
:workspace_id)
|
185
|
+
SENSITIVE = []
|
186
|
+
include Aws::Structure
|
187
|
+
end
|
188
|
+
|
189
|
+
# Represents the output of a CreateLoggingConfiguration operation.
|
190
|
+
#
|
191
|
+
# @!attribute [rw] status
|
192
|
+
# The status of the logging configuration.
|
193
|
+
# @return [Types::LoggingConfigurationStatus]
|
194
|
+
#
|
195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateLoggingConfigurationResponse AWS API Documentation
|
196
|
+
#
|
197
|
+
class CreateLoggingConfigurationResponse < Struct.new(
|
198
|
+
:status)
|
199
|
+
SENSITIVE = []
|
200
|
+
include Aws::Structure
|
201
|
+
end
|
202
|
+
|
151
203
|
# Represents the input of a CreateRuleGroupsNamespace operation.
|
152
204
|
#
|
153
205
|
# @note When making an API call, you may pass CreateRuleGroupsNamespaceRequest
|
@@ -330,6 +382,37 @@ module Aws::PrometheusService
|
|
330
382
|
include Aws::Structure
|
331
383
|
end
|
332
384
|
|
385
|
+
# Represents the input of a DeleteLoggingConfiguration operation.
|
386
|
+
#
|
387
|
+
# @note When making an API call, you may pass DeleteLoggingConfigurationRequest
|
388
|
+
# data as a hash:
|
389
|
+
#
|
390
|
+
# {
|
391
|
+
# client_token: "IdempotencyToken",
|
392
|
+
# workspace_id: "WorkspaceId", # required
|
393
|
+
# }
|
394
|
+
#
|
395
|
+
# @!attribute [rw] client_token
|
396
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
397
|
+
# the idempotency of the request.
|
398
|
+
#
|
399
|
+
# **A suitable default value is auto-generated.** You should normally
|
400
|
+
# not need to pass this option.
|
401
|
+
# @return [String]
|
402
|
+
#
|
403
|
+
# @!attribute [rw] workspace_id
|
404
|
+
# The ID of the workspace to vend logs to.
|
405
|
+
# @return [String]
|
406
|
+
#
|
407
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteLoggingConfigurationRequest AWS API Documentation
|
408
|
+
#
|
409
|
+
class DeleteLoggingConfigurationRequest < Struct.new(
|
410
|
+
:client_token,
|
411
|
+
:workspace_id)
|
412
|
+
SENSITIVE = []
|
413
|
+
include Aws::Structure
|
414
|
+
end
|
415
|
+
|
333
416
|
# Represents the input of a DeleteRuleGroupsNamespace operation.
|
334
417
|
#
|
335
418
|
# @note When making an API call, you may pass DeleteRuleGroupsNamespaceRequest
|
@@ -434,6 +517,42 @@ module Aws::PrometheusService
|
|
434
517
|
include Aws::Structure
|
435
518
|
end
|
436
519
|
|
520
|
+
# Represents the input of a DescribeLoggingConfiguration operation.
|
521
|
+
#
|
522
|
+
# @note When making an API call, you may pass DescribeLoggingConfigurationRequest
|
523
|
+
# data as a hash:
|
524
|
+
#
|
525
|
+
# {
|
526
|
+
# workspace_id: "WorkspaceId", # required
|
527
|
+
# }
|
528
|
+
#
|
529
|
+
# @!attribute [rw] workspace_id
|
530
|
+
# The ID of the workspace to vend logs to.
|
531
|
+
# @return [String]
|
532
|
+
#
|
533
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfigurationRequest AWS API Documentation
|
534
|
+
#
|
535
|
+
class DescribeLoggingConfigurationRequest < Struct.new(
|
536
|
+
:workspace_id)
|
537
|
+
SENSITIVE = []
|
538
|
+
include Aws::Structure
|
539
|
+
end
|
540
|
+
|
541
|
+
# Represents the output of a DescribeLoggingConfiguration operation.
|
542
|
+
#
|
543
|
+
# @!attribute [rw] logging_configuration
|
544
|
+
# Metadata object containing information about the logging
|
545
|
+
# configuration of a workspace.
|
546
|
+
# @return [Types::LoggingConfigurationMetadata]
|
547
|
+
#
|
548
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfigurationResponse AWS API Documentation
|
549
|
+
#
|
550
|
+
class DescribeLoggingConfigurationResponse < Struct.new(
|
551
|
+
:logging_configuration)
|
552
|
+
SENSITIVE = []
|
553
|
+
include Aws::Structure
|
554
|
+
end
|
555
|
+
|
437
556
|
# Represents the input of a DescribeRuleGroupsNamespace operation.
|
438
557
|
#
|
439
558
|
# @note When making an API call, you may pass DescribeRuleGroupsNamespaceRequest
|
@@ -677,6 +796,60 @@ module Aws::PrometheusService
|
|
677
796
|
include Aws::Structure
|
678
797
|
end
|
679
798
|
|
799
|
+
# Represents the properties of a logging configuration metadata.
|
800
|
+
#
|
801
|
+
# @!attribute [rw] created_at
|
802
|
+
# The time when the logging configuration was created.
|
803
|
+
# @return [Time]
|
804
|
+
#
|
805
|
+
# @!attribute [rw] log_group_arn
|
806
|
+
# The ARN of the CW log group to which the vended log data will be
|
807
|
+
# published.
|
808
|
+
# @return [String]
|
809
|
+
#
|
810
|
+
# @!attribute [rw] modified_at
|
811
|
+
# The time when the logging configuration was modified.
|
812
|
+
# @return [Time]
|
813
|
+
#
|
814
|
+
# @!attribute [rw] status
|
815
|
+
# The status of the logging configuration.
|
816
|
+
# @return [Types::LoggingConfigurationStatus]
|
817
|
+
#
|
818
|
+
# @!attribute [rw] workspace
|
819
|
+
# The workspace where the logging configuration exists.
|
820
|
+
# @return [String]
|
821
|
+
#
|
822
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/LoggingConfigurationMetadata AWS API Documentation
|
823
|
+
#
|
824
|
+
class LoggingConfigurationMetadata < Struct.new(
|
825
|
+
:created_at,
|
826
|
+
:log_group_arn,
|
827
|
+
:modified_at,
|
828
|
+
:status,
|
829
|
+
:workspace)
|
830
|
+
SENSITIVE = []
|
831
|
+
include Aws::Structure
|
832
|
+
end
|
833
|
+
|
834
|
+
# Represents the status of a logging configuration.
|
835
|
+
#
|
836
|
+
# @!attribute [rw] status_code
|
837
|
+
# Status code of the logging configuration.
|
838
|
+
# @return [String]
|
839
|
+
#
|
840
|
+
# @!attribute [rw] status_reason
|
841
|
+
# The reason for failure if any.
|
842
|
+
# @return [String]
|
843
|
+
#
|
844
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/LoggingConfigurationStatus AWS API Documentation
|
845
|
+
#
|
846
|
+
class LoggingConfigurationStatus < Struct.new(
|
847
|
+
:status_code,
|
848
|
+
:status_reason)
|
849
|
+
SENSITIVE = []
|
850
|
+
include Aws::Structure
|
851
|
+
end
|
852
|
+
|
680
853
|
# Represents the input of a PutAlertManagerDefinition operation.
|
681
854
|
#
|
682
855
|
# @note When making an API call, you may pass PutAlertManagerDefinitionRequest
|
@@ -1050,6 +1223,58 @@ module Aws::PrometheusService
|
|
1050
1223
|
#
|
1051
1224
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1052
1225
|
|
1226
|
+
# Represents the input of an UpdateLoggingConfiguration operation.
|
1227
|
+
#
|
1228
|
+
# @note When making an API call, you may pass UpdateLoggingConfigurationRequest
|
1229
|
+
# data as a hash:
|
1230
|
+
#
|
1231
|
+
# {
|
1232
|
+
# client_token: "IdempotencyToken",
|
1233
|
+
# log_group_arn: "LogGroupArn", # required
|
1234
|
+
# workspace_id: "WorkspaceId", # required
|
1235
|
+
# }
|
1236
|
+
#
|
1237
|
+
# @!attribute [rw] client_token
|
1238
|
+
# Optional, unique, case-sensitive, user-provided identifier to ensure
|
1239
|
+
# the idempotency of the request.
|
1240
|
+
#
|
1241
|
+
# **A suitable default value is auto-generated.** You should normally
|
1242
|
+
# not need to pass this option.
|
1243
|
+
# @return [String]
|
1244
|
+
#
|
1245
|
+
# @!attribute [rw] log_group_arn
|
1246
|
+
# The ARN of the CW log group to which the vended log data will be
|
1247
|
+
# published.
|
1248
|
+
# @return [String]
|
1249
|
+
#
|
1250
|
+
# @!attribute [rw] workspace_id
|
1251
|
+
# The ID of the workspace to vend logs to.
|
1252
|
+
# @return [String]
|
1253
|
+
#
|
1254
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateLoggingConfigurationRequest AWS API Documentation
|
1255
|
+
#
|
1256
|
+
class UpdateLoggingConfigurationRequest < Struct.new(
|
1257
|
+
:client_token,
|
1258
|
+
:log_group_arn,
|
1259
|
+
:workspace_id)
|
1260
|
+
SENSITIVE = []
|
1261
|
+
include Aws::Structure
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# Represents the output of an UpdateLoggingConfiguration operation.
|
1265
|
+
#
|
1266
|
+
# @!attribute [rw] status
|
1267
|
+
# The status of the logging configuration.
|
1268
|
+
# @return [Types::LoggingConfigurationStatus]
|
1269
|
+
#
|
1270
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateLoggingConfigurationResponse AWS API Documentation
|
1271
|
+
#
|
1272
|
+
class UpdateLoggingConfigurationResponse < Struct.new(
|
1273
|
+
:status)
|
1274
|
+
SENSITIVE = []
|
1275
|
+
include Aws::Structure
|
1276
|
+
end
|
1277
|
+
|
1053
1278
|
# Represents the input of an UpdateWorkspaceAlias operation.
|
1054
1279
|
#
|
1055
1280
|
# @note When making an API call, you may pass UpdateWorkspaceAliasRequest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-prometheusservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.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: 2022-
|
11
|
+
date: 2022-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|