Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Container = Container' {}
- newContainer :: Container
- container_image :: Lens' Container (Maybe Text)
- container_command :: Lens' Container (Maybe [Text])
- container_environment :: Lens' Container (Maybe (HashMap Text Text))
- container_ports :: Lens' Container (Maybe (HashMap Text ContainerServiceProtocol))
Documentation
Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.
See: newContainer
smart constructor.
Container' | |
|
Instances
newContainer :: Container Source #
Create a value of Container
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:image:Container'
, container_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
.
$sel:command:Container'
, container_command
- The launch command for the container.
$sel:environment:Container'
, container_environment
- The environment variables of the container.
$sel:ports:Container'
, container_ports
- The open firewall ports of the container.
container_image :: Lens' Container (Maybe Text) Source #
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
.
container_environment :: Lens' Container (Maybe (HashMap Text Text)) Source #
The environment variables of the container.
container_ports :: Lens' Container (Maybe (HashMap Text ContainerServiceProtocol)) Source #
The open firewall ports of the container.