aws-sdk-appregistry 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db539bdf49ad04919d15e5b4877d37dbf3ebfdfb76392b0cf08e775b601ef0d3
4
- data.tar.gz: 3bcf7b0fe74ffedc202c331e87c96c1f4d3be4ca8b77cdcd4290aef0eec26484
3
+ metadata.gz: c3a9eceb4b1e93a2809b35ca78501e0fb98776bdcba43f18c1b8c6aad744fb1b
4
+ data.tar.gz: 660579748f2f75af3c9faf6bdb1b5e0eb7c0792bcd332f7ecbfd09cf9b80ece7
5
5
  SHA512:
6
- metadata.gz: 869717df4e67462e8778cafce57e3011a5833846682e250c539aa3c52a423217de68adea8e5c0afbabf2b25aab0104c0e82366ce20effb3fc1b548a6991a5942
7
- data.tar.gz: 7f3136b46d4a720226e6a1e472446c8be6c19252936193ced03fb50499392fde5ebd321e738d481a9f0b4543141fb1a00c14c62c449363b4874470aecc217c80
6
+ metadata.gz: b75b225e9e038fd0581b86c3a527509890c334c5c8a5e8a69662f52c30b7076cf8580cab2793add5c2464f19e621a8efc3b431f1df8570c28587218ccbb55339
7
+ data.tar.gz: c8e5e6b029fb3c3c0be900f498dcacd05634b23de8f4b6b583392afc924c0696bd3f6e9829af5f67847757bec92d98d81bb24a69c4e3c27fb147d83053bdc5ab
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-appregistry/customizations'
48
48
  # @!group service
49
49
  module Aws::AppRegistry
50
50
 
51
- GEM_VERSION = '1.1.0'
51
+ GEM_VERSION = '1.2.0'
52
52
 
53
53
  end
@@ -954,6 +954,93 @@ module Aws::AppRegistry
954
954
  req.send_request(options)
955
955
  end
956
956
 
957
+ # Lists all of the tags on the resource.
958
+ #
959
+ # @option params [required, String] :resource_arn
960
+ # The Amazon resource name (ARN) that specifies the resource.
961
+ #
962
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
963
+ #
964
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
965
+ #
966
+ # @example Request syntax with placeholder values
967
+ #
968
+ # resp = client.list_tags_for_resource({
969
+ # resource_arn: "Arn", # required
970
+ # })
971
+ #
972
+ # @example Response structure
973
+ #
974
+ # resp.tags #=> Hash
975
+ # resp.tags["TagKey"] #=> String
976
+ #
977
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListTagsForResource AWS API Documentation
978
+ #
979
+ # @overload list_tags_for_resource(params = {})
980
+ # @param [Hash] params ({})
981
+ def list_tags_for_resource(params = {}, options = {})
982
+ req = build_request(:list_tags_for_resource, params)
983
+ req.send_request(options)
984
+ end
985
+
986
+ # Assigns one or more tags (key-value pairs) to the specified resource.
987
+ #
988
+ # Each tag consists of a key and an optional value. If a tag with the
989
+ # same key is already associated with the resource, this action updates
990
+ # its value.
991
+ #
992
+ # @option params [required, String] :resource_arn
993
+ # The Amazon resource name (ARN) that specifies the resource.
994
+ #
995
+ # @option params [required, Hash<String,String>] :tags
996
+ # The new or modified tags for the resource.
997
+ #
998
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
999
+ #
1000
+ # @example Request syntax with placeholder values
1001
+ #
1002
+ # resp = client.tag_resource({
1003
+ # resource_arn: "Arn", # required
1004
+ # tags: { # required
1005
+ # "TagKey" => "TagValue",
1006
+ # },
1007
+ # })
1008
+ #
1009
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResource AWS API Documentation
1010
+ #
1011
+ # @overload tag_resource(params = {})
1012
+ # @param [Hash] params ({})
1013
+ def tag_resource(params = {}, options = {})
1014
+ req = build_request(:tag_resource, params)
1015
+ req.send_request(options)
1016
+ end
1017
+
1018
+ # Removes tags from a resource.
1019
+ #
1020
+ # @option params [required, String] :resource_arn
1021
+ # The Amazon resource name (ARN) that specifies the resource.
1022
+ #
1023
+ # @option params [required, Array<String>] :tag_keys
1024
+ # A list of the tag keys to remove from the specified resource.
1025
+ #
1026
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1027
+ #
1028
+ # @example Request syntax with placeholder values
1029
+ #
1030
+ # resp = client.untag_resource({
1031
+ # resource_arn: "Arn", # required
1032
+ # tag_keys: ["TagKey"], # required
1033
+ # })
1034
+ #
1035
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UntagResource AWS API Documentation
1036
+ #
1037
+ # @overload untag_resource(params = {})
1038
+ # @param [Hash] params ({})
1039
+ def untag_resource(params = {}, options = {})
1040
+ req = build_request(:untag_resource, params)
1041
+ req.send_request(options)
1042
+ end
1043
+
957
1044
  # Updates an existing application with new attributes.
