@Stability(value=Experimental) public static final class ApplicationLoadBalancedTaskImageProps.Builder extends Object implements software.amazon.jsii.Builder<ApplicationLoadBalancedTaskImageProps>
ApplicationLoadBalancedTaskImageProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder image(ContainerImage image)
ApplicationLoadBalancedTaskImageProps.getImage()image - The image used to start a container. This parameter is required.
Image or taskDefinition must be specified, not both.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder containerName(String containerName)
ApplicationLoadBalancedTaskImageProps.getContainerName()containerName - The container name value to be specified in the task definition.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder containerPorts(List<? extends Number> containerPorts)
ApplicationLoadBalancedTaskImageProps.getContainerPorts()containerPorts - A list of port numbers on the container that is bound to the user-specified or automatically assigned host port.
If you are using containers in a task with the awsvpc or host network mode, exposed ports should be specified using containerPort.
If you are using containers in a task with the bridge network mode and you specify a container port and not a host port,
your container automatically receives a host port in the ephemeral port range.
Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance.
For more information, see hostPort.
this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder dockerLabels(Map<String,String> dockerLabels)
ApplicationLoadBalancedTaskImageProps.getDockerLabels()dockerLabels - A key/value map of labels to add to the container.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder enableLogging(Boolean enableLogging)
ApplicationLoadBalancedTaskImageProps.getEnableLogging()enableLogging - Flag to indicate whether to enable logging.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder environment(Map<String,String> environment)
ApplicationLoadBalancedTaskImageProps.getEnvironment()environment - The environment variables to pass to the container.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder executionRole(IRole executionRole)
ApplicationLoadBalancedTaskImageProps.getExecutionRole()executionRole - The name of the task execution IAM role that grants the Amazon ECS container agent permission to call AWS APIs on your behalf.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder family(String family)
ApplicationLoadBalancedTaskImageProps.getFamily()family - The name of a family that this task definition is registered to.
A family groups multiple versions of a task definition.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder logDriver(LogDriver logDriver)
ApplicationLoadBalancedTaskImageProps.getLogDriver()logDriver - The log driver to use.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder secrets(Map<String,? extends Secret> secrets)
ApplicationLoadBalancedTaskImageProps.getSecrets()secrets - The secrets to expose to the container as an environment variable.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps.Builder taskRole(IRole taskRole)
ApplicationLoadBalancedTaskImageProps.getTaskRole()taskRole - The name of the task IAM role that grants containers in the task permission to call AWS APIs on your behalf.this@Stability(value=Experimental) public ApplicationLoadBalancedTaskImageProps build()
build in interface software.amazon.jsii.Builder<ApplicationLoadBalancedTaskImageProps>ApplicationLoadBalancedTaskImagePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.