aws-sdk-codedeploy 1.62.0 → 1.64.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codedeploy/client.rb +92 -13
- data/lib/aws-sdk-codedeploy/client_api.rb +30 -5
- data/lib/aws-sdk-codedeploy/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-codedeploy/errors.rb +11 -0
- data/lib/aws-sdk-codedeploy/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-codedeploy/types.rb +223 -9
- data/lib/aws-sdk-codedeploy.rb +1 -1
- data/sig/client.rbs +984 -0
- data/sig/errors.rbs +242 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +1336 -0
- data/sig/waiters.rbs +23 -0
- metadata +13 -8
@@ -226,14 +226,36 @@ module Aws::CodeDeploy
|
|
226
226
|
# @return [String]
|
227
227
|
#
|
228
228
|
# @!attribute [rw] hook
|
229
|
-
#
|
229
|
+
# The name of the launch hook that CodeDeploy installed into the Auto
|
230
|
+
# Scaling group.
|
231
|
+
#
|
232
|
+
# For more information about the launch hook, see [How Amazon EC2 Auto
|
233
|
+
# Scaling works with CodeDeploy][1] in the *CodeDeploy User Guide*.
|
234
|
+
#
|
235
|
+
#
|
236
|
+
#
|
237
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors
|
238
|
+
# @return [String]
|
239
|
+
#
|
240
|
+
# @!attribute [rw] termination_hook
|
241
|
+
# The name of the termination hook that CodeDeploy installed into the
|
242
|
+
# Auto Scaling group.
|
243
|
+
#
|
244
|
+
# For more information about the termination hook, see [Enabling
|
245
|
+
# termination deployments during Auto Scaling scale-in events][1] in
|
246
|
+
# the *CodeDeploy User Guide*.
|
247
|
+
#
|
248
|
+
#
|
249
|
+
#
|
250
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors-hook-enable
|
230
251
|
# @return [String]
|
231
252
|
#
|
232
253
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoScalingGroup AWS API Documentation
|
233
254
|
#
|
234
255
|
class AutoScalingGroup < Struct.new(
|
235
256
|
:name,
|
236
|
-
:hook
|
257
|
+
:hook,
|
258
|
+
:termination_hook)
|
237
259
|
SENSITIVE = []
|
238
260
|
include Aws::Structure
|
239
261
|
end
|
@@ -747,13 +769,28 @@ module Aws::CodeDeploy
|
|
747
769
|
# `Server`, or `ECS`).
|
748
770
|
# @return [String]
|
749
771
|
#
|
772
|
+
# @!attribute [rw] zonal_config
|
773
|
+
# Configure the `ZonalConfig` object if you want CodeDeploy to deploy
|
774
|
+
# your application to one [Availability Zone][1] at a time, within an
|
775
|
+
# Amazon Web Services Region.
|
776
|
+
#
|
777
|
+
# For more information about the zonal configuration feature, see
|
778
|
+
# [zonal configuration][2] in the *CodeDeploy User Guide*.
|
779
|
+
#
|
780
|
+
#
|
781
|
+
#
|
782
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones
|
783
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config
|
784
|
+
# @return [Types::ZonalConfig]
|
785
|
+
#
|
750
786
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigInput AWS API Documentation
|
751
787
|
#
|
752
788
|
class CreateDeploymentConfigInput < Struct.new(
|
753
789
|
:deployment_config_name,
|
754
790
|
:minimum_healthy_hosts,
|
755
791
|
:traffic_routing_config,
|
756
|
-
:compute_platform
|
792
|
+
:compute_platform,
|
793
|
+
:zonal_config)
|
757
794
|
SENSITIVE = []
|
758
795
|
include Aws::Structure
|
759
796
|
end
|
@@ -901,6 +938,30 @@ module Aws::CodeDeploy
|
|
901
938
|
# optional value, both of which you define.
|
902
939
|
# @return [Array<Types::Tag>]
|
903
940
|
#
|
941
|
+
# @!attribute [rw] termination_hook_enabled
|
942
|
+
# This parameter only applies if you are using CodeDeploy with Amazon
|
943
|
+
# EC2 Auto Scaling. For more information, see [Integrating CodeDeploy
|
944
|
+
# with Amazon EC2 Auto Scaling][1] in the *CodeDeploy User Guide*.
|
945
|
+
#
|
946
|
+
# Set `terminationHookEnabled` to `true` to have CodeDeploy install a
|
947
|
+
# termination hook into your Auto Scaling group when you create a
|
948
|
+
# deployment group. When this hook is installed, CodeDeploy will
|
949
|
+
# perform termination deployments.
|
950
|
+
#
|
951
|
+
# For information about termination deployments, see [Enabling
|
952
|
+
# termination deployments during Auto Scaling scale-in events][2] in
|
953
|
+
# the *CodeDeploy User Guide*.
|
954
|
+
#
|
955
|
+
# For more information about Auto Scaling scale-in events, see the
|
956
|
+
# [Scale in][3] topic in the *Amazon EC2 Auto Scaling User Guide*.
|
957
|
+
#
|
958
|
+
#
|
959
|
+
#
|
960
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html
|
961
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors-hook-enable
|
962
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-lifecycle.html#as-lifecycle-scale-in
|
963
|
+
# @return [Boolean]
|
964
|
+
#
|
904
965
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupInput AWS API Documentation
|
905
966
|
#
|
906
967
|
class CreateDeploymentGroupInput < Struct.new(
|
@@ -921,7 +982,8 @@ module Aws::CodeDeploy
|
|
921
982
|
:ec2_tag_set,
|
922
983
|
:ecs_services,
|
923
984
|
:on_premises_tag_set,
|
924
|
-
:tags
|
985
|
+
:tags,
|
986
|
+
:termination_hook_enabled)
|
925
987
|
SENSITIVE = []
|
926
988
|
include Aws::Structure
|
927
989
|
end
|
@@ -1244,7 +1306,7 @@ module Aws::CodeDeploy
|
|
1244
1306
|
#
|
1245
1307
|
# @!attribute [rw] minimum_healthy_hosts
|
1246
1308
|
# Information about the number or percentage of minimum healthy
|
1247
|
-
#
|
1309
|
+
# instances.
|
1248
1310
|
# @return [Types::MinimumHealthyHosts]
|
1249
1311
|
#
|
1250
1312
|
# @!attribute [rw] create_time
|
@@ -1262,6 +1324,10 @@ module Aws::CodeDeploy
|
|
1262
1324
|
# platform only.
|
1263
1325
|
# @return [Types::TrafficRoutingConfig]
|
1264
1326
|
#
|
1327
|
+
# @!attribute [rw] zonal_config
|
1328
|
+
# Information about a zonal configuration.
|
1329
|
+
# @return [Types::ZonalConfig]
|
1330
|
+
#
|
1265
1331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentConfigInfo AWS API Documentation
|
1266
1332
|
#
|
1267
1333
|
class DeploymentConfigInfo < Struct.new(
|
@@ -1270,7 +1336,8 @@ module Aws::CodeDeploy
|
|
1270
1336
|
:minimum_healthy_hosts,
|
1271
1337
|
:create_time,
|
1272
1338
|
:compute_platform,
|
1273
|
-
:traffic_routing_config
|
1339
|
+
:traffic_routing_config,
|
1340
|
+
:zonal_config)
|
1274
1341
|
SENSITIVE = []
|
1275
1342
|
include Aws::Structure
|
1276
1343
|
end
|
@@ -1435,6 +1502,19 @@ module Aws::CodeDeploy
|
|
1435
1502
|
# `<clustername>:<servicename>`.
|
1436
1503
|
# @return [Array<Types::ECSService>]
|
1437
1504
|
#
|
1505
|
+
# @!attribute [rw] termination_hook_enabled
|
1506
|
+
# Indicates whether the deployment group was configured to have
|
1507
|
+
# CodeDeploy install a termination hook into an Auto Scaling group.
|
1508
|
+
#
|
1509
|
+
# For more information about the termination hook, see [How Amazon EC2
|
1510
|
+
# Auto Scaling works with CodeDeploy][1] in the *CodeDeploy User
|
1511
|
+
# Guide*.
|
1512
|
+
#
|
1513
|
+
#
|
1514
|
+
#
|
1515
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors
|
1516
|
+
# @return [Boolean]
|
1517
|
+
#
|
1438
1518
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentGroupInfo AWS API Documentation
|
1439
1519
|
#
|
1440
1520
|
class DeploymentGroupInfo < Struct.new(
|
@@ -1459,7 +1539,8 @@ module Aws::CodeDeploy
|
|
1459
1539
|
:ec2_tag_set,
|
1460
1540
|
:on_premises_tag_set,
|
1461
1541
|
:compute_platform,
|
1462
|
-
:ecs_services
|
1542
|
+
:ecs_services,
|
1543
|
+
:termination_hook_enabled)
|
1463
1544
|
SENSITIVE = []
|
1464
1545
|
include Aws::Structure
|
1465
1546
|
end
|
@@ -3197,6 +3278,12 @@ module Aws::CodeDeploy
|
|
3197
3278
|
#
|
3198
3279
|
class InvalidUpdateOutdatedInstancesOnlyValueException < Aws::EmptyStructure; end
|
3199
3280
|
|
3281
|
+
# The `ZonalConfig` object is not valid.
|
3282
|
+
#
|
3283
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InvalidZonalDeploymentConfigurationException AWS API Documentation
|
3284
|
+
#
|
3285
|
+
class InvalidZonalDeploymentConfigurationException < Aws::EmptyStructure; end
|
3286
|
+
|
3200
3287
|
# Information about a Lambda function specified in a deployment.
|
3201
3288
|
#
|
3202
3289
|
# @!attribute [rw] function_name
|
@@ -4002,7 +4089,7 @@ module Aws::CodeDeploy
|
|
4002
4089
|
include Aws::Structure
|
4003
4090
|
end
|
4004
4091
|
|
4005
|
-
# Information about minimum healthy
|
4092
|
+
# Information about the minimum number of healthy instances.
|
4006
4093
|
#
|
4007
4094
|
# @!attribute [rw] type
|
4008
4095
|
# The minimum healthy instance type:
|
@@ -4055,6 +4142,26 @@ module Aws::CodeDeploy
|
|
4055
4142
|
include Aws::Structure
|
4056
4143
|
end
|
4057
4144
|
|
4145
|
+
# Information about the minimum number of healthy instances per
|
4146
|
+
# Availability Zone.
|
4147
|
+
#
|
4148
|
+
# @!attribute [rw] type
|
4149
|
+
# The `type` associated with the `MinimumHealthyHostsPerZone` option.
|
4150
|
+
# @return [String]
|
4151
|
+
#
|
4152
|
+
# @!attribute [rw] value
|
4153
|
+
# The `value` associated with the `MinimumHealthyHostsPerZone` option.
|
4154
|
+
# @return [Integer]
|
4155
|
+
#
|
4156
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/MinimumHealthyHostsPerZone AWS API Documentation
|
4157
|
+
#
|
4158
|
+
class MinimumHealthyHostsPerZone < Struct.new(
|
4159
|
+
:type,
|
4160
|
+
:value)
|
4161
|
+
SENSITIVE = []
|
4162
|
+
include Aws::Structure
|
4163
|
+
end
|
4164
|
+
|
4058
4165
|
# Both an user ARN and an IAM session ARN were included in the request.
|
4059
4166
|
# Use only one ARN type.
|
4060
4167
|
#
|
@@ -4998,6 +5105,30 @@ module Aws::CodeDeploy
|
|
4998
5105
|
# groups.
|
4999
5106
|
# @return [Types::OnPremisesTagSet]
|
5000
5107
|
#
|
5108
|
+
# @!attribute [rw] termination_hook_enabled
|
5109
|
+
# This parameter only applies if you are using CodeDeploy with Amazon
|
5110
|
+
# EC2 Auto Scaling. For more information, see [Integrating CodeDeploy
|
5111
|
+
# with Amazon EC2 Auto Scaling][1] in the *CodeDeploy User Guide*.
|
5112
|
+
#
|
5113
|
+
# Set `terminationHookEnabled` to `true` to have CodeDeploy install a
|
5114
|
+
# termination hook into your Auto Scaling group when you update a
|
5115
|
+
# deployment group. When this hook is installed, CodeDeploy will
|
5116
|
+
# perform termination deployments.
|
5117
|
+
#
|
5118
|
+
# For information about termination deployments, see [Enabling
|
5119
|
+
# termination deployments during Auto Scaling scale-in events][2] in
|
5120
|
+
# the *CodeDeploy User Guide*.
|
5121
|
+
#
|
5122
|
+
# For more information about Auto Scaling scale-in events, see the
|
5123
|
+
# [Scale in][3] topic in the *Amazon EC2 Auto Scaling User Guide*.
|
5124
|
+
#
|
5125
|
+
#
|
5126
|
+
#
|
5127
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html
|
5128
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html#integrations-aws-auto-scaling-behaviors-hook-enable
|
5129
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-lifecycle.html#as-lifecycle-scale-in
|
5130
|
+
# @return [Boolean]
|
5131
|
+
#
|
5001
5132
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroupInput AWS API Documentation
|
5002
5133
|
#
|
5003
5134
|
class UpdateDeploymentGroupInput < Struct.new(
|
@@ -5018,7 +5149,8 @@ module Aws::CodeDeploy
|
|
5018
5149
|
:load_balancer_info,
|
5019
5150
|
:ec2_tag_set,
|
5020
5151
|
:ecs_services,
|
5021
|
-
:on_premises_tag_set
|
5152
|
+
:on_premises_tag_set,
|
5153
|
+
:termination_hook_enabled)
|
5022
5154
|
SENSITIVE = []
|
5023
5155
|
include Aws::Structure
|
5024
5156
|
end
|
@@ -5042,5 +5174,87 @@ module Aws::CodeDeploy
|
|
5042
5174
|
include Aws::Structure
|
5043
5175
|
end
|
5044
5176
|
|
5177
|
+
# Configure the `ZonalConfig` object if you want CodeDeploy to deploy
|
5178
|
+
# your application to one [Availability Zone][1] at a time, within an
|
5179
|
+
# Amazon Web Services Region. By deploying to one Availability Zone at a
|
5180
|
+
# time, you can expose your deployment to a progressively larger
|
5181
|
+
# audience as confidence in the deployment's performance and viability
|
5182
|
+
# grows. If you don't configure the `ZonalConfig` object, CodeDeploy
|
5183
|
+
# deploys your application to a random selection of hosts across a
|
5184
|
+
# Region.
|
5185
|
+
#
|
5186
|
+
# For more information about the zonal configuration feature, see [zonal
|
5187
|
+
# configuration][2] in the *CodeDeploy User Guide*.
|
5188
|
+
#
|
5189
|
+
#
|
5190
|
+
#
|
5191
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones
|
5192
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config
|
5193
|
+
#
|
5194
|
+
# @!attribute [rw] first_zone_monitor_duration_in_seconds
|
5195
|
+
# The period of time, in seconds, that CodeDeploy must wait after
|
5196
|
+
# completing a deployment to the *first* Availability Zone. CodeDeploy
|
5197
|
+
# will wait this amount of time before starting a deployment to the
|
5198
|
+
# second Availability Zone. You might set this option if you want to
|
5199
|
+
# allow extra bake time for the first Availability Zone. If you don't
|
5200
|
+
# specify a value for `firstZoneMonitorDurationInSeconds`, then
|
5201
|
+
# CodeDeploy uses the `monitorDurationInSeconds` value for the first
|
5202
|
+
# Availability Zone.
|
5203
|
+
#
|
5204
|
+
# For more information about the zonal configuration feature, see
|
5205
|
+
# [zonal configuration][1] in the *CodeDeploy User Guide*.
|
5206
|
+
#
|
5207
|
+
#
|
5208
|
+
#
|
5209
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config
|
5210
|
+
# @return [Integer]
|
5211
|
+
#
|
5212
|
+
# @!attribute [rw] monitor_duration_in_seconds
|
5213
|
+
# The period of time, in seconds, that CodeDeploy must wait after
|
5214
|
+
# completing a deployment to an Availability Zone. CodeDeploy will
|
5215
|
+
# wait this amount of time before starting a deployment to the next
|
5216
|
+
# Availability Zone. Consider adding a monitor duration to give the
|
5217
|
+
# deployment some time to prove itself (or 'bake') in one
|
5218
|
+
# Availability Zone before it is released in the next zone. If you
|
5219
|
+
# don't specify a `monitorDurationInSeconds`, CodeDeploy starts
|
5220
|
+
# deploying to the next Availability Zone immediately.
|
5221
|
+
#
|
5222
|
+
# For more information about the zonal configuration feature, see
|
5223
|
+
# [zonal configuration][1] in the *CodeDeploy User Guide*.
|
5224
|
+
#
|
5225
|
+
#
|
5226
|
+
#
|
5227
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config
|
5228
|
+
# @return [Integer]
|
5229
|
+
#
|
5230
|
+
# @!attribute [rw] minimum_healthy_hosts_per_zone
|
5231
|
+
# The number or percentage of instances that must remain available per
|
5232
|
+
# Availability Zone during a deployment. This option works in
|
5233
|
+
# conjunction with the `MinimumHealthyHosts` option. For more
|
5234
|
+
# information, see [About the minimum number of healthy hosts per
|
5235
|
+
# Availability Zone][1] in the *CodeDeploy User Guide*.
|
5236
|
+
#
|
5237
|
+
# If you don't specify the `minimumHealthyHostsPerZone` option, then
|
5238
|
+
# CodeDeploy uses a default value of `0` percent.
|
5239
|
+
#
|
5240
|
+
# For more information about the zonal configuration feature, see
|
5241
|
+
# [zonal configuration][2] in the *CodeDeploy User Guide*.
|
5242
|
+
#
|
5243
|
+
#
|
5244
|
+
#
|
5245
|
+
# [1]: https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az
|
5246
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config
|
5247
|
+
# @return [Types::MinimumHealthyHostsPerZone]
|
5248
|
+
#
|
5249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ZonalConfig AWS API Documentation
|
5250
|
+
#
|
5251
|
+
class ZonalConfig < Struct.new(
|
5252
|
+
:first_zone_monitor_duration_in_seconds,
|
5253
|
+
:monitor_duration_in_seconds,
|
5254
|
+
:minimum_healthy_hosts_per_zone)
|
5255
|
+
SENSITIVE = []
|
5256
|
+
include Aws::Structure
|
5257
|
+
end
|
5258
|
+
|
5045
5259
|
end
|
5046
5260
|
end
|