aws-sdk-appconfigdata 1.6.0 → 1.8.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: 5138d179e04ef44b0f66a7fdd23909ee276c90c8d881cad3b2c7b4b69f2ca765
4
- data.tar.gz: be5f069bf479d5ee1c41e0757fba3f3e81e83ee6749ee7e31e1e263690c9cb6e
3
+ metadata.gz: 0b4082599d085fecf57485a09aaae324ccda07685fce932c829438e2f8ba280e
4
+ data.tar.gz: c7b3c0da0851770be8e6c0e29eaf8be3c4adb48ea7ec8dc198a4489630e37b5f
5
5
  SHA512:
6
- metadata.gz: 2766ab5eadd9a78614b7ce3f8750c7ac490c3c46d3bd558af2246733ceea7c1b2dfd31b8b7e87dbee261c6ac261aec25e1015b1903268d7cba8de15f53464206
7
- data.tar.gz: 5be0c5b86ca5f7623f762a24d4b31512ec1010bbe9226c6b1615a1599f8f461a68192bfa46c6bc176008ce71823ca63106be47390bbaeae7bcef52bbd00ea538
6
+ metadata.gz: c937b7b20217b0f897b7a14b1a048a2badb6c84d8e2a5a5dd700be5c9160e1dc1bfc8ee89b74e52a93730e1335f38d5f7b94648a19c01f389a74f75d0db2ac4c
7
+ data.tar.gz: f9aa8cda8b2ba31094c38d69954388257f579509341faa73e1f0a21d5ebcabbce551256ccd544996dd45aabfb07882ced6d2c4e04f4423f30a79f213ca18ebfb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2023-02-13)
5
+ ------------------
6
+
7
+ * Feature - AWS AppConfig now offers the option to set a version label on hosted configuration versions. If a labeled hosted configuration version is deployed, its version label is available in the GetLatestConfiguration response.
8
+
9
+ 1.7.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.6.0 (2022-10-25)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.8.0
@@ -372,7 +372,7 @@ module Aws::AppConfigData
372
372
  # configuration data if the client already has the latest version. For
373
373
  # more information about this API action and to view example CLI
374
374
  # commands that show how to use it with the StartConfigurationSession
375
- # API action, see [Receiving the configuration][1] in the *AppConfig
375
+ # API action, see [Retrieving the configuration][1] in the *AppConfig
376
376
  # User Guide*.
377
377
  #
378
378
  # Note the following important information.
@@ -396,7 +396,12 @@ module Aws::AppConfigData
396
396
  # obtain a token, first call the StartConfigurationSession API. Note
397
397
  # that every call to `GetLatestConfiguration` will return a new
398
398
  # `ConfigurationToken` (`NextPollConfigurationToken` in the response)
399
- # and MUST be provided to subsequent `GetLatestConfiguration` API calls.
399
+ # and *must* be provided to subsequent `GetLatestConfiguration` API
400
+ # calls.
401
+ #
402
+ # This token should only be used once. To support long poll use cases,
403
+ # the token is valid for up to 24 hours. If a `GetLatestConfiguration`
404
+ # call uses an expired token, the system returns `BadRequestException`.
400
405
  #
401
406
  # @return [Types::GetLatestConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
402
407
  #
@@ -404,6 +409,7 @@ module Aws::AppConfigData
404
409
  # * {Types::GetLatestConfigurationResponse#next_poll_interval_in_seconds #next_poll_interval_in_seconds} => Integer
405
410
  # * {Types::GetLatestConfigurationResponse#content_type #content_type} => String
406
411
  # * {Types::GetLatestConfigurationResponse#configuration #configuration} => String
412
+ # * {Types::GetLatestConfigurationResponse#version_label #version_label} => String
407
413
  #
408
414
  # @example Request syntax with placeholder values
409
415
  #
@@ -417,6 +423,7 @@ module Aws::AppConfigData
417
423
  # resp.next_poll_interval_in_seconds #=> Integer
418
424
  # resp.content_type #=> String
419
425
  # resp.configuration #=> String
426
+ # resp.version_label #=> String
420
427
  #
421
428
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/GetLatestConfiguration AWS API Documentation
422
429
  #
@@ -430,7 +437,7 @@ module Aws::AppConfigData
430
437
  # Starts a configuration session used to retrieve a deployed
