ReadonlycontainerAn array dependencies defined for container startup and shutdown.
ReadonlycontainerThe name of this container
Optional ReadonlycpuThe number of cpu units reserved for the container.
Optional ReadonlycredentialThe crdential specifications for this container.
Optional ReadonlyenvironmentThe environment files for this container
ReadonlyessentialSpecifies whether the container will be marked essential.
If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, then its failure does not affect the rest of the containers in a task.
If this parameter is omitted, a container is assumed to be essential.
ReadonlyimageThe name of the image referenced by this container.
Optional ReadonlylinuxThe Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
Optional ReadonlylogThe log configuration specification for the container.
ReadonlymemoryWhether there was at least one memory limit specified in this definition
ReadonlymountThe mount points for data volumes in your container.
ReadonlynodeThe tree node.
ReadonlyportThe list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.
Optional ReadonlypseudoSpecifies whether a TTY must be allocated for this container.
ReadonlytaskThe name of the task definition that includes this container definition.
ReadonlyulimitsAn array of ulimits to set in the container.
ReadonlyvolumesThe data volumes to mount from another container in the same task definition.
Static ReadonlyCONTAINER_Static ReadonlyPROPERTY_Uniquely identifies this class.
The port the container will listen on.
The inbound rules associated with the security group the task or service will use.
This property is only used for tasks that use the awsvpc network mode.
Whether this container definition references a specific JSON field of a secret stored in Secrets Manager.
InternalAllows disabling version consistency if the user did not specify a value.
Intended for CDK asset images, as asset images are tagged based upon a hash of image inputs, meaning the image won't change if the tag didn't change, making version consistency for such containers a waste of time. Literally, as version consistency can only be achieved by slowing down deployments.
This method adds one or more container dependencies to the container.
This method adds a Docker label to the container.
This method adds an environment variable to the container.
This method adds one or more resources to the container.
This method adds a link which allows containers to communicate with each other without the need for port mappings.
This parameter is only supported if the task definition is using the bridge network mode. Warning: The --link flag is a legacy feature of Docker. It may eventually be removed.
Optionalalias: stringThis method adds one or more mount points for data volumes to the container.
This method adds one or more port mappings to the container.
This method mounts temporary disk space to the container.
This adds the correct container mountPoint and task definition volume.
This method adds a secret as environment variable to the container.
This method adds the specified statement to the IAM task execution policy in the task definition.
This method adds one or more ulimits to the container.
This method adds one or more volumes to the container.
Returns the host port for the requested container port if it exists
Returns the port mapping with the given name, if it exists.
Render this container definition to a CloudFormation object
Optional_taskDefinition: TaskDefinition[disable-awslint:ref-via-interface] (unused but kept to avoid breaking change)
Returns a string representation of this construct.
StaticisChecks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
Any object
true if x is an object created from a class which extends Construct.
A construct for creating a compliant ECS containerdefinition resource.