aws-sdk-appregistry 1.16.0 → 1.18.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: 253422dd4c46b3893dabb765f536edf7ec5d38d961e3473d22f9266567d56aad
4
- data.tar.gz: 22c13143797244ceed010e2c936cd2dd258599d4db983b60ba542acfbe8f52b4
3
+ metadata.gz: 0db9b3624c82a1d857e5c757434f80b7441617c438abb6a7ea0810f6b43f8b84
4
+ data.tar.gz: 0f32fafbc7fae62f836ea416f898e0edbdf3671546c60a4f5fc12d929172fb1f
5
5
  SHA512:
6
- metadata.gz: f5cbf8367685fd0dfc2359e2014caf9155953f2c0a8dc36fa87a223a0a7fa8170da437f856dba823c46122a41e11e1d1eb7a0a7e6592818466af5da02d14646f
7
- data.tar.gz: 598f5f5a32445cbd3e6a8f679fa8eda406b44d92813cbfba60462855b4794e8698b7d7b5e3dc4fd5fc3f345850b8b66601b9066fa324db52020b1245c98d91a5
6
+ metadata.gz: 8051d494c0962cd643e5a7c1ab2afd36cb23883819cba52ef9200c0845bcdf3fcd983064305bf5c2e1cd18b696bfdb662149b5b971f7d19a9cc85bf868828709
7
+ data.tar.gz: 243c26a94db10087e5703adb519cb53b04bae48f8502e33d942806ef2e97df93b5c958fcf471e9ccef99db1d499d885b8b7834385d5f325e54b99692efb3599c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2022-11-17)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for tagged resource associations, which allows you to associate a group of resources with a defined resource tag key and value to the application.
8
+
9
+ 1.17.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.16.0 (2022-06-15)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.18.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:appregistry)
@@ -79,8 +79,9 @@ module Aws::AppRegistry
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::AppRegistry::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::AppRegistry
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::AppRegistry
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::AppRegistry::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::AppRegistry::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -411,7 +428,7 @@ module Aws::AppRegistry
411
428
  #
412
429
  # resp = client.associate_resource({
413
430
  # application: "ApplicationSpecifier", # required
414
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
431
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
415
432
  # resource: "ResourceSpecifier", # required
416
433
  # })
417
434
  #
@@ -683,7 +700,7 @@ module Aws::AppRegistry
683
700
  #
684
701
  # resp = client.disassociate_resource({
685
702
  # application: "ApplicationSpecifier", # required
686
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
703
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
687
704
  # resource: "ResourceSpecifier", # required
688
705
  # })
689
706
  #
@@ -773,7 +790,7 @@ module Aws::AppRegistry
773
790
  #
774
791
  # resp = client.get_associated_resource({
775
792
  # application: "ApplicationSpecifier", # required
776
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
793
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
777
794
  # resource: "ResourceSpecifier", # required
778
795
  # })
779
796
  #
@@ -841,6 +858,25 @@ module Aws::AppRegistry
841
858
  req.send_request(options)
842
859
  end
843
860
 
861
+ # Retrieves a `TagKey` configuration from an account.
862
+ #
863
+ # @return [Types::GetConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
864
+ #
865
+ # * {Types::GetConfigurationResponse#configuration #configuration} => Types::AppRegistryConfiguration
866
+ #
867
+ # @example Response structure
868
+ #
869
+ # resp.configuration.tag_query_configuration.tag_key #=> String
870
+ #
871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetConfiguration AWS API Documentation
872
+ #
873
+ # @overload get_configuration(params = {})
874
+ # @param [Hash] params ({})
875
+ def get_configuration(params = {}, options = {})
876
+ req = build_request(:get_configuration, params)
877
+ req.send_request(options)
878
+ end
879
+
844
880
  # Retrieves a list of all of your applications. Results are paginated.
845
881
  #
846
882
  # @option params [String] :next_token
@@ -931,8 +967,15 @@ module Aws::AppRegistry
931
967
  req.send_request(options)
