1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. TransitGatewayMeteringPolicyEntry

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi

    AWS::EC2::TransitGatewayMeteringPolicyEntry Resource Definition

    Create TransitGatewayMeteringPolicyEntry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TransitGatewayMeteringPolicyEntry(name: string, args: TransitGatewayMeteringPolicyEntryArgs, opts?: CustomResourceOptions);
    @overload
    def TransitGatewayMeteringPolicyEntry(resource_name: str,
                                          args: TransitGatewayMeteringPolicyEntryArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitGatewayMeteringPolicyEntry(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          metered_account: Optional[TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType] = None,
                                          policy_rule_number: Optional[int] = None,
                                          transit_gateway_metering_policy_id: Optional[str] = None,
                                          destination_cidr_block: Optional[str] = None,
                                          destination_port_range: Optional[str] = None,
                                          destination_transit_gateway_attachment_id: Optional[str] = None,
                                          destination_transit_gateway_attachment_type: Optional[TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType] = None,
                                          protocol: Optional[str] = None,
                                          source_cidr_block: Optional[str] = None,
                                          source_port_range: Optional[str] = None,
                                          source_transit_gateway_attachment_id: Optional[str] = None,
                                          source_transit_gateway_attachment_type: Optional[TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType] = None)
    func NewTransitGatewayMeteringPolicyEntry(ctx *Context, name string, args TransitGatewayMeteringPolicyEntryArgs, opts ...ResourceOption) (*TransitGatewayMeteringPolicyEntry, error)
    public TransitGatewayMeteringPolicyEntry(string name, TransitGatewayMeteringPolicyEntryArgs args, CustomResourceOptions? opts = null)
    public TransitGatewayMeteringPolicyEntry(String name, TransitGatewayMeteringPolicyEntryArgs args)
    public TransitGatewayMeteringPolicyEntry(String name, TransitGatewayMeteringPolicyEntryArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:TransitGatewayMeteringPolicyEntry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TransitGatewayMeteringPolicyEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TransitGatewayMeteringPolicyEntryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TransitGatewayMeteringPolicyEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitGatewayMeteringPolicyEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitGatewayMeteringPolicyEntryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TransitGatewayMeteringPolicyEntry Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TransitGatewayMeteringPolicyEntry resource accepts the following input properties:

    MeteredAccount Pulumi.AwsNative.Ec2.TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType
    The resource owner information responsible for paying default billable charges for the traffic flow
    PolicyRuleNumber int
    The rule number of the metering policy entry
    TransitGatewayMeteringPolicyId string
    The ID of the transit gateway metering policy for which the entry is being created
    DestinationCidrBlock string
    The list of IP addresses of the instances receiving traffic from the transit gateway
    DestinationPortRange string
    The list of ports on destination instances receiving traffic from the transit gateway
    DestinationTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic leaves a transit gateway
    DestinationTransitGatewayAttachmentType Pulumi.AwsNative.Ec2.TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic leaves a transit gateway
    Protocol string
    The protocol of the traffic
    SourceCidrBlock string
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    SourcePortRange string
    The list of ports on source instances sending traffic to the transit gateway
    SourceTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic enters a transit gateway
    SourceTransitGatewayAttachmentType Pulumi.AwsNative.Ec2.TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic enters a transit gateway
    MeteredAccount TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType
    The resource owner information responsible for paying default billable charges for the traffic flow
    PolicyRuleNumber int
    The rule number of the metering policy entry
    TransitGatewayMeteringPolicyId string
    The ID of the transit gateway metering policy for which the entry is being created
    DestinationCidrBlock string
    The list of IP addresses of the instances receiving traffic from the transit gateway
    DestinationPortRange string
    The list of ports on destination instances receiving traffic from the transit gateway
    DestinationTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic leaves a transit gateway
    DestinationTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic leaves a transit gateway
    Protocol string
    The protocol of the traffic
    SourceCidrBlock string
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    SourcePortRange string
    The list of ports on source instances sending traffic to the transit gateway
    SourceTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic enters a transit gateway
    SourceTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic enters a transit gateway
    meteredAccount TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType
    The resource owner information responsible for paying default billable charges for the traffic flow
    policyRuleNumber Integer
    The rule number of the metering policy entry
    transitGatewayMeteringPolicyId String
    The ID of the transit gateway metering policy for which the entry is being created
    destinationCidrBlock String
    The list of IP addresses of the instances receiving traffic from the transit gateway
    destinationPortRange String
    The list of ports on destination instances receiving traffic from the transit gateway
    destinationTransitGatewayAttachmentId String
    The ID of the source attachment through which traffic leaves a transit gateway
    destinationTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic leaves a transit gateway
    protocol String
    The protocol of the traffic
    sourceCidrBlock String
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    sourcePortRange String
    The list of ports on source instances sending traffic to the transit gateway
    sourceTransitGatewayAttachmentId String
    The ID of the source attachment through which traffic enters a transit gateway
    sourceTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic enters a transit gateway
    meteredAccount TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType
    The resource owner information responsible for paying default billable charges for the traffic flow
    policyRuleNumber number
    The rule number of the metering policy entry
    transitGatewayMeteringPolicyId string
    The ID of the transit gateway metering policy for which the entry is being created
    destinationCidrBlock string
    The list of IP addresses of the instances receiving traffic from the transit gateway
    destinationPortRange string
    The list of ports on destination instances receiving traffic from the transit gateway
    destinationTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic leaves a transit gateway
    destinationTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic leaves a transit gateway
    protocol string
    The protocol of the traffic
    sourceCidrBlock string
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    sourcePortRange string
    The list of ports on source instances sending traffic to the transit gateway
    sourceTransitGatewayAttachmentId string
    The ID of the source attachment through which traffic enters a transit gateway
    sourceTransitGatewayAttachmentType TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic enters a transit gateway
    metered_account TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType
    The resource owner information responsible for paying default billable charges for the traffic flow
    policy_rule_number int
    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 str
    The list of IP addresses of the instances receiving traffic from the transit gateway
    destination_port_range str
    The list of ports on destination instances receiving traffic from the transit gateway
    destination_transit_gateway_attachment_id str
    The ID of the source attachment through which traffic leaves a transit gateway
    destination_transit_gateway_attachment_type TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic leaves a transit gateway
    protocol str
    The protocol of the traffic
    source_cidr_block str
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    source_port_range str
    The list of ports on source instances sending traffic to the transit gateway
    source_transit_gateway_attachment_id str
    The ID of the source attachment through which traffic enters a transit gateway
    source_transit_gateway_attachment_type TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType
    The type of the attachment through which traffic enters a transit gateway
    meteredAccount "source-attachment-owner" | "destination-attachment-owner" | "transit-gateway-owner"
    The resource owner information responsible for paying default billable charges for the traffic flow
    policyRuleNumber Number
    The rule number of the metering policy entry
    transitGatewayMeteringPolicyId String
    The ID of the transit gateway metering policy for which the entry is being created
    destinationCidrBlock String
    The list of IP addresses of the instances receiving traffic from the transit gateway
    destinationPortRange String
    The list of ports on destination instances receiving traffic from the transit gateway
    destinationTransitGatewayAttachmentId String
    The ID of the source attachment through which traffic leaves a transit gateway
    destinationTransitGatewayAttachmentType "vpc" | "vpn" | "direct-connect-gateway" | "peering" | "network-function" | "vpn-concentrator"
    The type of the attachment through which traffic leaves a transit gateway
    protocol String
    The protocol of the traffic
    sourceCidrBlock String
    The list of IP addresses of the instances sending traffic to the transit gateway for which the metering policy entry is applicable
    sourcePortRange String
    The list of ports on source instances sending traffic to the transit gateway
    sourceTransitGatewayAttachmentId String
    The ID of the source attachment through which traffic enters a transit gateway
    sourceTransitGatewayAttachmentType "vpc" | "vpn" | "direct-connect-gateway" | "peering" | "network-function" | "vpn-concentrator"
    The type of the attachment through which traffic enters a transit gateway

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitGatewayMeteringPolicyEntry resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the transit gateway metering policy
    UpdateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy entry will become effective
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the transit gateway metering policy
    UpdateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy entry will become effective
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the transit gateway metering policy
    updateEffectiveAt String
    The timestamp at which the latest action performed on the metering policy entry will become effective
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of the transit gateway metering policy
    updateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy entry will become effective
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of the transit gateway metering policy
    update_effective_at str
    The timestamp at which the latest action performed on the metering policy entry will become effective
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the transit gateway metering policy
    updateEffectiveAt String
    The timestamp at which the latest action performed on the metering policy entry will become effective

    Supporting Types

    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceType, TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeArgs

    Vpc
    vpc
    Vpn
    vpn
    DirectConnectGateway
    direct-connect-gateway
    Peering
    peering
    NetworkFunction
    network-function
    VpnConcentrator
    vpn-concentrator
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeVpc
    vpc
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeVpn
    vpn
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeDirectConnectGateway
    direct-connect-gateway
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypePeering
    peering
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeNetworkFunction
    network-function
    TransitGatewayMeteringPolicyEntryTransitGatewayAttachmentResourceTypeVpnConcentrator
    vpn-concentrator
    Vpc
    vpc
    Vpn
    vpn
    DirectConnectGateway
    direct-connect-gateway
    Peering
    peering
    NetworkFunction
    network-function
    VpnConcentrator
    vpn-concentrator
    Vpc
    vpc
    Vpn
    vpn
    DirectConnectGateway
    direct-connect-gateway
    Peering
    peering
    NetworkFunction
    network-function
    VpnConcentrator
    vpn-concentrator
    VPC
    vpc
    VPN
    vpn
    DIRECT_CONNECT_GATEWAY
    direct-connect-gateway
    PEERING
    peering
    NETWORK_FUNCTION
    network-function
    VPN_CONCENTRATOR
    vpn-concentrator
    "vpc"
    vpc
    "vpn"
    vpn
    "direct-connect-gateway"
    direct-connect-gateway
    "peering"
    peering
    "network-function"
    network-function
    "vpn-concentrator"
    vpn-concentrator

    TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerType, TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerTypeArgs

    SourceAttachmentOwner
    source-attachment-owner
    DestinationAttachmentOwner
    destination-attachment-owner
    TransitGatewayOwner
    transit-gateway-owner
    TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerTypeSourceAttachmentOwner
    source-attachment-owner
    TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerTypeDestinationAttachmentOwner
    destination-attachment-owner
    TransitGatewayMeteringPolicyEntryTransitGatewayMeteringPayerTypeTransitGatewayOwner
    transit-gateway-owner
    SourceAttachmentOwner
    source-attachment-owner
    DestinationAttachmentOwner
    destination-attachment-owner
    TransitGatewayOwner
    transit-gateway-owner
    SourceAttachmentOwner
    source-attachment-owner
    DestinationAttachmentOwner
    destination-attachment-owner
    TransitGatewayOwner
    transit-gateway-owner
    SOURCE_ATTACHMENT_OWNER
    source-attachment-owner
    DESTINATION_ATTACHMENT_OWNER
    destination-attachment-owner
    TRANSIT_GATEWAY_OWNER
    transit-gateway-owner
    "source-attachment-owner"
    source-attachment-owner
    "destination-attachment-owner"
    destination-attachment-owner
    "transit-gateway-owner"
    transit-gateway-owner

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate