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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.Ec2ServiceProps
Ec2ServiceProps.Builder, Ec2ServiceProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(Ec2ServiceProps.Builder builder) Constructor that initializes the object based on literal property values passed by theEc2ServiceProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal BooleanSpecifies whether the task's elastic network interface receives a public IP address.Whether to use Availability Zone rebalancing for the service.final Durationbake time minutes for service.final List<CapacityProviderStrategy> A list of Capacity Provider strategies used to place a service.final DeploymentCircuitBreakerWhether to enable the deployment circuit breaker.final CloudMapOptionsThe options for configuring an Amazon ECS service to use service discovery.final IClusterThe name of the cluster that hosts the service.final BooleanSpecifies whether the service will use the daemon scheduling strategy.final DeploymentAlarmConfigThe 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.final DeploymentControllerSpecifies which deployment controller to use for the service.final DeploymentStrategyThe deployment strategy to use for the service.final NumberThe desired number of instantiations of the task definition to keep running on the service.final BooleanSpecifies whether to enable Amazon ECS managed tags for the tasks within the service.final BooleanWhether to enable the ability to execute into a container.final DurationThe 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.The lifecycle hooks to execute during deployment stages.final NumberThe 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 NumberThe 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 PropagatedTagSourceSpecifies whether to propagate the tags from the task definition or the service to the tasks in the service.final List<ISecurityGroup> The security groups to associate with the service.final ServiceConnectPropsConfiguration for Service Connect.final StringThe name of the service.final TaskDefinitionThe task definition to use for tasks in the service.final TaskDefinitionRevisionRevision number for the task definition orlatestto use the latest active task revision.final List<ServiceManagedVolume> Configuration details for a volume used by the service.final SubnetSelectionThe subnets to associate with the service.final inthashCode()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:Ec2ServicePropsThe task definition to use for tasks in the service.[disable-awslint:ref-via-interface]
- Specified by:
getTaskDefinitionin interfaceEc2ServiceProps
-
getAssignPublicIp
Description copied from interface:Ec2ServicePropsSpecifies 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:
getAssignPublicIpin interfaceEc2ServiceProps
-
getAvailabilityZoneRebalancing
Description copied from interface:Ec2ServicePropsWhether to use Availability Zone rebalancing for the service.If enabled:
maxHealthyPercentmust be greater than 100;daemonmust be false; if there are anyplacementStrategies, the first must be "spread across Availability Zones"; there must be noplacementConstraintsusingattribute:ecs.availability-zone, and the service must not be a target of a Classic Load Balancer.Default: AvailabilityZoneRebalancing.ENABLED
- Specified by:
getAvailabilityZoneRebalancingin interfaceEc2ServiceProps- See Also:
-
getDaemon
Description copied from interface:Ec2ServicePropsSpecifies 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 or any task placement strategies.
Default: false
- Specified by:
getDaemonin interfaceEc2ServiceProps
-
getPlacementConstraints
Description copied from interface:Ec2ServicePropsThe placement constraints to use for tasks in the service.For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
- Specified by:
getPlacementConstraintsin interfaceEc2ServiceProps
-
getPlacementStrategies
Description copied from interface:Ec2ServicePropsThe placement strategies to use for tasks in the service.For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
- Specified by:
getPlacementStrategiesin interfaceEc2ServiceProps
-
getSecurityGroups
Description copied from interface:Ec2ServicePropsThe 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:
getSecurityGroupsin interfaceEc2ServiceProps
-
getVpcSubnets
Description copied from interface:Ec2ServicePropsThe 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:
getVpcSubnetsin interfaceEc2ServiceProps
-
getCluster
Description copied from interface:BaseServiceOptionsThe name of the cluster that hosts the service.- Specified by:
getClusterin interfaceBaseServiceOptions
-
getBakeTime
Description copied from interface:BaseServiceOptionsbake time minutes for service.Default: - none
- Specified by:
getBakeTimein interfaceBaseServiceOptions
-
getCapacityProviderStrategies
Description copied from interface:BaseServiceOptionsA list of Capacity Provider strategies used to place a service.Default: - undefined
- Specified by:
getCapacityProviderStrategiesin interfaceBaseServiceOptions
-
getCircuitBreaker
Description copied from interface:BaseServiceOptionsWhether to enable the deployment circuit breaker.If this property is defined, circuit breaker will be implicitly enabled.
Default: - disabled
- Specified by:
getCircuitBreakerin interfaceBaseServiceOptions
-
getCloudMapOptions
Description copied from interface:BaseServiceOptionsThe options for configuring an Amazon ECS service to use service discovery.Default: - AWS Cloud Map service discovery is not enabled.
- Specified by:
getCloudMapOptionsin interfaceBaseServiceOptions
-
getDeploymentAlarms
Description copied from interface:BaseServiceOptionsThe 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.Default: - No alarms will be monitored during deployment.
- Specified by:
getDeploymentAlarmsin interfaceBaseServiceOptions
-
getDeploymentController
Description copied from interface:BaseServiceOptionsSpecifies which deployment controller to use for the service.For more information, see Amazon ECS Deployment Types
Default: - Rolling update (ECS)
- Specified by:
getDeploymentControllerin interfaceBaseServiceOptions
-
getDeploymentStrategy
Description copied from interface:BaseServiceOptionsThe deployment strategy to use for the service.Default: ROLLING
- Specified by:
getDeploymentStrategyin interfaceBaseServiceOptions
-
getDesiredCount
Description copied from interface:BaseServiceOptionsThe 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:
getDesiredCountin interfaceBaseServiceOptions
-
getEnableECSManagedTags
Description copied from interface:BaseServiceOptionsSpecifies 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:
getEnableECSManagedTagsin interfaceBaseServiceOptions
-
getEnableExecuteCommand
Description copied from interface:BaseServiceOptionsWhether to enable the ability to execute into a container.Default: - undefined
- Specified by:
getEnableExecuteCommandin interfaceBaseServiceOptions
-
getHealthCheckGracePeriod
Description copied from interface:BaseServiceOptionsThe 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:
getHealthCheckGracePeriodin interfaceBaseServiceOptions
-
getLifecycleHooks
Description copied from interface:BaseServiceOptionsThe lifecycle hooks to execute during deployment stages.Default: - none;
- Specified by:
getLifecycleHooksin interfaceBaseServiceOptions
-
getMaxHealthyPercent
Description copied from interface:BaseServiceOptionsThe 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:
getMaxHealthyPercentin interfaceBaseServiceOptions
-
getMinHealthyPercent
Description copied from interface:BaseServiceOptionsThe 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:
getMinHealthyPercentin interfaceBaseServiceOptions
-
getPropagateTags
Description copied from interface:BaseServiceOptionsSpecifies 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:
getPropagateTagsin interfaceBaseServiceOptions
-
getServiceConnectConfiguration
Description copied from interface:BaseServiceOptionsConfiguration for Service Connect.Default: No ports are advertised via Service Connect on this service, and the service cannot make requests to other services via Service Connect.
- Specified by:
getServiceConnectConfigurationin interfaceBaseServiceOptions
-
getServiceName
Description copied from interface:BaseServiceOptionsThe name of the service.Default: - CloudFormation-generated name.
- Specified by:
getServiceNamein interfaceBaseServiceOptions
-
getTaskDefinitionRevision
Description copied from interface:BaseServiceOptionsRevision number for the task definition orlatestto use the latest active task revision.Default: - Uses the revision of the passed task definition deployed by CloudFormation
- Specified by:
getTaskDefinitionRevisionin interfaceBaseServiceOptions
-
getVolumeConfigurations
Description copied from interface:BaseServiceOptionsConfiguration details for a volume used by the service.This allows you to specify details about the EBS volume that can be attched to ECS tasks.
Default: - undefined
- Specified by:
getVolumeConfigurationsin interfaceBaseServiceOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-