aws-sdk-prometheusservice 1.3.0 → 1.7.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: 58a08427b5d83ca15c7bd0eaafeda131b2f8ec8a1747670fabb128e29b351301
4
- data.tar.gz: 192497ad3c5435eb1d7206dff0a6e21e1cfaa00ce7f33dc7a413818793258545
3
+ metadata.gz: e47eca1fe90ed00f254f6cafbd2c08108c57bc81c3712671b3a299169f12f229
4
+ data.tar.gz: 5c72ca098375811d5b5a96904707de39e1c7df1b7e09544b4a5ff5262ff422a3
5
5
  SHA512:
6
- metadata.gz: 0316fb82b0638cdacfa80133a7e4a140faa184b50d778365a85a419759f3ae6b8afa121eba22592080beffd3e23036724a77c18e6f2e7f2a6178f8a2a3902efe
7
- data.tar.gz: a0b34453ed30bc746f0530a5ddd2174a3aa359ff1ce6ec42a0211fe9bb4dc94fc22afb41ae5f3ecb5649dc960c81feb77532d7a1e4981fc31a840a3752aa17f5
6
+ metadata.gz: 365b1348bfd864cb259e6db989ebdb770ce0a98c2fc94b675ed4cd5d38d57bacca768f865ebccae25ba2988b7accaa0c48039b8e9084235efa02ea7c27b03a50
7
+ data.tar.gz: 95a08bc05f9de681076c56cf3bfe4c7ee2c231c98232c00ae080644518e4f4a92e8ea72be2b8ba4af4658e2e3b0c580647ee5e9a176363518b60182e41b7f24d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2021-09-07)
5
+ ------------------
6
+
7
+ * Feature - This release adds tagging support for Amazon Managed Service for Prometheus workspace.
8
+
9
+ 1.6.0 (2021-09-01)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.5.0 (2021-07-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.4.0 (2021-07-28)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.3.0 (2021-03-10)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.7.0
@@ -340,10 +340,14 @@ module Aws::PrometheusService
340
340
  # **A suitable default value is auto-generated.** You should normally
341
341
  # not need to pass this option.**
342
342
  #
343
+ # @option params [Hash<String,String>] :tags
344
+ # Optional, user-provided tags for this workspace.
345
+ #
343
346
  # @return [Types::CreateWorkspaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
344
347
  #
345
348
  # * {Types::CreateWorkspaceResponse#arn #arn} => String
346
349
  # * {Types::CreateWorkspaceResponse#status #status} => Types::WorkspaceStatus
350
+ # * {Types::CreateWorkspaceResponse#tags #tags} => Hash&lt;String,String&gt;
347
351
  # * {Types::CreateWorkspaceResponse#workspace_id #workspace_id} => String
348
352
  #
349
353
  # @example Request syntax with placeholder values
@@ -351,12 +355,17 @@ module Aws::PrometheusService
351
355
  # resp = client.create_workspace({
352
356
  # alias: "WorkspaceAlias",
353
357
  # client_token: "IdempotencyToken",
358
+ # tags: {
359
+ # "TagKey" => "TagValue",
360
+ # },
354
361
  # })
355
362
  #
356
363
  # @example Response structure
357
364
  #
358
365
  # resp.arn #=> String
359
366
  # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
367
+ # resp.tags #=> Hash
368
+ # resp.tags["TagKey"] #=> String
360
369
  # resp.workspace_id #=> String
361
370
  #
362
371
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace AWS API Documentation
@@ -420,6 +429,8 @@ module Aws::PrometheusService
420
429
  # resp.workspace.created_at #=> Time
421
430
  # resp.workspace.prometheus_endpoint #=> String
422
431
  # resp.workspace.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
432
+ # resp.workspace.tags #=> Hash
433
+ # resp.workspace.tags["TagKey"] #=> String
423
434
  # resp.workspace.workspace_id #=> String
424
435
  #
425
436
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace AWS API Documentation
@@ -431,6 +442,35 @@ module Aws::PrometheusService
431
442
  req.send_request(options)
432
443
  end
433
444
 
445
+ # Lists the tags you have assigned to the resource.
446
+ #
447
+ # @option params [required, String] :resource_arn
448
+ # The ARN of the resource.
449
+ #
450
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
451
+ #
452
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
453
+ #
454
+ # @example Request syntax with placeholder values
455
+ #
456
+ # resp = client.list_tags_for_resource({
457
+ # resource_arn: "String", # required
458
+ # })
459
+ #
460
+ # @example Response structure
461
+ #
462
+ # resp.tags #=> Hash
463
+ # resp.tags["TagKey"] #=> String
464
+ #
465
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResource AWS API Documentation
466
+ #
467
+ # @overload list_tags_for_resource(params = {})
468
+ # @param [Hash] params ({})
469
+ def list_tags_for_resource(params = {}, options = {})
470
+ req = build_request(:list_tags_for_resource, params)
471
+ req.send_request(options)
472
+ end
473
+
434
474
  # Lists all AMP workspaces, including workspaces being created or
435
475
  # deleted.
436
476
  #
@@ -469,6 +509,8 @@ module Aws::PrometheusService
469
509
  # resp.workspaces[0].arn #=> String
470
510
  # resp.workspaces[0].created_at #=> Time
471
511
  # resp.workspaces[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
512
+ # resp.workspaces[0].tags #=> Hash
513
+ # resp.workspaces[0].tags["TagKey"] #=> String
472
514
  # resp.workspaces[0].workspace_id #=> String
473
515
  #
474
516
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces AWS API Documentation
@@ -480,6 +522,60 @@ module Aws::PrometheusService
480
522
  req.send_request(options)
481
523
  end
482
524
 
525
+ # Creates tags for the specified resource.
526
+ #
527
+ # @option params [required, String] :resource_arn
528
+ # The ARN of the resource.
529
+ #
530
+ # @option params [required, Hash<String,String>] :tags
531
+ # The list of tags assigned to the resource.
532
+ #
533
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
534
+ #
535
+ # @example Request syntax with placeholder values
536
+ #
537
+ # resp = client.tag_resource({
538
+ # resource_arn: "String", # required
539
+ # tags: { # required
540
+ # "TagKey" => "TagValue",
541
+ # },
542
+ # })
543
+ #
544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResource AWS API Documentation
545
+ #
546
+ # @overload tag_resource(params = {})
547
+ # @param [Hash] params ({})
548
+ def tag_resource(params = {}, options = {})
549
+ req = build_request(:tag_resource, params)
550
+ req.send_request(options)
551
+ end
552
+
553
+ # Deletes tags from the specified resource.
554
+ #
555
+ # @option params [required, String] :resource_arn
556
+ # The ARN of the resource.
557
+ #
558
+ # @option params [required, Array<String>] :tag_keys
559
+ # One or more tag keys
560
+ #
561
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
562
+ #
563
+ # @example Request syntax with placeholder values
564
+ #
565
+ # resp = client.untag_resource({
566
+ # resource_arn: "String", # required
567
+ # tag_keys: ["TagKey"], # required
568
+ # })
569
+ #
570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UntagResource AWS API Documentation
571
+ #
572
+ # @overload untag_resource(params = {})
573
+ # @param [Hash] params ({})
574
+ def untag_resource(params = {}, options = {})
575
+ req = build_request(:untag_resource, params)
576
+ req.send_request(options)
577
+ end
578
+
483
579
  # Updates an AMP workspace alias.
484
580
  #
485
581
  # @option params [String] :alias
@@ -527,7 +623,7 @@ module Aws::PrometheusService
527
623
  params: params,
528
624
  config: config)
