Struct rusoto_lightsail::Container [−][src]
pub struct Container { pub command: Option<Vec<String>>, pub environment: Option<HashMap<String, String>>, pub image: Option<String>, pub ports: Option<HashMap<String, String>>, }
Expand description
Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.
Fields
command: Option<Vec<String>>
The launch command for the container.
environment: Option<HashMap<String, String>>
The environment variables of the container.
image: Option<String>
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
.
ports: Option<HashMap<String, String>>
The open firewall ports of the container.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Container
impl UnwindSafe for Container
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self