932
968
  end
933
969
 
934
- # Lists all resources that are associated with specified application.
935
- # Results are paginated.
970
+ # Lists all of the resources that are associated with the specified
971
+ # application. Results are paginated.
972
+ #
973
+ # <note markdown="1"> If you share an application, and a consumer account associates a tag
974
+ # query to the application, all of the users who can access the
975
+ # application can also view the tag values in all accounts that are
976
+ # associated with it using this API.
977
+ #
978
+ # </note>
936
979
  #
937
980
  # @option params [required, String] :application
938
981
  # The name or ID of the application.
@@ -966,6 +1009,8 @@ module Aws::AppRegistry
966
1009
  # resp.resources #=> Array
967
1010
  # resp.resources[0].name #=> String
968
1011
  # resp.resources[0].arn #=> String
1012
+ # resp.resources[0].resource_type #=> String, one of "CFN_STACK", "RESOURCE_TAG_VALUE"
1013
+ # resp.resources[0].resource_details.tag_value #=> String
969
1014
  # resp.next_token #=> String
970
1015
  #
971
1016
  # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedResources AWS API Documentation
@@ -1099,6 +1144,32 @@ module Aws::AppRegistry
1099
1144
  req.send_request(options)
1100
1145
  end
1101
1146
 
1147
+ # Associates a `TagKey` configuration to an account.
1148
+ #
1149
+ # @option params [required, Types::AppRegistryConfiguration] :configuration
1150
+ # Associates a `TagKey` configuration to an account.
1151
+ #
1152
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1153
+ #
1154
+ # @example Request syntax with placeholder values
1155
+ #
1156
+ # resp = client.put_configuration({
1157
+ # configuration: { # required
1158
+ # tag_query_configuration: {
1159
+ # tag_key: "TagKeyConfig",
1160
+ # },
1161
+ # },
1162
+ # })
1163
+ #
1164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/PutConfiguration AWS API Documentation
1165
+ #
1166
+ # @overload put_configuration(params = {})
1167
+ # @param [Hash] params ({})
1168
+ def put_configuration(params = {}, options = {})
1169
+ req = build_request(:put_configuration, params)
1170
+ req.send_request(options)
1171
+ end
1172
+
1102
1173
  # Syncs the resource with current AppRegistry records.
1103
1174
  #
1104
1175
  # Specifically, the resource’s AppRegistry system tags sync with its
@@ -1123,7 +1194,7 @@ module Aws::AppRegistry
1123
1194
  # @example Request syntax with placeholder values
1124
1195
  #
1125
1196
  # resp = client.sync_resource({
1126
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
1197
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
1127
1198
  # resource: "ResourceSpecifier", # required
1128
1199
  # })
1129
1200
  #
@@ -1315,7 +1386,7 @@ module Aws::AppRegistry
1315
1386
  params: params,
1316
1387
  config: config)
1317
1388
  context[:gem_name] = 'aws-sdk-appregistry'
1318
- context[:gem_version] = '1.16.0'
1389
+ context[:gem_version] = '1.18.0'
1319
1390
  Seahorse::Client::Request.new(handlers, context)
1320
1391
  end
1321
1392
 
@@ -13,6 +13,7 @@ module Aws::AppRegistry
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AppRegistryConfiguration = Shapes::StructureShape.new(name: 'AppRegistryConfiguration')
16
17
  Application = Shapes::StructureShape.new(name: 'Application')
17
18
  ApplicationArn = Shapes::StringShape.new(name: 'ApplicationArn')
18
19
  ApplicationId = Shapes::StringShape.new(name: 'ApplicationId')
@@ -56,6 +57,7 @@ module Aws::AppRegistry
56
57
  GetAssociatedResourceResponse = Shapes::StructureShape.new(name: 'GetAssociatedResourceResponse')
57
58
  GetAttributeGroupRequest = Shapes::StructureShape.new(name: 'GetAttributeGroupRequest')
58
59
  GetAttributeGroupResponse = Shapes::StructureShape.new(name: 'GetAttributeGroupResponse')
