aws-sdk-outposts 1.12.0 → 1.13.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: 46ad51f6bdef33b0f0d4a20f70708e29f64841cb66134cf075df87b23000f55b
4
- data.tar.gz: 8ca29c0a10fe456e1ca57ed84c7b38a532ba3eb6713d008de480d86da641c97f
3
+ metadata.gz: 7647763c53a357752ef5de876fdb85670aaa82869ac75654fe0b22227ad8590b
4
+ data.tar.gz: d2cad1d33ef4b7a4ea742832e8eab8b8eb691cbd9da156195fd0edfa99cf7408
5
5
  SHA512:
6
- metadata.gz: 4cd039594ab6afdd307adb10c5ef8181bd32f67ad8c7be550e0c41e21767e5f95f2b908fcf06452d193efba1973a22d998ac05bfb5be7ca1e1818fb44f9a6cb9
7
- data.tar.gz: 5156d1c8d0bb1455865bf72637a6c57c3c6ddcef928b49e7f21f105893790c6afd325e05d1e324eb345a0cdffc0c66b857227692cf646140ed263ed3d51c520d
6
+ metadata.gz: de1721dfb8b5a41f0570498967d3e5ecaf995993878975cc452017b6f0dad1e580d53284d769ca76eb9a24547d019c5881f62caf76fa0d7a6834eebcf3138bc5
7
+ data.tar.gz: 6271f309634adf130db0619918299997fb93eecec39aa42a2fd890e38f603da31b1876b61985734a5b4ac4d9598e3654657a6a96386972132b26ed745eb97f99
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-outposts/customizations'
48
48
  # @!group service
49
49
  module Aws::Outposts
50
50
 
51
- GEM_VERSION = '1.12.0'
51
+ GEM_VERSION = '1.13.0'
52
52
 
53
53
  end
@@ -333,7 +333,7 @@ module Aws::Outposts
333
333
  # The name of the Outpost.
334
334
  #
335
335
  # @option params [String] :description
336
- # The Outpost description.
336
+ # The description of the Outpost.
337
337
  #
338
338
  # @option params [required, String] :site_id
339
339
  # The ID of the site.
@@ -605,6 +605,89 @@ module Aws::Outposts
605
605
  req.send_request(options)
606
606
  end
607
607
 
608
+ # Lists the tags for the specified resource.
609
+ #
610
+ # @option params [required, String] :resource_arn
611
+ # The Amazon Resource Name (ARN) of the resource.
612
+ #
613
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
614
+ #
615
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
616
+ #
617
+ # @example Request syntax with placeholder values
618
+ #
619
+ # resp = client.list_tags_for_resource({
620
+ # resource_arn: "Arn", # required
621
+ # })
622
+ #
623
+ # @example Response structure
624
+ #
625
+ # resp.tags #=> Hash
626
+ # resp.tags["TagKey"] #=> String
627
+ #
628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource AWS API Documentation
629
+ #
630
+ # @overload list_tags_for_resource(params = {})
631
+ # @param [Hash] params ({})
632
+ def list_tags_for_resource(params = {}, options = {})
633
+ req = build_request(:list_tags_for_resource, params)
634
+ req.send_request(options)
635
+ end
636
+
637
+ # Adds tags to the specified resource.
638
+ #
639
+ # @option params [required, String] :resource_arn
640
+ # The Amazon Resource Name (ARN) of the resource.
641
+ #
642
+ # @option params [required, Hash<String,String>] :tags
643
+ # The tags to add to the resource.
644
+ #
645
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
646
+ #
647
+ # @example Request syntax with placeholder values
648
+ #
649
+ # resp = client.tag_resource({
650
+ # resource_arn: "Arn", # required
651
+ # tags: { # required
652
+ # "TagKey" => "TagValue",
653
+ # },
654
+ # })
655
+ #
656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource AWS API Documentation
657
+ #
658
+ # @overload tag_resource(params = {})
659
+ # @param [Hash] params ({})
660
+ def tag_resource(params = {}, options = {})
661
+ req = build_request(:tag_resource, params)
662
+ req.send_request(options)
663
+ end
664
+
665
+ # Removes tags from the specified resource.
666
+ #
667
+ # @option params [required, String] :resource_arn
668
+ # The Amazon Resource Name (ARN) of the resource.
669
+ #
670
+ # @option params [required, Array<String>] :tag_keys
671
+ # The tag keys.
672
+ #
673
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
674
+ #
675
+ # @example Request syntax with placeholder values
676
+ #
677
+ # resp = client.untag_resource({
678
+ # resource_arn: "Arn", # required
679
+ # tag_keys: ["TagKey"], # required
680
+ # })
681
+ #
682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource AWS API Documentation
683
+ #
684
+ # @overload untag_resource(params = {})
685
+ # @param [Hash] params ({})
686
+ def untag_resource(params = {}, options = {})
687
+ req = build_request(:untag_resource, params)
688
+ req.send_request(options)
689
+ end
690
+
608
691
  # @!endgroup
