CfnTransitGatewayMeteringPolicyEntryProps Struct
Properties for defining a CfnTransitGatewayMeteringPolicyEntry.
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
destinationCidrBlockoptionalstringdestination_cidr_blockoptionalstrdestinationCidrBlockoptionalStringDestinationCidrBlockoptionalstringDestinationCidrBlockoptional*string#Describes an IPv4 CIDR block.
destinationPortRangeoptionalstringdestination_port_rangeoptionalstrdestinationPortRangeoptionalStringDestinationPortRangeoptionalstringDestinationPortRangeoptional*string#Describes a range of ports.
destinationTransitGatewayAttachmentIdoptionalstringdestination_transit_gateway_attachment_idoptionalstrdestinationTransitGatewayAttachmentIdoptionalStringDestinationTransitGatewayAttachmentIdoptionalstringDestinationTransitGatewayAttachmentIdoptional*string#The ID of the source attachment through which traffic leaves a transit gateway.
destinationTransitGatewayAttachmentTypeoptionalstringdestination_transit_gateway_attachment_typeoptionalstrdestinationTransitGatewayAttachmentTypeoptionalStringDestinationTransitGatewayAttachmentTypeoptionalstringDestinationTransitGatewayAttachmentTypeoptional*string#meteredAccountstringmetered_accountstrmeteredAccountStringMeteredAccountstringMeteredAccount*stringrequired#The AWS account ID to which the metered traffic is attributed.
policyRuleNumbernumberpolicy_rule_numberint | floatpolicyRuleNumberNumberPolicyRuleNumberdoublePolicyRuleNumber*float64required#The rule number of the metering policy entry.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string#The protocol of the traffic.
sourceCidrBlockoptionalstringsource_cidr_blockoptionalstrsourceCidrBlockoptionalStringSourceCidrBlockoptionalstringSourceCidrBlockoptional*string#Describes an IPv4 CIDR block.
sourcePortRangeoptionalstringsource_port_rangeoptionalstrsourcePortRangeoptionalStringSourcePortRangeoptionalstringSourcePortRangeoptional*string#Describes a range of ports.
sourceTransitGatewayAttachmentIdoptionalstringsource_transit_gateway_attachment_idoptionalstrsourceTransitGatewayAttachmentIdoptionalStringSourceTransitGatewayAttachmentIdoptionalstringSourceTransitGatewayAttachmentIdoptional*string#The ID of the source attachment through which traffic enters a transit gateway.
sourceTransitGatewayAttachmentTypeoptionalstringsource_transit_gateway_attachment_typeoptionalstrsourceTransitGatewayAttachmentTypeoptionalStringSourceTransitGatewayAttachmentTypeoptionalstringSourceTransitGatewayAttachmentTypeoptional*string#transitGatewayMeteringPolicyIdstringtransit_gateway_metering_policy_idstrtransitGatewayMeteringPolicyIdStringTransitGatewayMeteringPolicyIdstringTransitGatewayMeteringPolicyId*stringrequired#The ID of the transit gateway metering policy for which the entry is being created.