60
+ GetConfigurationResponse = Shapes::StructureShape.new(name: 'GetConfigurationResponse')
59
61
  Integrations = Shapes::StructureShape.new(name: 'Integrations')
60
62
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
61
63
  ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
@@ -73,7 +75,9 @@ module Aws::AppRegistry
73
75
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
74
76
  Name = Shapes::StringShape.new(name: 'Name')
75
77
  NextToken = Shapes::StringShape.new(name: 'NextToken')
78
+ PutConfigurationRequest = Shapes::StructureShape.new(name: 'PutConfigurationRequest')
76
79
  Resource = Shapes::StructureShape.new(name: 'Resource')
80
+ ResourceDetails = Shapes::StructureShape.new(name: 'ResourceDetails')
77
81
  ResourceGroup = Shapes::StructureShape.new(name: 'ResourceGroup')
78
82
  ResourceGroupState = Shapes::StringShape.new(name: 'ResourceGroupState')
79
83
  ResourceInfo = Shapes::StructureShape.new(name: 'ResourceInfo')
@@ -89,7 +93,9 @@ module Aws::AppRegistry
89
93
  SyncResourceRequest = Shapes::StructureShape.new(name: 'SyncResourceRequest')
90
94
  SyncResourceResponse = Shapes::StructureShape.new(name: 'SyncResourceResponse')
91
95
  TagKey = Shapes::StringShape.new(name: 'TagKey')
96
+ TagKeyConfig = Shapes::StringShape.new(name: 'TagKeyConfig')
92
97
  TagKeys = Shapes::ListShape.new(name: 'TagKeys')
98
+ TagQueryConfiguration = Shapes::StructureShape.new(name: 'TagQueryConfiguration')
93
99
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
94
100
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
95
101
  TagValue = Shapes::StringShape.new(name: 'TagValue')
@@ -103,6 +109,9 @@ module Aws::AppRegistry
103
109
  UpdateAttributeGroupResponse = Shapes::StructureShape.new(name: 'UpdateAttributeGroupResponse')
104
110
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
105
111
 
112
+ AppRegistryConfiguration.add_member(:tag_query_configuration, Shapes::ShapeRef.new(shape: TagQueryConfiguration, location_name: "tagQueryConfiguration"))
113
+ AppRegistryConfiguration.struct_class = Types::AppRegistryConfiguration
114
+
106
115
  Application.add_member(:id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "id"))
107
116
  Application.add_member(:arn, Shapes::ShapeRef.new(shape: ApplicationArn, location_name: "arn"))
108
117
  Application.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
@@ -150,7 +159,7 @@ module Aws::AppRegistry
150
159
 
151
160
  AttributeGroupDetails.add_member(:id, Shapes::ShapeRef.new(shape: AttributeGroupId, location_name: "id"))
152
161
  AttributeGroupDetails.add_member(:arn, Shapes::ShapeRef.new(shape: AttributeGroupArn, location_name: "arn"))
153
- AttributeGroupDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
162
+ AttributeGroupDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, deprecated: true, location_name: "name", metadata: {"deprecatedMessage"=>"This field is deprecated. We recommend not using the field when using ListAttributeGroupsForApplication."}))
154
163
  AttributeGroupDetails.struct_class = Types::AttributeGroupDetails
155
164
 
156
165
  AttributeGroupDetailsList.member = Shapes::ShapeRef.new(shape: AttributeGroupDetails)
@@ -253,6 +262,9 @@ module Aws::AppRegistry
253
262
  GetAttributeGroupResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
254
263
  GetAttributeGroupResponse.struct_class = Types::GetAttributeGroupResponse
255
264
 
265
+ GetConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: AppRegistryConfiguration, location_name: "configuration"))
266
+ GetConfigurationResponse.struct_class = Types::GetConfigurationResponse
267
+
256
268
  Integrations.add_member(:resource_group, Shapes::ShapeRef.new(shape: ResourceGroup, location_name: "resourceGroup"))
