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

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::TransitGatewayMeteringPolicy Resource Definition

    Create TransitGatewayMeteringPolicy Resource

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

    Constructor syntax

    new TransitGatewayMeteringPolicy(name: string, args: TransitGatewayMeteringPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def TransitGatewayMeteringPolicy(resource_name: str,
                                     args: TransitGatewayMeteringPolicyArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitGatewayMeteringPolicy(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     transit_gateway_id: Optional[str] = None,
                                     middlebox_attachment_ids: Optional[Sequence[str]] = None,
                                     tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewTransitGatewayMeteringPolicy(ctx *Context, name string, args TransitGatewayMeteringPolicyArgs, opts ...ResourceOption) (*TransitGatewayMeteringPolicy, error)
    public TransitGatewayMeteringPolicy(string name, TransitGatewayMeteringPolicyArgs args, CustomResourceOptions? opts = null)
    public TransitGatewayMeteringPolicy(String name, TransitGatewayMeteringPolicyArgs args)
    public TransitGatewayMeteringPolicy(String name, TransitGatewayMeteringPolicyArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:TransitGatewayMeteringPolicy
    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 TransitGatewayMeteringPolicyArgs
    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 TransitGatewayMeteringPolicyArgs
    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 TransitGatewayMeteringPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitGatewayMeteringPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitGatewayMeteringPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TransitGatewayMeteringPolicy 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 TransitGatewayMeteringPolicy resource accepts the following input properties:

    TransitGatewayId string
    The Id of transit gateway
    MiddleboxAttachmentIds List<string>
    Middle box attachment Ids
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags assigned to the transit gateway metering policy.
    TransitGatewayId string
    The Id of transit gateway
    MiddleboxAttachmentIds []string
    Middle box attachment Ids
    Tags TagArgs
    The tags assigned to the transit gateway metering policy.
    transitGatewayId String
    The Id of transit gateway
    middleboxAttachmentIds List<String>
    Middle box attachment Ids
    tags List<Tag>
    The tags assigned to the transit gateway metering policy.
    transitGatewayId string
    The Id of transit gateway
    middleboxAttachmentIds string[]
    Middle box attachment Ids
    tags Tag[]
    The tags assigned to the transit gateway metering policy.
    transit_gateway_id str
    The Id of transit gateway
    middlebox_attachment_ids Sequence[str]
    Middle box attachment Ids
    tags Sequence[TagArgs]
    The tags assigned to the transit gateway metering policy.
    transitGatewayId String
    The Id of transit gateway
    middleboxAttachmentIds List<String>
    Middle box attachment Ids
    tags List<Property Map>
    The tags assigned to the transit gateway metering policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitGatewayMeteringPolicy 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
    TransitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    UpdateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy will become effective
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the transit gateway metering policy
    TransitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    UpdateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy will become effective
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the transit gateway metering policy
    transitGatewayMeteringPolicyId String
    The Id of the transit gateway metering policy
    updateEffectiveAt String
    The timestamp at which the latest action performed on the metering policy will become effective
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of the transit gateway metering policy
    transitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    updateEffectiveAt string
    The timestamp at which the latest action performed on the metering policy will become effective
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of the transit gateway metering policy
    transit_gateway_metering_policy_id str
    The Id of the transit gateway metering policy
    update_effective_at str
    The timestamp at which the latest action performed on the metering policy will become effective
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the transit gateway metering policy
    transitGatewayMeteringPolicyId String
    The Id of the transit gateway metering policy
    updateEffectiveAt String
    The timestamp at which the latest action performed on the metering policy will become effective

    Supporting Types

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    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