Lightsail.Client.
get_container_service_powers
()¶Returns the list of powers that can be specified for your Amazon Lightsail container services.
The power specifies the amount of memory, the number of vCPUs, and the base price of the container service.
See also: AWS API Documentation
Request Syntax
response = client.get_container_service_powers()
{
'powers': [
{
'powerId': 'string',
'price': ...,
'cpuCount': ...,
'ramSizeInGb': ...,
'name': 'string',
'isActive': True|False
},
]
}
Response Structure
An array of objects that describe the powers that can be specified for a container service.
Describes the powers that can be specified for an Amazon Lightsail container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
The ID of the power (e.g., nano-1
).
The monthly price of the power in USD.
The number of vCPUs included in the power.
The amount of RAM (in GB) of the power.
The friendly name of the power (e.g., nano
).
A Boolean value indicating whether the power is active and can be specified for container services.
Exceptions
Lightsail.Client.exceptions.ServiceException
Lightsail.Client.exceptions.InvalidInputException
Lightsail.Client.exceptions.NotFoundException
Lightsail.Client.exceptions.AccessDeniedException
Lightsail.Client.exceptions.UnauthenticatedException