aws-sdk-appconfig 1.64.0 → 1.65.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/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appconfig/client.rb +146 -17
- data/lib/aws-sdk-appconfig/client_api.rb +25 -25
- data/lib/aws-sdk-appconfig/types.rb +30 -33
- data/lib/aws-sdk-appconfig/waiters.rb +177 -0
- data/lib/aws-sdk-appconfig.rb +2 -1
- data/sig/client.rbs +13 -0
- data/sig/types.rbs +1 -1
- data/sig/waiters.rbs +23 -0
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f58758af1a8ed4c6eb24e97630f64543df5e0acecb86294eee9ba7e03a7dfd
|
4
|
+
data.tar.gz: 283383bf653b5017c71156715b8642491d4e373619d6a92bdc05b58afae0bc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd5586a7c60031dda8dd61005e93b977c0c5101ebffc6ca927f57d23532aa0f40b774568a17282f55d61c164201d30c29d19c2dbf072d0c38f215a46147465e
|
7
|
+
data.tar.gz: 697ba0980405d0254ba475966ea0366ce4117415345a884f89c01a34c354fcf01dc8b7cbc263d42ab79736759207577b02f5b50de65a7b2d6c58f71cd4c1b32e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.65.0
|
@@ -608,9 +608,9 @@ module Aws::AppConfig
|
|
608
608
|
# The ARN of an IAM role with permission to access the configuration at
|
609
609
|
# the specified `LocationUri`.
|
610
610
|
#
|
611
|
-
# A retrieval role ARN is not required for configurations stored in
|
612
|
-
# AppConfig hosted configuration store. It is
|
613
|
-
# sources that store your configuration.
|
611
|
+
# A retrieval role ARN is not required for configurations stored in
|
612
|
+
# CodePipeline or the AppConfig hosted configuration store. It is
|
613
|
+
# required for all other sources that store your configuration.
|
614
614
|
#
|
615
615
|
# @option params [Array<Types::Validator>] :validators
|
616
616
|
# A list of methods for validating the configuration.
|
@@ -1312,10 +1312,10 @@ module Aws::AppConfig
|
|
1312
1312
|
# The ID of the configuration profile you want to delete.
|
1313
1313
|
#
|
1314
1314
|
# @option params [String] :deletion_protection_check
|
1315
|
-
# A parameter to configure deletion protection.
|
1316
|
-
#
|
1317
|
-
#
|
1318
|
-
#
|
1315
|
+
# A parameter to configure deletion protection. Deletion protection
|
1316
|
+
# prevents a user from deleting a configuration profile if your
|
1317
|
+
# application has called either [GetLatestConfiguration][1] or for the
|
1318
|
+
# configuration profile during the specified interval.
|
1319
1319
|
#
|
1320
1320
|
# This parameter supports the following values:
|
1321
1321
|
#
|
@@ -1414,10 +1414,10 @@ module Aws::AppConfig
|
|
1414
1414
|
# delete.
|
1415
1415
|
#
|
1416
1416
|
# @option params [String] :deletion_protection_check
|
1417
|
-
# A parameter to configure deletion protection.
|
1418
|
-
#
|
1419
|
-
#
|
1420
|
-
#
|
1417
|
+
# A parameter to configure deletion protection. Deletion protection
|
1418
|
+
# prevents a user from deleting an environment if your application
|
1419
|
+
# called either [GetLatestConfiguration][1] or in the environment during
|
1420
|
+
# the specified interval.
|
1421
1421
|
#
|
1422
1422
|
# This parameter supports the following values:
|
1423
1423
|
#
|
@@ -1984,6 +1984,11 @@ module Aws::AppConfig
|
|
1984
1984
|
# resp.kms_key_identifier #=> String
|
1985
1985
|
# resp.version_label #=> String
|
1986
1986
|
#
|
1987
|
+
#
|
1988
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1989
|
+
#
|
1990
|
+
# * deployment_complete
|
1991
|
+
#
|
1987
1992
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeployment AWS API Documentation
|
1988
1993
|
#
|
1989
1994
|
# @overload get_deployment(params = {})
|
@@ -2119,6 +2124,11 @@ module Aws::AppConfig
|
|
2119
2124
|
# resp.monitors[0].alarm_arn #=> String
|
2120
2125
|
# resp.monitors[0].alarm_role_arn #=> String
|
2121
2126
|
#
|
2127
|
+
#
|
2128
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2129
|
+
#
|
2130
|
+
# * environment_ready_for_deployment
|
2131
|
+
#
|
2122
2132
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetEnvironment AWS API Documentation
|
2123
2133
|
#
|
2124
2134
|
# @overload get_environment(params = {})
|
@@ -3311,12 +3321,12 @@ module Aws::AppConfig
|
|
3311
3321
|
# Updates the value of the `DeletionProtection` parameter.
|
3312
3322
|
#
|
3313
3323
|
# @option params [Types::DeletionProtectionSettings] :deletion_protection
|
3314
|
-
# A parameter to configure deletion protection.
|
3315
|
-
#
|
3324
|
+
# A parameter to configure deletion protection. Deletion protection
|
3325
|
+
# prevents a user from deleting a configuration profile or an
|
3316
3326
|
# environment if AppConfig has called either [GetLatestConfiguration][1]
|
3317
3327
|
# or for the configuration profile or from the environment during the
|
3318
|
-
# specified interval.
|
3319
|
-
#
|
3328
|
+
# specified interval. The default interval for
|
3329
|
+
# `ProtectionPeriodInMinutes` is 60.
|
3320
3330
|
#
|
3321
3331
|
#
|
3322
3332
|
#
|
@@ -3425,6 +3435,10 @@ module Aws::AppConfig
|
|
3425
3435
|
# The ARN of an IAM role with permission to access the configuration at
|
3426
3436
|
# the specified `LocationUri`.
|
3427
3437
|
#
|
3438
|
+
# A retrieval role ARN is not required for configurations stored in
|
3439
|
+
# CodePipeline or the AppConfig hosted configuration store. It is
|
3440
|
+
# required for all other sources that store your configuration.
|
3441
|
+
#
|
3428
3442
|
# @option params [Array<Types::Validator>] :validators
|
3429
3443
|
# A list of methods for validating the configuration.
|
3430
3444
|
#
|
@@ -3901,14 +3915,129 @@ module Aws::AppConfig
|
|
3901
3915
|
tracer: tracer
|
3902
3916
|
)
|
3903
3917
|
context[:gem_name] = 'aws-sdk-appconfig'
|
3904
|
-
context[:gem_version] = '1.
|
3918
|
+
context[:gem_version] = '1.65.0'
|
3905
3919
|
Seahorse::Client::Request.new(handlers, context)
|
3906
3920
|
end
|
3907
3921
|
|
3922
|
+
# Polls an API operation until a resource enters a desired state.
|
3923
|
+
#
|
3924
|
+
# ## Basic Usage
|
3925
|
+
#
|
3926
|
+
# A waiter will call an API operation until:
|
3927
|
+
#
|
3928
|
+
# * It is successful
|
3929
|
+
# * It enters a terminal state
|
3930
|
+
# * It makes the maximum number of attempts
|
3931
|
+
#
|
3932
|
+
# In between attempts, the waiter will sleep.
|
3933
|
+
#
|
3934
|
+
# # polls in a loop, sleeping between attempts
|
3935
|
+
# client.wait_until(waiter_name, params)
|
3936
|
+
#
|
3937
|
+
# ## Configuration
|
3938
|
+
#
|
3939
|
+
# You can configure the maximum number of polling attempts, and the
|
3940
|
+
# delay (in seconds) between each polling attempt. You can pass
|
3941
|
+
# configuration as the final arguments hash.
|
3942
|
+
#
|
3943
|
+
# # poll for ~25 seconds
|
3944
|
+
# client.wait_until(waiter_name, params, {
|
3945
|
+
# max_attempts: 5,
|
3946
|
+
# delay: 5,
|
3947
|
+
# })
|
3948
|
+
#
|
3949
|
+
# ## Callbacks
|
3950
|
+
#
|
3951
|
+
# You can be notified before each polling attempt and before each
|
3952
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
3953
|
+
# it will terminate the waiter.
|
3954
|
+
#
|
3955
|
+
# started_at = Time.now
|
3956
|
+
# client.wait_until(waiter_name, params, {
|
3957
|
+
#
|
3958
|
+
# # disable max attempts
|
3959
|
+
# max_attempts: nil,
|
3960
|
+
#
|
3961
|
+
# # poll for 1 hour, instead of a number of attempts
|
3962
|
+
# before_wait: -> (attempts, response) do
|
3963
|
+
# throw :failure if Time.now - started_at > 3600
|
3964
|
+
# end
|
3965
|
+
# })
|
3966
|
+
#
|
3967
|
+
# ## Handling Errors
|
3968
|
+
#
|
3969
|
+
# When a waiter is unsuccessful, it will raise an error.
|
3970
|
+
# All of the failure errors extend from
|
3971
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
3972
|
+
#
|
3973
|
+
# begin
|
3974
|
+
# client.wait_until(...)
|
3975
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
3976
|
+
# # resource did not enter the desired state in time
|
3977
|
+
# end
|
3978
|
+
#
|
3979
|
+
# ## Valid Waiters
|
3980
|
+
#
|
3981
|
+
# The following table lists the valid waiter names, the operations they call,
|
3982
|
+
# and the default `:delay` and `:max_attempts` values.
|
3983
|
+
#
|
3984
|
+
# | waiter_name | params | :delay | :max_attempts |
|
3985
|
+
# | -------------------------------- | ------------------------ | -------- | ------------- |
|
3986
|
+
# | deployment_complete | {Client#get_deployment} | 30 | 999 |
|
3987
|
+
# | environment_ready_for_deployment | {Client#get_environment} | 30 | 999 |
|
3988
|
+
#
|
3989
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
3990
|
+
# because the waiter has entered a state that it will not transition
|
3991
|
+
# out of, preventing success.
|
3992
|
+
#
|
3993
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
3994
|
+
# maximum number of attempts have been made, and the waiter is not
|
3995
|
+
# yet successful.
|
3996
|
+
#
|
3997
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
3998
|
+
# while polling for a resource that is not expected.
|
3999
|
+
#
|
4000
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
4001
|
+
# for an unknown state.
|
4002
|
+
#
|
4003
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
4004
|
+
# @param [Symbol] waiter_name
|
4005
|
+
# @param [Hash] params ({})
|
4006
|
+
# @param [Hash] options ({})
|
4007
|
+
# @option options [Integer] :max_attempts
|
4008
|
+
# @option options [Integer] :delay
|
4009
|
+
# @option options [Proc] :before_attempt
|
4010
|
+
# @option options [Proc] :before_wait
|
4011
|
+
def wait_until(waiter_name, params = {}, options = {})
|
4012
|
+
w = waiter(waiter_name, options)
|
4013
|
+
yield(w.waiter) if block_given? # deprecated
|
4014
|
+
w.wait(params)
|
4015
|
+
end
|
4016
|
+
|
3908
4017
|
# @api private
|
3909
4018
|
# @deprecated
|
3910
4019
|
def waiter_names
|
3911
|
-
|
4020
|
+
waiters.keys
|
4021
|
+
end
|
4022
|
+
|
4023
|
+
private
|
4024
|
+
|
4025
|
+
# @param [Symbol] waiter_name
|
4026
|
+
# @param [Hash] options ({})
|
4027
|
+
def waiter(waiter_name, options = {})
|
4028
|
+
waiter_class = waiters[waiter_name]
|
4029
|
+
if waiter_class
|
4030
|
+
waiter_class.new(options.merge(client: self))
|
4031
|
+
else
|
4032
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
4033
|
+
end
|
4034
|
+
end
|
4035
|
+
|
4036
|
+
def waiters
|
4037
|
+
{
|
4038
|
+
deployment_complete: Waiters::DeploymentComplete,
|
4039
|
+
environment_ready_for_deployment: Waiters::EnvironmentReadyForDeployment
|
4040
|
+
}
|
3912
4041
|
end
|
3913
4042
|
|
3914
4043
|
class << self
|
@@ -276,9 +276,9 @@ module Aws::AppConfig
|
|
276
276
|
|
277
277
|
CreateDeploymentStrategyRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
|
278
278
|
CreateDeploymentStrategyRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
279
|
-
CreateDeploymentStrategyRequest.add_member(:deployment_duration_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, required: true, location_name: "DeploymentDurationInMinutes", metadata: {"box"=>true}))
|
279
|
+
CreateDeploymentStrategyRequest.add_member(:deployment_duration_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, required: true, location_name: "DeploymentDurationInMinutes", metadata: {"box" => true}))
|
280
280
|
CreateDeploymentStrategyRequest.add_member(:final_bake_time_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, location_name: "FinalBakeTimeInMinutes"))
|
281
|
-
CreateDeploymentStrategyRequest.add_member(:growth_factor, Shapes::ShapeRef.new(shape: GrowthFactor, required: true, location_name: "GrowthFactor", metadata: {"box"=>true}))
|
281
|
+
CreateDeploymentStrategyRequest.add_member(:growth_factor, Shapes::ShapeRef.new(shape: GrowthFactor, required: true, location_name: "GrowthFactor", metadata: {"box" => true}))
|
282
282
|
CreateDeploymentStrategyRequest.add_member(:growth_type, Shapes::ShapeRef.new(shape: GrowthType, location_name: "GrowthType"))
|
283
283
|
CreateDeploymentStrategyRequest.add_member(:replicate_to, Shapes::ShapeRef.new(shape: ReplicateTo, location_name: "ReplicateTo"))
|
284
284
|
CreateDeploymentStrategyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
@@ -292,7 +292,7 @@ module Aws::AppConfig
|
|
292
292
|
CreateEnvironmentRequest.struct_class = Types::CreateEnvironmentRequest
|
293
293
|
|
294
294
|
CreateExtensionAssociationRequest.add_member(:extension_identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "ExtensionIdentifier"))
|
295
|
-
CreateExtensionAssociationRequest.add_member(:extension_version_number, Shapes::ShapeRef.new(shape: Integer, location_name: "ExtensionVersionNumber", metadata: {"box"=>true}))
|
295
|
+
CreateExtensionAssociationRequest.add_member(:extension_version_number, Shapes::ShapeRef.new(shape: Integer, location_name: "ExtensionVersionNumber", metadata: {"box" => true}))
|
296
296
|
CreateExtensionAssociationRequest.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "ResourceIdentifier"))
|
297
297
|
CreateExtensionAssociationRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterValueMap, location_name: "Parameters"))
|
298
298
|
CreateExtensionAssociationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
@@ -303,7 +303,7 @@ module Aws::AppConfig
|
|
303
303
|
CreateExtensionRequest.add_member(:actions, Shapes::ShapeRef.new(shape: ActionsMap, required: true, location_name: "Actions"))
|
304
304
|
CreateExtensionRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "Parameters"))
|
305
305
|
CreateExtensionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
306
|
-
CreateExtensionRequest.add_member(:latest_version_number, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Latest-Version-Number", metadata: {"box"=>true}))
|
306
|
+
CreateExtensionRequest.add_member(:latest_version_number, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Latest-Version-Number", metadata: {"box" => true}))
|
307
307
|
CreateExtensionRequest.struct_class = Types::CreateExtensionRequest
|
308
308
|
|
309
309
|
CreateHostedConfigurationVersionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
@@ -311,7 +311,7 @@ module Aws::AppConfig
|
|
311
311
|
CreateHostedConfigurationVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location: "header", location_name: "Description"))
|
312
312
|
CreateHostedConfigurationVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "Content"))
|
313
313
|
CreateHostedConfigurationVersionRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: StringWithLengthBetween1And255, required: true, location: "header", location_name: "Content-Type"))
|
314
|
-
CreateHostedConfigurationVersionRequest.add_member(:latest_version_number, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Latest-Version-Number", metadata: {"box"=>true}))
|
314
|
+
CreateHostedConfigurationVersionRequest.add_member(:latest_version_number, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Latest-Version-Number", metadata: {"box" => true}))
|
315
315
|
CreateHostedConfigurationVersionRequest.add_member(:version_label, Shapes::ShapeRef.new(shape: VersionLabel, location: "header", location_name: "VersionLabel"))
|
316
316
|
CreateHostedConfigurationVersionRequest.struct_class = Types::CreateHostedConfigurationVersionRequest
|
317
317
|
CreateHostedConfigurationVersionRequest[:payload] = :content
|
@@ -337,7 +337,7 @@ module Aws::AppConfig
|
|
337
337
|
DeleteExtensionAssociationRequest.struct_class = Types::DeleteExtensionAssociationRequest
|
338
338
|
|
339
339
|
DeleteExtensionRequest.add_member(:extension_identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location: "uri", location_name: "ExtensionIdentifier"))
|
340
|
-
DeleteExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "version", metadata: {"box"=>true}))
|
340
|
+
DeleteExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "version", metadata: {"box" => true}))
|
341
341
|
DeleteExtensionRequest.struct_class = Types::DeleteExtensionRequest
|
342
342
|
|
343
343
|
DeleteHostedConfigurationVersionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
@@ -345,8 +345,8 @@ module Aws::AppConfig
|
|
345
345
|
DeleteHostedConfigurationVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "VersionNumber"))
|
346
346
|
DeleteHostedConfigurationVersionRequest.struct_class = Types::DeleteHostedConfigurationVersionRequest
|
347
347
|
|
348
|
-
DeletionProtectionSettings.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled", metadata: {"box"=>true}))
|
349
|
-
DeletionProtectionSettings.add_member(:protection_period_in_minutes, Shapes::ShapeRef.new(shape: DeletionProtectionDuration, location_name: "ProtectionPeriodInMinutes", metadata: {"box"=>true}))
|
348
|
+
DeletionProtectionSettings.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled", metadata: {"box" => true}))
|
349
|
+
DeletionProtectionSettings.add_member(:protection_period_in_minutes, Shapes::ShapeRef.new(shape: DeletionProtectionDuration, location_name: "ProtectionPeriodInMinutes", metadata: {"box" => true}))
|
350
350
|
DeletionProtectionSettings.struct_class = Types::DeletionProtectionSettings
|
351
351
|
|
352
352
|
Deployment.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, location_name: "ApplicationId"))
|
@@ -492,7 +492,7 @@ module Aws::AppConfig
|
|
492
492
|
|
493
493
|
GetDeploymentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
494
494
|
GetDeploymentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "EnvironmentId"))
|
495
|
-
GetDeploymentRequest.add_member(:deployment_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "DeploymentNumber", metadata: {"box"=>true}))
|
495
|
+
GetDeploymentRequest.add_member(:deployment_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "DeploymentNumber", metadata: {"box" => true}))
|
496
496
|
GetDeploymentRequest.struct_class = Types::GetDeploymentRequest
|
497
497
|
|
498
498
|
GetDeploymentStrategyRequest.add_member(:deployment_strategy_id, Shapes::ShapeRef.new(shape: DeploymentStrategyId, required: true, location: "uri", location_name: "DeploymentStrategyId"))
|
@@ -506,7 +506,7 @@ module Aws::AppConfig
|
|
506
506
|
GetExtensionAssociationRequest.struct_class = Types::GetExtensionAssociationRequest
|
507
507
|
|
508
508
|
GetExtensionRequest.add_member(:extension_identifier, Shapes::ShapeRef.new(shape: Identifier, required: true, location: "uri", location_name: "ExtensionIdentifier"))
|
509
|
-
GetExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "version_number", metadata: {"box"=>true}))
|
509
|
+
GetExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "version_number", metadata: {"box" => true}))
|
510
510
|
GetExtensionRequest.struct_class = Types::GetExtensionRequest
|
511
511
|
|
512
512
|
GetHostedConfigurationVersionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
@@ -553,46 +553,46 @@ module Aws::AppConfig
|
|
553
553
|
|
554
554
|
InvalidConfigurationDetailList.member = Shapes::ShapeRef.new(shape: InvalidConfigurationDetail)
|
555
555
|
|
556
|
-
ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
556
|
+
ListApplicationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
557
557
|
ListApplicationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
558
558
|
ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
|
559
559
|
|
560
560
|
ListConfigurationProfilesRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
561
|
-
ListConfigurationProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
561
|
+
ListConfigurationProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
562
562
|
ListConfigurationProfilesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
563
563
|
ListConfigurationProfilesRequest.add_member(:type, Shapes::ShapeRef.new(shape: ConfigurationProfileType, location: "querystring", location_name: "type"))
|
564
564
|
ListConfigurationProfilesRequest.struct_class = Types::ListConfigurationProfilesRequest
|
565
565
|
|
566
|
-
ListDeploymentStrategiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
566
|
+
ListDeploymentStrategiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
567
567
|
ListDeploymentStrategiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
568
568
|
ListDeploymentStrategiesRequest.struct_class = Types::ListDeploymentStrategiesRequest
|
569
569
|
|
570
570
|
ListDeploymentsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
571
571
|
ListDeploymentsRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "EnvironmentId"))
|
572
|
-
ListDeploymentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
572
|
+
ListDeploymentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
573
573
|
ListDeploymentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
574
574
|
ListDeploymentsRequest.struct_class = Types::ListDeploymentsRequest
|
575
575
|
|
576
576
|
ListEnvironmentsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
577
|
-
ListEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
577
|
+
ListEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
578
578
|
ListEnvironmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
579
579
|
ListEnvironmentsRequest.struct_class = Types::ListEnvironmentsRequest
|
580
580
|
|
581
581
|
ListExtensionAssociationsRequest.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: Arn, location: "querystring", location_name: "resource_identifier"))
|
582
582
|
ListExtensionAssociationsRequest.add_member(:extension_identifier, Shapes::ShapeRef.new(shape: Identifier, location: "querystring", location_name: "extension_identifier"))
|
583
|
-
ListExtensionAssociationsRequest.add_member(:extension_version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "extension_version_number", metadata: {"box"=>true}))
|
584
|
-
ListExtensionAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
583
|
+
ListExtensionAssociationsRequest.add_member(:extension_version_number, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "extension_version_number", metadata: {"box" => true}))
|
584
|
+
ListExtensionAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
585
585
|
ListExtensionAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
586
586
|
ListExtensionAssociationsRequest.struct_class = Types::ListExtensionAssociationsRequest
|
587
587
|
|
588
|
-
ListExtensionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
588
|
+
ListExtensionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
589
589
|
ListExtensionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
590
590
|
ListExtensionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: QueryName, location: "querystring", location_name: "name"))
|
591
591
|
ListExtensionsRequest.struct_class = Types::ListExtensionsRequest
|
592
592
|
|
593
593
|
ListHostedConfigurationVersionsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
594
594
|
ListHostedConfigurationVersionsRequest.add_member(:configuration_profile_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ConfigurationProfileId"))
|
595
|
-
ListHostedConfigurationVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box"=>true}))
|
595
|
+
ListHostedConfigurationVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "max_results", metadata: {"box" => true}))
|
596
596
|
ListHostedConfigurationVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "next_token"))
|
597
597
|
ListHostedConfigurationVersionsRequest.add_member(:version_label, Shapes::ShapeRef.new(shape: QueryName, location: "querystring", location_name: "version_label"))
|
598
598
|
ListHostedConfigurationVersionsRequest.struct_class = Types::ListHostedConfigurationVersionsRequest
|
@@ -646,8 +646,8 @@ module Aws::AppConfig
|
|
646
646
|
|
647
647
|
StopDeploymentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
648
648
|
StopDeploymentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "EnvironmentId"))
|
649
|
-
StopDeploymentRequest.add_member(:deployment_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "DeploymentNumber", metadata: {"box"=>true}))
|
650
|
-
StopDeploymentRequest.add_member(:allow_revert, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "Allow-Revert", metadata: {"box"=>true}))
|
649
|
+
StopDeploymentRequest.add_member(:deployment_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "DeploymentNumber", metadata: {"box" => true}))
|
650
|
+
StopDeploymentRequest.add_member(:allow_revert, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "Allow-Revert", metadata: {"box" => true}))
|
651
651
|
StopDeploymentRequest.struct_class = Types::StopDeploymentRequest
|
652
652
|
|
653
653
|
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
@@ -682,9 +682,9 @@ module Aws::AppConfig
|
|
682
682
|
|
683
683
|
UpdateDeploymentStrategyRequest.add_member(:deployment_strategy_id, Shapes::ShapeRef.new(shape: DeploymentStrategyId, required: true, location: "uri", location_name: "DeploymentStrategyId"))
|
684
684
|
UpdateDeploymentStrategyRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
685
|
-
UpdateDeploymentStrategyRequest.add_member(:deployment_duration_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, location_name: "DeploymentDurationInMinutes", metadata: {"box"=>true}))
|
686
|
-
UpdateDeploymentStrategyRequest.add_member(:final_bake_time_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, location_name: "FinalBakeTimeInMinutes", metadata: {"box"=>true}))
|
687
|
-
UpdateDeploymentStrategyRequest.add_member(:growth_factor, Shapes::ShapeRef.new(shape: GrowthFactor, location_name: "GrowthFactor", metadata: {"box"=>true}))
|
685
|
+
UpdateDeploymentStrategyRequest.add_member(:deployment_duration_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, location_name: "DeploymentDurationInMinutes", metadata: {"box" => true}))
|
686
|
+
UpdateDeploymentStrategyRequest.add_member(:final_bake_time_in_minutes, Shapes::ShapeRef.new(shape: MinutesBetween0And24Hours, location_name: "FinalBakeTimeInMinutes", metadata: {"box" => true}))
|
687
|
+
UpdateDeploymentStrategyRequest.add_member(:growth_factor, Shapes::ShapeRef.new(shape: GrowthFactor, location_name: "GrowthFactor", metadata: {"box" => true}))
|
688
688
|
UpdateDeploymentStrategyRequest.add_member(:growth_type, Shapes::ShapeRef.new(shape: GrowthType, location_name: "GrowthType"))
|
689
689
|
UpdateDeploymentStrategyRequest.struct_class = Types::UpdateDeploymentStrategyRequest
|
690
690
|
|
@@ -703,7 +703,7 @@ module Aws::AppConfig
|
|
703
703
|
UpdateExtensionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
704
704
|
UpdateExtensionRequest.add_member(:actions, Shapes::ShapeRef.new(shape: ActionsMap, location_name: "Actions"))
|
705
705
|
UpdateExtensionRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "Parameters"))
|
706
|
-
UpdateExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location_name: "VersionNumber", metadata: {"box"=>true}))
|
706
|
+
UpdateExtensionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, location_name: "VersionNumber", metadata: {"box" => true}))
|
707
707
|
UpdateExtensionRequest.struct_class = Types::UpdateExtensionRequest
|
708
708
|
|
709
709
|
ValidateConfigurationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
|
@@ -11,13 +11,12 @@ module Aws::AppConfig
|
|
11
11
|
module Types
|
12
12
|
|
13
13
|
# @!attribute [rw] deletion_protection
|
14
|
-
# A parameter to configure deletion protection.
|
15
|
-
#
|
16
|
-
#
|
14
|
+
# A parameter to configure deletion protection. Deletion protection
|
15
|
+
# prevents a user from deleting a configuration profile or an
|
16
|
+
# environment if AppConfig has called either
|
17
17
|
# [GetLatestConfiguration][1] or for the configuration profile or from
|
18
|
-
# the environment during the specified interval.
|
19
|
-
#
|
20
|
-
# `ProtectionPeriodInMinutes` is 60.
|
18
|
+
# the environment during the specified interval. The default interval
|
19
|
+
# for `ProtectionPeriodInMinutes` is 60.
|
21
20
|
#
|
22
21
|
#
|
23
22
|
#
|
@@ -505,8 +504,8 @@ module Aws::AppConfig
|
|
505
504
|
# at the specified `LocationUri`.
|
506
505
|
#
|
507
506
|
# A retrieval role ARN is not required for configurations stored in
|
508
|
-
# the AppConfig hosted configuration store. It is
|
509
|
-
# other sources that store your configuration.
|
507
|
+
# CodePipeline or the AppConfig hosted configuration store. It is
|
508
|
+
# required for all other sources that store your configuration.
|
510
509
|
# @return [String]
|
511
510
|
#
|
512
511
|
# @!attribute [rw] validators
|
@@ -844,10 +843,10 @@ module Aws::AppConfig
|
|
844
843
|
# @return [String]
|
845
844
|
#
|
846
845
|
# @!attribute [rw] deletion_protection_check
|
847
|
-
# A parameter to configure deletion protection.
|
848
|
-
#
|
849
|
-
#
|
850
|
-
#
|
846
|
+
# A parameter to configure deletion protection. Deletion protection
|
847
|
+
# prevents a user from deleting a configuration profile if your
|
848
|
+
# application has called either [GetLatestConfiguration][1] or for the
|
849
|
+
# configuration profile during the specified interval.
|
851
850
|
#
|
852
851
|
# This parameter supports the following values:
|
853
852
|
#
|
@@ -902,10 +901,10 @@ module Aws::AppConfig
|
|
902
901
|
# @return [String]
|
903
902
|
#
|
904
903
|
# @!attribute [rw] deletion_protection_check
|
905
|
-
# A parameter to configure deletion protection.
|
906
|
-
#
|
907
|
-
#
|
908
|
-
#
|
904
|
+
# A parameter to configure deletion protection. Deletion protection
|
905
|
+
# prevents a user from deleting an environment if your application
|
906
|
+
# called either [GetLatestConfiguration][1] or in the environment
|
907
|
+
# during the specified interval.
|
909
908
|
#
|
910
909
|
# This parameter supports the following values:
|
911
910
|
#
|
@@ -991,20 +990,15 @@ module Aws::AppConfig
|
|
991
990
|
include Aws::Structure
|
992
991
|
end
|
993
992
|
|
994
|
-
# A parameter to configure deletion protection.
|
995
|
-
#
|
993
|
+
# A parameter to configure deletion protection. Deletion protection
|
994
|
+
# prevents a user from deleting a configuration profile or an
|
996
995
|
# environment if AppConfig has called either [GetLatestConfiguration][1]
|
997
996
|
# or for the configuration profile or from the environment during the
|
998
997
|
# specified interval.
|
999
998
|
#
|
1000
|
-
#
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
#
|
1004
|
-
# * The default interval specified by `ProtectionPeriodInMinutes` is 60.
|
1005
|
-
#
|
1006
|
-
# * `DeletionProtectionCheck` skips configuration profiles and
|
1007
|
-
# environments that were created in the past hour.
|
999
|
+
# The default interval specified by `ProtectionPeriodInMinutes` is 60.
|
1000
|
+
# `DeletionProtectionCheck` skips configuration profiles and
|
1001
|
+
# environments that were created in the past hour.
|
1008
1002
|
#
|
1009
1003
|
#
|
1010
1004
|
#
|
@@ -2436,7 +2430,7 @@ module Aws::AppConfig
|
|
2436
2430
|
:tags,
|
2437
2431
|
:kms_key_identifier,
|
2438
2432
|
:dynamic_extension_parameters)
|
2439
|
-
SENSITIVE = []
|
2433
|
+
SENSITIVE = [:dynamic_extension_parameters]
|
2440
2434
|
include Aws::Structure
|
2441
2435
|
end
|
2442
2436
|
|
@@ -2506,13 +2500,12 @@ module Aws::AppConfig
|
|
2506
2500
|
end
|
2507
2501
|
|
2508
2502
|
# @!attribute [rw] deletion_protection
|
2509
|
-
# A parameter to configure deletion protection.
|
2510
|
-
#
|
2511
|
-
#
|
2503
|
+
# A parameter to configure deletion protection. Deletion protection
|
2504
|
+
# prevents a user from deleting a configuration profile or an
|
2505
|
+
# environment if AppConfig has called either
|
2512
2506
|
# [GetLatestConfiguration][1] or for the configuration profile or from
|
2513
|
-
# the environment during the specified interval.
|
2514
|
-
#
|
2515
|
-
# `ProtectionPeriodInMinutes` is 60.
|
2507
|
+
# the environment during the specified interval. The default interval
|
2508
|
+
# for `ProtectionPeriodInMinutes` is 60.
|
2516
2509
|
#
|
2517
2510
|
#
|
2518
2511
|
#
|
@@ -2568,6 +2561,10 @@ module Aws::AppConfig
|
|
2568
2561
|
# @!attribute [rw] retrieval_role_arn
|
2569
2562
|
# The ARN of an IAM role with permission to access the configuration
|
2570
2563
|
# at the specified `LocationUri`.
|
2564
|
+
#
|
2565
|
+
# A retrieval role ARN is not required for configurations stored in
|
2566
|
+
# CodePipeline or the AppConfig hosted configuration store. It is
|
2567
|
+
# required for all other sources that store your configuration.
|
2571
2568
|
# @return [String]
|
2572
2569
|
#
|
2573
2570
|
# @!attribute [rw] validators
|
@@ -0,0 +1,177 @@
|
|
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
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::AppConfig
|
13
|
+
# Waiters are utility methods that poll for a particular state to occur
|
14
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
15
|
+
# interval defined for the service client.
|
16
|
+
#
|
17
|
+
# For a list of operations that can be waited for and the
|
18
|
+
# client methods called for each operation, see the table below or the
|
19
|
+
# {Client#wait_until} field documentation for the {Client}.
|
20
|
+
#
|
21
|
+
# # Invoking a Waiter
|
22
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
23
|
+
# is the waiter name, which is specific to the service client and indicates
|
24
|
+
# which operation is being waited for. The second parameter is a hash of
|
25
|
+
# parameters that are passed to the client method called by the waiter,
|
26
|
+
# which varies according to the waiter name.
|
27
|
+
#
|
28
|
+
# # Wait Failures
|
29
|
+
# To catch errors in a waiter, use WaiterFailed,
|
30
|
+
# as shown in the following example.
|
31
|
+
#
|
32
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
33
|
+
# puts "failed waiting for instance running: #{error.message}
|
34
|
+
# end
|
35
|
+
#
|
36
|
+
# # Configuring a Waiter
|
37
|
+
# Each waiter has a default polling interval and a maximum number of
|
38
|
+
# attempts it will make before returning control to your program.
|
39
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
40
|
+
# in your `#wait_until` call.
|
41
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
42
|
+
#
|
43
|
+
# client.wait_until(...) do |w|
|
44
|
+
# w.max_attempts = 5
|
45
|
+
# w.delay = 5
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# To disable wait failures, set the value of either of these parameters
|
49
|
+
# to `nil`.
|
50
|
+
#
|
51
|
+
# # Extending a Waiter
|
52
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
53
|
+
# triggered before each polling attempt and before waiting.
|
54
|
+
#
|
55
|
+
# The following example implements an exponential backoff in a waiter
|
56
|
+
# by doubling the amount of time to wait on every attempt.
|
57
|
+
#
|
58
|
+
# client.wait_until(...) do |w|
|
59
|
+
# w.interval = 0 # disable normal sleep
|
60
|
+
# w.before_wait do |n, resp|
|
61
|
+
# sleep(n ** 2)
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
# # Available Waiters
|
66
|
+
#
|
67
|
+
# The following table lists the valid waiter names, the operations they call,
|
68
|
+
# and the default `:delay` and `:max_attempts` values.
|
69
|
+
#
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | -------------------------------- | ------------------------ | -------- | ------------- |
|
72
|
+
# | deployment_complete | {Client#get_deployment} | 30 | 999 |
|
73
|
+
# | environment_ready_for_deployment | {Client#get_environment} | 30 | 999 |
|
74
|
+
#
|
75
|
+
module Waiters
|
76
|
+
|
77
|
+
class DeploymentComplete
|
78
|
+
|
79
|
+
# @param [Hash] options
|
80
|
+
# @option options [required, Client] :client
|
81
|
+
# @option options [Integer] :max_attempts (999)
|
82
|
+
# @option options [Integer] :delay (30)
|
83
|
+
# @option options [Proc] :before_attempt
|
84
|
+
# @option options [Proc] :before_wait
|
85
|
+
def initialize(options)
|
86
|
+
@client = options.fetch(:client)
|
87
|
+
@waiter = Aws::Waiters::Waiter.new({
|
88
|
+
max_attempts: 999,
|
89
|
+
delay: 30,
|
90
|
+
poller: Aws::Waiters::Poller.new(
|
91
|
+
operation_name: :get_deployment,
|
92
|
+
acceptors: [
|
93
|
+
{
|
94
|
+
"state" => "success",
|
95
|
+
"matcher" => "path",
|
96
|
+
"argument" => "state",
|
97
|
+
"expected" => "COMPLETE"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"state" => "failure",
|
101
|
+
"matcher" => "path",
|
102
|
+
"argument" => "state",
|
103
|
+
"expected" => "ROLLED_BACK"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"state" => "failure",
|
107
|
+
"matcher" => "path",
|
108
|
+
"argument" => "state",
|
109
|
+
"expected" => "REVERTED"
|
110
|
+
}
|
111
|
+
]
|
112
|
+
)
|
113
|
+
}.merge(options))
|
114
|
+
end
|
115
|
+
|
116
|
+
# @option (see Client#get_deployment)
|
117
|
+
# @return (see Client#get_deployment)
|
118
|
+
def wait(params = {})
|
119
|
+
@waiter.wait(client: @client, params: params)
|
120
|
+
end
|
121
|
+
|
122
|
+
# @api private
|
123
|
+
attr_reader :waiter
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
class EnvironmentReadyForDeployment
|
128
|
+
|
129
|
+
# @param [Hash] options
|
130
|
+
# @option options [required, Client] :client
|
131
|
+
# @option options [Integer] :max_attempts (999)
|
132
|
+
# @option options [Integer] :delay (30)
|
133
|
+
# @option options [Proc] :before_attempt
|
134
|
+
# @option options [Proc] :before_wait
|
135
|
+
def initialize(options)
|
136
|
+
@client = options.fetch(:client)
|
137
|
+
@waiter = Aws::Waiters::Waiter.new({
|
138
|
+
max_attempts: 999,
|
139
|
+
delay: 30,
|
140
|
+
poller: Aws::Waiters::Poller.new(
|
141
|
+
operation_name: :get_environment,
|
142
|
+
acceptors: [
|
143
|
+
{
|
144
|
+
"state" => "success",
|
145
|
+
"matcher" => "path",
|
146
|
+
"argument" => "state",
|
147
|
+
"expected" => "ReadyForDeployment"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"state" => "failure",
|
151
|
+
"matcher" => "path",
|
152
|
+
"argument" => "state",
|
153
|
+
"expected" => "RolledBack"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"state" => "failure",
|
157
|
+
"matcher" => "path",
|
158
|
+
"argument" => "state",
|
159
|
+
"expected" => "Reverted"
|
160
|
+
}
|
161
|
+
]
|
162
|
+
)
|
163
|
+
}.merge(options))
|
164
|
+
end
|
165
|
+
|
166
|
+
# @option (see Client#get_environment)
|
167
|
+
# @return (see Client#get_environment)
|
168
|
+
def wait(params = {})
|
169
|
+
@waiter.wait(client: @client, params: params)
|
170
|
+
end
|
171
|
+
|
172
|
+
# @api private
|
173
|
+
attr_reader :waiter
|
174
|
+
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
data/lib/aws-sdk-appconfig.rb
CHANGED
@@ -49,12 +49,13 @@ module Aws::AppConfig
|
|
49
49
|
end
|
50
50
|
autoload :Client, 'aws-sdk-appconfig/client'
|
51
51
|
autoload :Errors, 'aws-sdk-appconfig/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-appconfig/waiters'
|
52
53
|
autoload :Resource, 'aws-sdk-appconfig/resource'
|
53
54
|
autoload :EndpointParameters, 'aws-sdk-appconfig/endpoint_parameters'
|
54
55
|
autoload :EndpointProvider, 'aws-sdk-appconfig/endpoint_provider'
|
55
56
|
autoload :Endpoints, 'aws-sdk-appconfig/endpoints'
|
56
57
|
|
57
|
-
GEM_VERSION = '1.
|
58
|
+
GEM_VERSION = '1.65.0'
|
58
59
|
|
59
60
|
end
|
60
61
|
|
data/sig/client.rbs
CHANGED
@@ -829,6 +829,19 @@ module Aws
|
|
829
829
|
configuration_version: ::String
|
830
830
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
831
831
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
832
|
+
|
833
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppConfig/Client.html#wait_until-instance_method
|
834
|
+
def wait_until: (:deployment_complete waiter_name,
|
835
|
+
application_id: ::String,
|
836
|
+
environment_id: ::String,
|
837
|
+
deployment_number: ::Integer
|
838
|
+
) -> Client::_GetDeploymentResponseSuccess
|
839
|
+
| (:deployment_complete waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetDeploymentResponseSuccess
|
840
|
+
| (:environment_ready_for_deployment waiter_name,
|
841
|
+
application_id: ::String,
|
842
|
+
environment_id: ::String
|
843
|
+
) -> Client::_GetEnvironmentResponseSuccess
|
844
|
+
| (:environment_ready_for_deployment waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetEnvironmentResponseSuccess
|
832
845
|
end
|
833
846
|
end
|
834
847
|
end
|
data/sig/types.rbs
CHANGED
@@ -583,7 +583,7 @@ module Aws::AppConfig
|
|
583
583
|
attr_accessor tags: ::Hash[::String, ::String]
|
584
584
|
attr_accessor kms_key_identifier: ::String
|
585
585
|
attr_accessor dynamic_extension_parameters: ::Hash[::String, ::String]
|
586
|
-
SENSITIVE: []
|
586
|
+
SENSITIVE: [:dynamic_extension_parameters]
|
587
587
|
end
|
588
588
|
|
589
589
|
class StopDeploymentRequest
|
data/sig/waiters.rbs
CHANGED
@@ -8,6 +8,29 @@
|
|
8
8
|
module Aws
|
9
9
|
module AppConfig
|
10
10
|
module Waiters
|
11
|
+
|
12
|
+
class DeploymentComplete
|
13
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
14
|
+
| (?Hash[Symbol, untyped]) -> void
|
15
|
+
|
16
|
+
def wait: (
|
17
|
+
application_id: ::String,
|
18
|
+
environment_id: ::String,
|
19
|
+
deployment_number: ::Integer
|
20
|
+
) -> Client::_GetDeploymentResponseSuccess
|
21
|
+
| (Hash[Symbol, untyped]) -> Client::_GetDeploymentResponseSuccess
|
22
|
+
end
|
23
|
+
|
24
|
+
class EnvironmentReadyForDeployment
|
25
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
26
|
+
| (?Hash[Symbol, untyped]) -> void
|
27
|
+
|
28
|
+
def wait: (
|
29
|
+
application_id: ::String,
|
30
|
+
environment_id: ::String
|
31
|
+
) -> Client::_GetEnvironmentResponseSuccess
|
32
|
+
| (Hash[Symbol, untyped]) -> Client::_GetEnvironmentResponseSuccess
|
33
|
+
end
|
11
34
|
end
|
12
35
|
end
|
13
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-appconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.65.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: aws-sdk-core
|
@@ -66,6 +65,7 @@ files:
|
|
66
65
|
- lib/aws-sdk-appconfig/plugins/endpoints.rb
|
67
66
|
- lib/aws-sdk-appconfig/resource.rb
|
68
67
|
- lib/aws-sdk-appconfig/types.rb
|
68
|
+
- lib/aws-sdk-appconfig/waiters.rb
|
69
69
|
- sig/client.rbs
|
70
70
|
- sig/errors.rbs
|
71
71
|
- sig/resource.rbs
|
@@ -77,7 +77,6 @@ licenses:
|
|
77
77
|
metadata:
|
78
78
|
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-appconfig
|
79
79
|
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-appconfig/CHANGELOG.md
|
80
|
-
post_install_message:
|
81
80
|
rdoc_options: []
|
82
81
|
require_paths:
|
83
82
|
- lib
|
@@ -92,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
91
|
- !ruby/object:Gem::Version
|
93
92
|
version: '0'
|
94
93
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
96
|
-
signing_key:
|
94
|
+
rubygems_version: 3.6.7
|
97
95
|
specification_version: 4
|
98
96
|
summary: AWS SDK for Ruby - AppConfig
|
99
97
|
test_files: []
|