529
625
  context[:gem_name] = 'aws-sdk-prometheusservice'
530
- context[:gem_version] = '1.3.0'
626
+ context[:gem_version] = '1.7.0'
531
627
  Seahorse::Client::Request.new(handlers, context)
532
628
  end
533
629
 
@@ -23,6 +23,8 @@ module Aws::PrometheusService
23
23
  IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
24
24
  Integer = Shapes::IntegerShape.new(name: 'Integer')
25
25
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
26
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
27
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
26
28
  ListWorkspacesRequest = Shapes::StructureShape.new(name: 'ListWorkspacesRequest')
27
29
  ListWorkspacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListWorkspacesRequestMaxResultsInteger')
28
30
  ListWorkspacesResponse = Shapes::StructureShape.new(name: 'ListWorkspacesResponse')
@@ -30,8 +32,16 @@ module Aws::PrometheusService
30
32
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
31
33
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
32
34
  String = Shapes::StringShape.new(name: 'String')
35
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
36
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
37
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
38
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
39
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
40
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
33
41
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
34
42
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
43
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
44
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
35
45
  UpdateWorkspaceAliasRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceAliasRequest')
36
46
  Uri = Shapes::StringShape.new(name: 'Uri')
37
47
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -57,10 +67,12 @@ module Aws::PrometheusService
57
67
 