257
269
  Integrations.struct_class = Types::Integrations
258
270
 
@@ -308,19 +320,27 @@ module Aws::AppRegistry
308
320
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
309
321
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
310
322
 
323
+ PutConfigurationRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: AppRegistryConfiguration, required: true, location_name: "configuration"))
324
+ PutConfigurationRequest.struct_class = Types::PutConfigurationRequest
325
+
311
326
  Resource.add_member(:name, Shapes::ShapeRef.new(shape: ResourceSpecifier, location_name: "name"))
312
327
  Resource.add_member(:arn, Shapes::ShapeRef.new(shape: StackArn, location_name: "arn"))
313
328
  Resource.add_member(:association_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "associationTime"))
314
329
  Resource.add_member(:integrations, Shapes::ShapeRef.new(shape: ResourceIntegrations, location_name: "integrations"))
315
330
  Resource.struct_class = Types::Resource
316
331
 
332
+ ResourceDetails.add_member(:tag_value, Shapes::ShapeRef.new(shape: TagValue, location_name: "tagValue"))
333
+ ResourceDetails.struct_class = Types::ResourceDetails
334
+
317
335
  ResourceGroup.add_member(:state, Shapes::ShapeRef.new(shape: ResourceGroupState, location_name: "state"))
318
336
  ResourceGroup.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
319
337
  ResourceGroup.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
320
338
  ResourceGroup.struct_class = Types::ResourceGroup
321
339
 
322
340
  ResourceInfo.add_member(:name, Shapes::ShapeRef.new(shape: ResourceSpecifier, location_name: "name"))
323
- ResourceInfo.add_member(:arn, Shapes::ShapeRef.new(shape: StackArn, location_name: "arn"))
341
+ ResourceInfo.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
342
+ ResourceInfo.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
343
+ ResourceInfo.add_member(:resource_details, Shapes::ShapeRef.new(shape: ResourceDetails, location_name: "resourceDetails"))
324
344
  ResourceInfo.struct_class = Types::ResourceInfo
325
345
 
326
346
  ResourceIntegrations.add_member(:resource_group, Shapes::ShapeRef.new(shape: ResourceGroup, location_name: "resourceGroup"))
@@ -345,6 +365,9 @@ module Aws::AppRegistry
345
365
 
346
366
  TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
347
367
 
368
+ TagQueryConfiguration.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKeyConfig, location_name: "tagKey"))
369
+ TagQueryConfiguration.struct_class = Types::TagQueryConfiguration
370
+
348
371
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
349
372
  TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
350
373
  TagResourceRequest.struct_class = Types::TagResourceRequest
@@ -528,6 +551,15 @@ module Aws::AppRegistry
528
551
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
529
552
  end)
530
553
 
554
+ api.add_operation(:get_configuration, Seahorse::Model::Operation.new.tap do |o|
555
+ o.name = "GetConfiguration"
556
+ o.http_method = "GET"
557
+ o.http_request_uri = "/configuration"
558
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
559
+ o.output = Shapes::ShapeRef.new(shape: GetConfigurationResponse)
560
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
561
+ end)
562
+
531
563
  api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
532
564
  o.name = "ListApplications"
533
565
  o.http_method = "GET"
@@ -622,6 +654,17 @@ module Aws::AppRegistry
622
654
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
623
655
  end)
624
656
 
657
+ api.add_operation(:put_configuration, Seahorse::Model::Operation.new.tap do |o|
658
+ o.name = "PutConfiguration"
659
+ o.http_method = "PUT"
660
+ o.http_request_uri = "/configuration"
661
+ o.input = Shapes::ShapeRef.new(shape: PutConfigurationRequest)
662
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
663
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
664
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
665
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
666
+ end)
667
+
625
668
  api.add_operation(:sync_resource, Seahorse::Model::Operation.new.tap do |o|
626
669
  o.name = "SyncResource"
627
670
  o.http_method = "POST"
@@ -663,8 +706,8 @@ module Aws::AppRegistry
663
706
  o.output = Shapes::ShapeRef.new(shape: UpdateApplicationResponse)
664
707
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
665
708
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
666
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
667
709
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
710
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
668
711
  end)