958
1045
  #
959
1046
  # @option params [required, String] :application
@@ -1062,7 +1149,7 @@ module Aws::AppRegistry
1062
1149
  params: params,
1063
1150
  config: config)
1064
1151
  context[:gem_name] = 'aws-sdk-appregistry'
1065
- context[:gem_version] = '1.1.0'
1152
+ context[:gem_version] = '1.2.0'
1066
1153
  Seahorse::Client::Request.new(handlers, context)
1067
1154
  end
1068
1155
 
@@ -61,6 +61,8 @@ module Aws::AppRegistry
61
61
  ListAssociatedResourcesResponse = Shapes::StructureShape.new(name: 'ListAssociatedResourcesResponse')
62
62
  ListAttributeGroupsRequest = Shapes::StructureShape.new(name: 'ListAttributeGroupsRequest')
63
63
  ListAttributeGroupsResponse = Shapes::StructureShape.new(name: 'ListAttributeGroupsResponse')
64
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
65
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
64
66
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
65
67
  Name = Shapes::StringShape.new(name: 'Name')
66
68
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -73,9 +75,14 @@ module Aws::AppRegistry
73
75
  StackArn = Shapes::StringShape.new(name: 'StackArn')
74
76
  String = Shapes::StringShape.new(name: 'String')
75
77
  TagKey = Shapes::StringShape.new(name: 'TagKey')
78
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
79
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
80
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
76
81
  TagValue = Shapes::StringShape.new(name: 'TagValue')
77
82
  Tags = Shapes::MapShape.new(name: 'Tags')
78
83
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
84
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
85
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
79
86
  UpdateApplicationRequest = Shapes::StructureShape.new(name: 'UpdateApplicationRequest')
80
87
  UpdateApplicationResponse = Shapes::StructureShape.new(name: 'UpdateApplicationResponse')
81
88
  UpdateAttributeGroupRequest = Shapes::StructureShape.new(name: 'UpdateAttributeGroupRequest')
@@ -253,6 +260,12 @@ module Aws::AppRegistry
253
260
  ListAttributeGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
254
261
  ListAttributeGroupsResponse.struct_class = Types::ListAttributeGroupsResponse
255
262
 
263
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
264
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
265
+
266
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
267
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
268
+
256
269
  ResourceInfo.add_member(:name, Shapes::ShapeRef.new(shape: ResourceSpecifier, location_name: "name"))
257
270
  ResourceInfo.add_member(:arn, Shapes::ShapeRef.new(shape: StackArn, location_name: "arn"))
258
271
  ResourceInfo.struct_class = Types::ResourceInfo
@@ -265,9 +278,23 @@ module Aws::AppRegistry
265
278
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
266
279
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
267
280
 
281
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
282
+
283
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
284
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
285
+ TagResourceRequest.struct_class = Types::TagResourceRequest
286
+
287
+ TagResourceResponse.struct_class = Types::TagResourceResponse
288
+
268
289
  Tags.key = Shapes::ShapeRef.new(shape: TagKey)
269
290
  Tags.value = Shapes::ShapeRef.new(shape: TagValue)
270
291
 
292
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
293
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
294
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
295
+
296
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
297
+
271
298
  UpdateApplicationRequest.add_member(:application, Shapes::ShapeRef.new(shape: ApplicationSpecifier, required: true, location: "uri", location_name: "application"))
272
299
  UpdateApplicationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
273
300
  UpdateApplicationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
@@ -485,6 +512,39 @@ module Aws::AppRegistry
485
512
  )
486
513
  end)
487
514
 