431
438
  # configuration. For more information about this API action and to view
432
439
  # example CLI commands that show how to use it with the
433
- # GetLatestConfiguration API action, see [Receiving the
440
+ # GetLatestConfiguration API action, see [Retrieving the
434
441
  # configuration][1] in the *AppConfig User Guide*.
435
442
  #
436
443
  #
@@ -449,7 +456,7 @@ module Aws::AppConfigData
449
456
  # @option params [Integer] :required_minimum_poll_interval_in_seconds
450
457
  # Sets a constraint on a session. If you specify a value of, for
451
458
  # example, 60 seconds, then the client that established the session
452
- # can't call GetLatestConfiguration more frequently then every 60
459
+ # can't call GetLatestConfiguration more frequently than every 60
453
460
  # seconds.
454
461
  #
455
462
  # @return [Types::StartConfigurationSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -491,7 +498,7 @@ module Aws::AppConfigData
491
498
  params: params,
492
499
  config: config)
493
500
  context[:gem_name] = 'aws-sdk-appconfigdata'
494
- context[:gem_version] = '1.6.0'
501
+ context[:gem_version] = '1.8.0'
495
502
  Seahorse::Client::Request.new(handlers, context)
496
503
  end
497
504
 
@@ -27,11 +27,11 @@ module Aws::AppConfigData
27
27
  OptionalPollSeconds = Shapes::IntegerShape.new(name: 'OptionalPollSeconds')
28
28
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
29
29
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
30
+ SensitiveBlob = Shapes::BlobShape.new(name: 'SensitiveBlob')
30
31
  StartConfigurationSessionRequest = Shapes::StructureShape.new(name: 'StartConfigurationSessionRequest')
31
32
  StartConfigurationSessionResponse = Shapes::StructureShape.new(name: 'StartConfigurationSessionResponse')
32
33
  String = Shapes::StringShape.new(name: 'String')
33
34
  StringMap = Shapes::MapShape.new(name: 'StringMap')
34
- SyntheticGetLatestConfigurationResponseBlob = Shapes::BlobShape.new(name: 'SyntheticGetLatestConfigurationResponseBlob')
35
35
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
36
36
  Token = Shapes::StringShape.new(name: 'Token')
37
37
 
@@ -52,7 +52,8 @@ module Aws::AppConfigData
52
52
  GetLatestConfigurationResponse.add_member(:next_poll_configuration_token, Shapes::ShapeRef.new(shape: Token, location: "header", location_name: "Next-Poll-Configuration-Token"))
