pub struct RegisterContainerImage<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterContainerImage
.
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.
Implementations
impl<C, M, R> RegisterContainerImage<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> RegisterContainerImage<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<RegisterContainerImageOutput, SdkError<RegisterContainerImageError>> where
R::Policy: SmithyRetryPolicy<RegisterContainerImageInputOperationOutputAlias, RegisterContainerImageOutput, RegisterContainerImageError, RegisterContainerImageInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<RegisterContainerImageOutput, SdkError<RegisterContainerImageError>> where
R::Policy: SmithyRetryPolicy<RegisterContainerImageInputOperationOutputAlias, RegisterContainerImageOutput, RegisterContainerImageError, RegisterContainerImageInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the container service for which to register a container image.
The name of the container service for which to register a container image.
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
portion of the following image name example:
-
:container-service-1.
.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.
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
portion of the following image name example:
-
:container-service-1.
.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.
The digest of the container image to be registered.
The digest of the container image to be registered.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for RegisterContainerImage<C, M, R>
impl<C, M, R> Send for RegisterContainerImage<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for RegisterContainerImage<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for RegisterContainerImage<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for RegisterContainerImage<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more