669
712
 
670
713
  api.add_operation(:update_attribute_group, Seahorse::Model::Operation.new.tap do |o|
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AppRegistry
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,119 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AppRegistry
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_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
112
+ IjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9zZXJ2aWNlY2F0YWxv
113
+ Zy1hcHByZWdpc3RyeS57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1
114
+ ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoi
115
+ ZW5kcG9pbnQifV19XX0=
116
+
117
+ JSON
118
+ end
119
+ end
@@ -0,0 +1,351 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AppRegistry
12
+ module Endpoints
13
+
14
+ class AssociateAttributeGroup
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::AppRegistry::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class AssociateResource
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::AppRegistry::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class CreateApplication
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::AppRegistry::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class CreateAttributeGroup
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::AppRegistry::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteApplication
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::AppRegistry::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DeleteAttributeGroup
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::AppRegistry::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DisassociateAttributeGroup
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::AppRegistry::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class DisassociateResource
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::AppRegistry::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class GetApplication
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::AppRegistry::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class GetAssociatedResource
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::AppRegistry::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class GetAttributeGroup
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::AppRegistry::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class GetConfiguration
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::AppRegistry::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListApplications
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::AppRegistry::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class ListAssociatedAttributeGroups
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::AppRegistry::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class ListAssociatedResources
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::AppRegistry::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class ListAttributeGroups
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::AppRegistry::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class ListAttributeGroupsForApplication
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::AppRegistry::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class ListTagsForResource
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::AppRegistry::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class PutConfiguration
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::AppRegistry::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ class SyncResource
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::AppRegistry::EndpointParameters.new(
286
+ region: context.config.region,
287
+ use_dual_stack: context.config.use_dualstack_endpoint,
288
+ use_fips: context.config.use_fips_endpoint,
289
+ endpoint: endpoint,
290
+ )
291
+ end
292
+ end
293
+
294
+ class TagResource
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::AppRegistry::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ class UntagResource
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::AppRegistry::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
322
+ class UpdateApplication
323
+ def self.build(context)
324
+ unless context.config.regional_endpoint
325
+ endpoint = context.config.endpoint.to_s
326
+ end
327
+ Aws::AppRegistry::EndpointParameters.new(
328
+ region: context.config.region,
329
+ use_dual_stack: context.config.use_dualstack_endpoint,
330
+ use_fips: context.config.use_fips_endpoint,
331
+ endpoint: endpoint,
332
+ )
333
+ end
334
+ end
335
+
336
+ class UpdateAttributeGroup
337
+ def self.build(context)
338
+ unless context.config.regional_endpoint
339
+ endpoint = context.config.endpoint.to_s
340
+ end
341
+ Aws::AppRegistry::EndpointParameters.new(
342
+ region: context.config.region,
343
+ use_dual_stack: context.config.use_dualstack_endpoint,
344
+ use_fips: context.config.use_fips_endpoint,
345
+ endpoint: endpoint,
346
+ )
347
+ end
348
+ end
349
+
350
+ end
351
+ end
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AppRegistry
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AppRegistry::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AppRegistry::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AppRegistry::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_attribute_group
60
+ Aws::AppRegistry::Endpoints::AssociateAttributeGroup.build(context)
61
+ when :associate_resource
62
+ Aws::AppRegistry::Endpoints::AssociateResource.build(context)
63
+ when :create_application
64
+ Aws::AppRegistry::Endpoints::CreateApplication.build(context)
65
+ when :create_attribute_group
66
+ Aws::AppRegistry::Endpoints::CreateAttributeGroup.build(context)
67
+ when :delete_application
68
+ Aws::AppRegistry::Endpoints::DeleteApplication.build(context)
69
+ when :delete_attribute_group
70
+ Aws::AppRegistry::Endpoints::DeleteAttributeGroup.build(context)
71
+ when :disassociate_attribute_group
72
+ Aws::AppRegistry::Endpoints::DisassociateAttributeGroup.build(context)
73
+ when :disassociate_resource
74
+ Aws::AppRegistry::Endpoints::DisassociateResource.build(context)
75
+ when :get_application
76
+ Aws::AppRegistry::Endpoints::GetApplication.build(context)
77
+ when :get_associated_resource
78
+ Aws::AppRegistry::Endpoints::GetAssociatedResource.build(context)
79
+ when :get_attribute_group
80
+ Aws::AppRegistry::Endpoints::GetAttributeGroup.build(context)
81
+ when :get_configuration
82
+ Aws::AppRegistry::Endpoints::GetConfiguration.build(context)
83
+ when :list_applications
84
+ Aws::AppRegistry::Endpoints::ListApplications.build(context)
85
+ when :list_associated_attribute_groups
86
+ Aws::AppRegistry::Endpoints::ListAssociatedAttributeGroups.build(context)
87
+ when :list_associated_resources
88
+ Aws::AppRegistry::Endpoints::ListAssociatedResources.build(context)
89
+ when :list_attribute_groups
90
+ Aws::AppRegistry::Endpoints::ListAttributeGroups.build(context)
91
+ when :list_attribute_groups_for_application
92
+ Aws::AppRegistry::Endpoints::ListAttributeGroupsForApplication.build(context)
93
+ when :list_tags_for_resource
94
+ Aws::AppRegistry::Endpoints::ListTagsForResource.build(context)
95
+ when :put_configuration
96
+ Aws::AppRegistry::Endpoints::PutConfiguration.build(context)
97
+ when :sync_resource
98
+ Aws::AppRegistry::Endpoints::SyncResource.build(context)
99
+ when :tag_resource
100
+ Aws::AppRegistry::Endpoints::TagResource.build(context)
101
+ when :untag_resource
102
+ Aws::AppRegistry::Endpoints::UntagResource.build(context)
103
+ when :update_application
104
+ Aws::AppRegistry::Endpoints::UpdateApplication.build(context)
105
+ when :update_attribute_group
106
+ Aws::AppRegistry::Endpoints::UpdateAttributeGroup.build(context)
107
+ end
108
+ end
109
+ end
110
+
111
+ def add_handlers(handlers, _config)
112
+ handlers.add(Handler, step: :build, priority: 75)
113
+ end
114
+ end
115
+ end
116
+ end
@@ -10,6 +10,29 @@
10
10
  module Aws::AppRegistry
11
11
  module Types
12
12
 
13
+ # Includes all of the Service Catalog AppRegistry settings.
14
+ #
15
+ # @note When making an API call, you may pass AppRegistryConfiguration
16
+ # data as a hash:
17
+ #
18
+ # {
19
+ # tag_query_configuration: {
20
+ # tag_key: "TagKeyConfig",
21
+ # },
22
+ # }
23
+ #
24
+ # @!attribute [rw] tag_query_configuration
25
+ # Includes the definition of a `tagQuery`.
26
+ # @return [Types::TagQueryConfiguration]
27
+ #
28
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AppRegistryConfiguration AWS API Documentation
29
+ #
30
+ class AppRegistryConfiguration < Struct.new(
31
+ :tag_query_configuration)
32
+ SENSITIVE = []
33
+ include Aws::Structure
34
+ end
35
+
13
36
  # Represents a Amazon Web Services Service Catalog AppRegistry
14
37
  # application that is the top-level node in a hierarchy of related cloud
15
38
  # resource abstractions.
@@ -154,7 +177,7 @@ module Aws::AppRegistry
154
177
  #
155
178
  # {
156
179
  # application: "ApplicationSpecifier", # required
157
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
180
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
158
181
  # resource: "ResourceSpecifier", # required
159
182
  # }
160
183
  #
@@ -261,6 +284,9 @@ module Aws::AppRegistry
261
284
  # @return [String]
262
285
  #
263
286
  # @!attribute [rw] name
287
+ # This field is no longer supported. We recommend you don't use the
288
+ # field when using `ListAttributeGroupsForApplication`.
289
+ #
264
290
  # The name of the attribute group.
265
291
  # @return [String]
266
292
  #
@@ -571,7 +597,7 @@ module Aws::AppRegistry
571
597
  #
572
598
  # {
573
599
  # application: "ApplicationSpecifier", # required
574
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
600
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
575
601
  # resource: "ResourceSpecifier", # required
576
602
  # }
577
603
  #
@@ -696,7 +722,7 @@ module Aws::AppRegistry
696
722
  #
697
723
  # {
698
724
  # application: "ApplicationSpecifier", # required
699
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
725
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
700
726
  # resource: "ResourceSpecifier", # required
701
727
  # }
702
728
  #
@@ -807,6 +833,18 @@ module Aws::AppRegistry
807
833
  include Aws::Structure
808
834
  end
809
835
 
836
+ # @!attribute [rw] configuration
837
+ # Retrieves `TagKey` configuration from an account.
838
+ # @return [Types::AppRegistryConfiguration]
839
+ #
840
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetConfigurationResponse AWS API Documentation
841
+ #
842
+ class GetConfigurationResponse < Struct.new(
843
+ :configuration)
844
+ SENSITIVE = []
845
+ include Aws::Structure
846
+ end
847
+
810
848
  # The information about the service integration.
811
849
  #
812
850
  # @!attribute [rw] resource_group
@@ -1019,7 +1057,7 @@ module Aws::AppRegistry
1019
1057
  end
1020
1058
 
1021
1059
  # @!attribute [rw] attribute_groups_details
1022
- # The details related to a specific AttributeGroup.
1060
+ # The details related to a specific attribute group.
1023
1061
  # @return [Array<Types::AttributeGroupDetails>]
1024
1062
  #
1025
1063
  # @!attribute [rw] next_token
@@ -1113,6 +1151,29 @@ module Aws::AppRegistry
1113
1151
  include Aws::Structure
1114
1152
  end
1115
1153
 
1154
+ # @note When making an API call, you may pass PutConfigurationRequest
1155
+ # data as a hash:
1156
+ #
1157
+ # {
1158
+ # configuration: { # required
1159
+ # tag_query_configuration: {
1160
+ # tag_key: "TagKeyConfig",
1161
+ # },
1162
+ # },
1163
+ # }
1164
+ #
1165
+ # @!attribute [rw] configuration
1166
+ # Associates a `TagKey` configuration to an account.
1167
+ # @return [Types::AppRegistryConfiguration]
1168
+ #
1169
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/PutConfigurationRequest AWS API Documentation
1170
+ #
1171
+ class PutConfigurationRequest < Struct.new(
1172
+ :configuration)
1173
+ SENSITIVE = []
1174
+ include Aws::Structure
1175
+ end
1176
+
1116
1177
  # The information about the resource.
1117
1178
  #
1118
1179
  # @!attribute [rw] name
@@ -1142,6 +1203,20 @@ module Aws::AppRegistry
1142
1203
  include Aws::Structure
1143
1204
  end
1144
1205
 
1206
+ # The details related to the resource.
1207
+ #
1208
+ # @!attribute [rw] tag_value
1209
+ # The value of the tag.
1210
+ # @return [String]
1211
+ #
1212
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ResourceDetails AWS API Documentation
1213
+ #
1214
+ class ResourceDetails < Struct.new(
1215
+ :tag_value)
1216
+ SENSITIVE = []
1217
+ include Aws::Structure
1218
+ end
1219
+
1145
1220
  # The information about the resource group integration.
1146
1221
  #
1147
1222
  # @!attribute [rw] state
@@ -1191,11 +1266,22 @@ module Aws::AppRegistry
1191
1266
  # services.
1192
1267
  # @return [String]
1193
1268
  #
1269
+ # @!attribute [rw] resource_type
1270
+ # Provides information about the Service Catalog App Registry resource
1271
+ # type.
1272
+ # @return [String]
1273
+ #
1274
+ # @!attribute [rw] resource_details
1275
+ # The details related to the resource.
1276
+ # @return [Types::ResourceDetails]
1277
+ #
1194
1278
  # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ResourceInfo AWS API Documentation
1195
1279
  #
1196
1280
  class ResourceInfo < Struct.new(
1197
1281
  :name,
1198
- :arn)
1282
+ :arn,
1283
+ :resource_type,
1284
+ :resource_details)
1199
1285
  SENSITIVE = []