58
68
  CreateWorkspaceRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location_name: "alias"))
59
69
  CreateWorkspaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
70
+ CreateWorkspaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
60
71
  CreateWorkspaceRequest.struct_class = Types::CreateWorkspaceRequest
61
72
 
62
73
  CreateWorkspaceResponse.add_member(:arn, Shapes::ShapeRef.new(shape: WorkspaceArn, required: true, location_name: "arn"))
63
74
  CreateWorkspaceResponse.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
75
+ CreateWorkspaceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
64
76
  CreateWorkspaceResponse.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspaceId"))
65
77
  CreateWorkspaceResponse.struct_class = Types::CreateWorkspaceResponse
66
78
 
@@ -78,6 +90,12 @@ module Aws::PrometheusService
78
90
  InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
79
91
  InternalServerException.struct_class = Types::InternalServerException
80
92
 
93
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
94
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
95
+
96
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
97
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
98
+
81
99
  ListWorkspacesRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location: "querystring", location_name: "alias"))
82
100
  ListWorkspacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListWorkspacesRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
83
101
  ListWorkspacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
@@ -99,12 +117,29 @@ module Aws::PrometheusService
99
117
  ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
100
118
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
101
119
 
120
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
121
+
122
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
123
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
124
+
125
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
126
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
127
+ TagResourceRequest.struct_class = Types::TagResourceRequest
128
+
129
+ TagResourceResponse.struct_class = Types::TagResourceResponse
130
+
102
131
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
103
132
  ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
104
133
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
105
134
  ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
106
135
  ThrottlingException.struct_class = Types::ThrottlingException
107
136
 
137
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
138
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
139
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
140
+
141
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
142
+
108
143
  UpdateWorkspaceAliasRequest.add_member(:alias, Shapes::ShapeRef.new(shape: WorkspaceAlias, location_name: "alias"))
109
144
  UpdateWorkspaceAliasRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
110
145
  UpdateWorkspaceAliasRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
@@ -126,6 +161,7 @@ module Aws::PrometheusService
126
161
  WorkspaceDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
127
162
  WorkspaceDescription.add_member(:prometheus_endpoint, Shapes::ShapeRef.new(shape: Uri, location_name: "prometheusEndpoint"))
128
163
  WorkspaceDescription.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
164
+ WorkspaceDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
129
165
  WorkspaceDescription.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspaceId"))
130
166
  WorkspaceDescription.struct_class = Types::WorkspaceDescription
131
167
 
@@ -136,6 +172,7 @@ module Aws::PrometheusService
136
172
  WorkspaceSummary.add_member(:arn, Shapes::ShapeRef.new(shape: WorkspaceArn, required: true, location_name: "arn"))
137
173
  WorkspaceSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
138
174
  WorkspaceSummary.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
175
+ WorkspaceSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
139
176
  WorkspaceSummary.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspaceId"))
140
177
  WorkspaceSummary.struct_class = Types::WorkspaceSummary
141
178
 
@@ -199,6 +236,19 @@ module Aws::PrometheusService
199
236
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
200
237
  end)
201
238
 
239
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
240
+ o.name = "ListTagsForResource"
241
+ o.http_method = "GET"
242
+ o.http_request_uri = "/tags/{resourceArn}"
243
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
244
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
245
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
246
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
247
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
248
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
249
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
250
+ end)
251
+
202
252
  api.add_operation(:list_workspaces, Seahorse::Model::Operation.new.tap do |o|
203
253
  o.name = "ListWorkspaces"
204
254
  o.http_method = "GET"
@@ -217,6 +267,32 @@ module Aws::PrometheusService
217
267
  )
218
268
  end)
219
269
 