53
53
  GetLatestConfigurationResponse.add_member(:next_poll_interval_in_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Next-Poll-Interval-In-Seconds"))
54
54
  GetLatestConfigurationResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
55
- GetLatestConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: SyntheticGetLatestConfigurationResponseBlob, location_name: "Configuration"))
55
+ GetLatestConfigurationResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: SensitiveBlob, location_name: "Configuration"))
56
+ GetLatestConfigurationResponse.add_member(:version_label, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Version-Label"))
56
57
  GetLatestConfigurationResponse.struct_class = Types::GetLatestConfigurationResponse
57
58
  GetLatestConfigurationResponse[:payload] = :configuration
58
59
  GetLatestConfigurationResponse[:payload_member] = GetLatestConfigurationResponse.member(:configuration)
@@ -9,104 +9,46 @@
9
9
 
10
10
  module Aws::AppConfigData
11
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
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
42
- dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB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ws::AppConfigData
53
53
  include Aws::Structure
54
54
  end
55
55
 
56
- # @note When making an API call, you may pass GetLatestConfigurationRequest
57
- # data as a hash:
58
- #
59
- # {
60
- # configuration_token: "Token", # required
61
- # }
62
- #
63
56
  # @!attribute [rw] configuration_token
64
57
  # Token describing the current state of the configuration session. To
65
58
  # obtain a token, first call the StartConfigurationSession API. Note
66
59
  # that every call to `GetLatestConfiguration` will return a new
67
60
  # `ConfigurationToken` (`NextPollConfigurationToken` in the response)
68
- # and MUST be provided to subsequent `GetLatestConfiguration` API
61
+ # and *must* be provided to subsequent `GetLatestConfiguration` API
69
62
  # calls.
63
+ #
64
+ # This token should only be used once. To support long poll use cases,
65
+ # the token is valid for up to 24 hours. If a `GetLatestConfiguration`
66
+ # call uses an expired token, the system returns
67
+ # `BadRequestException`.
70
68
  # @return [String]
71
69
  #
72
70
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/GetLatestConfigurationRequest AWS API Documentation
@@ -79,8 +77,13 @@ module Aws::AppConfigData
79
77
 
80
78
  # @!attribute [rw] next_poll_configuration_token
81
79
  # The latest token describing the current state of the configuration
82
- # session. This MUST be provided to the next call to
80
+ # session. This *must* be provided to the next call to
83
81
  # `GetLatestConfiguration.`
82
+ #
83
+ # This token should only be used once. To support long poll use cases,
84
+ # the token is valid for up to 24 hours. If a `GetLatestConfiguration`
85
+ # call uses an expired token, the system returns
86
+ # `BadRequestException`.
84
87
  # @return [String]
85
88
  #
86
89
  # @!attribute [rw] next_poll_interval_in_seconds
@@ -100,13 +103,22 @@ module Aws::AppConfigData
100
103
  # already has the latest version of configuration.
101
104
  # @return [String]
102
105
  #
106
+ # @!attribute [rw] version_label
107
+ # The user-defined label for the AppConfig hosted configuration
108
+ # version. This attribute doesn't apply if the configuration is not
109
+ # from an AppConfig hosted configuration version. If the client
110
+ # already has the latest version of the configuration data, this value
111
+ # is empty.
112
+ # @return [String]
113
+ #
103
114
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/GetLatestConfigurationResponse AWS API Documentation
104
115
  #
105
116
  class GetLatestConfigurationResponse < Struct.new(
106
117
  :next_poll_configuration_token,
107
118
  :next_poll_interval_in_seconds,
108
119
  :content_type,
109
- :configuration)
120
+ :configuration,
121
+ :version_label)
110
122
  SENSITIVE = [:configuration]
111
123
  include Aws::Structure
112
124
  end
@@ -162,16 +174,6 @@ module Aws::AppConfigData
162
174
  include Aws::Structure
163
175
  end
164
176
 
165
- # @note When making an API call, you may pass StartConfigurationSessionRequest
166
- # data as a hash:
167
- #
168
- # {
169
- # application_identifier: "Identifier", # required
170
- # environment_identifier: "Identifier", # required
171
- # configuration_profile_identifier: "Identifier", # required
172
- # required_minimum_poll_interval_in_seconds: 1,
173
- # }
174
- #
175
177
  # @!attribute [rw] application_identifier
176
178
  # The application ID or the application name.
177
179
  # @return [String]
@@ -187,7 +189,7 @@ module Aws::AppConfigData
187
189
  # @!attribute [rw] required_minimum_poll_interval_in_seconds
188
190
  # Sets a constraint on a session. If you specify a value of, for
189
191
  # example, 60 seconds, then the client that established the session
190
- # can't call GetLatestConfiguration more frequently then every 60
192
+ # can't call GetLatestConfiguration more frequently than every 60
191
193
  # seconds.
192
194
  # @return [Integer]
193
195
  #
@@ -208,9 +210,14 @@ module Aws::AppConfigData
208
210
  # configuration data.
209
211
  #
210
212
  # This token should only be used once in your first call to
211
- # `GetLatestConfiguration`. You MUST use the new token in the
213
+ # `GetLatestConfiguration`. You *must* use the new token in the
212
214
  # `GetLatestConfiguration` response (`NextPollConfigurationToken`) in
213
215
  # each subsequent call to `GetLatestConfiguration`.
216
+ #
217
+ # The `InitialConfigurationToken` and `NextPollConfigurationToken`
218
+ # should only be used once. To support long poll use cases, the tokens
219
+ # are valid for up to 24 hours. If a `GetLatestConfiguration` call
220
+ # uses an expired token, the system returns `BadRequestException`.
214
221
  # @return [String]
215
222
  #
216
223
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/StartConfigurationSessionResponse AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-appconfigdata/customizations'
52
52
  # @!group service
53
53
  module Aws::AppConfigData
54
54
 
55
- GEM_VERSION = '1.6.0'
55
+ GEM_VERSION = '1.8.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appconfigdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.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-10-25 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core