Skip to content

/AWS1/CL_LSACONTAINER

Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_image TYPE /AWS1/LSASTRING /AWS1/LSASTRING

The name of the image used for the container.

Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

it_command TYPE /AWS1/CL_LSASTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

The launch command for the container.

it_environment TYPE /AWS1/CL_LSAENVIRONMENT_W=>TT_ENVIRONMENT TT_ENVIRONMENT

The environment variables of the container.

it_ports TYPE /AWS1/CL_LSAPORTMAP_W=>TT_PORTMAP TT_PORTMAP

The open firewall ports of the container.


Queryable Attributes

image

The name of the image used for the container.

Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

Accessible with the following methods

Method Description
GET_IMAGE() Getter for IMAGE, with configurable default
ASK_IMAGE() Getter for IMAGE w/ exceptions if field has no value
HAS_IMAGE() Determine if IMAGE has a value

command

The launch command for the container.

Accessible with the following methods

Method Description
GET_COMMAND() Getter for COMMAND, with configurable default
ASK_COMMAND() Getter for COMMAND w/ exceptions if field has no value
HAS_COMMAND() Determine if COMMAND has a value

environment

The environment variables of the container.

Accessible with the following methods

Method Description
GET_ENVIRONMENT() Getter for ENVIRONMENT, with configurable default
ASK_ENVIRONMENT() Getter for ENVIRONMENT w/ exceptions if field has no value
HAS_ENVIRONMENT() Determine if ENVIRONMENT has a value

ports

The open firewall ports of the container.

Accessible with the following methods

Method Description
GET_PORTS() Getter for PORTS, with configurable default
ASK_PORTS() Getter for PORTS w/ exceptions if field has no value
HAS_PORTS() Determine if PORTS has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_CONTAINERMAP

TYPES TT_CONTAINERMAP TYPE HASHED TABLE OF /AWS1/CL_LSACONTAINER=>TS_CONTAINERMAP_MAPROW WITH UNIQUE KEY key
.

TS_CONTAINERMAP_MAPROW

TYPES: BEGIN OF TS_CONTAINERMAP_MAPROW,
  key TYPE /AWS1/LSACONTAINERNAME,
  value TYPE REF TO /AWS1/CL_LSACONTAINER,
END OF TS_CONTAINERMAP_MAPROW.