aws-sdk-prometheusservice 1.25.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-prometheusservice/client.rb +249 -1
- data/lib/aws-sdk-prometheusservice/client_api.rb +216 -0
- data/lib/aws-sdk-prometheusservice/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-prometheusservice/endpoints.rb +70 -0
- data/lib/aws-sdk-prometheusservice/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-prometheusservice/types.rb +474 -0
- data/lib/aws-sdk-prometheusservice/waiters.rb +91 -0
- data/lib/aws-sdk-prometheusservice.rb +1 -1
- metadata +2 -2
@@ -18,6 +18,9 @@ module Aws::PrometheusService
|
|
18
18
|
AlertManagerDefinitionDescription = Shapes::StructureShape.new(name: 'AlertManagerDefinitionDescription')
|
19
19
|
AlertManagerDefinitionStatus = Shapes::StructureShape.new(name: 'AlertManagerDefinitionStatus')
|
20
20
|
AlertManagerDefinitionStatusCode = Shapes::StringShape.new(name: 'AlertManagerDefinitionStatusCode')
|
21
|
+
AmpConfiguration = Shapes::StructureShape.new(name: 'AmpConfiguration')
|
22
|
+
Blob = Shapes::BlobShape.new(name: 'Blob')
|
23
|
+
ClusterArn = Shapes::StringShape.new(name: 'ClusterArn')
|
21
24
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
22
25
|
CreateAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionRequest')
|
23
26
|
CreateAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'CreateAlertManagerDefinitionResponse')
|
@@ -25,11 +28,15 @@ module Aws::PrometheusService
|
|
25
28
|
CreateLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'CreateLoggingConfigurationResponse')
|
26
29
|
CreateRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'CreateRuleGroupsNamespaceRequest')
|
27
30
|
CreateRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'CreateRuleGroupsNamespaceResponse')
|
31
|
+
CreateScraperRequest = Shapes::StructureShape.new(name: 'CreateScraperRequest')
|
32
|
+
CreateScraperResponse = Shapes::StructureShape.new(name: 'CreateScraperResponse')
|
28
33
|
CreateWorkspaceRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceRequest')
|
29
34
|
CreateWorkspaceResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceResponse')
|
30
35
|
DeleteAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteAlertManagerDefinitionRequest')
|
31
36
|
DeleteLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteLoggingConfigurationRequest')
|
32
37
|
DeleteRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DeleteRuleGroupsNamespaceRequest')
|
38
|
+
DeleteScraperRequest = Shapes::StructureShape.new(name: 'DeleteScraperRequest')
|
39
|
+
DeleteScraperResponse = Shapes::StructureShape.new(name: 'DeleteScraperResponse')
|
33
40
|
DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
|
34
41
|
DescribeAlertManagerDefinitionRequest = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionRequest')
|
35
42
|
DescribeAlertManagerDefinitionResponse = Shapes::StructureShape.new(name: 'DescribeAlertManagerDefinitionResponse')
|
@@ -37,14 +44,27 @@ module Aws::PrometheusService
|
|
37
44
|
DescribeLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeLoggingConfigurationResponse')
|
38
45
|
DescribeRuleGroupsNamespaceRequest = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceRequest')
|
39
46
|
DescribeRuleGroupsNamespaceResponse = Shapes::StructureShape.new(name: 'DescribeRuleGroupsNamespaceResponse')
|
47
|
+
DescribeScraperRequest = Shapes::StructureShape.new(name: 'DescribeScraperRequest')
|
48
|
+
DescribeScraperResponse = Shapes::StructureShape.new(name: 'DescribeScraperResponse')
|
40
49
|
DescribeWorkspaceRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceRequest')
|
41
50
|
DescribeWorkspaceResponse = Shapes::StructureShape.new(name: 'DescribeWorkspaceResponse')
|
51
|
+
Destination = Shapes::UnionShape.new(name: 'Destination')
|
52
|
+
EksConfiguration = Shapes::StructureShape.new(name: 'EksConfiguration')
|
53
|
+
FilterKey = Shapes::StringShape.new(name: 'FilterKey')
|
54
|
+
FilterValue = Shapes::StringShape.new(name: 'FilterValue')
|
55
|
+
FilterValues = Shapes::ListShape.new(name: 'FilterValues')
|
56
|
+
GetDefaultScraperConfigurationRequest = Shapes::StructureShape.new(name: 'GetDefaultScraperConfigurationRequest')
|
57
|
+
GetDefaultScraperConfigurationResponse = Shapes::StructureShape.new(name: 'GetDefaultScraperConfigurationResponse')
|
58
|
+
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
42
59
|
IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
|
43
60
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
44
61
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
45
62
|
ListRuleGroupsNamespacesRequest = Shapes::StructureShape.new(name: 'ListRuleGroupsNamespacesRequest')
|
46
63
|
ListRuleGroupsNamespacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListRuleGroupsNamespacesRequestMaxResultsInteger')
|
47
64
|
ListRuleGroupsNamespacesResponse = Shapes::StructureShape.new(name: 'ListRuleGroupsNamespacesResponse')
|
65
|
+
ListScrapersRequest = Shapes::StructureShape.new(name: 'ListScrapersRequest')
|
66
|
+
ListScrapersRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListScrapersRequestMaxResultsInteger')
|
67
|
+
ListScrapersResponse = Shapes::StructureShape.new(name: 'ListScrapersResponse')
|
48
68
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
49
69
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
50
70
|
ListWorkspacesRequest = Shapes::StructureShape.new(name: 'ListWorkspacesRequest')
|
@@ -68,8 +88,24 @@ module Aws::PrometheusService
|
|
68
88
|
RuleGroupsNamespaceStatusCode = Shapes::StringShape.new(name: 'RuleGroupsNamespaceStatusCode')
|
69
89
|
RuleGroupsNamespaceSummary = Shapes::StructureShape.new(name: 'RuleGroupsNamespaceSummary')
|
70
90
|
RuleGroupsNamespaceSummaryList = Shapes::ListShape.new(name: 'RuleGroupsNamespaceSummaryList')
|
91
|
+
ScrapeConfiguration = Shapes::UnionShape.new(name: 'ScrapeConfiguration')
|
92
|
+
ScraperAlias = Shapes::StringShape.new(name: 'ScraperAlias')
|
93
|
+
ScraperArn = Shapes::StringShape.new(name: 'ScraperArn')
|
94
|
+
ScraperDescription = Shapes::StructureShape.new(name: 'ScraperDescription')
|
95
|
+
ScraperFilters = Shapes::MapShape.new(name: 'ScraperFilters')
|
96
|
+
ScraperId = Shapes::StringShape.new(name: 'ScraperId')
|
97
|
+
ScraperStatus = Shapes::StructureShape.new(name: 'ScraperStatus')
|
98
|
+
ScraperStatusCode = Shapes::StringShape.new(name: 'ScraperStatusCode')
|
99
|
+
ScraperSummary = Shapes::StructureShape.new(name: 'ScraperSummary')
|
100
|
+
ScraperSummaryList = Shapes::ListShape.new(name: 'ScraperSummaryList')
|
101
|
+
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
102
|
+
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
71
103
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
104
|
+
Source = Shapes::UnionShape.new(name: 'Source')
|
105
|
+
StatusReason = Shapes::StringShape.new(name: 'StatusReason')
|
72
106
|
String = Shapes::StringShape.new(name: 'String')
|
107
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
108
|
+
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
73
109
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
74
110
|
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
75
111
|
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
@@ -110,6 +146,9 @@ module Aws::PrometheusService
|
|
110
146
|
AlertManagerDefinitionStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
|
111
147
|
AlertManagerDefinitionStatus.struct_class = Types::AlertManagerDefinitionStatus
|
112
148
|
|
149
|
+
AmpConfiguration.add_member(:workspace_arn, Shapes::ShapeRef.new(shape: WorkspaceArn, required: true, location_name: "workspaceArn"))
|
150
|
+
AmpConfiguration.struct_class = Types::AmpConfiguration
|
151
|
+
|
113
152
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
114
153
|
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
115
154
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
@@ -144,6 +183,20 @@ module Aws::PrometheusService
|
|
144
183
|
CreateRuleGroupsNamespaceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
145
184
|
CreateRuleGroupsNamespaceResponse.struct_class = Types::CreateRuleGroupsNamespaceResponse
|
146
185
|
|
186
|
+
CreateScraperRequest.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
|
187
|
+
CreateScraperRequest.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, required: true, location_name: "scrapeConfiguration"))
|
188
|
+
CreateScraperRequest.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
189
|
+
CreateScraperRequest.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
190
|
+
CreateScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
191
|
+
CreateScraperRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
192
|
+
CreateScraperRequest.struct_class = Types::CreateScraperRequest
|
193
|
+
|
194
|
+
CreateScraperResponse.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
195
|
+
CreateScraperResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ScraperArn, required: true, location_name: "arn"))
|
196
|
+
CreateScraperResponse.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
|
197
|
+
CreateScraperResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
198
|
+
CreateScraperResponse.struct_class = Types::CreateScraperResponse
|
199
|
+
|
147
200
|
CreateWorkspaceRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location_name: "alias"))
|
148
201
|
CreateWorkspaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
149
202
|
CreateWorkspaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
@@ -168,6 +221,14 @@ module Aws::PrometheusService
|
|
168
221
|
DeleteRuleGroupsNamespaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
169
222
|
DeleteRuleGroupsNamespaceRequest.struct_class = Types::DeleteRuleGroupsNamespaceRequest
|
170
223
|
|
224
|
+
DeleteScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
|
225
|
+
DeleteScraperRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
226
|
+
DeleteScraperRequest.struct_class = Types::DeleteScraperRequest
|
227
|
+
|
228
|
+
DeleteScraperResponse.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
229
|
+
DeleteScraperResponse.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
|
230
|
+
DeleteScraperResponse.struct_class = Types::DeleteScraperResponse
|
231
|
+
|
171
232
|
DeleteWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
|
172
233
|
DeleteWorkspaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
173
234
|
DeleteWorkspaceRequest.struct_class = Types::DeleteWorkspaceRequest
|
@@ -191,12 +252,36 @@ module Aws::PrometheusService
|
|
191
252
|
DescribeRuleGroupsNamespaceResponse.add_member(:rule_groups_namespace, Shapes::ShapeRef.new(shape: RuleGroupsNamespaceDescription, required: true, location_name: "ruleGroupsNamespace"))
|
192
253
|
DescribeRuleGroupsNamespaceResponse.struct_class = Types::DescribeRuleGroupsNamespaceResponse
|
193
254
|
|
255
|
+
DescribeScraperRequest.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location: "uri", location_name: "scraperId"))
|
256
|
+
DescribeScraperRequest.struct_class = Types::DescribeScraperRequest
|
257
|
+
|
258
|
+
DescribeScraperResponse.add_member(:scraper, Shapes::ShapeRef.new(shape: ScraperDescription, required: true, location_name: "scraper"))
|
259
|
+
DescribeScraperResponse.struct_class = Types::DescribeScraperResponse
|
260
|
+
|
194
261
|
DescribeWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
|
195
262
|
DescribeWorkspaceRequest.struct_class = Types::DescribeWorkspaceRequest
|
196
263
|
|
197
264
|
DescribeWorkspaceResponse.add_member(:workspace, Shapes::ShapeRef.new(shape: WorkspaceDescription, required: true, location_name: "workspace"))
|
198
265
|
DescribeWorkspaceResponse.struct_class = Types::DescribeWorkspaceResponse
|
199
266
|
|
267
|
+
Destination.add_member(:amp_configuration, Shapes::ShapeRef.new(shape: AmpConfiguration, location_name: "ampConfiguration"))
|
268
|
+
Destination.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
269
|
+
Destination.add_member_subclass(:amp_configuration, Types::Destination::AmpConfiguration)
|
270
|
+
Destination.add_member_subclass(:unknown, Types::Destination::Unknown)
|
271
|
+
Destination.struct_class = Types::Destination
|
272
|
+
|
273
|
+
EksConfiguration.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: ClusterArn, required: true, location_name: "clusterArn"))
|
274
|
+
EksConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "securityGroupIds"))
|
275
|
+
EksConfiguration.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "subnetIds"))
|
276
|
+
EksConfiguration.struct_class = Types::EksConfiguration
|
277
|
+
|
278
|
+
FilterValues.member = Shapes::ShapeRef.new(shape: FilterValue)
|
279
|
+
|
280
|
+
GetDefaultScraperConfigurationRequest.struct_class = Types::GetDefaultScraperConfigurationRequest
|
281
|
+
|
282
|
+
GetDefaultScraperConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "configuration"))
|
283
|
+
GetDefaultScraperConfigurationResponse.struct_class = Types::GetDefaultScraperConfigurationResponse
|
284
|
+
|
200
285
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
201
286
|
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
202
287
|
InternalServerException.struct_class = Types::InternalServerException
|
@@ -211,6 +296,15 @@ module Aws::PrometheusService
|
|
211
296
|
ListRuleGroupsNamespacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
212
297
|
ListRuleGroupsNamespacesResponse.struct_class = Types::ListRuleGroupsNamespacesResponse
|
213
298
|
|
299
|
+
ListScrapersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ScraperFilters, location: "querystring", location_name: "filters"))
|
300
|
+
ListScrapersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
301
|
+
ListScrapersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListScrapersRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
302
|
+
ListScrapersRequest.struct_class = Types::ListScrapersRequest
|
303
|
+
|
304
|
+
ListScrapersResponse.add_member(:scrapers, Shapes::ShapeRef.new(shape: ScraperSummaryList, required: true, location_name: "scrapers"))
|
305
|
+
ListScrapersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
306
|
+
ListScrapersResponse.struct_class = Types::ListScrapersResponse
|
307
|
+
|
214
308
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
215
309
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
216
310
|
|
@@ -285,6 +379,49 @@ module Aws::PrometheusService
|
|
285
379
|
|
286
380
|
RuleGroupsNamespaceSummaryList.member = Shapes::ShapeRef.new(shape: RuleGroupsNamespaceSummary)
|
287
381
|
|
382
|
+
ScrapeConfiguration.add_member(:configuration_blob, Shapes::ShapeRef.new(shape: Blob, location_name: "configurationBlob"))
|
383
|
+
ScrapeConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
384
|
+
ScrapeConfiguration.add_member_subclass(:configuration_blob, Types::ScrapeConfiguration::ConfigurationBlob)
|
385
|
+
ScrapeConfiguration.add_member_subclass(:unknown, Types::ScrapeConfiguration::Unknown)
|
386
|
+
ScrapeConfiguration.struct_class = Types::ScrapeConfiguration
|
387
|
+
|
388
|
+
ScraperDescription.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
|
389
|
+
ScraperDescription.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
390
|
+
ScraperDescription.add_member(:arn, Shapes::ShapeRef.new(shape: ScraperArn, required: true, location_name: "arn"))
|
391
|
+
ScraperDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "roleArn"))
|
392
|
+
ScraperDescription.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
|
393
|
+
ScraperDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
394
|
+
ScraperDescription.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastModifiedAt"))
|
395
|
+
ScraperDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
396
|
+
ScraperDescription.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
|
397
|
+
ScraperDescription.add_member(:scrape_configuration, Shapes::ShapeRef.new(shape: ScrapeConfiguration, required: true, location_name: "scrapeConfiguration"))
|
398
|
+
ScraperDescription.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
399
|
+
ScraperDescription.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
400
|
+
ScraperDescription.struct_class = Types::ScraperDescription
|
401
|
+
|
402
|
+
ScraperFilters.key = Shapes::ShapeRef.new(shape: FilterKey)
|
403
|
+
ScraperFilters.value = Shapes::ShapeRef.new(shape: FilterValues)
|
404
|
+
|
405
|
+
ScraperStatus.add_member(:status_code, Shapes::ShapeRef.new(shape: ScraperStatusCode, required: true, location_name: "statusCode"))
|
406
|
+
ScraperStatus.struct_class = Types::ScraperStatus
|
407
|
+
|
408
|
+
ScraperSummary.add_member(:alias, Shapes::ShapeRef.new(shape: ScraperAlias, location_name: "alias"))
|
409
|
+
ScraperSummary.add_member(:scraper_id, Shapes::ShapeRef.new(shape: ScraperId, required: true, location_name: "scraperId"))
|
410
|
+
ScraperSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ScraperArn, required: true, location_name: "arn"))
|
411
|
+
ScraperSummary.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "roleArn"))
|
412
|
+
ScraperSummary.add_member(:status, Shapes::ShapeRef.new(shape: ScraperStatus, required: true, location_name: "status"))
|
413
|
+
ScraperSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
414
|
+
ScraperSummary.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastModifiedAt"))
|
415
|
+
ScraperSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
416
|
+
ScraperSummary.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
|
417
|
+
ScraperSummary.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
418
|
+
ScraperSummary.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
419
|
+
ScraperSummary.struct_class = Types::ScraperSummary
|
420
|
+
|
421
|
+
ScraperSummaryList.member = Shapes::ShapeRef.new(shape: ScraperSummary)
|
422
|
+
|
423
|
+
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
424
|
+
|
288
425
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
289
426
|
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
290
427
|
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
@@ -292,6 +429,14 @@ module Aws::PrometheusService
|
|
292
429
|
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "quotaCode"))
|
293
430
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
294
431
|
|
432
|
+
Source.add_member(:eks_configuration, Shapes::ShapeRef.new(shape: EksConfiguration, location_name: "eksConfiguration"))
|
433
|
+
Source.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
434
|
+
Source.add_member_subclass(:eks_configuration, Types::Source::EksConfiguration)
|
435
|
+
Source.add_member_subclass(:unknown, Types::Source::Unknown)
|
436
|
+
Source.struct_class = Types::Source
|
437
|
+
|
438
|
+
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
439
|
+
|
295
440
|
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
296
441
|
|
297
442
|
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
@@ -421,6 +566,21 @@ module Aws::PrometheusService
|
|
421
566
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
422
567
|
end)
|
423
568
|
|
569
|
+
api.add_operation(:create_scraper, Seahorse::Model::Operation.new.tap do |o|
|
570
|
+
o.name = "CreateScraper"
|
571
|
+
o.http_method = "POST"
|
572
|
+
o.http_request_uri = "/scrapers"
|
573
|
+
o.input = Shapes::ShapeRef.new(shape: CreateScraperRequest)
|
574
|
+
o.output = Shapes::ShapeRef.new(shape: CreateScraperResponse)
|
575
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
576
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
577
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
578
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
579
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
580
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
581
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
582
|
+
end)
|
583
|
+
|
424
584
|
api.add_operation(:create_workspace, Seahorse::Model::Operation.new.tap do |o|
|
425
585
|
o.name = "CreateWorkspace"
|
426
586
|
o.http_method = "POST"
|
@@ -476,6 +636,20 @@ module Aws::PrometheusService
|
|
476
636
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
477
637
|
end)
|
478
638
|
|
639
|
+
api.add_operation(:delete_scraper, Seahorse::Model::Operation.new.tap do |o|
|
640
|
+
o.name = "DeleteScraper"
|
641
|
+
o.http_method = "DELETE"
|
642
|
+
o.http_request_uri = "/scrapers/{scraperId}"
|
643
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteScraperRequest)
|
644
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteScraperResponse)
|
645
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
646
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
647
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
648
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
649
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
650
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
651
|
+
end)
|
652
|
+
|
479
653
|
api.add_operation(:delete_workspace, Seahorse::Model::Operation.new.tap do |o|
|
480
654
|
o.name = "DeleteWorkspace"
|
481
655
|
o.http_method = "DELETE"
|
@@ -528,6 +702,19 @@ module Aws::PrometheusService
|
|
528
702
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
529
703
|
end)
|
530
704
|
|
705
|
+
api.add_operation(:describe_scraper, Seahorse::Model::Operation.new.tap do |o|
|
706
|
+
o.name = "DescribeScraper"
|
707
|
+
o.http_method = "GET"
|
708
|
+
o.http_request_uri = "/scrapers/{scraperId}"
|
709
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeScraperRequest)
|
710
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeScraperResponse)
|
711
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
712
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
713
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
714
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
715
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
716
|
+
end)
|
717
|
+
|
531
718
|
api.add_operation(:describe_workspace, Seahorse::Model::Operation.new.tap do |o|
|
532
719
|
o.name = "DescribeWorkspace"
|
533
720
|
o.http_method = "GET"
|
@@ -541,6 +728,17 @@ module Aws::PrometheusService
|
|
541
728
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
542
729
|
end)
|
543
730
|
|
731
|
+
api.add_operation(:get_default_scraper_configuration, Seahorse::Model::Operation.new.tap do |o|
|
732
|
+
o.name = "GetDefaultScraperConfiguration"
|
733
|
+
o.http_method = "GET"
|
734
|
+
o.http_request_uri = "/scraperconfiguration"
|
735
|
+
o.input = Shapes::ShapeRef.new(shape: GetDefaultScraperConfigurationRequest)
|
736
|
+
o.output = Shapes::ShapeRef.new(shape: GetDefaultScraperConfigurationResponse)
|
737
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
738
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
739
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
740
|
+
end)
|
741
|
+
|
544
742
|
api.add_operation(:list_rule_groups_namespaces, Seahorse::Model::Operation.new.tap do |o|
|
545
743
|
o.name = "ListRuleGroupsNamespaces"
|
546
744
|
o.http_method = "GET"
|
@@ -560,6 +758,24 @@ module Aws::PrometheusService
|
|
560
758
|
)
|
561
759
|
end)
|
562
760
|
|
761
|
+
api.add_operation(:list_scrapers, Seahorse::Model::Operation.new.tap do |o|
|
762
|
+
o.name = "ListScrapers"
|
763
|
+
o.http_method = "GET"
|
764
|
+
o.http_request_uri = "/scrapers"
|
765
|
+
o.input = Shapes::ShapeRef.new(shape: ListScrapersRequest)
|
766
|
+
o.output = Shapes::ShapeRef.new(shape: ListScrapersResponse)
|
767
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
768
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
769
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
770
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
771
|
+
o[:pager] = Aws::Pager.new(
|
772
|
+
limit_key: "max_results",
|
773
|
+
tokens: {
|
774
|
+
"next_token" => "next_token"
|
775
|
+
}
|
776
|
+
)
|
777
|
+
end)
|
778
|
+
|
563
779
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
564
780
|
o.name = "ListTagsForResource"
|
565
781
|
o.http_method = "GET"
|
@@ -32,7 +32,7 @@ module Aws::PrometheusService
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://aps-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -54,6 +54,20 @@ module Aws::PrometheusService
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
class CreateScraper
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::PrometheusService::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
57
71
|
class CreateWorkspace
|
58
72
|
def self.build(context)
|
59
73
|
unless context.config.regional_endpoint
|
@@ -110,6 +124,20 @@ module Aws::PrometheusService
|
|
110
124
|
end
|
111
125
|
end
|
112
126
|
|
127
|
+
class DeleteScraper
|
128
|
+
def self.build(context)
|
129
|
+
unless context.config.regional_endpoint
|
130
|
+
endpoint = context.config.endpoint.to_s
|
131
|
+
end
|
132
|
+
Aws::PrometheusService::EndpointParameters.new(
|
133
|
+
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
135
|
+
use_fips: context.config.use_fips_endpoint,
|
136
|
+
endpoint: endpoint,
|
137
|
+
)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
113
141
|
class DeleteWorkspace
|
114
142
|
def self.build(context)
|
115
143
|
unless context.config.regional_endpoint
|
@@ -166,6 +194,20 @@ module Aws::PrometheusService
|
|
166
194
|
end
|
167
195
|
end
|
168
196
|
|
197
|
+
class DescribeScraper
|
198
|
+
def self.build(context)
|
199
|
+
unless context.config.regional_endpoint
|
200
|
+
endpoint = context.config.endpoint.to_s
|
201
|
+
end
|
202
|
+
Aws::PrometheusService::EndpointParameters.new(
|
203
|
+
region: context.config.region,
|
204
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
205
|
+
use_fips: context.config.use_fips_endpoint,
|
206
|
+
endpoint: endpoint,
|
207
|
+
)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
169
211
|
class DescribeWorkspace
|
170
212
|
def self.build(context)
|
171
213
|
unless context.config.regional_endpoint
|
@@ -180,6 +222,20 @@ module Aws::PrometheusService
|
|
180
222
|
end
|
181
223
|
end
|
182
224
|
|
225
|
+
class GetDefaultScraperConfiguration
|
226
|
+
def self.build(context)
|
227
|
+
unless context.config.regional_endpoint
|
228
|
+
endpoint = context.config.endpoint.to_s
|
229
|
+
end
|
230
|
+
Aws::PrometheusService::EndpointParameters.new(
|
231
|
+
region: context.config.region,
|
232
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
233
|
+
use_fips: context.config.use_fips_endpoint,
|
234
|
+
endpoint: endpoint,
|
235
|
+
)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
183
239
|
class ListRuleGroupsNamespaces
|
184
240
|
def self.build(context)
|
185
241
|
unless context.config.regional_endpoint
|
@@ -194,6 +250,20 @@ module Aws::PrometheusService
|
|
194
250
|
end
|
195
251
|
end
|
196
252
|
|
253
|
+
class ListScrapers
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::PrometheusService::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
197
267
|
class ListTagsForResource
|
198
268
|
def self.build(context)
|
199
269
|
unless context.config.regional_endpoint
|
@@ -62,6 +62,8 @@ module Aws::PrometheusService
|
|
62
62
|
Aws::PrometheusService::Endpoints::CreateLoggingConfiguration.build(context)
|
63
63
|
when :create_rule_groups_namespace
|
64
64
|
Aws::PrometheusService::Endpoints::CreateRuleGroupsNamespace.build(context)
|
65
|
+
when :create_scraper
|
66
|
+
Aws::PrometheusService::Endpoints::CreateScraper.build(context)
|
65
67
|
when :create_workspace
|
66
68
|
Aws::PrometheusService::Endpoints::CreateWorkspace.build(context)
|
67
69
|
when :delete_alert_manager_definition
|
@@ -70,6 +72,8 @@ module Aws::PrometheusService
|
|
70
72
|
Aws::PrometheusService::Endpoints::DeleteLoggingConfiguration.build(context)
|
71
73
|
when :delete_rule_groups_namespace
|
72
74
|
Aws::PrometheusService::Endpoints::DeleteRuleGroupsNamespace.build(context)
|
75
|
+
when :delete_scraper
|
76
|
+
Aws::PrometheusService::Endpoints::DeleteScraper.build(context)
|
73
77
|
when :delete_workspace
|
74
78
|
Aws::PrometheusService::Endpoints::DeleteWorkspace.build(context)
|
75
79
|
when :describe_alert_manager_definition
|
@@ -78,10 +82,16 @@ module Aws::PrometheusService
|
|
78
82
|
Aws::PrometheusService::Endpoints::DescribeLoggingConfiguration.build(context)
|
79
83
|
when :describe_rule_groups_namespace
|
80
84
|
Aws::PrometheusService::Endpoints::DescribeRuleGroupsNamespace.build(context)
|
85
|
+
when :describe_scraper
|
86
|
+
Aws::PrometheusService::Endpoints::DescribeScraper.build(context)
|
81
87
|
when :describe_workspace
|
82
88
|
Aws::PrometheusService::Endpoints::DescribeWorkspace.build(context)
|
89
|
+
when :get_default_scraper_configuration
|
90
|
+
Aws::PrometheusService::Endpoints::GetDefaultScraperConfiguration.build(context)
|
83
91
|
when :list_rule_groups_namespaces
|
84
92
|
Aws::PrometheusService::Endpoints::ListRuleGroupsNamespaces.build(context)
|
93
|
+
when :list_scrapers
|
94
|
+
Aws::PrometheusService::Endpoints::ListScrapers.build(context)
|
85
95
|
when :list_tags_for_resource
|
86
96
|
Aws::PrometheusService::Endpoints::ListTagsForResource.build(context)
|
87
97
|
when :list_workspaces
|