aws-sdk-appconfigdata 1.7.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: 1ef6781b6a1a179da77a7e738e462a991ff02037c20b55f1cb3be5334e21bff2
4
- data.tar.gz: 8e62926118f0ac09072a895e686f3e811d2ea2bd2f7be23afc525a3e396b354d
3
+ metadata.gz: 0b4082599d085fecf57485a09aaae324ccda07685fce932c829438e2f8ba280e
4
+ data.tar.gz: c7b3c0da0851770be8e6c0e29eaf8be3c4adb48ea7ec8dc198a4489630e37b5f
5
5
  SHA512:
6
- metadata.gz: d29331ef8178db135e8565b049ca96e35511909929b646509c21834160020f80af11c5660685f107cbfd2e2e26f3351551c23d223725e87ddf30bc4e42059022
7
- data.tar.gz: b7fad8165ef52bb25b137f14a621dfea7362f02c1c7748f05548bd9144c518388e3d080c6f118b03a5c1b83913f0f9128018395e5f97158783073a23cbf81daf
6
+ metadata.gz: c937b7b20217b0f897b7a14b1a048a2badb6c84d8e2a5a5dd700be5c9160e1dc1bfc8ee89b74e52a93730e1335f38d5f7b94648a19c01f389a74f75d0db2ac4c
7
+ data.tar.gz: f9aa8cda8b2ba31094c38d69954388257f579509341faa73e1f0a21d5ebcabbce551256ccd544996dd45aabfb07882ced6d2c4e04f4423f30a79f213ca18ebfb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.7.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.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.7.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)
@@ -14,36 +14,39 @@ module Aws::AppConfigData
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- 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"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ 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"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://appconfigdata.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -58,8 +58,13 @@ module Aws::AppConfigData
58
58
  # obtain a token, first call the StartConfigurationSession API. Note
59
59
  # that every call to `GetLatestConfiguration` will return a new
60
60
  # `ConfigurationToken` (`NextPollConfigurationToken` in the response)
61
- # and MUST be provided to subsequent `GetLatestConfiguration` API
61
+ # and *must* be provided to subsequent `GetLatestConfiguration` API
62
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`.
63
68
  # @return [String]
64
69
  #
65
70
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/GetLatestConfigurationRequest AWS API Documentation
@@ -72,8 +77,13 @@ module Aws::AppConfigData
72
77
 
73
78
  # @!attribute [rw] next_poll_configuration_token
74
79
  # The latest token describing the current state of the configuration
75
- # session. This MUST be provided to the next call to
80
+ # session. This *must* be provided to the next call to
76
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`.
77
87
  # @return [String]
78
88
  #
79
89
  # @!attribute [rw] next_poll_interval_in_seconds
@@ -93,13 +103,22 @@ module Aws::AppConfigData
93
103
  # already has the latest version of configuration.
94
104
  # @return [String]
95
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
+ #
96
114
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfigdata-2021-11-11/GetLatestConfigurationResponse AWS API Documentation
97
115
  #
98
116
  class GetLatestConfigurationResponse < Struct.new(
99
117
  :next_poll_configuration_token,
100
118
  :next_poll_interval_in_seconds,
101
119
  :content_type,
102
- :configuration)
120
+ :configuration,
121
+ :version_label)
103
122
  SENSITIVE = [:configuration]
104
123
  include Aws::Structure
105
124
  end
@@ -170,7 +189,7 @@ module Aws::AppConfigData
170
189
  # @!attribute [rw] required_minimum_poll_interval_in_seconds
171
190
  # Sets a constraint on a session. If you specify a value of, for
172
191
  # example, 60 seconds, then the client that established the session
173
- # can't call GetLatestConfiguration more frequently then every 60
192
+ # can't call GetLatestConfiguration more frequently than every 60
174
193
  # seconds.
175
194
  # @return [Integer]
176
195
  #
@@ -191,9 +210,14 @@ module Aws::AppConfigData
191
210
  # configuration data.
192
211
  #
193
212
  # This token should only be used once in your first call to
194
- # `GetLatestConfiguration`. You MUST use the new token in the
213
+ # `GetLatestConfiguration`. You *must* use the new token in the
195
214
  # `GetLatestConfiguration` response (`NextPollConfigurationToken`) in
196
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`.
197
221
  # @return [String]
198
222
  #
199
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.7.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.7.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: 2023-01-18 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