Class EcsAppSpec.Builder
- java.lang.Object
-
- io.github.cdklabs.cdk.ecs.codedeploy.EcsAppSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcsAppSpec>
- Enclosing class:
- EcsAppSpec
@Stability(Experimental) public static final class EcsAppSpec.Builder extends Object implements software.amazon.jsii.Builder<EcsAppSpec>
(experimental) A fluent builder forEcsAppSpec.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EcsAppSpec.BuilderawsvpcConfiguration(AwsvpcConfiguration awsvpcConfiguration)(experimental) Network configuration for ECS services that have a network type ofawsvpc.EcsAppSpecbuild()EcsAppSpec.BuildercapacityProviderStrategy(List<? extends software.amazon.awscdk.services.ecs.CapacityProviderStrategy> capacityProviderStrategy)(experimental) A list of Amazon ECS capacity providers to use for the deployment.EcsAppSpec.BuildercontainerName(String containerName)(experimental) The name of the Amazon ECS container that contains your Amazon ECS application.EcsAppSpec.BuildercontainerPort(Number containerPort)(experimental) The port on the container where traffic will be routed to.static EcsAppSpec.Buildercreate()static EcsAppSpec.Buildercreate(AppSpecHooks hooks)EcsAppSpec.BuilderplatformVersion(software.amazon.awscdk.services.ecs.FargatePlatformVersion platformVersion)(experimental) The platform version of the Fargate tasks in the deployed Amazon ECS service.EcsAppSpec.BuildertaskDefinition(software.amazon.awscdk.services.ecs.ITaskDefinition taskDefinition)(experimental) The TaskDefintion to deploy to the target services.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static EcsAppSpec.Builder create(AppSpecHooks hooks)
- Parameters:
hooks-- Returns:
- a new instance of
EcsAppSpec.Builder.
-
create
@Stability(Experimental) public static EcsAppSpec.Builder create()
- Returns:
- a new instance of
EcsAppSpec.Builder.
-
containerName
@Stability(Experimental) public EcsAppSpec.Builder containerName(String containerName)
(experimental) The name of the Amazon ECS container that contains your Amazon ECS application.It must be a container specified in your Amazon ECS task definition.
- Parameters:
containerName- The name of the Amazon ECS container that contains your Amazon ECS application. This parameter is required.- Returns:
this
-
containerPort
@Stability(Experimental) public EcsAppSpec.Builder containerPort(Number containerPort)
(experimental) The port on the container where traffic will be routed to.- Parameters:
containerPort- The port on the container where traffic will be routed to. This parameter is required.- Returns:
this
-
taskDefinition
@Stability(Experimental) public EcsAppSpec.Builder taskDefinition(software.amazon.awscdk.services.ecs.ITaskDefinition taskDefinition)
(experimental) The TaskDefintion to deploy to the target services.- Parameters:
taskDefinition- The TaskDefintion to deploy to the target services. This parameter is required.- Returns:
this
-
awsvpcConfiguration
@Stability(Experimental) public EcsAppSpec.Builder awsvpcConfiguration(AwsvpcConfiguration awsvpcConfiguration)
(experimental) Network configuration for ECS services that have a network type ofawsvpc.Default: reuse current network settings for ECS service.
- Parameters:
awsvpcConfiguration- Network configuration for ECS services that have a network type ofawsvpc. This parameter is required.- Returns:
this
-
capacityProviderStrategy
@Stability(Experimental) public EcsAppSpec.Builder capacityProviderStrategy(List<? extends software.amazon.awscdk.services.ecs.CapacityProviderStrategy> capacityProviderStrategy)
(experimental) A list of Amazon ECS capacity providers to use for the deployment.Default: reuse current capcity provider strategy for ECS service.
- Parameters:
capacityProviderStrategy- A list of Amazon ECS capacity providers to use for the deployment. This parameter is required.- Returns:
this
-
platformVersion
@Stability(Experimental) public EcsAppSpec.Builder platformVersion(software.amazon.awscdk.services.ecs.FargatePlatformVersion platformVersion)
(experimental) The platform version of the Fargate tasks in the deployed Amazon ECS service.see: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
Default: LATEST
- Parameters:
platformVersion- The platform version of the Fargate tasks in the deployed Amazon ECS service. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public EcsAppSpec build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcsAppSpec>- Returns:
- a newly built instance of
EcsAppSpec.
-
-