Lightsail / Client / get_container_service_powers

get_container_service_powers#

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()
Return type:

dict

Returns:

Response Syntax

{
    'powers': [
        {
            'powerId': 'string',
            'price': ...,
            'cpuCount': ...,
            'ramSizeInGb': ...,
            'name': 'string',
            'isActive': True|False
        },
    ]
}

Response Structure

  • (dict) –

    • powers (list) –

      An array of objects that describe the powers that can be specified for a container service.

      • (dict) –

        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.

        • powerId (string) –

          The ID of the power ( nano-1).

        • price (float) –

          The monthly price of the power in USD.

        • cpuCount (float) –

          The number of vCPUs included in the power.

        • ramSizeInGb (float) –

          The amount of RAM (in GB) of the power.

        • name (string) –

          The friendly name of the power ( nano).

        • isActive (boolean) –

          A Boolean value indicating whether the power is active and can be specified for container services.

Exceptions