270
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
271
+ o.name = "TagResource"
272
+ o.http_method = "POST"
273
+ o.http_request_uri = "/tags/{resourceArn}"
274
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
275
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
276
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
277
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
278
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
279
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
280
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
281
+ end)
282
+
283
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
284
+ o.name = "UntagResource"
285
+ o.http_method = "DELETE"
286
+ o.http_request_uri = "/tags/{resourceArn}"
287
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
288
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
289
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
290
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
291
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
292
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
293
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
294
+ end)
295
+
220
296
  api.add_operation(:update_workspace_alias, Seahorse::Model::Operation.new.tap do |o|
221
297
  o.name = "UpdateWorkspaceAlias"
222
298
  o.http_method = "POST"
@@ -56,6 +56,9 @@ module Aws::PrometheusService
56
56
  # {
57
57
  # alias: "WorkspaceAlias",
58
58
  # client_token: "IdempotencyToken",
59
+ # tags: {
60
+ # "TagKey" => "TagValue",
61
+ # },
59
62
  # }
60
63
  #
61
64
  # @!attribute [rw] alias
@@ -71,11 +74,16 @@ module Aws::PrometheusService
71
74
  # not need to pass this option.
72
75
  # @return [String]
73
76
  #
77
+ # @!attribute [rw] tags
78
+ # Optional, user-provided tags for this workspace.
79
+ # @return [Hash<String,String>]
80
+ #
74
81
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspaceRequest AWS API Documentation
75
82
  #
76
83
  class CreateWorkspaceRequest < Struct.new(
77
84
  :alias,
78
- :client_token)
85
+ :client_token,
86
+ :tags)
79
87
  SENSITIVE = []
80
88
  include Aws::Structure
81
89
  end
@@ -91,6 +99,10 @@ module Aws::PrometheusService
91
99
  # CREATING).
92
100
  # @return [Types::WorkspaceStatus]
93
101
  #
102
+ # @!attribute [rw] tags
103
+ # The tags of this workspace.
104
+ # @return [Hash<String,String>]
105
+ #
94
106
  # @!attribute [rw] workspace_id
95
107
  # The generated ID of the workspace that was just created.
96
108
  # @return [String]
@@ -100,6 +112,7 @@ module Aws::PrometheusService
100
112
  class CreateWorkspaceResponse < Struct.new(
101
113
  :arn,
102
114
  :status,
115
+ :tags,
103
116
  :workspace_id)
104
117
  SENSITIVE = []
105
118
  include Aws::Structure
@@ -190,6 +203,37 @@ module Aws::PrometheusService
190
203
  include Aws::Structure
191
204
  end
192
205
 
206
+ # @note When making an API call, you may pass ListTagsForResourceRequest
207
+ # data as a hash:
208
+ #
209
+ # {
210
+ # resource_arn: "String", # required
211
+ # }
212
+ #
213
+ # @!attribute [rw] resource_arn
214
+ # The ARN of the resource.
215
+ # @return [String]
216
+ #
217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResourceRequest AWS API Documentation
218
+ #
219
+ class ListTagsForResourceRequest < Struct.new(
220
+ :resource_arn)
221
+ SENSITIVE = []
222
+ include Aws::Structure
223
+ end
224
+
225
+ # @!attribute [rw] tags
226
+ # The list of tags assigned to the resource.
227
+ # @return [Hash<String,String>]
228
+ #
229
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResourceResponse AWS API Documentation
230
+ #
231
+ class ListTagsForResourceResponse < Struct.new(
232
+ :tags)
233
+ SENSITIVE = []
234
+ include Aws::Structure
235
+ end
236
+
193
237
  # Represents the input of a ListWorkspaces operation.
194
238
  #
195
239
  # @note When making an API call, you may pass ListWorkspacesRequest
@@ -304,6 +348,37 @@ module Aws::PrometheusService
304
348
  include Aws::Structure
305
349
  end
306
350
 
