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

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

    Using getTransitGatewayMeteringPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTransitGatewayMeteringPolicy(args: GetTransitGatewayMeteringPolicyArgs, opts?: InvokeOptions): Promise<GetTransitGatewayMeteringPolicyResult>
    function getTransitGatewayMeteringPolicyOutput(args: GetTransitGatewayMeteringPolicyOutputArgs, opts?: InvokeOptions): Output<GetTransitGatewayMeteringPolicyResult>
    def get_transit_gateway_metering_policy(transit_gateway_metering_policy_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetTransitGatewayMeteringPolicyResult
    def get_transit_gateway_metering_policy_output(transit_gateway_metering_policy_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetTransitGatewayMeteringPolicyResult]
    func LookupTransitGatewayMeteringPolicy(ctx *Context, args *LookupTransitGatewayMeteringPolicyArgs, opts ...InvokeOption) (*LookupTransitGatewayMeteringPolicyResult, error)
    func LookupTransitGatewayMeteringPolicyOutput(ctx *Context, args *LookupTransitGatewayMeteringPolicyOutputArgs, opts ...InvokeOption) LookupTransitGatewayMeteringPolicyResultOutput

    > Note: This function is named LookupTransitGatewayMeteringPolicy in the Go SDK.

    public static class GetTransitGatewayMeteringPolicy 
    {
        public static Task<GetTransitGatewayMeteringPolicyResult> InvokeAsync(GetTransitGatewayMeteringPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetTransitGatewayMeteringPolicyResult> Invoke(GetTransitGatewayMeteringPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTransitGatewayMeteringPolicyResult> getTransitGatewayMeteringPolicy(GetTransitGatewayMeteringPolicyArgs args, InvokeOptions options)
    public static Output<GetTransitGatewayMeteringPolicyResult> getTransitGatewayMeteringPolicy(GetTransitGatewayMeteringPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getTransitGatewayMeteringPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    TransitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    transitGatewayMeteringPolicyId String
    The Id of the transit gateway metering policy
    transitGatewayMeteringPolicyId string
    The Id of the transit gateway metering policy
    transit_gateway_metering_policy_id str
    The Id of the transit gateway metering policy
    transitGatewayMeteringPolicyId String
    The Id of the transit gateway metering policy

    getTransitGatewayMeteringPolicy Result

    The following output properties are available:

    MiddleboxAttachmentIds List<string>
    Middle box attachment Ids
    State string
    State of the transit gateway metering policy
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags assigned to 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
    MiddleboxAttachmentIds []string
    Middle box attachment Ids
    State string
    State of the transit gateway metering policy
    Tags Tag
    The tags assigned to 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
    middleboxAttachmentIds List<String>
    Middle box attachment Ids
    state String
    State of the transit gateway metering policy
    tags List<Tag>
    The tags assigned to 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
    middleboxAttachmentIds string[]
    Middle box attachment Ids
    state string
    State of the transit gateway metering policy
    tags Tag[]
    The tags assigned to 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
    middlebox_attachment_ids Sequence[str]
    Middle box attachment Ids
    state str
    State of the transit gateway metering policy
    tags Sequence[root_Tag]
    The tags assigned to 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
    middleboxAttachmentIds List<String>
    Middle box attachment Ids
    state String
    State of the transit gateway metering policy
    tags List<Property Map>
    The tags assigned to 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

    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