aws_sdk_lightsail/client/update_container_service.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateContainerService`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`service_name(impl Into<String>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_service_name):<br>required: **true**<br><p>The name of the container service to update.</p><br>
7 /// - [`power(ContainerServicePowerName)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::power) / [`set_power(Option<ContainerServicePowerName>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_power):<br>required: **false**<br><p>The power for the container service.</p> <p>The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The <code>power</code> and <code>scale</code> of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the <code>power</code> with the <code>scale</code> (the number of nodes) of the service.</p> <p>Use the <code>GetContainerServicePowers</code> action to view the specifications of each power option.</p><br>
8 /// - [`scale(i32)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::scale) / [`set_scale(Option<i32>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_scale):<br>required: **false**<br><p>The scale for the container service.</p> <p>The scale specifies the allocated compute nodes of the container service. The <code>power</code> and <code>scale</code> of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the <code>power</code> with the <code>scale</code> (the number of nodes) of the service.</p><br>
9 /// - [`is_disabled(bool)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::is_disabled) / [`set_is_disabled(Option<bool>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_is_disabled):<br>required: **false**<br><p>A Boolean value to indicate whether the container service is disabled.</p><br>
10 /// - [`public_domain_names(impl Into<String>, Vec::<String>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::public_domain_names) / [`set_public_domain_names(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_public_domain_names):<br>required: **false**<br><p>The public domain names to use with the container service, such as <code>example.com</code> and <code>www.example.com</code>.</p> <p>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.</p> <p>If you don't specify public domain names, then you can use the default domain of the container service.</p><important> <p>You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the <code>CreateCertificate</code> action to create a certificate for the public domain names you want to use with your container service.</p> </important> <p>You can specify public domain names using a string to array map as shown in the example later on this page.</p><br>
11 /// - [`private_registry_access(PrivateRegistryAccessRequest)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::private_registry_access) / [`set_private_registry_access(Option<PrivateRegistryAccessRequest>)`](crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::set_private_registry_access):<br>required: **false**<br><p>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.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-container-service-ecr-private-repo-access">Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service</a> in the <i>Amazon Lightsail Developer Guide</i>.</p><br>
12 /// - On success, responds with [`UpdateContainerServiceOutput`](crate::operation::update_container_service::UpdateContainerServiceOutput) with field(s):
13 /// - [`container_service(Option<ContainerService>)`](crate::operation::update_container_service::UpdateContainerServiceOutput::container_service): <p>An object that describes a container service.</p>
14 /// - On failure, responds with [`SdkError<UpdateContainerServiceError>`](crate::operation::update_container_service::UpdateContainerServiceError)
15 pub fn update_container_service(&self) -> crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder {
16 crate::operation::update_container_service::builders::UpdateContainerServiceFluentBuilder::new(self.handle.clone())
17 }
18}