1200
1286
  include Aws::Structure
1201
1287
  end
@@ -1244,7 +1330,7 @@ module Aws::AppRegistry
1244
1330
  # data as a hash:
1245
1331
  #
1246
1332
  # {
1247
- # resource_type: "CFN_STACK", # required, accepts CFN_STACK
1333
+ # resource_type: "CFN_STACK", # required, accepts CFN_STACK, RESOURCE_TAG_VALUE
1248
1334
  # resource: "ResourceSpecifier", # required
1249
1335
  # }
1250
1336
  #
@@ -1290,6 +1376,29 @@ module Aws::AppRegistry
1290
1376
  include Aws::Structure
1291
1377
  end
1292
1378
 
1379
+ # The definition of `tagQuery`. Specifies which resources are associated
1380
+ # with an application.
1381
+ #
1382
+ # @note When making an API call, you may pass TagQueryConfiguration
1383
+ # data as a hash:
1384
+ #
1385
+ # {
1386
+ # tag_key: "TagKeyConfig",
1387
+ # }
1388
+ #
1389
+ # @!attribute [rw] tag_key
1390
+ # Condition in the IAM policy that associates resources to an
1391
+ # application.
1392
+ # @return [String]
1393
+ #
1394
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagQueryConfiguration AWS API Documentation
1395
+ #
1396
+ class TagQueryConfiguration < Struct.new(
1397
+ :tag_key)
1398
+ SENSITIVE = []
1399
+ include Aws::Structure
1400
+ end
1401
+
1293
1402
  # @note When making an API call, you may pass TagResourceRequest
