aws-sdk-appregistry 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-appregistry.rb +1 -1
- data/lib/aws-sdk-appregistry/client.rb +47 -1
- data/lib/aws-sdk-appregistry/client_api.rb +23 -0
- data/lib/aws-sdk-appregistry/types.rb +50 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504039c177ce51be8c12b37f45a8e11ed62a560b7cd00aa0b99de89988f82fb2
|
4
|
+
data.tar.gz: 27f6e623f8df9c78c5c35cd984e4b5e191bd72068b3ee59d141a6a48fd7ff1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9bcfb27aa430dce9426784dc5092d3fb5d1f6ca9c0d81160cf81c76001fb41e500357336572f21a3fd5cdef761008985f3bb2ee2b83534f6ee538a23bfbeb36
|
7
|
+
data.tar.gz: 2cbaaf0d82cfe7c4832a86a0efcc370aa64afbca344a6e4e8a1a47029d18ca03959ff005436913118cf50691f83499fbe26fd4d895b80ee8f5d8a55f4fb6bba6
|
data/lib/aws-sdk-appregistry.rb
CHANGED
@@ -983,12 +983,56 @@ module Aws::AppRegistry
|
|
983
983
|
req.send_request(options)
|
984
984
|
end
|
985
985
|
|
986
|
+
# Syncs the resource with what is currently recorded in App registry.
|
987
|
+
# Specifically, the resource’s App registry system tags are synced with
|
988
|
+
# its associated application. The resource is removed if it is not
|
989
|
+
# associated with the application. The caller must have permissions to
|
990
|
+
# read and update the resource.
|
991
|
+
#
|
992
|
+
# @option params [required, String] :resource_type
|
993
|
+
# The type of resource of which the application will be associated.
|
994
|
+
#
|
995
|
+
# @option params [required, String] :resource
|
996
|
+
# An entity you can work with and specify with a name or ID. Examples
|
997
|
+
# include an Amazon EC2 instance, an AWS CloudFormation stack, or an
|
998
|
+
# Amazon S3 bucket.
|
999
|
+
#
|
1000
|
+
# @return [Types::SyncResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1001
|
+
#
|
1002
|
+
# * {Types::SyncResourceResponse#application_arn #application_arn} => String
|
1003
|
+
# * {Types::SyncResourceResponse#resource_arn #resource_arn} => String
|
1004
|
+
# * {Types::SyncResourceResponse#action_taken #action_taken} => String
|
1005
|
+
#
|
1006
|
+
# @example Request syntax with placeholder values
|
1007
|
+
#
|
1008
|
+
# resp = client.sync_resource({
|
1009
|
+
# resource_type: "CFN_STACK", # required, accepts CFN_STACK
|
1010
|
+
# resource: "ResourceSpecifier", # required
|
1011
|
+
# })
|
1012
|
+
#
|
1013
|
+
# @example Response structure
|
1014
|
+
#
|
1015
|
+
# resp.application_arn #=> String
|
1016
|
+
# resp.resource_arn #=> String
|
1017
|
+
# resp.action_taken #=> String, one of "START_SYNC", "NO_ACTION"
|
1018
|
+
#
|
1019
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/SyncResource AWS API Documentation
|
1020
|
+
#
|
1021
|
+
# @overload sync_resource(params = {})
|
1022
|
+
# @param [Hash] params ({})
|
1023
|
+
def sync_resource(params = {}, options = {})
|
1024
|
+
req = build_request(:sync_resource, params)
|
1025
|
+
req.send_request(options)
|
1026
|
+
end
|
1027
|
+
|
986
1028
|
# Assigns one or more tags (key-value pairs) to the specified resource.
|
987
1029
|
#
|
988
1030
|
# Each tag consists of a key and an optional value. If a tag with the
|
989
1031
|
# same key is already associated with the resource, this action updates
|
990
1032
|
# its value.
|
991
1033
|
#
|
1034
|
+
# This operation returns an empty response if the call was successful.
|
1035
|
+
#
|
992
1036
|
# @option params [required, String] :resource_arn
|
993
1037
|
# The Amazon resource name (ARN) that specifies the resource.
|
994
1038
|
#
|
@@ -1017,6 +1061,8 @@ module Aws::AppRegistry
|
|
1017
1061
|
|
1018
1062
|
# Removes tags from a resource.
|
1019
1063
|
#
|
1064
|
+
# This operation returns an empty response if the call was successful.
|
1065
|
+
#
|
1020
1066
|
# @option params [required, String] :resource_arn
|
1021
1067
|
# The Amazon resource name (ARN) that specifies the resource.
|
1022
1068
|
#
|
@@ -1149,7 +1195,7 @@ module Aws::AppRegistry
|
|
1149
1195
|
params: params,
|
1150
1196
|
config: config)
|
1151
1197
|
context[:gem_name] = 'aws-sdk-appregistry'
|
1152
|
-
context[:gem_version] = '1.
|
1198
|
+
context[:gem_version] = '1.3.0'
|
1153
1199
|
Seahorse::Client::Request.new(handlers, context)
|
1154
1200
|
end
|
1155
1201
|
|
@@ -74,6 +74,9 @@ module Aws::AppRegistry
|
|
74
74
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
75
75
|
StackArn = Shapes::StringShape.new(name: 'StackArn')
|
76
76
|
String = Shapes::StringShape.new(name: 'String')
|
77
|
+
SyncAction = Shapes::StringShape.new(name: 'SyncAction')
|
78
|
+
SyncResourceRequest = Shapes::StructureShape.new(name: 'SyncResourceRequest')
|
79
|
+
SyncResourceResponse = Shapes::StructureShape.new(name: 'SyncResourceResponse')
|
77
80
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
78
81
|
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
79
82
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
@@ -278,6 +281,15 @@ module Aws::AppRegistry
|
|
278
281
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
279
282
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
280
283
|
|
284
|
+
SyncResourceRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location: "uri", location_name: "resourceType"))
|
285
|
+
SyncResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceSpecifier, required: true, location: "uri", location_name: "resource"))
|
286
|
+
SyncResourceRequest.struct_class = Types::SyncResourceRequest
|
287
|
+
|
288
|
+
SyncResourceResponse.add_member(:application_arn, Shapes::ShapeRef.new(shape: ApplicationArn, location_name: "applicationArn"))
|
289
|
+
SyncResourceResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceArn"))
|
290
|
+
SyncResourceResponse.add_member(:action_taken, Shapes::ShapeRef.new(shape: SyncAction, location_name: "actionTaken"))
|
291
|
+
SyncResourceResponse.struct_class = Types::SyncResourceResponse
|
292
|
+
|
281
293
|
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
282
294
|
|
283
295
|
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
@@ -523,6 +535,17 @@ module Aws::AppRegistry
|
|
523
535
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
524
536
|
end)
|
525
537
|
|
538
|
+
api.add_operation(:sync_resource, Seahorse::Model::Operation.new.tap do |o|
|
539
|
+
o.name = "SyncResource"
|
540
|
+
o.http_method = "POST"
|
541
|
+
o.http_request_uri = "/sync/{resourceType}/{resource}"
|
542
|
+
o.input = Shapes::ShapeRef.new(shape: SyncResourceRequest)
|
543
|
+
o.output = Shapes::ShapeRef.new(shape: SyncResourceResponse)
|
544
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
545
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
546
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
547
|
+
end)
|
548
|
+
|
526
549
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
527
550
|
o.name = "TagResource"
|
528
551
|
o.http_method = "POST"
|
@@ -1016,6 +1016,56 @@ module Aws::AppRegistry
|
|
1016
1016
|
include Aws::Structure
|
1017
1017
|
end
|
1018
1018
|
|
1019
|
+
# @note When making an API call, you may pass SyncResourceRequest
|
1020
|
+
# data as a hash:
|
1021
|
+
#
|
1022
|
+
# {
|
1023
|
+
# resource_type: "CFN_STACK", # required, accepts CFN_STACK
|
1024
|
+
# resource: "ResourceSpecifier", # required
|
1025
|
+
# }
|
1026
|
+
#
|
1027
|
+
# @!attribute [rw] resource_type
|
1028
|
+
# The type of resource of which the application will be associated.
|
1029
|
+
# @return [String]
|
1030
|
+
#
|
1031
|
+
# @!attribute [rw] resource
|
1032
|
+
# An entity you can work with and specify with a name or ID. Examples
|
1033
|
+
# include an Amazon EC2 instance, an AWS CloudFormation stack, or an
|
1034
|
+
# Amazon S3 bucket.
|
1035
|
+
# @return [String]
|
1036
|
+
#
|
1037
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/SyncResourceRequest AWS API Documentation
|
1038
|
+
#
|
1039
|
+
class SyncResourceRequest < Struct.new(
|
1040
|
+
:resource_type,
|
1041
|
+
:resource)
|
1042
|
+
SENSITIVE = []
|
1043
|
+
include Aws::Structure
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# @!attribute [rw] application_arn
|
1047
|
+
# The Amazon resource name (ARN) that specifies the application.
|
1048
|
+
# @return [String]
|
1049
|
+
#
|
1050
|
+
# @!attribute [rw] resource_arn
|
1051
|
+
# The Amazon resource name (ARN) that specifies the resource.
|
1052
|
+
# @return [String]
|
1053
|
+
#
|
1054
|
+
# @!attribute [rw] action_taken
|
1055
|
+
# The results of the output if an application is associated with an
|
1056
|
+
# ARN value, which could be `syncStarted` or None.
|
1057
|
+
# @return [String]
|
1058
|
+
#
|
1059
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/SyncResourceResponse AWS API Documentation
|
1060
|
+
#
|
1061
|
+
class SyncResourceResponse < Struct.new(
|
1062
|
+
:application_arn,
|
1063
|
+
:resource_arn,
|
1064
|
+
:action_taken)
|
1065
|
+
SENSITIVE = []
|
1066
|
+
include Aws::Structure
|
1067
|
+
end
|
1068
|
+
|
1019
1069
|
# @note When making an API call, you may pass TagResourceRequest
|
1020
1070
|
# data as a hash:
|
1021
1071
|
#
|
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.
|
4
|
+
version: 1.3.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-12-
|
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
|