CfnTransitGatewayMeteringPolicyEntryProps

class aws_cdk.aws_ec2.CfnTransitGatewayMeteringPolicyEntryProps(*, metered_account, policy_rule_number, transit_gateway_metering_policy_id, destination_cidr_block=None, destination_port_range=None, destination_transit_gateway_attachment_id=None, destination_transit_gateway_attachment_type=None, protocol=None, source_cidr_block=None, source_port_range=None, source_transit_gateway_attachment_id=None, source_transit_gateway_attachment_type=None)

Bases: object

Properties for defining a CfnTransitGatewayMeteringPolicyEntry.

Parameters:
  • metered_account (str) – The AWS account ID to which the metered traffic is attributed.

  • policy_rule_number (Union[int, float]) – The rule number of the metering policy entry.

  • transit_gateway_metering_policy_id (str) – The ID of the transit gateway metering policy for which the entry is being created.

  • destination_cidr_block (Optional[str]) – Describes an IPv4 CIDR block.

  • destination_port_range (Optional[str]) – Describes a range of ports.

  • destination_transit_gateway_attachment_id (Optional[str]) – The ID of the source attachment through which traffic leaves a transit gateway.

  • destination_transit_gateway_attachment_type (Optional[str])

  • protocol (Optional[str]) – The protocol of the traffic.

  • source_cidr_block (Optional[str]) – Describes an IPv4 CIDR block.

  • source_port_range (Optional[str]) – Describes a range of ports.

  • source_transit_gateway_attachment_id (Optional[str]) – The ID of the source attachment through which traffic enters a transit gateway.

  • source_transit_gateway_attachment_type (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_transit_gateway_metering_policy_entry_props = ec2.CfnTransitGatewayMeteringPolicyEntryProps(
    metered_account="meteredAccount",
    policy_rule_number=123,
    transit_gateway_metering_policy_id="transitGatewayMeteringPolicyId",

    # the properties below are optional
    destination_cidr_block="destinationCidrBlock",
    destination_port_range="destinationPortRange",
    destination_transit_gateway_attachment_id="destinationTransitGatewayAttachmentId",
    destination_transit_gateway_attachment_type="destinationTransitGatewayAttachmentType",
    protocol="protocol",
    source_cidr_block="sourceCidrBlock",
    source_port_range="sourcePortRange",
    source_transit_gateway_attachment_id="sourceTransitGatewayAttachmentId",
    source_transit_gateway_attachment_type="sourceTransitGatewayAttachmentType"
)

Attributes

destination_cidr_block

Describes an IPv4 CIDR block.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-destinationcidrblock

destination_port_range

Describes a range of ports.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-destinationportrange

destination_transit_gateway_attachment_id

The ID of the source attachment through which traffic leaves a transit gateway.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-destinationtransitgatewayattachmentid

destination_transit_gateway_attachment_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-destinationtransitgatewayattachmenttype

Type:

see

metered_account

The AWS account ID to which the metered traffic is attributed.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-meteredaccount

policy_rule_number

The rule number of the metering policy entry.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-policyrulenumber

protocol

The protocol of the traffic.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-protocol

source_cidr_block

Describes an IPv4 CIDR block.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-sourcecidrblock

source_port_range

Describes a range of ports.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-sourceportrange

source_transit_gateway_attachment_id

The ID of the source attachment through which traffic enters a transit gateway.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-sourcetransitgatewayattachmentid

source_transit_gateway_attachment_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-sourcetransitgatewayattachmenttype

Type:

see

transit_gateway_metering_policy_id

The ID of the transit gateway metering policy for which the entry is being created.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymeteringpolicyentry.html#cfn-ec2-transitgatewaymeteringpolicyentry-transitgatewaymeteringpolicyid