update_container_service
async
¶
update_container_service(
service_name: ContainerServiceName,
*,
config_overrides: Optional[AsyncLightsailClientConfig] = None,
power: Optional[ContainerServicePowerName] = None,
scale: Optional[ContainerServiceScale] = None,
is_disabled: Optional[boolean] = None,
public_domain_names: Optional[ContainerServicePublicDomains] = None,
private_registry_access: Optional[PrivateRegistryAccessRequest] = None,
) -> UpdateContainerServiceResult
Updates the configuration of your Amazon Lightsail container service, such as its power, scale, and public domain names.
Parameters:
-
service_name(ContainerServiceName) –The name of the container service to update.
-
power(Optional[ContainerServicePowerName], default:None) –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
powerandscaleof a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of thepowerwith thescale(the number of nodes) of the service.Use the
GetContainerServicePowersaction to view the specifications of each power option. -
scale(Optional[ContainerServiceScale], default:None) –The scale for the container service.
The scale specifies the allocated compute nodes of the container service. The
powerandscaleof a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of thepowerwith thescale(the number of nodes) of the service. -
is_disabled(Optional[boolean], default:None) –A Boolean value to indicate whether the container service is disabled.
-
public_domain_names(Optional[ContainerServicePublicDomains], default:None) –The public domain names to use with the container service, such as
example.comandwww.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
CreateCertificateaction 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.
-
private_registry_access(Optional[PrivateRegistryAccessRequest], default:None) –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.
Raises:
-
AccessDeniedException–Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
-
InvalidInputException–Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Domain and distribution APIs are only available in the N. Virginia (
us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration tous-east-1to create, view, or edit these resources. -
NotFoundException–Lightsail throws this exception when it cannot find a resource.
-
RegionSetupInProgressException–Lightsail throws this exception when an operation is performed on resources in an opt-in Region that is currently being set up.
-
ServiceException–A general service exception.
-
UnauthenticatedException–Lightsail throws this exception when the user has not been authenticated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lightsail/_services/async_lightsail.py
9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 | |