609
692
 
610
693
  # @param params ({})
@@ -618,7 +701,7 @@ module Aws::Outposts
618
701
  params: params,
619
702
  config: config)
620
703
  context[:gem_name] = 'aws-sdk-outposts'
621
- context[:gem_version] = '1.12.0'
704
+ context[:gem_version] = '1.13.0'
622
705
  Seahorse::Client::Request.new(handlers, context)
623
706
  end
624
707
 
@@ -15,6 +15,7 @@ module Aws::Outposts
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
17
  AccountId = Shapes::StringShape.new(name: 'AccountId')
18
+ Arn = Shapes::StringShape.new(name: 'Arn')
18
19
  AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone')
19
20
  AvailabilityZoneId = Shapes::StringShape.new(name: 'AvailabilityZoneId')
20
21
  CreateOutpostInput = Shapes::StructureShape.new(name: 'CreateOutpostInput')
@@ -37,6 +38,8 @@ module Aws::Outposts
37
38
  ListOutpostsOutput = Shapes::StructureShape.new(name: 'ListOutpostsOutput')
38
39
  ListSitesInput = Shapes::StructureShape.new(name: 'ListSitesInput')
39
40
  ListSitesOutput = Shapes::StructureShape.new(name: 'ListSitesOutput')
41
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
42
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
40
43
  MaxResults1000 = Shapes::IntegerShape.new(name: 'MaxResults1000')
41
44
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
42
45
  Outpost = Shapes::StructureShape.new(name: 'Outpost')
@@ -51,9 +54,14 @@ module Aws::Outposts
51
54
  SiteId = Shapes::StringShape.new(name: 'SiteId')
52
55
  SiteName = Shapes::StringShape.new(name: 'SiteName')
53
56
  TagKey = Shapes::StringShape.new(name: 'TagKey')
57
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
54
58
  TagMap = Shapes::MapShape.new(name: 'TagMap')
59
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
60
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
55
61
  TagValue = Shapes::StringShape.new(name: 'TagValue')
56
62
  Token = Shapes::StringShape.new(name: 'Token')
63
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
64
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
57
65
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
58
66
  outpostListDefinition = Shapes::ListShape.new(name: 'outpostListDefinition')
59
67
  siteListDefinition = Shapes::ListShape.new(name: 'siteListDefinition')
@@ -123,6 +131,12 @@ module Aws::Outposts
123
131
  ListSitesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
124
132
  ListSitesOutput.struct_class = Types::ListSitesOutput
125
133
 
134
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
135
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
136
+
137
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
138
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
139
+
126
140
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
127
141
  NotFoundException.struct_class = Types::NotFoundException
128
142
 
@@ -148,9 +162,23 @@ module Aws::Outposts
148
162
  Site.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
149
163
  Site.struct_class = Types::Site
150
164
 
165
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
166
+
151
167
  TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
152
168
  TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
153
169
 
170
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
171
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
172
+ TagResourceRequest.struct_class = Types::TagResourceRequest
173
+
174
+ TagResourceResponse.struct_class = Types::TagResourceResponse
175
+
176
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
177
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
178
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
179
+
180
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
181
+
154
182
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
155
183
  ValidationException.struct_class = Types::ValidationException
156
184
 
@@ -271,6 +299,39 @@ module Aws::Outposts
271
299
  }
272
300
  )
273
301
  end)
302
+
303
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
304
+ o.name = "ListTagsForResource"
305
+ o.http_method = "GET"
306
+ o.http_request_uri = "/tags/{ResourceArn}"
307
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
308
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
309
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
310
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
311
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
312
+ end)
313
+
314
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
315
+ o.name = "TagResource"
316
+ o.http_method = "POST"
317
+ o.http_request_uri = "/tags/{ResourceArn}"
318
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
319
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
320
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
321
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
322
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
323
+ end)
324
+
325
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
326
+ o.name = "UntagResource"
327
+ o.http_method = "DELETE"
328
+ o.http_request_uri = "/tags/{ResourceArn}"
329
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
330
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
331
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
332
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
333
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
334
+ end)
274
335
  end
