Billing / Client / get_billing_view

get_billing_view#

Billing.Client.get_billing_view(**kwargs)#

Returns the metadata associated to the specified billing view ARN.

See also: AWS API Documentation

Request Syntax

response = client.get_billing_view(
    arn='string'
)
Parameters:

arn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

Return type:

dict

Returns:

Response Syntax

{
    'billingView': {
        'arn': 'string',
        'name': 'string',
        'description': 'string',
        'billingViewType': 'PRIMARY'|'BILLING_GROUP'|'CUSTOM',
        'ownerAccountId': 'string',
        'dataFilterExpression': {
            'dimensions': {
                'key': 'LINKED_ACCOUNT',
                'values': [
                    'string',
                ]
            },
            'tags': {
                'key': 'string',
                'values': [
                    'string',
                ]
            }
        },
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • billingView (dict) –

      The billing view element associated with the specified ARN.

      • arn (string) –

        The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

      • name (string) –

        A list of names of the billing view.

      • description (string) –

        The description of the billing view.

      • billingViewType (string) –

        The type of billing group.

      • ownerAccountId (string) –

        The list of owners of the billing view.

      • dataFilterExpression (dict) –

        See Expression. Billing view only supports LINKED_ACCOUNT and Tags.

        • dimensions (dict) –

          The specific Dimension to use for Expression.

          • key (string) –

            The names of the metadata types that you can use to filter and group your results.

          • values (list) –

            The metadata values that you can use to filter and group your results.

            • (string) –

        • tags (dict) –

          The specific Tag to use for Expression.

          • key (string) –

            The key for the tag.

          • values (list) –

            The specific value of the tag.

            • (string) –

      • createdAt (datetime) –

        The time when the billing view was created.

      • updatedAt (datetime) –

        The time when the billing view was last updated.

Exceptions

  • Billing.Client.exceptions.ThrottlingException

  • Billing.Client.exceptions.ResourceNotFoundException

  • Billing.Client.exceptions.AccessDeniedException

  • Billing.Client.exceptions.ValidationException

  • Billing.Client.exceptions.InternalServerException