Skip to content

Creates a billing view with the specified billing view attributes

Description

Creates a billing view with the specified billing view attributes.

Usage

billing_create_billing_view(name, description, sourceViews,
  dataFilterExpression, clientToken, resourceTags)

Arguments

  • name

    [required] The name of the billing view.

  • description

    The description of the billing view.

  • sourceViews

    [required] A list of billing views used as the data source for the custom billing view.

  • dataFilterExpression

    See Expression. Billing view only supports LINKED_ACCOUNT, Tags, and CostCategories.

  • clientToken

    A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request.

  • resourceTags

    A list of key value map specifying tags associated to the billing view being created.

Value

A list with the following syntax:

list(
  arn = "string",
  createdAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$create_billing_view(
  name = "string",
  description = "string",
  sourceViews = list(
    "string"
  ),
  dataFilterExpression = list(
    dimensions = list(
      key = "LINKED_ACCOUNT",
      values = list(
        "string"
      )
    ),
    tags = list(
      key = "string",
      values = list(
        "string"
      )
    ),
    costCategories = list(
      key = "string",
      values = list(
        "string"
      )
    ),
    timeRange = list(
      beginDateInclusive = as.POSIXct(
        "2015-01-01"
      ),
      endDateInclusive = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  clientToken = "string",
  resourceTags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)