libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.Types.Container

Description

 
Synopsis

Documentation

data Container Source #

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

  • image :: Maybe Text

    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.

  • command :: Maybe [Text]

    The launch command for the container.

  • environment :: Maybe (HashMap Text Text)

    The environment variables of the container.

  • ports :: Maybe (HashMap Text ContainerServiceProtocol)

    The open firewall ports of the container.

Instances

Instances details
Eq Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

Read Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

Show Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

Generic Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

Associated Types

type Rep Container :: Type -> Type #

NFData Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

Methods

rnf :: Container -> () #

Hashable Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

ToJSON Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

FromJSON Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

type Rep Container Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Container

type Rep Container = D1 ('MetaData "Container" "Amazonka.Lightsail.Types.Container" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "Container'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "command") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "ports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ContainerServiceProtocol))))))

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_command :: Lens' Container (Maybe [Text]) Source #

The launch command for the container.

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.