275
336
 
276
337
  end
@@ -42,7 +42,7 @@ module Aws::Outposts
42
42
  # @return [String]
43
43
  #
44
44
  # @!attribute [rw] description
45
- # The Outpost description.
45
+ # The description of the Outpost.
46
46
  # @return [String]
47
47
  #
48
48
  # @!attribute [rw] site_id
@@ -336,6 +336,37 @@ module Aws::Outposts
336
336
  include Aws::Structure
337
337
  end
338
338
 
339
+ # @note When making an API call, you may pass ListTagsForResourceRequest
340
+ # data as a hash:
341
+ #
342
+ # {
343
+ # resource_arn: "Arn", # required
344
+ # }
345
+ #
346
+ # @!attribute [rw] resource_arn
347
+ # The Amazon Resource Name (ARN) of the resource.
348
+ # @return [String]
349
+ #
350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResourceRequest AWS API Documentation
351
+ #
352
+ class ListTagsForResourceRequest < Struct.new(
353
+ :resource_arn)
354
+ SENSITIVE = []
355
+ include Aws::Structure
356
+ end
357
+
358
+ # @!attribute [rw] tags
359
+ # The resource tags.
360
+ # @return [Hash<String,String>]
361
+ #
362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResourceResponse AWS API Documentation
363
+ #
364
+ class ListTagsForResourceResponse < Struct.new(
365
+ :tags)
366
+ SENSITIVE = []
367
+ include Aws::Structure
368
+ end
369
+
339
370
  # The specified request is not valid.
340
371
  #
341
372
  # @!attribute [rw] message
@@ -372,7 +403,7 @@ module Aws::Outposts
372
403
  # @return [String]
373
404
  #
374
405
  # @!attribute [rw] description
375
- # The Outpost description.
406
+ # The description of the Outpost.
376
407
  # @return [String]
377
408
  #
378
409
  # @!attribute [rw] life_cycle_status
@@ -459,6 +490,66 @@ module Aws::Outposts
459
490
  include Aws::Structure
460
491
  end
461
492
 
493
+ # @note When making an API call, you may pass TagResourceRequest
494
+ # data as a hash:
495
+ #
496
+ # {
497
+ # resource_arn: "Arn", # required
498
+ # tags: { # required
499
+ # "TagKey" => "TagValue",
500
+ # },
501
+ # }
502
+ #
503
+ # @!attribute [rw] resource_arn
504
+ # The Amazon Resource Name (ARN) of the resource.
505
+ # @return [String]
506
+ #
507
+ # @!attribute [rw] tags
508
+ # The tags to add to the resource.
509
+ # @return [Hash<String,String>]
510
+ #
511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResourceRequest AWS API Documentation
512
+ #
513
+ class TagResourceRequest < Struct.new(
514
+ :resource_arn,
515
+ :tags)
516
+ SENSITIVE = []
517
+ include Aws::Structure
518
+ end
519
+
520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResourceResponse AWS API Documentation
521
+ #
522
+ class TagResourceResponse < Aws::EmptyStructure; end
523
+
524
+ # @note When making an API call, you may pass UntagResourceRequest
525
+ # data as a hash:
526
+ #
527
+ # {
528
+ # resource_arn: "Arn", # required
529
+ # tag_keys: ["TagKey"], # required
530
+ # }
531
+ #
532
+ # @!attribute [rw] resource_arn
533
+ # The Amazon Resource Name (ARN) of the resource.
534
+ # @return [String]
535
+ #
536
+ # @!attribute [rw] tag_keys
537
+ # The tag keys.
538
+ # @return [Array<String>]
539
+ #
540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResourceRequest AWS API Documentation
541
+ #
542
+ class UntagResourceRequest < Struct.new(
543
+ :resource_arn,
544
+ :tag_keys)
545
+ SENSITIVE = []
546
+ include Aws::Structure
547
+ end
548
+
549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResourceResponse AWS API Documentation
550
+ #
551
+ class UntagResourceResponse < Aws::EmptyStructure; end
552
+
462
553
  # A parameter is not valid.
463
554
  #
464
555
  # @!attribute [rw] message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-outposts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.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: 2020-11-23 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core