Struct aws_sdk_lightsail::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder
source · pub struct UpdateContainerServiceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateContainerService
.
Updates the configuration of your Amazon Lightsail container service, such as its power, scale, and public domain names.
Implementations§
source§impl UpdateContainerServiceFluentBuilder
impl UpdateContainerServiceFluentBuilder
sourcepub fn as_input(&self) -> &UpdateContainerServiceInputBuilder
pub fn as_input(&self) -> &UpdateContainerServiceInputBuilder
Access the UpdateContainerService as a reference.
sourcepub async fn send(
self
) -> Result<UpdateContainerServiceOutput, SdkError<UpdateContainerServiceError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateContainerServiceOutput, SdkError<UpdateContainerServiceError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateContainerServiceOutput, UpdateContainerServiceError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateContainerServiceOutput, UpdateContainerServiceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the container service to update.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the container service to update.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the container service to update.
sourcepub fn power(self, input: ContainerServicePowerName) -> Self
pub fn power(self, input: ContainerServicePowerName) -> Self
The power for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to view the specifications of each power option.
sourcepub fn set_power(self, input: Option<ContainerServicePowerName>) -> Self
pub fn set_power(self, input: Option<ContainerServicePowerName>) -> Self
The power for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to view the specifications of each power option.
sourcepub fn get_power(&self) -> &Option<ContainerServicePowerName>
pub fn get_power(&self) -> &Option<ContainerServicePowerName>
The power for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to view the specifications of each power option.
sourcepub fn scale(self, input: i32) -> Self
pub fn scale(self, input: i32) -> Self
The scale for the container service.
The scale specifies the allocated compute nodes of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
sourcepub fn set_scale(self, input: Option<i32>) -> Self
pub fn set_scale(self, input: Option<i32>) -> Self
The scale for the container service.
The scale specifies the allocated compute nodes of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
sourcepub fn get_scale(&self) -> &Option<i32>
pub fn get_scale(&self) -> &Option<i32>
The scale for the container service.
The scale specifies the allocated compute nodes of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
sourcepub fn is_disabled(self, input: bool) -> Self
pub fn is_disabled(self, input: bool) -> Self
A Boolean value to indicate whether the container service is disabled.
sourcepub fn set_is_disabled(self, input: Option<bool>) -> Self
pub fn set_is_disabled(self, input: Option<bool>) -> Self
A Boolean value to indicate whether the container service is disabled.
sourcepub fn get_is_disabled(&self) -> &Option<bool>
pub fn get_is_disabled(&self) -> &Option<bool>
A Boolean value to indicate whether the container service is disabled.
sourcepub fn public_domain_names(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn public_domain_names(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to publicDomainNames
.
To override the contents of this collection use set_public_domain_names
.
The public domain names to use with the container service, such as example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate
action to create a certificate for the public domain names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
sourcepub fn set_public_domain_names(
self,
input: Option<HashMap<String, Vec<String>>>
) -> Self
pub fn set_public_domain_names( self, input: Option<HashMap<String, Vec<String>>> ) -> Self
The public domain names to use with the container service, such as example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate
action to create a certificate for the public domain names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
sourcepub fn get_public_domain_names(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_public_domain_names(&self) -> &Option<HashMap<String, Vec<String>>>
The public domain names to use with the container service, such as example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate
action to create a certificate for the public domain names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
sourcepub fn private_registry_access(
self,
input: PrivateRegistryAccessRequest
) -> Self
pub fn private_registry_access( self, input: PrivateRegistryAccessRequest ) -> Self
An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
sourcepub fn set_private_registry_access(
self,
input: Option<PrivateRegistryAccessRequest>
) -> Self
pub fn set_private_registry_access( self, input: Option<PrivateRegistryAccessRequest> ) -> Self
An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
sourcepub fn get_private_registry_access(
&self
) -> &Option<PrivateRegistryAccessRequest>
pub fn get_private_registry_access( &self ) -> &Option<PrivateRegistryAccessRequest>
An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.
Trait Implementations§
source§impl Clone for UpdateContainerServiceFluentBuilder
impl Clone for UpdateContainerServiceFluentBuilder
source§fn clone(&self) -> UpdateContainerServiceFluentBuilder
fn clone(&self) -> UpdateContainerServiceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateContainerServiceFluentBuilder
impl !RefUnwindSafe for UpdateContainerServiceFluentBuilder
impl Send for UpdateContainerServiceFluentBuilder
impl Sync for UpdateContainerServiceFluentBuilder
impl Unpin for UpdateContainerServiceFluentBuilder
impl !UnwindSafe for UpdateContainerServiceFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more