interface CfnTransitGatewayMeteringPolicyEntryProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnTransitGatewayMeteringPolicyEntryProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTransitGatewayMeteringPolicyEntryProps |
Java | software.amazon.awscdk.services.ec2.CfnTransitGatewayMeteringPolicyEntryProps |
Python | aws_cdk.aws_ec2.CfnTransitGatewayMeteringPolicyEntryProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnTransitGatewayMeteringPolicyEntryProps |
Properties for defining a CfnTransitGatewayMeteringPolicyEntry.
Example
// 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
| Name | Type | Description |
|---|---|---|
| metered | string | The AWS account ID to which the metered traffic is attributed. |
| policy | number | The rule number of the metering policy entry. |
| transit | string | The ID of the transit gateway metering policy for which the entry is being created. |
| destination | string | Describes an IPv4 CIDR block. |
| destination | string | Describes a range of ports. |
| destination | string | The ID of the source attachment through which traffic leaves a transit gateway. |
| destination | string | |
| protocol? | string | The protocol of the traffic. |
| source | string | Describes an IPv4 CIDR block. |
| source | string | Describes a range of ports. |
| source | string | The ID of the source attachment through which traffic enters a transit gateway. |
| source | string |
meteredAccount
Type:
string
The AWS account ID to which the metered traffic is attributed.
policyRuleNumber
Type:
number
The rule number of the metering policy entry.
transitGatewayMeteringPolicyId
Type:
string
The ID of the transit gateway metering policy for which the entry is being created.
destinationCidrBlock?
Type:
string
(optional)
Describes an IPv4 CIDR block.
destinationPortRange?
Type:
string
(optional)
Describes a range of ports.
destinationTransitGatewayAttachmentId?
Type:
string
(optional)
The ID of the source attachment through which traffic leaves a transit gateway.
destinationTransitGatewayAttachmentType?
Type:
string
(optional)
protocol?
Type:
string
(optional)
The protocol of the traffic.
sourceCidrBlock?
Type:
string
(optional)
Describes an IPv4 CIDR block.
sourcePortRange?
Type:
string
(optional)
Describes a range of ports.
sourceTransitGatewayAttachmentId?
Type:
string
(optional)
The ID of the source attachment through which traffic enters a transit gateway.
sourceTransitGatewayAttachmentType?
Type:
string
(optional)

.NET
Go
Java
Python
TypeScript