Lightsail / Client / get_relational_database_bundles

get_relational_database_bundles#

Lightsail.Client.get_relational_database_bundles(**kwargs)#

Returns the list of bundles that are available in Amazon Lightsail. A bundle describes the performance specifications for a database.

You can use a bundle ID to create a new database with explicit performance specifications.

See also: AWS API Documentation

Request Syntax

response = client.get_relational_database_bundles(
    pageToken='string',
    includeInactive=True|False
)
Parameters:
  • pageToken (string) –

    The token to advance to the next page of results from your request.

    To get a page token, perform an initial GetRelationalDatabaseBundles request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

  • includeInactive (boolean) – A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

Return type:

dict

Returns:

Response Syntax

{
    'bundles': [
        {
            'bundleId': 'string',
            'name': 'string',
            'price': ...,
            'ramSizeInGb': ...,
            'diskSizeInGb': 123,
            'transferPerMonthInGb': 123,
            'cpuCount': 123,
            'isEncrypted': True|False,
            'isActive': True|False
        },
    ],
    'nextPageToken': 'string'
}

Response Structure

  • (dict) –

    • bundles (list) –

      An object describing the result of your get relational database bundles request.

      • (dict) –

        Describes a database bundle. A bundle describes the performance specifications of the database.

        • bundleId (string) –

          The ID for the database bundle.

        • name (string) –

          The name for the database bundle.

        • price (float) –

          The cost of the database bundle in US currency.

        • ramSizeInGb (float) –

          The amount of RAM in GB (for example, 2.0) for the database bundle.

        • diskSizeInGb (integer) –

          The size of the disk for the database bundle.

        • transferPerMonthInGb (integer) –

          The data transfer rate per month in GB for the database bundle.

        • cpuCount (integer) –

          The number of virtual CPUs (vCPUs) for the database bundle.

        • isEncrypted (boolean) –

          A Boolean value indicating whether the database bundle is encrypted.

        • isActive (boolean) –

          A Boolean value indicating whether the database bundle is active.

    • nextPageToken (string) –

      The token to advance to the next page of results from your request.

      A next page token is not returned if there are no more results to display.

      To get the next page of results, perform another GetRelationalDatabaseBundles request and specify the next page token using the pageToken parameter.

Exceptions

  • Lightsail.Client.exceptions.ServiceException

  • Lightsail.Client.exceptions.InvalidInputException

  • Lightsail.Client.exceptions.NotFoundException

  • Lightsail.Client.exceptions.OperationFailureException

  • Lightsail.Client.exceptions.AccessDeniedException

  • Lightsail.Client.exceptions.AccountSetupInProgressException

  • Lightsail.Client.exceptions.UnauthenticatedException