AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::TransitGatewayMeteringPolicyEntry

EC2 TransitGatewayMeteringPolicyEntry

AWS::EC2::TransitGatewayMeteringPolicyEntry Resource Definition

Properties

12 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
MeteredAccount
string
RequiredCreate-only
PolicyRuleNumber
integer
RequiredCreate-only
TransitGatewayMeteringPolicyId
string
RequiredCreate-only
DestinationCidrBlock
string
Create-only
DestinationPortRange
string
Create-only
DestinationTransitGatewayAttachmentId
string
Create-only
DestinationTransitGatewayAttachmentType
string
Create-only
Protocol
string
Create-only
SourceCidrBlock
string
Create-only
SourcePortRange
string
Create-only
SourceTransitGatewayAttachmentId
string
Create-only
SourceTransitGatewayAttachmentType
string
Create-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
StatestringState of the transit gateway metering policy
UpdateEffectiveAtstringThe timestamp at which the latest action performed on the metering policy entry will become effective

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::TransitGatewayMeteringPolicyEntry

Resources:
  MyResource:
    Type: AWS::EC2::TransitGatewayMeteringPolicyEntry
    Properties:
      TransitGatewayMeteringPolicyId: "my-transitgatewaymeteringpolicyid"
      PolicyRuleNumber: 1
      MeteredAccount: "value"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ec2:GetTransitGatewayMeteringPolicyEntries

create

ec2:GetTransitGatewayMeteringPolicyEntriesec2:CreateTransitGatewayMeteringPolicyEntry

list

ec2:GetTransitGatewayMeteringPolicyEntries

delete

ec2:GetTransitGatewayMeteringPolicyEntriesec2:DeleteTransitGatewayMeteringPolicyEntry

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties14
Required3
TaggingNot supported
Primary IDTransitGatewayMeteringPolicyId

Supported Operations

ReadCreateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

TransitGatewayMeteringPolicyIdPolicyRuleNumberMeteredAccountSourceTransitGatewayAttachmentIdSourceTransitGatewayAttachmentTypeSourceCidrBlockSourcePortRangeDestinationTransitGatewayAttachmentIdDestinationTransitGatewayAttachmentTypeDestinationCidrBlockDestinationPortRangeProtocol

External Links