Skip to content

Lists the Amazon Inspector usage totals over the last 30 days

Description

Lists the Amazon Inspector usage totals over the last 30 days.

Usage

inspector2_list_usage_totals(maxResults, nextToken, accountIds)

Arguments

  • maxResults

    The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.

  • nextToken

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

  • accountIds

    The Amazon Web Services account IDs to retrieve usage totals for.

Value

A list with the following syntax:

list(
  nextToken = "string",
  totals = list(
    list(
      accountId = "string",
      usage = list(
        list(
          type = "EC2_INSTANCE_HOURS"|"ECR_INITIAL_SCAN"|"ECR_RESCAN"|"LAMBDA_FUNCTION_HOURS"|"LAMBDA_FUNCTION_CODE_HOURS"|"CODE_REPOSITORY_SAST"|"CODE_REPOSITORY_IAC"|"CODE_REPOSITORY_SCA"|"EC2_AGENTLESS_INSTANCE_HOURS"|"AZURE_CONTAINER_IMAGE_INITIAL_SCAN"|"AZURE_CONTAINER_IMAGE_RESCAN"|"AZURE_VM_AGENT_BASED_INSTANCE_HOURS"|"AZURE_SERVERLESS_FUNCTION_HOURS",
          total = 123.0,
          estimatedMonthlyCost = 123.0,
          currency = "USD",
          cloudProvider = "AWS"|"AZURE"|"NOT_APPLICABLE"
        )
      )
    )
  )
)

Request syntax

svc$list_usage_totals(
  maxResults = 123,
  nextToken = "string",
  accountIds = list(
    "string"
  )
)