@Stability(value=Experimental) @Internal public static final class NetworkLoadBalancedTaskImageOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkLoadBalancedTaskImageOptions
NetworkLoadBalancedTaskImageOptions
software.amazon.jsii.JsiiObject.InitializationMode
NetworkLoadBalancedTaskImageOptions.Builder, NetworkLoadBalancedTaskImageOptions.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(ContainerImage image,
String containerName,
Number containerPort,
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
NetworkLoadBalancedTaskImageOptions.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.
|
Number |
getContainerPort()
(experimental) The port number 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 secret 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, Number containerPort, Map<String,String> dockerLabels, Boolean enableLogging, Map<String,String> environment, IRole executionRole, String family, LogDriver logDriver, Map<String,? extends Secret> secrets, IRole taskRole)
NetworkLoadBalancedTaskImageOptions.Builder
.public final ContainerImage getImage()
NetworkLoadBalancedTaskImageOptions
Image or taskDefinition must be specified, but not both.
Default: - none
getImage
in interface NetworkLoadBalancedTaskImageOptions
public final String getContainerName()
NetworkLoadBalancedTaskImageOptions
Default: - none
getContainerName
in interface NetworkLoadBalancedTaskImageOptions
public final Number getContainerPort()
NetworkLoadBalancedTaskImageOptions
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
getContainerPort
in interface NetworkLoadBalancedTaskImageOptions
public final Map<String,String> getDockerLabels()
NetworkLoadBalancedTaskImageOptions
Default: - No labels.
getDockerLabels
in interface NetworkLoadBalancedTaskImageOptions
public final Boolean getEnableLogging()
NetworkLoadBalancedTaskImageOptions
Default: true
getEnableLogging
in interface NetworkLoadBalancedTaskImageOptions
public final Map<String,String> getEnvironment()
NetworkLoadBalancedTaskImageOptions
Default: - No environment variables.
getEnvironment
in interface NetworkLoadBalancedTaskImageOptions
public final IRole getExecutionRole()
NetworkLoadBalancedTaskImageOptions
Default: - No value
getExecutionRole
in interface NetworkLoadBalancedTaskImageOptions
public final String getFamily()
NetworkLoadBalancedTaskImageOptions
A family groups multiple versions of a task definition.
Default: - Automatically generated name.
getFamily
in interface NetworkLoadBalancedTaskImageOptions
public final LogDriver getLogDriver()
NetworkLoadBalancedTaskImageOptions
Default: - AwsLogDriver if enableLogging is true
getLogDriver
in interface NetworkLoadBalancedTaskImageOptions
public final Map<String,Secret> getSecrets()
NetworkLoadBalancedTaskImageOptions
Default: - No secret environment variables.
getSecrets
in interface NetworkLoadBalancedTaskImageOptions
public final IRole getTaskRole()
NetworkLoadBalancedTaskImageOptions
Default: - A task role is automatically created for you.
getTaskRole
in interface NetworkLoadBalancedTaskImageOptions
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.