@Stability(value=Experimental) @Internal public static final class NetworkLoadBalancedTaskImageProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkLoadBalancedTaskImageProps
NetworkLoadBalancedTaskImageProps
software.amazon.jsii.JsiiObject.InitializationMode
NetworkLoadBalancedTaskImageProps.Builder, NetworkLoadBalancedTaskImageProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(ContainerImage image,
String containerName,
List<? extends Number> containerPorts,
Map<String,String> dockerLabels,
Boolean enableLogging,
Map<String,String> environment,
IRole executionRole,
String family,
LogDriver logDriver,
Map<String,? extends Secret> secrets,
IRole taskRole)
Constructor that initializes the object based on literal property values passed by the
NetworkLoadBalancedTaskImageProps.Builder . |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getContainerName()
(experimental) The container name value to be specified in the task definition.
|
List<Number> |
getContainerPorts()
(experimental) A list of port numbers on the container that is bound to the user-specified or automatically assigned host port.
|
Map<String,String> |
getDockerLabels()
(experimental) A key/value map of labels to add to the container.
|
Boolean |
getEnableLogging()
(experimental) Flag to indicate whether to enable logging.
|
Map<String,String> |
getEnvironment()
(experimental) The environment variables to pass to the container.
|
IRole |
getExecutionRole()
(experimental) The name of the task execution IAM role that grants the Amazon ECS container agent permission to call AWS APIs on your behalf.
|
String |
getFamily()
(experimental) The name of a family that this task definition is registered to.
|
ContainerImage |
getImage()
(experimental) The image used to start a container.
|
LogDriver |
getLogDriver()
(experimental) The log driver to use.
|
Map<String,Secret> |
getSecrets()
(experimental) The secrets to expose to the container as an environment variable.
|
IRole |
getTaskRole()
(experimental) The name of the task IAM role that grants containers in the task permission to call AWS APIs on your behalf.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(ContainerImage image, String containerName, List<? extends Number> containerPorts, Map<String,String> dockerLabels, Boolean enableLogging, Map<String,String> environment, IRole executionRole, String family, LogDriver logDriver, Map<String,? extends Secret> secrets, IRole taskRole)
NetworkLoadBalancedTaskImageProps.Builder
.public final ContainerImage getImage()
NetworkLoadBalancedTaskImageProps
Image or taskDefinition must be specified, but not both.
Default: - none
getImage
in interface NetworkLoadBalancedTaskImageProps
public final String getContainerName()
NetworkLoadBalancedTaskImageProps
Default: - none
getContainerName
in interface NetworkLoadBalancedTaskImageProps
public final List<Number> getContainerPorts()
NetworkLoadBalancedTaskImageProps
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.
Default: - [80]
getContainerPorts
in interface NetworkLoadBalancedTaskImageProps
public final Map<String,String> getDockerLabels()
NetworkLoadBalancedTaskImageProps
Default: - No labels.
getDockerLabels
in interface NetworkLoadBalancedTaskImageProps
public final Boolean getEnableLogging()
NetworkLoadBalancedTaskImageProps
Default: true
getEnableLogging
in interface NetworkLoadBalancedTaskImageProps
public final Map<String,String> getEnvironment()
NetworkLoadBalancedTaskImageProps
Default: - No environment variables.
getEnvironment
in interface NetworkLoadBalancedTaskImageProps
public final IRole getExecutionRole()
NetworkLoadBalancedTaskImageProps
Default: - No value
getExecutionRole
in interface NetworkLoadBalancedTaskImageProps
public final String getFamily()
NetworkLoadBalancedTaskImageProps
A family groups multiple versions of a task definition.
Default: - Automatically generated name.
getFamily
in interface NetworkLoadBalancedTaskImageProps
public final LogDriver getLogDriver()
NetworkLoadBalancedTaskImageProps
Default: - AwsLogDriver if enableLogging is true
getLogDriver
in interface NetworkLoadBalancedTaskImageProps
public final Map<String,Secret> getSecrets()
NetworkLoadBalancedTaskImageProps
Default: - No secret environment variables.
getSecrets
in interface NetworkLoadBalancedTaskImageProps
public final IRole getTaskRole()
NetworkLoadBalancedTaskImageProps
Default: - A task role is automatically created for you.
getTaskRole
in interface NetworkLoadBalancedTaskImageProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.