Skip to content

Retrieves the entries for a transit gateway metering policy

Description

Retrieves the entries for a transit gateway metering policy.

Usage

ec2_get_transit_gateway_metering_policy_entries(
  TransitGatewayMeteringPolicyId, Filters, MaxResults, NextToken, DryRun)

Arguments

  • TransitGatewayMeteringPolicyId

    [required] The ID of the transit gateway metering policy to retrieve entries for.

  • Filters

    One or more filters to apply when retrieving metering policy entries.

  • MaxResults

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • NextToken

    The token for the next page of results.

  • DryRun

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  TransitGatewayMeteringPolicyEntries = list(
    list(
      PolicyRuleNumber = "string",
      MeteredAccount = "source-attachment-owner"|"destination-attachment-owner"|"transit-gateway-owner",
      State = "available"|"deleted",
      UpdatedAt = as.POSIXct(
        "2015-01-01"
      ),
      UpdateEffectiveAt = as.POSIXct(
        "2015-01-01"
      ),
      MeteringPolicyRule = list(
        SourceTransitGatewayAttachmentId = "string",
        SourceTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
        SourceCidrBlock = "string",
        SourcePortRange = "string",
        DestinationTransitGatewayAttachmentId = "string",
        DestinationTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
        DestinationCidrBlock = "string",
        DestinationPortRange = "string",
        Protocol = "string"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$get_transit_gateway_metering_policy_entries(
  TransitGatewayMeteringPolicyId = "string",
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string",
  DryRun = TRUE|FALSE
)