Class: AWSCDK::ECS::ExternalServiceProps
- Inherits:
-
BaseServiceOptions
- Object
- BaseServiceOptions
- AWSCDK::ECS::ExternalServiceProps
- Defined in:
- ecs/external_service_props.rb
Overview
The properties for defining a service using the External launch type.
Instance Attribute Summary collapse
-
#bake_time ⇒ AWSCDK::Duration?
readonly
bake time minutes for service.
-
#canary_configuration ⇒ AWSCDK::ECS::TrafficShiftConfig?
readonly
Configuration for canary deployment strategy.
-
#capacity_provider_strategies ⇒ Array<AWSCDK::ECS::CapacityProviderStrategy>?
readonly
A list of Capacity Provider strategies used to place a service.
-
#circuit_breaker ⇒ AWSCDK::ECS::DeploymentCircuitBreaker?
readonly
Whether to enable the deployment circuit breaker.
-
#cloud_map_options ⇒ AWSCDK::ECS::CloudMapOptions?
readonly
The options for configuring an Amazon ECS service to use service discovery.
-
#cluster ⇒ AWSCDK::ECS::ICluster
readonly
The name of the cluster that hosts the service.
-
#daemon ⇒ Boolean?
readonly
By default, service use REPLICA scheduling strategy, this parameter enable DAEMON scheduling strategy.
-
#deployment_alarms ⇒ AWSCDK::ECS::DeploymentAlarmConfig?
readonly
The alarm(s) to monitor during deployment, and behavior to apply if at least one enters a state of alarm during the deployment or bake time.
-
#deployment_controller ⇒ AWSCDK::ECS::DeploymentController?
readonly
Specifies which deployment controller to use for the service.
-
#deployment_strategy ⇒ AWSCDK::ECS::DeploymentStrategy?
readonly
The deployment strategy to use for the service.
-
#desired_count ⇒ Numeric?
readonly
The desired number of instantiations of the task definition to keep running on the service.
-
#enable_ecs_managed_tags ⇒ Boolean?
readonly
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
-
#enable_execute_command ⇒ Boolean?
readonly
Whether to enable the ability to execute into a container.
-
#force_new_deployment ⇒ AWSCDK::ECS::ForceNewDeployment?
readonly
Configuration for forcing a new deployment of the service.
-
#health_check_grace_period ⇒ AWSCDK::Duration?
readonly
The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
-
#lifecycle_hooks ⇒ Array<AWSCDK::ECS::IDeploymentLifecycleHookTarget>?
readonly
The lifecycle hooks to execute during deployment stages.
-
#linear_configuration ⇒ AWSCDK::ECS::TrafficShiftConfig?
readonly
Configuration for linear deployment strategy.
-
#max_healthy_percent ⇒ Numeric?
readonly
The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.
-
#min_healthy_percent ⇒ Numeric?
readonly
The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.
-
#propagate_tags ⇒ AWSCDK::ECS::PropagatedTagSource?
readonly
Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
The security groups to associate with the service.
-
#service_connect_configuration ⇒ AWSCDK::ECS::ServiceConnectProps?
readonly
Configuration for Service Connect.
-
#service_name ⇒ String?
readonly
The name of the service.
-
#task_definition ⇒ AWSCDK::ECS::TaskDefinition
readonly
The task definition to use for tasks in the service.
-
#task_definition_revision ⇒ AWSCDK::ECS::TaskDefinitionRevision?
readonly
Revision number for the task definition or
latestto use the latest active task revision. -
#volume_configurations ⇒ Array<AWSCDK::ECS::ServiceManagedVolume>?
readonly
Configuration details for a volume used by the service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster:, bake_time: nil, canary_configuration: nil, capacity_provider_strategies: nil, circuit_breaker: nil, cloud_map_options: nil, deployment_alarms: nil, deployment_controller: nil, deployment_strategy: nil, desired_count: nil, enable_ecs_managed_tags: nil, enable_execute_command: nil, force_new_deployment: nil, health_check_grace_period: nil, lifecycle_hooks: nil, linear_configuration: nil, max_healthy_percent: nil, min_healthy_percent: nil, propagate_tags: nil, service_connect_configuration: nil, service_name: nil, task_definition_revision: nil, volume_configurations: nil, task_definition:, daemon: nil, security_groups: nil) ⇒ ExternalServiceProps
constructor
A new instance of ExternalServiceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster:, bake_time: nil, canary_configuration: nil, capacity_provider_strategies: nil, circuit_breaker: nil, cloud_map_options: nil, deployment_alarms: nil, deployment_controller: nil, deployment_strategy: nil, desired_count: nil, enable_ecs_managed_tags: nil, enable_execute_command: nil, force_new_deployment: nil, health_check_grace_period: nil, lifecycle_hooks: nil, linear_configuration: nil, max_healthy_percent: nil, min_healthy_percent: nil, propagate_tags: nil, service_connect_configuration: nil, service_name: nil, task_definition_revision: nil, volume_configurations: nil, task_definition:, daemon: nil, security_groups: nil) ⇒ ExternalServiceProps
Returns a new instance of ExternalServiceProps.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'ecs/external_service_props.rb', line 33 def initialize(cluster:, bake_time: nil, canary_configuration: nil, capacity_provider_strategies: nil, circuit_breaker: nil, cloud_map_options: nil, deployment_alarms: nil, deployment_controller: nil, deployment_strategy: nil, desired_count: nil, enable_ecs_managed_tags: nil, enable_execute_command: nil, force_new_deployment: nil, health_check_grace_period: nil, lifecycle_hooks: nil, linear_configuration: nil, max_healthy_percent: nil, min_healthy_percent: nil, propagate_tags: nil, service_connect_configuration: nil, service_name: nil, task_definition_revision: nil, volume_configurations: nil, task_definition:, daemon: nil, security_groups: nil) @cluster = cluster Jsii::Type.check_type(@cluster, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLklDbHVzdGVyIn0=")), "cluster") @bake_time = bake_time Jsii::Type.check_type(@bake_time, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "bakeTime") unless @bake_time.nil? @canary_configuration = canary_configuration.is_a?(Hash) ? ::AWSCDK::ECS::TrafficShiftConfig.new(**canary_configuration.transform_keys(&:to_sym)) : canary_configuration Jsii::Type.check_type(@canary_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlRyYWZmaWNTaGlmdENvbmZpZyJ9")), "canaryConfiguration") unless @canary_configuration.nil? @capacity_provider_strategies = capacity_provider_strategies.is_a?(Array) ? capacity_provider_strategies.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::ECS::CapacityProviderStrategy.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : capacity_provider_strategies Jsii::Type.check_type(@capacity_provider_strategies, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2FwYWNpdHlQcm92aWRlclN0cmF0ZWd5In0sImtpbmQiOiJhcnJheSJ9fQ==")), "capacityProviderStrategies") unless @capacity_provider_strategies.nil? @circuit_breaker = circuit_breaker.is_a?(Hash) ? ::AWSCDK::ECS::DeploymentCircuitBreaker.new(**circuit_breaker.transform_keys(&:to_sym)) : circuit_breaker Jsii::Type.check_type(@circuit_breaker, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkRlcGxveW1lbnRDaXJjdWl0QnJlYWtlciJ9")), "circuitBreaker") unless @circuit_breaker.nil? @cloud_map_options = .is_a?(Hash) ? ::AWSCDK::ECS::CloudMapOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@cloud_map_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkNsb3VkTWFwT3B0aW9ucyJ9")), "cloudMapOptions") unless @cloud_map_options.nil? @deployment_alarms = deployment_alarms.is_a?(Hash) ? ::AWSCDK::ECS::DeploymentAlarmConfig.new(**deployment_alarms.transform_keys(&:to_sym)) : deployment_alarms Jsii::Type.check_type(@deployment_alarms, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkRlcGxveW1lbnRBbGFybUNvbmZpZyJ9")), "deploymentAlarms") unless @deployment_alarms.nil? @deployment_controller = deployment_controller.is_a?(Hash) ? ::AWSCDK::ECS::DeploymentController.new(**deployment_controller.transform_keys(&:to_sym)) : deployment_controller Jsii::Type.check_type(@deployment_controller, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkRlcGxveW1lbnRDb250cm9sbGVyIn0=")), "deploymentController") unless @deployment_controller.nil? @deployment_strategy = deployment_strategy Jsii::Type.check_type(@deployment_strategy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkRlcGxveW1lbnRTdHJhdGVneSJ9")), "deploymentStrategy") unless @deployment_strategy.nil? @desired_count = desired_count Jsii::Type.check_type(@desired_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "desiredCount") unless @desired_count.nil? @enable_ecs_managed_tags = Jsii::Type.check_type(@enable_ecs_managed_tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableECSManagedTags") unless @enable_ecs_managed_tags.nil? @enable_execute_command = enable_execute_command Jsii::Type.check_type(@enable_execute_command, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableExecuteCommand") unless @enable_execute_command.nil? @force_new_deployment = force_new_deployment.is_a?(Hash) ? ::AWSCDK::ECS::ForceNewDeployment.new(**force_new_deployment.transform_keys(&:to_sym)) : force_new_deployment Jsii::Type.check_type(@force_new_deployment, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkZvcmNlTmV3RGVwbG95bWVudCJ9")), "forceNewDeployment") unless @force_new_deployment.nil? @health_check_grace_period = health_check_grace_period Jsii::Type.check_type(@health_check_grace_period, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "healthCheckGracePeriod") unless @health_check_grace_period.nil? @lifecycle_hooks = lifecycle_hooks Jsii::Type.check_type(@lifecycle_hooks, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuSURlcGxveW1lbnRMaWZlY3ljbGVIb29rVGFyZ2V0In0sImtpbmQiOiJhcnJheSJ9fQ==")), "lifecycleHooks") unless @lifecycle_hooks.nil? @linear_configuration = linear_configuration.is_a?(Hash) ? ::AWSCDK::ECS::TrafficShiftConfig.new(**linear_configuration.transform_keys(&:to_sym)) : linear_configuration Jsii::Type.check_type(@linear_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlRyYWZmaWNTaGlmdENvbmZpZyJ9")), "linearConfiguration") unless @linear_configuration.nil? @max_healthy_percent = max_healthy_percent Jsii::Type.check_type(@max_healthy_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxHealthyPercent") unless @max_healthy_percent.nil? @min_healthy_percent = min_healthy_percent Jsii::Type.check_type(@min_healthy_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minHealthyPercent") unless @min_healthy_percent.nil? @propagate_tags = Jsii::Type.check_type(@propagate_tags, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlByb3BhZ2F0ZWRUYWdTb3VyY2UifQ==")), "propagateTags") unless @propagate_tags.nil? @service_connect_configuration = service_connect_configuration.is_a?(Hash) ? ::AWSCDK::ECS::ServiceConnectProps.new(**service_connect_configuration.transform_keys(&:to_sym)) : service_connect_configuration Jsii::Type.check_type(@service_connect_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlNlcnZpY2VDb25uZWN0UHJvcHMifQ==")), "serviceConnectConfiguration") unless @service_connect_configuration.nil? @service_name = service_name Jsii::Type.check_type(@service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceName") unless @service_name.nil? @task_definition_revision = task_definition_revision Jsii::Type.check_type(@task_definition_revision, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlRhc2tEZWZpbml0aW9uUmV2aXNpb24ifQ==")), "taskDefinitionRevision") unless @task_definition_revision.nil? @volume_configurations = volume_configurations Jsii::Type.check_type(@volume_configurations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuU2VydmljZU1hbmFnZWRWb2x1bWUifSwia2luZCI6ImFycmF5In19")), "volumeConfigurations") unless @volume_configurations.nil? @task_definition = task_definition Jsii::Type.check_type(@task_definition, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlRhc2tEZWZpbml0aW9uIn0=")), "taskDefinition") @daemon = daemon Jsii::Type.check_type(@daemon, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "daemon") unless @daemon.nil? @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? end |
Instance Attribute Details
#bake_time ⇒ AWSCDK::Duration? (readonly)
Default: - none
bake time minutes for service.
96 97 98 |
# File 'ecs/external_service_props.rb', line 96 def bake_time @bake_time end |
#canary_configuration ⇒ AWSCDK::ECS::TrafficShiftConfig? (readonly)
Default: - no canary configuration
Configuration for canary deployment strategy.
Only valid when deploymentStrategy is set to CANARY.
103 104 105 |
# File 'ecs/external_service_props.rb', line 103 def canary_configuration @canary_configuration end |
#capacity_provider_strategies ⇒ Array<AWSCDK::ECS::CapacityProviderStrategy>? (readonly)
Default: - undefined
A list of Capacity Provider strategies used to place a service.
108 109 110 |
# File 'ecs/external_service_props.rb', line 108 def capacity_provider_strategies @capacity_provider_strategies end |
#circuit_breaker ⇒ AWSCDK::ECS::DeploymentCircuitBreaker? (readonly)
Default: - disabled
Whether to enable the deployment circuit breaker.
If this property is defined, circuit breaker will be implicitly enabled.
116 117 118 |
# File 'ecs/external_service_props.rb', line 116 def circuit_breaker @circuit_breaker end |
#cloud_map_options ⇒ AWSCDK::ECS::CloudMapOptions? (readonly)
Default: - AWS Cloud Map service discovery is not enabled.
The options for configuring an Amazon ECS service to use service discovery.
121 122 123 |
# File 'ecs/external_service_props.rb', line 121 def @cloud_map_options end |
#cluster ⇒ AWSCDK::ECS::ICluster (readonly)
The name of the cluster that hosts the service.
91 92 93 |
# File 'ecs/external_service_props.rb', line 91 def cluster @cluster end |
#daemon ⇒ Boolean? (readonly)
Default: false
By default, service use REPLICA scheduling strategy, this parameter enable DAEMON scheduling strategy.
If true, the service scheduler deploys exactly one task on each container instance in your cluster.
When you are using this strategy, do not specify a desired number of tasks or any task placement strategies. Tasks using the Fargate launch type or the CODE_DEPLOY or EXTERNAL deployment controller types don't support the DAEMON scheduling strategy.
246 247 248 |
# File 'ecs/external_service_props.rb', line 246 def daemon @daemon end |
#deployment_alarms ⇒ AWSCDK::ECS::DeploymentAlarmConfig? (readonly)
Default: - No alarms will be monitored during deployment.
The alarm(s) to monitor during deployment, and behavior to apply if at least one enters a state of alarm during the deployment or bake time.
126 127 128 |
# File 'ecs/external_service_props.rb', line 126 def deployment_alarms @deployment_alarms end |
#deployment_controller ⇒ AWSCDK::ECS::DeploymentController? (readonly)
Default: - Rolling update (ECS)
Specifies which deployment controller to use for the service.
For more information, see Amazon ECS Deployment Types
134 135 136 |
# File 'ecs/external_service_props.rb', line 134 def deployment_controller @deployment_controller end |
#deployment_strategy ⇒ AWSCDK::ECS::DeploymentStrategy? (readonly)
Default: ROLLING
The deployment strategy to use for the service.
139 140 141 |
# File 'ecs/external_service_props.rb', line 139 def deployment_strategy @deployment_strategy end |
#desired_count ⇒ Numeric? (readonly)
Default: - When creating the service, default is 1; when updating the service, default uses the current task number.
The desired number of instantiations of the task definition to keep running on the service.
144 145 146 |
# File 'ecs/external_service_props.rb', line 144 def desired_count @desired_count end |
#enable_ecs_managed_tags ⇒ Boolean? (readonly)
Default: false
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
For more information, see Tagging Your Amazon ECS Resources
152 153 154 |
# File 'ecs/external_service_props.rb', line 152 def @enable_ecs_managed_tags end |
#enable_execute_command ⇒ Boolean? (readonly)
Default: - undefined
Whether to enable the ability to execute into a container.
157 158 159 |
# File 'ecs/external_service_props.rb', line 157 def enable_execute_command @enable_execute_command end |
#force_new_deployment ⇒ AWSCDK::ECS::ForceNewDeployment? (readonly)
Default: - no forced deployment
Configuration for forcing a new deployment of the service.
By default, deployments aren't forced. You can use this option to start
a new deployment with no service definition changes. For example, you can
update a service's tasks to use a newer Docker image with the same
image/tag combination (my_image:latest) or to roll Fargate tasks onto
a newer platform version.
This is equivalent to calling the force_new_deployment() method, but allows
you to configure it declaratively at construction time, including the ability
to explicitly disable it with enabled: false.
173 174 175 |
# File 'ecs/external_service_props.rb', line 173 def force_new_deployment @force_new_deployment end |
#health_check_grace_period ⇒ AWSCDK::Duration? (readonly)
Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
178 179 180 |
# File 'ecs/external_service_props.rb', line 178 def health_check_grace_period @health_check_grace_period end |
#lifecycle_hooks ⇒ Array<AWSCDK::ECS::IDeploymentLifecycleHookTarget>? (readonly)
Default: - none;
The lifecycle hooks to execute during deployment stages.
183 184 185 |
# File 'ecs/external_service_props.rb', line 183 def lifecycle_hooks @lifecycle_hooks end |
#linear_configuration ⇒ AWSCDK::ECS::TrafficShiftConfig? (readonly)
Default: - no linear configuration
Configuration for linear deployment strategy.
Only valid when deploymentStrategy is set to LINEAR.
190 191 192 |
# File 'ecs/external_service_props.rb', line 190 def linear_configuration @linear_configuration end |
#max_healthy_percent ⇒ Numeric? (readonly)
Default: - 100 if daemon, otherwise 200
The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment.
195 196 197 |
# File 'ecs/external_service_props.rb', line 195 def max_healthy_percent @max_healthy_percent end |
#min_healthy_percent ⇒ Numeric? (readonly)
Default: - 0 if daemon, otherwise 50
The minimum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that must continue to run and remain healthy during a deployment.
200 201 202 |
# File 'ecs/external_service_props.rb', line 200 def min_healthy_percent @min_healthy_percent end |
#propagate_tags ⇒ AWSCDK::ECS::PropagatedTagSource? (readonly)
Default: PropagatedTagSource.NONE
Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.
Valid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION or PropagatedTagSource.NONE
207 208 209 |
# File 'ecs/external_service_props.rb', line 207 def @propagate_tags end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - A new security group is created.
The security groups to associate with the service.
If you do not specify a security group, a new security group is created.
253 254 255 |
# File 'ecs/external_service_props.rb', line 253 def security_groups @security_groups end |
#service_connect_configuration ⇒ AWSCDK::ECS::ServiceConnectProps? (readonly)
Default: No ports are advertised via Service Connect on this service, and the service cannot make requests to other services via Service Connect.
Configuration for Service Connect.
212 213 214 |
# File 'ecs/external_service_props.rb', line 212 def service_connect_configuration @service_connect_configuration end |
#service_name ⇒ String? (readonly)
Default: - CloudFormation-generated name.
The name of the service.
217 218 219 |
# File 'ecs/external_service_props.rb', line 217 def service_name @service_name end |
#task_definition ⇒ AWSCDK::ECS::TaskDefinition (readonly)
The task definition to use for tasks in the service.
[disable-awslint:ref-via-interface]
236 237 238 |
# File 'ecs/external_service_props.rb', line 236 def task_definition @task_definition end |
#task_definition_revision ⇒ AWSCDK::ECS::TaskDefinitionRevision? (readonly)
Default: - Uses the revision of the passed task definition deployed by CloudFormation
Revision number for the task definition or latest to use the latest active task revision.
222 223 224 |
# File 'ecs/external_service_props.rb', line 222 def task_definition_revision @task_definition_revision end |
#volume_configurations ⇒ Array<AWSCDK::ECS::ServiceManagedVolume>? (readonly)
Default: - undefined
Configuration details for a volume used by the service.
This allows you to specify details about the EBS volume that can be attached to ECS tasks.
230 231 232 |
# File 'ecs/external_service_props.rb', line 230 def volume_configurations @volume_configurations end |
Class Method Details
.jsii_properties ⇒ Object
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'ecs/external_service_props.rb', line 255 def self.jsii_properties { :cluster => "cluster", :bake_time => "bakeTime", :canary_configuration => "canaryConfiguration", :capacity_provider_strategies => "capacityProviderStrategies", :circuit_breaker => "circuitBreaker", :cloud_map_options => "cloudMapOptions", :deployment_alarms => "deploymentAlarms", :deployment_controller => "deploymentController", :deployment_strategy => "deploymentStrategy", :desired_count => "desiredCount", :enable_ecs_managed_tags => "enableECSManagedTags", :enable_execute_command => "enableExecuteCommand", :force_new_deployment => "forceNewDeployment", :health_check_grace_period => "healthCheckGracePeriod", :lifecycle_hooks => "lifecycleHooks", :linear_configuration => "linearConfiguration", :max_healthy_percent => "maxHealthyPercent", :min_healthy_percent => "minHealthyPercent", :propagate_tags => "propagateTags", :service_connect_configuration => "serviceConnectConfiguration", :service_name => "serviceName", :task_definition_revision => "taskDefinitionRevision", :volume_configurations => "volumeConfigurations", :task_definition => "taskDefinition", :daemon => "daemon", :security_groups => "securityGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'ecs/external_service_props.rb', line 286 def to_jsii result = {} result.merge!(super) result.merge!({ "cluster" => @cluster, "bakeTime" => @bake_time, "canaryConfiguration" => @canary_configuration, "capacityProviderStrategies" => @capacity_provider_strategies, "circuitBreaker" => @circuit_breaker, "cloudMapOptions" => @cloud_map_options, "deploymentAlarms" => @deployment_alarms, "deploymentController" => @deployment_controller, "deploymentStrategy" => @deployment_strategy, "desiredCount" => @desired_count, "enableECSManagedTags" => @enable_ecs_managed_tags, "enableExecuteCommand" => @enable_execute_command, "forceNewDeployment" => @force_new_deployment, "healthCheckGracePeriod" => @health_check_grace_period, "lifecycleHooks" => @lifecycle_hooks, "linearConfiguration" => @linear_configuration, "maxHealthyPercent" => @max_healthy_percent, "minHealthyPercent" => @min_healthy_percent, "propagateTags" => @propagate_tags, "serviceConnectConfiguration" => @service_connect_configuration, "serviceName" => @service_name, "taskDefinitionRevision" => @task_definition_revision, "volumeConfigurations" => @volume_configurations, "taskDefinition" => @task_definition, "daemon" => @daemon, "securityGroups" => @security_groups, }) result.compact end |