1294
1403
  # data as a hash:
1295
1404
  #
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-appregistry/types'
15
15
  require_relative 'aws-sdk-appregistry/client_api'
16
+ require_relative 'aws-sdk-appregistry/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-appregistry/client'
17
18
  require_relative 'aws-sdk-appregistry/errors'
18
19
  require_relative 'aws-sdk-appregistry/resource'
20
+ require_relative 'aws-sdk-appregistry/endpoint_parameters'
21
+ require_relative 'aws-sdk-appregistry/endpoint_provider'
22
+ require_relative 'aws-sdk-appregistry/endpoints'
19
23
  require_relative 'aws-sdk-appregistry/customizations'
20
24
 
21
25
  # This module provides support for AWS Service Catalog App Registry. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-appregistry/customizations'
48
52
  # @!group service
49
53
  module Aws::AppRegistry
50
54
 
51
- GEM_VERSION = '1.16.0'
55
+ GEM_VERSION = '1.18.0'
52
56
 
53
57
  end
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.16.0
4
+ version: 1.18.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: 2022-06-15 00:00:00.000000000 Z
11
+ date: 2022-11-17 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-appregistry/client.rb
60
60
  - lib/aws-sdk-appregistry/client_api.rb
61
61
  - lib/aws-sdk-appregistry/customizations.rb
62
+ - lib/aws-sdk-appregistry/endpoint_parameters.rb
63
+ - lib/aws-sdk-appregistry/endpoint_provider.rb
64
+ - lib/aws-sdk-appregistry/endpoints.rb
62
65
  - lib/aws-sdk-appregistry/errors.rb
66
+ - lib/aws-sdk-appregistry/plugins/endpoints.rb
63
67
  - lib/aws-sdk-appregistry/resource.rb
64
68
  - lib/aws-sdk-appregistry/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby