aws-sdk-ecs 1.196.0 → 1.197.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-ecs/client.rb +271 -61
- data/lib/aws-sdk-ecs/client_api.rb +57 -0
- data/lib/aws-sdk-ecs/types.rb +440 -39
- data/lib/aws-sdk-ecs.rb +1 -1
- data/sig/client.rbs +66 -7
- data/sig/types.rbs +51 -0
- metadata +1 -1
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -16,6 +16,48 @@ module Aws::ECS
|
|
16
16
|
#
|
17
17
|
class AccessDeniedException < Aws::EmptyStructure; end
|
18
18
|
|
19
|
+
# The advanced settings for a load balancer used in blue/green
|
20
|
+
# deployments. Specify the alternate target group, listener rules, and
|
21
|
+
# IAM role required for traffic shifting during blue/green deployments.
|
22
|
+
# For more information, see [Required resources for Amazon ECS
|
23
|
+
# blue/green deployments][1] in the *Amazon Elastic Container Service
|
24
|
+
# Developer Guide*.
|
25
|
+
#
|
26
|
+
#
|
27
|
+
#
|
28
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-deployment-implementation.html
|
29
|
+
#
|
30
|
+
# @!attribute [rw] alternate_target_group_arn
|
31
|
+
# The Amazon Resource Name (ARN) of the alternate target group for
|
32
|
+
# Amazon ECS blue/green deployments.
|
33
|
+
# @return [String]
|
34
|
+
#
|
35
|
+
# @!attribute [rw] production_listener_rule
|
36
|
+
# The Amazon Resource Name (ARN) that identifies the production
|
37
|
+
# listener rule for routing production traffic.
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @!attribute [rw] test_listener_rule
|
41
|
+
# The Amazon Resource Name (ARN) that identifies the test listener
|
42
|
+
# rule or listener for routing test traffic.
|
43
|
+
# @return [String]
|
44
|
+
#
|
45
|
+
# @!attribute [rw] role_arn
|
46
|
+
# The Amazon Resource Name (ARN) of the IAM role that grants Amazon
|
47
|
+
# ECS permission to call the Elastic Load Balancing APIs for you.
|
48
|
+
# @return [String]
|
49
|
+
#
|
50
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/AdvancedConfiguration AWS API Documentation
|
51
|
+
#
|
52
|
+
class AdvancedConfiguration < Struct.new(
|
53
|
+
:alternate_target_group_arn,
|
54
|
+
:production_listener_rule,
|
55
|
+
:test_listener_rule,
|
56
|
+
:role_arn)
|
57
|
+
SENSITIVE = []
|
58
|
+
include Aws::Structure
|
59
|
+
end
|
60
|
+
|
19
61
|
# An object representing a container instance or task attachment.
|
20
62
|
#
|
21
63
|
# @!attribute [rw] id
|
@@ -2951,7 +2993,7 @@ module Aws::ECS
|
|
2951
2993
|
# ECS resources][1] in the *Amazon Elastic Container Service Developer
|
2952
2994
|
# Guide*.
|
2953
2995
|
#
|
2954
|
-
# When you use Amazon ECS managed tags, you
|
2996
|
+
# When you use Amazon ECS managed tags, you must set the
|
2955
2997
|
# `propagateTags` request parameter.
|
2956
2998
|
#
|
2957
2999
|
#
|
@@ -3966,13 +4008,50 @@ module Aws::ECS
|
|
3966
4008
|
# Information about the CloudWatch alarms.
|
3967
4009
|
# @return [Types::DeploymentAlarms]
|
3968
4010
|
#
|
4011
|
+
# @!attribute [rw] strategy
|
4012
|
+
# The deployment strategy for the service. Choose from these valid
|
4013
|
+
# values:
|
4014
|
+
#
|
4015
|
+
# * `ROLLING` - When you create a service which uses the rolling
|
4016
|
+
# update (`ROLLING`) deployment strategy, the Amazon ECS service
|
4017
|
+
# scheduler replaces the currently running tasks with new tasks. The
|
4018
|
+
# number of tasks that Amazon ECS adds or removes from the service
|
4019
|
+
# during a rolling update is controlled by the service deployment
|
4020
|
+
# configuration.
|
4021
|
+
#
|
4022
|
+
# * `BLUE_GREEN` - A blue/green deployment strategy (`BLUE_GREEN`) is
|
4023
|
+
# a release methodology that reduces downtime and risk by running
|
4024
|
+
# two identical production environments called blue and green. With
|
4025
|
+
# Amazon ECS blue/green deployments, you can validate new service
|
4026
|
+
# revisions before directing production traffic to them. This
|
4027
|
+
# approach provides a safer way to deploy changes with the ability
|
4028
|
+
# to quickly roll back if needed.
|
4029
|
+
# @return [String]
|
4030
|
+
#
|
4031
|
+
# @!attribute [rw] bake_time_in_minutes
|
4032
|
+
# The duration when both blue and green service revisions are running
|
4033
|
+
# simultaneously after the production traffic has shifted.
|
4034
|
+
#
|
4035
|
+
# You must provide this parameter when you use the `BLUE_GREEN`
|
4036
|
+
# deployment strategy.
|
4037
|
+
# @return [Integer]
|
4038
|
+
#
|
4039
|
+
# @!attribute [rw] lifecycle_hooks
|
4040
|
+
# An array of deployment lifecycle hook objects to run custom logic at
|
4041
|
+
# specific stages of the deployment lifecycle. These hooks allow you
|
4042
|
+
# to run custom logic at key points during the deployment process.
|
4043
|
+
# @return [Array<Types::DeploymentLifecycleHook>]
|
4044
|
+
#
|
3969
4045
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentConfiguration AWS API Documentation
|
3970
4046
|
#
|
3971
4047
|
class DeploymentConfiguration < Struct.new(
|
3972
4048
|
:deployment_circuit_breaker,
|
3973
4049
|
:maximum_percent,
|
3974
4050
|
:minimum_healthy_percent,
|
3975
|
-
:alarms
|
4051
|
+
:alarms,
|
4052
|
+
:strategy,
|
4053
|
+
:bake_time_in_minutes,
|
4054
|
+
:lifecycle_hooks)
|
3976
4055
|
SENSITIVE = []
|
3977
4056
|
include Aws::Structure
|
3978
4057
|
end
|
@@ -3982,49 +4061,92 @@ module Aws::ECS
|
|
3982
4061
|
# @!attribute [rw] type
|
3983
4062
|
# The deployment controller type to use.
|
3984
4063
|
#
|
3985
|
-
#
|
4064
|
+
# The deployment controller is the mechanism that determines how tasks
|
4065
|
+
# are deployed for your service. The valid options are:
|
3986
4066
|
#
|
3987
|
-
# ECS
|
4067
|
+
# * ECS
|
3988
4068
|
#
|
3989
|
-
#
|
3990
|
-
#
|
3991
|
-
#
|
3992
|
-
# service during a rolling update is controlled by adjusting the
|
3993
|
-
# minimum and maximum number of healthy tasks allowed during a
|
3994
|
-
# service deployment, as specified in the
|
3995
|
-
# [DeploymentConfiguration][1].
|
4069
|
+
# When you create a service which uses the `ECS` deployment
|
4070
|
+
# controller, you can choose between the following deployment
|
4071
|
+
# strategies:
|
3996
4072
|
#
|
3997
|
-
#
|
3998
|
-
#
|
3999
|
-
#
|
4073
|
+
# * `ROLLING`: When you create a service which uses the *rolling
|
4074
|
+
# update* (`ROLLING`) deployment strategy, the Amazon ECS service
|
4075
|
+
# scheduler replaces the currently running tasks with new tasks.
|
4076
|
+
# The number of tasks that Amazon ECS adds or removes from the
|
4077
|
+
# service during a rolling update is controlled by the service
|
4078
|
+
# deployment configuration.
|
4079
|
+
#
|
4080
|
+
# Rolling update deployments are best suited for the following
|
4081
|
+
# scenarios:
|
4082
|
+
#
|
4083
|
+
# * Gradual service updates: You need to update your service
|
4084
|
+
# incrementally without taking the entire service offline at
|
4085
|
+
# once.
|
4086
|
+
#
|
4087
|
+
# * Limited resource requirements: You want to avoid the
|
4088
|
+
# additional resource costs of running two complete environments
|
4089
|
+
# simultaneously (as required by blue/green deployments).
|
4090
|
+
#
|
4091
|
+
# * Acceptable deployment time: Your application can tolerate a
|
4092
|
+
# longer deployment process, as rolling updates replace tasks
|
4093
|
+
# one by one.
|
4094
|
+
#
|
4095
|
+
# * No need for instant roll back: Your service can tolerate a
|
4096
|
+
# rollback process that takes minutes rather than seconds.
|
4097
|
+
#
|
4098
|
+
# * Simple deployment process: You prefer a straightforward
|
4099
|
+
# deployment approach without the complexity of managing
|
4100
|
+
# multiple environments, target groups, and listeners.
|
4101
|
+
#
|
4102
|
+
# * No load balancer requirement: Your service doesn't use or
|
4103
|
+
# require a load balancer, Application Load Balancer, Network
|
4104
|
+
# Load Balancer, or Service Connect (which are required for
|
4105
|
+
# blue/green deployments).
|
4106
|
+
#
|
4107
|
+
# * Stateful applications: Your application maintains state that
|
4108
|
+
# makes it difficult to run two parallel environments.
|
4109
|
+
#
|
4110
|
+
# * Cost sensitivity: You want to minimize deployment costs by not
|
4111
|
+
# running duplicate environments during deployment.
|
4112
|
+
# Rolling updates are the default deployment strategy for services
|
4113
|
+
# and provide a balance between deployment safety and resource
|
4114
|
+
# efficiency for many common application scenarios.
|
4000
4115
|
#
|
4001
|
-
#
|
4116
|
+
# * `BLUE_GREEN`: A *blue/green* deployment strategy (`BLUE_GREEN`)
|
4117
|
+
# is a release methodology that reduces downtime and risk by
|
4118
|
+
# running two identical production environments called blue and
|
4119
|
+
# green. With Amazon ECS blue/green deployments, you can validate
|
4120
|
+
# new service revisions before directing production traffic to
|
4121
|
+
# them. This approach provides a safer way to deploy changes with
|
4122
|
+
# the ability to quickly roll back if needed.
|
4002
4123
|
#
|
4003
|
-
#
|
4004
|
-
#
|
4005
|
-
# a new deployment of a service before sending production traffic to
|
4006
|
-
# it.
|
4124
|
+
# Amazon ECS blue/green deployments are best suited for the
|
4125
|
+
# following scenarios:
|
4007
4126
|
#
|
4008
|
-
#
|
4009
|
-
#
|
4010
|
-
# *Amazon Elastic Container Service Developer Guide*.
|
4127
|
+
# * Service validation: When you need to validate new service
|
4128
|
+
# revisions before directing production traffic to them
|
4011
4129
|
#
|
4012
|
-
#
|
4130
|
+
# * Zero downtime: When your service requires zero-downtime
|
4131
|
+
# deployments
|
4013
4132
|
#
|
4014
|
-
#
|
4015
|
-
#
|
4016
|
-
# deployment process for an Amazon ECS service.
|
4133
|
+
# * Instant roll back: When you need the ability to quickly roll
|
4134
|
+
# back if issues are detected
|
4017
4135
|
#
|
4018
|
-
#
|
4019
|
-
#
|
4020
|
-
#
|
4136
|
+
# * Load balancer requirement: When your service uses Application
|
4137
|
+
# Load Balancer, Network Load Balancer, or Service Connect
|
4138
|
+
# * External
|
4021
4139
|
#
|
4140
|
+
# Use a third-party deployment controller.
|
4022
4141
|
#
|
4142
|
+
# * Blue/green deployment (powered by CodeDeploy)
|
4023
4143
|
#
|
4024
|
-
#
|
4025
|
-
#
|
4026
|
-
#
|
4027
|
-
#
|
4144
|
+
# CodeDeploy installs an updated version of the application as a new
|
4145
|
+
# replacement task set and reroutes production traffic from the
|
4146
|
+
# original application task set to the replacement task set. The
|
4147
|
+
# original task set is terminated after a successful deployment. Use
|
4148
|
+
# this deployment controller to verify a new deployment of a service
|
4149
|
+
# before sending production traffic to it.
|
4028
4150
|
# @return [String]
|
4029
4151
|
#
|
4030
4152
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentController AWS API Documentation
|
@@ -4050,6 +4172,130 @@ module Aws::ECS
|
|
4050
4172
|
include Aws::Structure
|
4051
4173
|
end
|
4052
4174
|
|
4175
|
+
# A deployment lifecycle hook runs custom logic at specific stages of
|
4176
|
+
# the deployment process. Currently, you can use Lambda functions as
|
4177
|
+
# hook targets.
|
4178
|
+
#
|
4179
|
+
# @!attribute [rw] hook_target_arn
|
4180
|
+
# The Amazon Resource Name (ARN) of the hook target. Currently, only
|
4181
|
+
# Lambda function ARNs are supported.
|
4182
|
+
#
|
4183
|
+
# You must provide this parameter when configuring a deployment
|
4184
|
+
# lifecycle hook.
|
4185
|
+
# @return [String]
|
4186
|
+
#
|
4187
|
+
# @!attribute [rw] role_arn
|
4188
|
+
# The Amazon Resource Name (ARN) of the IAM role that grants Amazon
|
4189
|
+
# ECS permission to call Lambda functions on your behalf.
|
4190
|
+
#
|
4191
|
+
# For more information, see [Permissions required for Lambda functions
|
4192
|
+
# in Amazon ECS blue/green deployments][1] in the<i> Amazon Elastic
|
4193
|
+
# Container Service Developer Guide</i>.
|
4194
|
+
#
|
4195
|
+
#
|
4196
|
+
#
|
4197
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-permissions.html
|
4198
|
+
# @return [String]
|
4199
|
+
#
|
4200
|
+
# @!attribute [rw] lifecycle_stages
|
4201
|
+
# The lifecycle stages at which to run the hook. Choose from these
|
4202
|
+
# valid values:
|
4203
|
+
#
|
4204
|
+
# * RECONCILE\_SERVICE
|
4205
|
+
#
|
4206
|
+
# This stage only happens when you start a new service deployment
|
4207
|
+
# with more than 1 service revision in an ACTIVE state.
|
4208
|
+
#
|
4209
|
+
# You can use a lifecycle hook for this stage.
|
4210
|
+
#
|
4211
|
+
# * PRE\_SCALE\_UP
|
4212
|
+
#
|
4213
|
+
# The green service revision has not started. The blue service
|
4214
|
+
# revision is handling 100% of the production traffic. There is no
|
4215
|
+
# test traffic.
|
4216
|
+
#
|
4217
|
+
# You can use a lifecycle hook for this stage.
|
4218
|
+
#
|
4219
|
+
# * SCALE\_UP
|
4220
|
+
#
|
4221
|
+
# The time when the green service revision scales up to 100% and
|
4222
|
+
# launches new tasks. The green service revision is not serving any
|
4223
|
+
# traffic at this point.
|
4224
|
+
#
|
4225
|
+
# You can't use a lifecycle hook for this stage.
|
4226
|
+
#
|
4227
|
+
# * POST\_SCALE\_UP
|
4228
|
+
#
|
4229
|
+
# The green service revision has started. The blue service revision
|
4230
|
+
# is handling 100% of the production traffic. There is no test
|
4231
|
+
# traffic.
|
4232
|
+
#
|
4233
|
+
# You can use a lifecycle hook for this stage.
|
4234
|
+
#
|
4235
|
+
# * TEST\_TRAFFIC\_SHIFT
|
4236
|
+
#
|
4237
|
+
# The blue and green service revisions are running. The blue service
|
4238
|
+
# revision handles 100% of the production traffic. The green service
|
4239
|
+
# revision is migrating from 0% to 100% of test traffic.
|
4240
|
+
#
|
4241
|
+
# You can use a lifecycle hook for this stage.
|
4242
|
+
#
|
4243
|
+
# * POST\_TEST\_TRAFFIC\_SHIFT
|
4244
|
+
#
|
4245
|
+
# The test traffic shift is complete. The green service revision
|
4246
|
+
# handles 100% of the test traffic.
|
4247
|
+
#
|
4248
|
+
# You can use a lifecycle hook for this stage.
|
4249
|
+
#
|
4250
|
+
# * PRODUCTION\_TRAFFIC\_SHIFT
|
4251
|
+
#
|
4252
|
+
# Production traffic is shifting to the green service revision. The
|
4253
|
+
# green service revision is migrating from 0% to 100% of production
|
4254
|
+
# traffic.
|
4255
|
+
#
|
4256
|
+
# You can use a lifecycle hook for this stage.
|
4257
|
+
#
|
4258
|
+
# * POST\_PRODUCTION\_TRAFFIC\_SHIFT
|
4259
|
+
#
|
4260
|
+
# The production traffic shift is complete.
|
4261
|
+
#
|
4262
|
+
# Yes
|
4263
|
+
#
|
4264
|
+
# * BAKE\_TIME
|
4265
|
+
#
|
4266
|
+
# The duration when both blue and green service revisions are
|
4267
|
+
# running simultaneously.
|
4268
|
+
#
|
4269
|
+
# You can't use a lifecycle hook for this stage.
|
4270
|
+
#
|
4271
|
+
# * CLEAN\_UP
|
4272
|
+
#
|
4273
|
+
# The blue service revision has completely scaled down to 0 running
|
4274
|
+
# tasks. The green service revision is now the production service
|
4275
|
+
# revision after this stage.
|
4276
|
+
#
|
4277
|
+
# You can't use a lifecycle hook for this stage.
|
4278
|
+
#
|
4279
|
+
# You must provide this parameter when configuring a deployment
|
4280
|
+
# lifecycle hook.
|
4281
|
+
# @return [Array<String>]
|
4282
|
+
#
|
4283
|
+
# @!attribute [rw] hook_details
|
4284
|
+
# Optionally provide details about the hook. Use this field to pass
|
4285
|
+
# custom parameters to your hook target (such as a Lambda function).
|
4286
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
4287
|
+
#
|
4288
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentLifecycleHook AWS API Documentation
|
4289
|
+
#
|
4290
|
+
class DeploymentLifecycleHook < Struct.new(
|
4291
|
+
:hook_target_arn,
|
4292
|
+
:role_arn,
|
4293
|
+
:lifecycle_stages,
|
4294
|
+
:hook_details)
|
4295
|
+
SENSITIVE = []
|
4296
|
+
include Aws::Structure
|
4297
|
+
end
|
4298
|
+
|
4053
4299
|
# @!attribute [rw] cluster
|
4054
4300
|
# The short name or full Amazon Resource Name (ARN) of the cluster
|
4055
4301
|
# that hosts the container instance to deregister. If you do not
|
@@ -4546,8 +4792,8 @@ module Aws::ECS
|
|
4546
4792
|
# @!attribute [rw] cluster
|
4547
4793
|
# The short name or full Amazon Resource Name (ARN) of the cluster
|
4548
4794
|
# that hosts the task or tasks to describe. If you do not specify a
|
4549
|
-
# cluster, the default cluster is assumed.
|
4550
|
-
#
|
4795
|
+
# cluster, the default cluster is assumed. If you do not specify a
|
4796
|
+
# value, the `default` cluster is used.
|
4551
4797
|
# @return [String]
|
4552
4798
|
#
|
4553
4799
|
# @!attribute [rw] tasks
|
@@ -6837,13 +7083,21 @@ module Aws::ECS
|
|
6837
7083
|
# traffic on the `hostPort` of the port mapping.
|
6838
7084
|
# @return [Integer]
|
6839
7085
|
#
|
7086
|
+
# @!attribute [rw] advanced_configuration
|
7087
|
+
# The advanced settings for the load balancer used in blue/green
|
7088
|
+
# deployments. Specify the alternate target group, listener rules, and
|
7089
|
+
# IAM role required for traffic shifting during blue/green
|
7090
|
+
# deployments.
|
7091
|
+
# @return [Types::AdvancedConfiguration]
|
7092
|
+
#
|
6840
7093
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/LoadBalancer AWS API Documentation
|
6841
7094
|
#
|
6842
7095
|
class LoadBalancer < Struct.new(
|
6843
7096
|
:target_group_arn,
|
6844
7097
|
:load_balancer_name,
|
6845
7098
|
:container_name,
|
6846
|
-
:container_port
|
7099
|
+
:container_port,
|
7100
|
+
:advanced_configuration)
|
6847
7101
|
SENSITIVE = []
|
6848
7102
|
include Aws::Structure
|
6849
7103
|
end
|
@@ -8937,6 +9191,24 @@ module Aws::ECS
|
|
8937
9191
|
include Aws::Structure
|
8938
9192
|
end
|
8939
9193
|
|
9194
|
+
# The resolved configuration for a service revision, which contains the
|
9195
|
+
# actual resources your service revision uses, such as which target
|
9196
|
+
# groups serve traffic.
|
9197
|
+
#
|
9198
|
+
# @!attribute [rw] load_balancers
|
9199
|
+
# The resolved load balancer configuration for the service revision.
|
9200
|
+
# This includes information about which target groups serve traffic
|
9201
|
+
# and which listener rules direct traffic to them.
|
9202
|
+
# @return [Array<Types::ServiceRevisionLoadBalancer>]
|
9203
|
+
#
|
9204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ResolvedConfiguration AWS API Documentation
|
9205
|
+
#
|
9206
|
+
class ResolvedConfiguration < Struct.new(
|
9207
|
+
:load_balancers)
|
9208
|
+
SENSITIVE = []
|
9209
|
+
include Aws::Structure
|
9210
|
+
end
|
9211
|
+
|
8940
9212
|
# Describes the resources available for a container instance.
|
8941
9213
|
#
|
8942
9214
|
# @!attribute [rw] name
|
@@ -9855,11 +10127,19 @@ module Aws::ECS
|
|
9855
10127
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html
|
9856
10128
|
# @return [String]
|
9857
10129
|
#
|
10130
|
+
# @!attribute [rw] test_traffic_rules
|
10131
|
+
# The configuration for test traffic routing rules used during
|
10132
|
+
# blue/green deployments with Amazon ECS Service Connect. This allows
|
10133
|
+
# you to route a portion of traffic to the new service revision of
|
10134
|
+
# your service for testing before shifting all production traffic.
|
10135
|
+
# @return [Types::ServiceConnectTestTrafficRules]
|
10136
|
+
#
|
9858
10137
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectClientAlias AWS API Documentation
|
9859
10138
|
#
|
9860
10139
|
class ServiceConnectClientAlias < Struct.new(
|
9861
10140
|
:port,
|
9862
|
-
:dns_name
|
10141
|
+
:dns_name,
|
10142
|
+
:test_traffic_rules)
|
9863
10143
|
SENSITIVE = []
|
9864
10144
|
include Aws::Structure
|
9865
10145
|
end
|
@@ -10076,7 +10356,7 @@ module Aws::ECS
|
|
10076
10356
|
# @return [String]
|
10077
10357
|
#
|
10078
10358
|
# @!attribute [rw] discovery_arn
|
10079
|
-
# The Amazon Resource Name (ARN) for the
|
10359
|
+
# The Amazon Resource Name (ARN) for the service in Cloud Map that
|
10080
10360
|
# matches the discovery name for this Service Connect resource. You
|
10081
10361
|
# can use this ARN in other integrations with Cloud Map. However,
|
10082
10362
|
# Service Connect can't ensure connectivity outside of Amazon ECS.
|
@@ -10091,6 +10371,71 @@ module Aws::ECS
|
|
10091
10371
|
include Aws::Structure
|
10092
10372
|
end
|
10093
10373
|
|
10374
|
+
# The header matching rules for test traffic routing in Amazon ECS
|
10375
|
+
# blue/green deployments. These rules determine how incoming requests
|
10376
|
+
# are matched based on HTTP headers to route test traffic to the new
|
10377
|
+
# service revision.
|
10378
|
+
#
|
10379
|
+
# @!attribute [rw] exact
|
10380
|
+
# The exact value that the HTTP header must match for the test traffic
|
10381
|
+
# routing rule to apply. This provides precise control over which
|
10382
|
+
# requests are routed to the new service revision during blue/green
|
10383
|
+
# deployments.
|
10384
|
+
# @return [String]
|
10385
|
+
#
|
10386
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectTestTrafficHeaderMatchRules AWS API Documentation
|
10387
|
+
#
|
10388
|
+
class ServiceConnectTestTrafficHeaderMatchRules < Struct.new(
|
10389
|
+
:exact)
|
10390
|
+
SENSITIVE = []
|
10391
|
+
include Aws::Structure
|
10392
|
+
end
|
10393
|
+
|
10394
|
+
# The HTTP header rules used to identify and route test traffic during
|
10395
|
+
# Amazon ECS blue/green deployments. These rules specify which HTTP
|
10396
|
+
# headers to examine and what values to match for routing decisions.
|
10397
|
+
#
|
10398
|
+
# @!attribute [rw] name
|
10399
|
+
# The name of the HTTP header to examine for test traffic routing.
|
10400
|
+
# Common examples include custom headers like `X-Test-Version` or
|
10401
|
+
# `X-Canary-Request` that can be used to identify test traffic.
|
10402
|
+
# @return [String]
|
10403
|
+
#
|
10404
|
+
# @!attribute [rw] value
|
10405
|
+
# The header value matching configuration that determines how the HTTP
|
10406
|
+
# header value is evaluated for test traffic routing decisions.
|
10407
|
+
# @return [Types::ServiceConnectTestTrafficHeaderMatchRules]
|
10408
|
+
#
|
10409
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectTestTrafficHeaderRules AWS API Documentation
|
10410
|
+
#
|
10411
|
+
class ServiceConnectTestTrafficHeaderRules < Struct.new(
|
10412
|
+
:name,
|
10413
|
+
:value)
|
10414
|
+
SENSITIVE = []
|
10415
|
+
include Aws::Structure
|
10416
|
+
end
|
10417
|
+
|
10418
|
+
# The test traffic routing configuration for Amazon ECS blue/green
|
10419
|
+
# deployments. This configuration allows you to define rules for routing
|
10420
|
+
# specific traffic to the new service revision during the deployment
|
10421
|
+
# process, allowing for safe testing before full production traffic
|
10422
|
+
# shift.
|
10423
|
+
#
|
10424
|
+
# @!attribute [rw] header
|
10425
|
+
# The HTTP header-based routing rules that determine which requests
|
10426
|
+
# should be routed to the new service version during blue/green
|
10427
|
+
# deployment testing. These rules provide fine-grained control over
|
10428
|
+
# test traffic routing based on request headers.
|
10429
|
+
# @return [Types::ServiceConnectTestTrafficHeaderRules]
|
10430
|
+
#
|
10431
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectTestTrafficRules AWS API Documentation
|
10432
|
+
#
|
10433
|
+
class ServiceConnectTestTrafficRules < Struct.new(
|
10434
|
+
:header)
|
10435
|
+
SENSITIVE = []
|
10436
|
+
include Aws::Structure
|
10437
|
+
end
|
10438
|
+
|
10094
10439
|
# The certificate root authority that secures your service.
|
10095
10440
|
#
|
10096
10441
|
# @!attribute [rw] aws_pca_authority_arn
|
@@ -10206,6 +10551,25 @@ module Aws::ECS
|
|
10206
10551
|
# status. For example, the circuit breaker detected a failure.
|
10207
10552
|
# @return [String]
|
10208
10553
|
#
|
10554
|
+
# @!attribute [rw] lifecycle_stage
|
10555
|
+
# The current lifecycle stage of the deployment. Possible values
|
10556
|
+
# include:
|
10557
|
+
#
|
10558
|
+
# * `SCALE_UP_IN_PROGRESS` - Creating the new (green) tasks
|
10559
|
+
#
|
10560
|
+
# * `TEST_TRAFFIC_SHIFT_IN_PROGRESS` - Shifting test traffic to the
|
10561
|
+
# new (green) tasks
|
10562
|
+
#
|
10563
|
+
# * `PRODUCTION_TRAFFIC_SHIFT_IN_PROGRESS` - Shifting production
|
10564
|
+
# traffic to the new (green) tasks
|
10565
|
+
#
|
10566
|
+
# * `BAKE_TIME_IN_PROGRESS` - The duration when both blue and green
|
10567
|
+
# service revisions are running simultaneously after the production
|
10568
|
+
# traffic has shifted
|
10569
|
+
#
|
10570
|
+
# * `CLEAN_UP_IN_PROGRESS` - Stopping the old (blue) tasks
|
10571
|
+
# @return [String]
|
10572
|
+
#
|
10209
10573
|
# @!attribute [rw] deployment_configuration
|
10210
10574
|
# Optional deployment parameters that control how many tasks run
|
10211
10575
|
# during a deployment and the ordering of stopping and starting tasks.
|
@@ -10241,6 +10605,7 @@ module Aws::ECS
|
|
10241
10605
|
:target_service_revision,
|
10242
10606
|
:status,
|
10243
10607
|
:status_reason,
|
10608
|
+
:lifecycle_stage,
|
10244
10609
|
:deployment_configuration,
|
10245
10610
|
:rollback,
|
10246
10611
|
:deployment_circuit_breaker,
|
@@ -10837,6 +11202,12 @@ module Aws::ECS
|
|
10837
11202
|
# The VPC Lattice configuration for the service revision.
|
10838
11203
|
# @return [Array<Types::VpcLatticeConfiguration>]
|
10839
11204
|
#
|
11205
|
+
# @!attribute [rw] resolved_configuration
|
11206
|
+
# The resolved configuration for the service revision which contains
|
11207
|
+
# the actual resources your service revision uses, such as which
|
11208
|
+
# target groups serve traffic.
|
11209
|
+
# @return [Types::ResolvedConfiguration]
|
11210
|
+
#
|
10840
11211
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceRevision AWS API Documentation
|
10841
11212
|
#
|
10842
11213
|
class ServiceRevision < Struct.new(
|
@@ -10857,7 +11228,32 @@ module Aws::ECS
|
|
10857
11228
|
:volume_configurations,
|
10858
11229
|
:fargate_ephemeral_storage,
|
10859
11230
|
:created_at,
|
10860
|
-
:vpc_lattice_configurations
|
11231
|
+
:vpc_lattice_configurations,
|
11232
|
+
:resolved_configuration)
|
11233
|
+
SENSITIVE = []
|
11234
|
+
include Aws::Structure
|
11235
|
+
end
|
11236
|
+
|
11237
|
+
# The resolved load balancer configuration for a service revision. This
|
11238
|
+
# includes information about which target groups serve traffic and which
|
11239
|
+
# listener rules direct traffic to them.
|
11240
|
+
#
|
11241
|
+
# @!attribute [rw] target_group_arn
|
11242
|
+
# The Amazon Resource Name (ARN) of the target group associated with
|
11243
|
+
# the service revision.
|
11244
|
+
# @return [String]
|
11245
|
+
#
|
11246
|
+
# @!attribute [rw] production_listener_rule
|
11247
|
+
# The Amazon Resource Name (ARN) of the production listener rule or
|
11248
|
+
# listener that directs traffic to the target group associated with
|
11249
|
+
# the service revision.
|
11250
|
+
# @return [String]
|
11251
|
+
#
|
11252
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceRevisionLoadBalancer AWS API Documentation
|
11253
|
+
#
|
11254
|
+
class ServiceRevisionLoadBalancer < Struct.new(
|
11255
|
+
:target_group_arn,
|
11256
|
+
:production_listener_rule)
|
10861
11257
|
SENSITIVE = []
|
10862
11258
|
include Aws::Structure
|
10863
11259
|
end
|
@@ -13544,6 +13940,10 @@ module Aws::ECS
|
|
13544
13940
|
# and stopping them before they have time to come up.
|
13545
13941
|
# @return [Integer]
|
13546
13942
|
#
|
13943
|
+
# @!attribute [rw] deployment_controller
|
13944
|
+
# The deployment controller to use for the service.
|
13945
|
+
# @return [Types::DeploymentController]
|
13946
|
+
#
|
13547
13947
|
# @!attribute [rw] enable_execute_command
|
13548
13948
|
# If `true`, this enables execute command functionality on all task
|
13549
13949
|
# containers.
|
@@ -13699,6 +14099,7 @@ module Aws::ECS
|
|
13699
14099
|
:platform_version,
|
13700
14100
|
:force_new_deployment,
|
13701
14101
|
:health_check_grace_period_seconds,
|
14102
|
+
:deployment_controller,
|
13702
14103
|
:enable_execute_command,
|
13703
14104
|
:enable_ecs_managed_tags,
|
13704
14105
|
:load_balancers,
|