Creates an entry in a transit gateway metering policy to define traffic measurement rules
Source:R/ec2_operations.R
ec2_create_transit_gateway_metering_policy_entry.RdCreates an entry in a transit gateway metering policy to define traffic measurement rules.
See https://www.paws-r-sdk.com/docs/ec2_create_transit_gateway_metering_policy_entry/ for full documentation.
Usage
ec2_create_transit_gateway_metering_policy_entry(
TransitGatewayMeteringPolicyId,
PolicyRuleNumber,
SourceTransitGatewayAttachmentId = NULL,
SourceTransitGatewayAttachmentType = NULL,
SourceCidrBlock = NULL,
SourcePortRange = NULL,
DestinationTransitGatewayAttachmentId = NULL,
DestinationTransitGatewayAttachmentType = NULL,
DestinationCidrBlock = NULL,
DestinationPortRange = NULL,
Protocol = NULL,
MeteredAccount,
DryRun = NULL
)Arguments
- TransitGatewayMeteringPolicyId
[required] The ID of the transit gateway metering policy to add the entry to.
- PolicyRuleNumber
[required] The rule number for the metering policy entry. Rules are processed in order from lowest to highest number.
- SourceTransitGatewayAttachmentId
The ID of the source transit gateway attachment for traffic matching.
- SourceTransitGatewayAttachmentType
The type of the source transit gateway attachment for traffic matching. Note that the
tgw-peeringresource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.- SourceCidrBlock
The source CIDR block for traffic matching.
- SourcePortRange
The source port range for traffic matching.
- DestinationTransitGatewayAttachmentId
The ID of the destination transit gateway attachment for traffic matching.
- DestinationTransitGatewayAttachmentType
The type of the destination transit gateway attachment for traffic matching. Note that the
tgw-peeringresource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.- DestinationCidrBlock
The destination CIDR block for traffic matching.
- DestinationPortRange
The destination port range for traffic matching.
- Protocol
The protocol for traffic matching (1, 6, 17, etc.).
- MeteredAccount
[required] The Amazon Web Services account ID to which the metered traffic should be attributed.
- DryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.