Class Ec2ServiceProps.Jsii$Proxy
- All Implemented Interfaces:
BaseServiceOptions
,Ec2ServiceProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
Ec2ServiceProps
Ec2ServiceProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.Ec2ServiceProps
Ec2ServiceProps.Builder, Ec2ServiceProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(Ec2ServiceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theEc2ServiceProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Boolean
Specifies whether the task's elastic network interface receives a public IP address.final List<CapacityProviderStrategy>
A list of Capacity Provider strategies used to place a service.final DeploymentCircuitBreaker
Whether to enable the deployment circuit breaker.final CloudMapOptions
The options for configuring an Amazon ECS service to use service discovery.final ICluster
The name of the cluster that hosts the service.final Boolean
Specifies whether the service will use the daemon scheduling strategy.final DeploymentController
Specifies which deployment controller to use for the service.final Number
The desired number of instantiations of the task definition to keep running on the service.final Boolean
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.final Boolean
Whether to enable the ability to execute into a container.final Duration
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.final Number
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.final Number
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.final List<PlacementConstraint>
The placement constraints to use for tasks in the service.final List<PlacementStrategy>
The placement strategies to use for tasks in the service.final PropagatedTagSource
Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.final PropagatedTagSource
(deprecated) Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.final ISecurityGroup
(deprecated) The security groups to associate with the service.final List<ISecurityGroup>
The security groups to associate with the service.final String
The name of the service.final TaskDefinition
The task definition to use for tasks in the service.final SubnetSelection
The subnets to associate with the service.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theEc2ServiceProps.Builder
.
-
-
Method Details
-
getTaskDefinition
Description copied from interface:Ec2ServiceProps
The task definition to use for tasks in the service.[disable-awslint:ref-via-interface]
- Specified by:
getTaskDefinition
in interfaceEc2ServiceProps
-
getAssignPublicIp
Description copied from interface:Ec2ServiceProps
Specifies whether the task's elastic network interface receives a public IP address.If true, each task will receive a public IP address.
This property is only used for tasks that use the awsvpc network mode.
Default: false
- Specified by:
getAssignPublicIp
in interfaceEc2ServiceProps
-
getDaemon
Description copied from interface:Ec2ServiceProps
Specifies whether the service will use the 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 orany task placement strategies.
Default: false
- Specified by:
getDaemon
in interfaceEc2ServiceProps
-
getPlacementConstraints
Description copied from interface:Ec2ServiceProps
The placement constraints to use for tasks in the service.For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
- Specified by:
getPlacementConstraints
in interfaceEc2ServiceProps
-
getPlacementStrategies
Description copied from interface:Ec2ServiceProps
The placement strategies to use for tasks in the service.For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
- Specified by:
getPlacementStrategies
in interfaceEc2ServiceProps
-
getSecurityGroup
Description copied from interface:Ec2ServiceProps
(deprecated) The security groups to associate with the service.If you do not specify a security group, a new security group is created.
This property is only used for tasks that use the awsvpc network mode.
Default: - A new security group is created.
- Specified by:
getSecurityGroup
in interfaceEc2ServiceProps
-
getSecurityGroups
Description copied from interface:Ec2ServiceProps
The security groups to associate with the service.If you do not specify a security group, a new security group is created.
This property is only used for tasks that use the awsvpc network mode.
Default: - A new security group is created.
- Specified by:
getSecurityGroups
in interfaceEc2ServiceProps
-
getVpcSubnets
Description copied from interface:Ec2ServiceProps
The subnets to associate with the service.This property is only used for tasks that use the awsvpc network mode.
Default: - Public subnets if `assignPublicIp` is set, otherwise the first available one of Private, Isolated, Public, in that order.
- Specified by:
getVpcSubnets
in interfaceEc2ServiceProps
-
getCluster
Description copied from interface:BaseServiceOptions
The name of the cluster that hosts the service.- Specified by:
getCluster
in interfaceBaseServiceOptions
-
getCapacityProviderStrategies
Description copied from interface:BaseServiceOptions
A list of Capacity Provider strategies used to place a service.Default: - undefined
- Specified by:
getCapacityProviderStrategies
in interfaceBaseServiceOptions
-
getCircuitBreaker
Description copied from interface:BaseServiceOptions
Whether to enable the deployment circuit breaker.If this property is defined, circuit breaker will be implicitly enabled.
Default: - disabled
- Specified by:
getCircuitBreaker
in interfaceBaseServiceOptions
-
getCloudMapOptions
Description copied from interface:BaseServiceOptions
The options for configuring an Amazon ECS service to use service discovery.Default: - AWS Cloud Map service discovery is not enabled.
- Specified by:
getCloudMapOptions
in interfaceBaseServiceOptions
-
getDeploymentController
Description copied from interface:BaseServiceOptions
Specifies which deployment controller to use for the service.For more information, see Amazon ECS Deployment Types
Default: - Rolling update (ECS)
- Specified by:
getDeploymentController
in interfaceBaseServiceOptions
-
getDesiredCount
Description copied from interface:BaseServiceOptions
The desired number of instantiations of the task definition to keep running on the service.Default: - When creating the service, default is 1; when updating the service, default uses the current task number.
- Specified by:
getDesiredCount
in interfaceBaseServiceOptions
-
getEnableECSManagedTags
Description copied from interface:BaseServiceOptions
Specifies whether to enable Amazon ECS managed tags for the tasks within the service.For more information, see Tagging Your Amazon ECS Resources
Default: false
- Specified by:
getEnableECSManagedTags
in interfaceBaseServiceOptions
-
getEnableExecuteCommand
Description copied from interface:BaseServiceOptions
Whether to enable the ability to execute into a container.Default: - undefined
- Specified by:
getEnableExecuteCommand
in interfaceBaseServiceOptions
-
getHealthCheckGracePeriod
Description copied from interface:BaseServiceOptions
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.Default: - defaults to 60 seconds if at least one load balancer is in-use and it is not already set
- Specified by:
getHealthCheckGracePeriod
in interfaceBaseServiceOptions
-
getMaxHealthyPercent
Description copied from interface:BaseServiceOptions
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.Default: - 100 if daemon, otherwise 200
- Specified by:
getMaxHealthyPercent
in interfaceBaseServiceOptions
-
getMinHealthyPercent
Description copied from interface:BaseServiceOptions
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.Default: - 0 if daemon, otherwise 50
- Specified by:
getMinHealthyPercent
in interfaceBaseServiceOptions
-
getPropagateTags
Description copied from interface:BaseServiceOptions
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
Default: PropagatedTagSource.NONE
- Specified by:
getPropagateTags
in interfaceBaseServiceOptions
-
getPropagateTaskTagsFrom
Description copied from interface:BaseServiceOptions
(deprecated) Specifies whether to propagate the tags from the task definition or the service to the tasks in the service.Tags can only be propagated to the tasks within the service during service creation.
Default: PropagatedTagSource.NONE
- Specified by:
getPropagateTaskTagsFrom
in interfaceBaseServiceOptions
-
getServiceName
Description copied from interface:BaseServiceOptions
The name of the service.Default: - CloudFormation-generated name.
- Specified by:
getServiceName
in interfaceBaseServiceOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-