class Aws::Lightsail::Types::Container
Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail
container service.
@note When making an API call, you may pass Container
data as a hash: { image: "string", command: ["string"], environment: { "string" => "string", }, ports: { "string" => "HTTP", # accepts HTTP, HTTPS, TCP, UDP }, }
@!attribute [rw] 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, `:container-service-1.mystaticwebsite.1`. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, `nginx:latest` or `nginx`. @return [String]
@!attribute [rw] command
The launch command for the container. @return [Array<String>]
@!attribute [rw] environment
The environment variables of the container. @return [Hash<String,String>]
@!attribute [rw] ports
The open firewall ports of the container. @return [Hash<String,String>]
@see docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/Container AWS API Documentation
Constants
- SENSITIVE