Class: AWSCDK::ECS::BaseServiceProps
- Inherits:
-
BaseServiceOptions
- Object
- BaseServiceOptions
- AWSCDK::ECS::BaseServiceProps
- Defined in:
- ecs/base_service_props.rb
Overview
Complete base service properties that are required to be supplied by the implementation of the BaseService class.
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.
-
#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.
-
#launch_type ⇒ AWSCDK::ECS::LaunchType
readonly
The launch type on which to run your service.
-
#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.
-
#service_connect_configuration ⇒ AWSCDK::ECS::ServiceConnectProps?
readonly
Configuration for Service Connect.
-
#service_name ⇒ String?
readonly
The name of 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, launch_type:) ⇒ BaseServiceProps
constructor
A new instance of BaseServiceProps.
- #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, launch_type:) ⇒ BaseServiceProps
Returns a new instance of BaseServiceProps.
31 32 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 |
# File 'ecs/base_service_props.rb', line 31 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, launch_type:) @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? @launch_type = launch_type Jsii::Type.check_type(@launch_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkxhdW5jaFR5cGUifQ==")), "launchType") end |
Instance Attribute Details
#bake_time ⇒ AWSCDK::Duration? (readonly)
Default: - none
bake time minutes for service.
90 91 92 |
# File 'ecs/base_service_props.rb', line 90 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.
97 98 99 |
# File 'ecs/base_service_props.rb', line 97 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.
102 103 104 |
# File 'ecs/base_service_props.rb', line 102 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.
110 111 112 |
# File 'ecs/base_service_props.rb', line 110 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.
115 116 117 |
# File 'ecs/base_service_props.rb', line 115 def @cloud_map_options end |
#cluster ⇒ AWSCDK::ECS::ICluster (readonly)
The name of the cluster that hosts the service.
85 86 87 |
# File 'ecs/base_service_props.rb', line 85 def cluster @cluster 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.
120 121 122 |
# File 'ecs/base_service_props.rb', line 120 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
128 129 130 |
# File 'ecs/base_service_props.rb', line 128 def deployment_controller @deployment_controller end |
#deployment_strategy ⇒ AWSCDK::ECS::DeploymentStrategy? (readonly)
Default: ROLLING
The deployment strategy to use for the service.
133 134 135 |
# File 'ecs/base_service_props.rb', line 133 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.
138 139 140 |
# File 'ecs/base_service_props.rb', line 138 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
146 147 148 |
# File 'ecs/base_service_props.rb', line 146 def @enable_ecs_managed_tags end |
#enable_execute_command ⇒ Boolean? (readonly)
Default: - undefined
Whether to enable the ability to execute into a container.
151 152 153 |
# File 'ecs/base_service_props.rb', line 151 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.
167 168 169 |
# File 'ecs/base_service_props.rb', line 167 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.
172 173 174 |
# File 'ecs/base_service_props.rb', line 172 def health_check_grace_period @health_check_grace_period end |
#launch_type ⇒ AWSCDK::ECS::LaunchType (readonly)
The launch type on which to run your service.
LaunchType will be omitted if capacity provider strategies are specified on the service.
231 232 233 |
# File 'ecs/base_service_props.rb', line 231 def launch_type @launch_type end |
#lifecycle_hooks ⇒ Array<AWSCDK::ECS::IDeploymentLifecycleHookTarget>? (readonly)
Default: - none;
The lifecycle hooks to execute during deployment stages.
177 178 179 |
# File 'ecs/base_service_props.rb', line 177 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.
184 185 186 |
# File 'ecs/base_service_props.rb', line 184 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.
189 190 191 |
# File 'ecs/base_service_props.rb', line 189 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.
194 195 196 |
# File 'ecs/base_service_props.rb', line 194 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
201 202 203 |
# File 'ecs/base_service_props.rb', line 201 def @propagate_tags 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.
206 207 208 |
# File 'ecs/base_service_props.rb', line 206 def service_connect_configuration @service_connect_configuration end |
#service_name ⇒ String? (readonly)
Default: - CloudFormation-generated name.
The name of the service.
211 212 213 |
# File 'ecs/base_service_props.rb', line 211 def service_name @service_name 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.
216 217 218 |
# File 'ecs/base_service_props.rb', line 216 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.
224 225 226 |
# File 'ecs/base_service_props.rb', line 224 def volume_configurations @volume_configurations end |
Class Method Details
.jsii_properties ⇒ Object
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'ecs/base_service_props.rb', line 233 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", :launch_type => "launchType", } end |
Instance Method Details
#to_jsii ⇒ Object
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'ecs/base_service_props.rb', line 262 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, "launchType" => @launch_type, }) result.compact end |