351
+ # @note When making an API call, you may pass TagResourceRequest
352
+ # data as a hash:
353
+ #
354
+ # {
355
+ # resource_arn: "String", # required
356
+ # tags: { # required
357
+ # "TagKey" => "TagValue",
358
+ # },
359
+ # }
360
+ #
361
+ # @!attribute [rw] resource_arn
362
+ # The ARN of the resource.
363
+ # @return [String]
364
+ #
365
+ # @!attribute [rw] tags
366
+ # The list of tags assigned to the resource.
367
+ # @return [Hash<String,String>]
368
+ #
369
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResourceRequest AWS API Documentation
370
+ #
371
+ class TagResourceRequest < Struct.new(
372
+ :resource_arn,
373
+ :tags)
374
+ SENSITIVE = []
375
+ include Aws::Structure
376
+ end
377
+
378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResourceResponse AWS API Documentation
379
+ #
380
+ class TagResourceResponse < Aws::EmptyStructure; end
381
+
307
382
  # Request was denied due to request throttling.
308
383
  #
309
384
  # @!attribute [rw] message
@@ -333,6 +408,35 @@ module Aws::PrometheusService
333
408
  include Aws::Structure
334
409
  end
335
410
 
411
+ # @note When making an API call, you may pass UntagResourceRequest
412
+ # data as a hash:
413
+ #
414
+ # {
415
+ # resource_arn: "String", # required
416
+ # tag_keys: ["TagKey"], # required
417
+ # }
418
+ #
419
+ # @!attribute [rw] resource_arn
420
+ # The ARN of the resource.
421
+ # @return [String]
422
+ #
423
+ # @!attribute [rw] tag_keys
424
+ # One or more tag keys
425
+ # @return [Array<String>]
426
+ #
427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UntagResourceRequest AWS API Documentation
428
+ #
429
+ class UntagResourceRequest < Struct.new(
430
+ :resource_arn,
431
+ :tag_keys)
432
+ SENSITIVE = []
433
+ include Aws::Structure
434
+ end
435
+
436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UntagResourceResponse AWS API Documentation
437
+ #
438
+ class UntagResourceResponse < Aws::EmptyStructure; end
439
+
336
440
  # Represents the input of an UpdateWorkspaceAlias operation.
337
441
  #
338
442
  # @note When making an API call, you may pass UpdateWorkspaceAliasRequest
@@ -438,6 +542,10 @@ module Aws::PrometheusService
438
542
  # The status of this workspace.
439
543
  # @return [Types::WorkspaceStatus]
440
544
  #
545
+ # @!attribute [rw] tags
546
+ # The tags of this workspace.
547
+ # @return [Hash<String,String>]
548
+ #
441
549
  # @!attribute [rw] workspace_id
442
550
  # Unique string identifying this workspace.
443
551
  # @return [String]
@@ -450,6 +558,7 @@ module Aws::PrometheusService
450
558
  :created_at,
451
559
  :prometheus_endpoint,
452
560
  :status,
561
+ :tags,
453
562
  :workspace_id)
454
563
  SENSITIVE = []
455
564
  include Aws::Structure
@@ -487,6 +596,10 @@ module Aws::PrometheusService
487
596
  # The status of this workspace.
488
597
  # @return [Types::WorkspaceStatus]
489
598
  #
599
+ # @!attribute [rw] tags
600
+ # The tags of this workspace.
601
+ # @return [Hash<String,String>]
602
+ #
490
603
  # @!attribute [rw] workspace_id
491
604
  # Unique string identifying this workspace.
492
605
  # @return [String]
@@ -498,6 +611,7 @@ module Aws::PrometheusService
498
611
  :arn,
499
612
  :created_at,
500
613
  :status,
614
+ :tags,
501
615
  :workspace_id)
502
616
  SENSITIVE = []
503
617
  include Aws::Structure
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-prometheusservice/customizations'
48
48
  # @!group service
49
49
  module Aws::PrometheusService
50
50
 
51
- GEM_VERSION = '1.3.0'
51
+ GEM_VERSION = '1.7.0'
52
52
 
53
53
  end
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.3.0
4
+ version: 1.7.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.112.0
22
+ version: 3.120.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.112.0
32
+ version: 3.120.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
66
66
  licenses:
67
67
  - Apache-2.0
68
68
  metadata:
69
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-prometheusservice
70
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-prometheusservice/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-prometheusservice
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-prometheusservice/CHANGELOG.md
71
71
  post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
@@ -76,15 +76,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: '0'
79
+ version: '2.3'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: AWS SDK for Ruby - Amazon Prometheus Service