515
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
516
+ o.name = "ListTagsForResource"
517
+ o.http_method = "GET"
518
+ o.http_request_uri = "/tags/{resourceArn}"
519
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
520
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
521
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
522
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
523
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
524
+ end)
525
+
526
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
527
+ o.name = "TagResource"
528
+ o.http_method = "POST"
529
+ o.http_request_uri = "/tags/{resourceArn}"
530
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
531
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
532
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
533
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
534
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
535
+ end)
536
+
537
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
538
+ o.name = "UntagResource"
539
+ o.http_method = "DELETE"
540
+ o.http_request_uri = "/tags/{resourceArn}"
541
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
542
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
543
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
544
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
545
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
546
+ end)
547
+
488
548
  api.add_operation(:update_application, Seahorse::Model::Operation.new.tap do |o|
489
549
  o.name = "UpdateApplication"
490
550
  o.http_method = "PATCH"
@@ -939,6 +939,37 @@ module Aws::AppRegistry
939
939
  include Aws::Structure
940
940
  end
941
941
 
942
+ # @note When making an API call, you may pass ListTagsForResourceRequest
943
+ # data as a hash:
944
+ #
945
+ # {
946
+ # resource_arn: "Arn", # required
947
+ # }
948
+ #
949
+ # @!attribute [rw] resource_arn
950
+ # The Amazon resource name (ARN) that specifies the resource.
951
+ # @return [String]
952
+ #
953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListTagsForResourceRequest AWS API Documentation
954
+ #
955
+ class ListTagsForResourceRequest < Struct.new(
956
+ :resource_arn)
957
+ SENSITIVE = []
958
+ include Aws::Structure
959
+ end
960
+
961
+ # @!attribute [rw] tags
962
+ # The tags on the resource.
963
+ # @return [Hash<String,String>]
964
+ #
965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListTagsForResourceResponse AWS API Documentation
966
+ #
967
+ class ListTagsForResourceResponse < Struct.new(
968
+ :tags)
969
+ SENSITIVE = []
970
+ include Aws::Structure
971
+ end
972
+
942
973
  # Information about the resource.
943
974
  #
944
975
  # @!attribute [rw] name
@@ -985,6 +1016,66 @@ module Aws::AppRegistry
985
1016
  include Aws::Structure
986
1017
  end
987
1018
 
1019
+ # @note When making an API call, you may pass TagResourceRequest
1020
+ # data as a hash:
1021
+ #
1022
+ # {
1023
+ # resource_arn: "Arn", # required
1024
+ # tags: { # required
1025
+ # "TagKey" => "TagValue",
1026
+ # },
1027
+ # }
1028
+ #
1029
+ # @!attribute [rw] resource_arn
1030
+ # The Amazon resource name (ARN) that specifies the resource.
1031
+ # @return [String]
1032
+ #
1033
+ # @!attribute [rw] tags
1034
+ # The new or modified tags for the resource.
1035
+ # @return [Hash<String,String>]
1036
+ #
1037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResourceRequest AWS API Documentation
1038
+ #
1039
+ class TagResourceRequest < Struct.new(
1040
+ :resource_arn,
1041
+ :tags)
1042
+ SENSITIVE = []
1043
+ include Aws::Structure
1044
+ end
1045
+
1046
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResourceResponse AWS API Documentation
1047
+ #
1048
+ class TagResourceResponse < Aws::EmptyStructure; end
1049
+
1050
+ # @note When making an API call, you may pass UntagResourceRequest
1051
+ # data as a hash:
1052
+ #
1053
+ # {
1054
+ # resource_arn: "Arn", # required
1055
+ # tag_keys: ["TagKey"], # required
1056
+ # }
1057
+ #
1058
+ # @!attribute [rw] resource_arn
1059
+ # The Amazon resource name (ARN) that specifies the resource.
1060
+ # @return [String]
1061
+ #
1062
+ # @!attribute [rw] tag_keys
1063
+ # A list of the tag keys to remove from the specified resource.
1064
+ # @return [Array<String>]
1065
+ #
1066
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UntagResourceRequest AWS API Documentation
1067
+ #
1068
+ class UntagResourceRequest < Struct.new(
1069
+ :resource_arn,
1070
+ :tag_keys)
1071
+ SENSITIVE = []
1072
+ include Aws::Structure
1073
+ end
1074
+
1075
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UntagResourceResponse AWS API Documentation
1076
+ #
1077
+ class UntagResourceResponse < Aws::EmptyStructure; end
1078
+
988
1079
  # @note When making an API call, you may pass UpdateApplicationRequest
989
1080
  # data as a hash:
990
1081
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appregistry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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-20 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core