Class 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 for EcsAppSpec.
    • Method Detail

      • 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 of awsvpc.

        Default: reuse current network settings for ECS service.

        Parameters:
        awsvpcConfiguration - Network configuration for ECS services that have a network type of awsvpc. 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:
        build in interface software.amazon.jsii.Builder<EcsAppSpec>
        Returns:
        a newly built instance of EcsAppSpec.