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 |
Registers a container image to your Amazon Lightsail container service.
This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.
Synopsis
- data RegisterContainerImage = RegisterContainerImage' {}
- newRegisterContainerImage :: Text -> Text -> Text -> RegisterContainerImage
- registerContainerImage_serviceName :: Lens' RegisterContainerImage Text
- registerContainerImage_label :: Lens' RegisterContainerImage Text
- registerContainerImage_digest :: Lens' RegisterContainerImage Text
- data RegisterContainerImageResponse = RegisterContainerImageResponse' {}
- newRegisterContainerImageResponse :: Int -> RegisterContainerImageResponse
- registerContainerImageResponse_containerImage :: Lens' RegisterContainerImageResponse (Maybe ContainerImage)
- registerContainerImageResponse_httpStatus :: Lens' RegisterContainerImageResponse Int
Creating a Request
data RegisterContainerImage Source #
See: newRegisterContainerImage
smart constructor.
RegisterContainerImage' | |
|
Instances
newRegisterContainerImage Source #
:: Text | |
-> Text | |
-> Text | |
-> RegisterContainerImage |
Create a value of RegisterContainerImage
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:
RegisterContainerImage
, registerContainerImage_serviceName
- The name of the container service for which to register a container
image.
$sel:label:RegisterContainerImage'
, registerContainerImage_label
- The label for the container image when it's registered to the container
service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images
registered to a Lightsail container service. The label is the
<imagelabel>
portion of the following image name example:
:container-service-1.<imagelabel>.1
If the name of your container service is mycontainerservice
, and the
label that you specify is mystaticwebsite
, then the name of the
registered container image will be
:mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the
version of the registered container image. If you push and register
another container image to the same Lightsail container service, with
the same label, then the version number for the new registered container
image will be 2
. If you push and register another container image, the
version number will be 3
, and so on.
RegisterContainerImage
, registerContainerImage_digest
- The digest of the container image to be registered.
Request Lenses
registerContainerImage_serviceName :: Lens' RegisterContainerImage Text Source #
The name of the container service for which to register a container image.
registerContainerImage_label :: Lens' RegisterContainerImage Text Source #
The label for the container image when it's registered to the container service.
Use a descriptive label that you can use to track the different versions of your registered container images.
Use the GetContainerImages
action to return the container images
registered to a Lightsail container service. The label is the
<imagelabel>
portion of the following image name example:
:container-service-1.<imagelabel>.1
If the name of your container service is mycontainerservice
, and the
label that you specify is mystaticwebsite
, then the name of the
registered container image will be
:mycontainerservice.mystaticwebsite.1
.
The number at the end of these image name examples represents the
version of the registered container image. If you push and register
another container image to the same Lightsail container service, with
the same label, then the version number for the new registered container
image will be 2
. If you push and register another container image, the
version number will be 3
, and so on.
registerContainerImage_digest :: Lens' RegisterContainerImage Text Source #
The digest of the container image to be registered.
Destructuring the Response
data RegisterContainerImageResponse Source #
See: newRegisterContainerImageResponse
smart constructor.
RegisterContainerImageResponse' | |
|
Instances
Generic RegisterContainerImageResponse Source # | |
Read RegisterContainerImageResponse Source # | |
Show RegisterContainerImageResponse Source # | |
Defined in Amazonka.Lightsail.RegisterContainerImage | |
NFData RegisterContainerImageResponse Source # | |
Defined in Amazonka.Lightsail.RegisterContainerImage rnf :: RegisterContainerImageResponse -> () # | |
Eq RegisterContainerImageResponse Source # | |
type Rep RegisterContainerImageResponse Source # | |
Defined in Amazonka.Lightsail.RegisterContainerImage type Rep RegisterContainerImageResponse = D1 ('MetaData "RegisterContainerImageResponse" "Amazonka.Lightsail.RegisterContainerImage" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "RegisterContainerImageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerImage)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRegisterContainerImageResponse Source #
Create a value of RegisterContainerImageResponse
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:containerImage:RegisterContainerImageResponse'
, registerContainerImageResponse_containerImage
- An object that describes a container image that is registered to a
Lightsail container service
$sel:httpStatus:RegisterContainerImageResponse'
, registerContainerImageResponse_httpStatus
- The response's http status code.
Response Lenses
registerContainerImageResponse_containerImage :: Lens' RegisterContainerImageResponse (Maybe ContainerImage) Source #
An object that describes a container image that is registered to a Lightsail container service
registerContainerImageResponse_httpStatus :: Lens' RegisterContainerImageResponse Int Source #
The response's http status code.