# CfnTransitGatewayMeteringPolicyEntryProps

Properties for defining a `CfnTransitGatewayMeteringPolicyEntry`.

Extends: CfnTransitGatewayMeteringPolicyEntryProps
Used as props by: CfnTransitGatewayMeteringPolicyEntry

- Source: Generated code
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTransitGatewayMeteringPolicyEntryProps: ec2.CfnTransitGatewayMeteringPolicyEntryProps = {
  meteredAccount: 'meteredAccount',
  policyRuleNumber: 123,
  transitGatewayMeteringPolicyId: 'transitGatewayMeteringPolicyId',

  // the properties below are optional
  destinationCidrBlock: 'destinationCidrBlock',
  destinationPortRange: 'destinationPortRange',
  destinationTransitGatewayAttachmentId: 'destinationTransitGatewayAttachmentId',
  destinationTransitGatewayAttachmentType: 'destinationTransitGatewayAttachmentType',
  protocol: 'protocol',
  sourceCidrBlock: 'sourceCidrBlock',
  sourcePortRange: 'sourcePortRange',
  sourceTransitGatewayAttachmentId: 'sourceTransitGatewayAttachmentId',
  sourceTransitGatewayAttachmentType: 'sourceTransitGatewayAttachmentType',
};
```

## Properties

- `destinationCidrBlock`: string — Describes an IPv4 CIDR block.

- `destinationPortRange`: string — Describes a range of ports.

- `destinationTransitGatewayAttachmentId`: string — The ID of the source attachment through which traffic leaves a transit gateway.

- `destinationTransitGatewayAttachmentType`: string

- `meteredAccount`: string (required) — The AWS account ID to which the metered traffic is attributed.

- `policyRuleNumber`: number (required) — The rule number of the metering policy entry.

- `protocol`: string — The protocol of the traffic.

- `sourceCidrBlock`: string — Describes an IPv4 CIDR block.

- `sourcePortRange`: string — Describes a range of ports.

- `sourceTransitGatewayAttachmentId`: string — The ID of the source attachment through which traffic enters a transit gateway.

- `sourceTransitGatewayAttachmentType`: string

- `transitGatewayMeteringPolicyId`: string (required) — The ID of the transit gateway metering policy for which the entry is being created.
