Creates an entry in a transit gateway metering policy to define traffic measurement rules¶
Description¶
Creates an entry in a transit gateway metering policy to define traffic measurement rules.
Usage¶
ec2_create_transit_gateway_metering_policy_entry(
TransitGatewayMeteringPolicyId, PolicyRuleNumber,
SourceTransitGatewayAttachmentId, SourceTransitGatewayAttachmentType,
SourceCidrBlock, SourcePortRange, DestinationTransitGatewayAttachmentId,
DestinationTransitGatewayAttachmentType, DestinationCidrBlock,
DestinationPortRange, Protocol, MeteredAccount, DryRun)
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.
-
SourceTransitGatewayAttachmentIdThe ID of the source transit gateway attachment for traffic matching.
-
SourceTransitGatewayAttachmentTypeThe 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. -
SourceCidrBlockThe source CIDR block for traffic matching.
-
SourcePortRangeThe source port range for traffic matching.
-
DestinationTransitGatewayAttachmentIdThe ID of the destination transit gateway attachment for traffic matching.
-
DestinationTransitGatewayAttachmentTypeThe 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. -
DestinationCidrBlockThe destination CIDR block for traffic matching.
-
DestinationPortRangeThe destination port range for traffic matching.
-
ProtocolThe protocol for traffic matching (1, 6, 17, etc.).
-
MeteredAccount[required] The Amazon Web Services account ID to which the metered traffic should be attributed.
-
DryRunChecks 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.
Value¶
A list with the following syntax:
list(
TransitGatewayMeteringPolicyEntry = list(
PolicyRuleNumber = "string",
MeteredAccount = "source-attachment-owner"|"destination-attachment-owner"|"transit-gateway-owner",
State = "available"|"deleted",
UpdatedAt = as.POSIXct(
"2015-01-01"
),
UpdateEffectiveAt = as.POSIXct(
"2015-01-01"
),
MeteringPolicyRule = list(
SourceTransitGatewayAttachmentId = "string",
SourceTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
SourceCidrBlock = "string",
SourcePortRange = "string",
DestinationTransitGatewayAttachmentId = "string",
DestinationTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
DestinationCidrBlock = "string",
DestinationPortRange = "string",
Protocol = "string"
)
)
)
Request syntax¶
svc$create_transit_gateway_metering_policy_entry(
TransitGatewayMeteringPolicyId = "string",
PolicyRuleNumber = 123,
SourceTransitGatewayAttachmentId = "string",
SourceTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
SourceCidrBlock = "string",
SourcePortRange = "string",
DestinationTransitGatewayAttachmentId = "string",
DestinationTransitGatewayAttachmentType = "vpc"|"vpn"|"vpn-concentrator"|"direct-connect-gateway"|"connect"|"peering"|"tgw-peering"|"network-function"|"client-vpn",
DestinationCidrBlock = "string",
DestinationPortRange = "string",
Protocol = "string",
MeteredAccount = "source-attachment-owner"|"destination-attachment-owner"|"transit-gateway-owner",
DryRun = TRUE|FALSE
)