| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.Types.Container
Description
Synopsis
- data Container = Container' {}
- newContainer :: Container
- container_command :: Lens' Container (Maybe [Text])
- container_environment :: Lens' Container (Maybe (HashMap Text Text))
- container_image :: Lens' Container (Maybe 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.
Constructors
| Container' | |
Fields
| |
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:command:Container', container_command - The launch command for the container.
$sel:environment:Container', container_environment - The environment variables of the container.
$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, 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.
$sel:ports:Container', container_ports - The open firewall ports of the container.
container_environment :: Lens' Container (Maybe (HashMap Text Text)) Source #
The environment variables 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, 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.
container_ports :: Lens' Container (Maybe (HashMap Text ContainerServiceProtocol)) Source #
The open firewall ports of the container.