AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The matching criteria for a transit gateway policy table entry.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.TransitGatewayRequestPolicyRule

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class TransitGatewayRequestPolicyRule

The TransitGatewayRequestPolicyRule type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DestinationCidrBlock System.String

Gets and sets the property DestinationCidrBlock.

The destination CIDR block for the policy rule.

Public Property DestinationPortRange System.String

Gets and sets the property DestinationPortRange.

The destination port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.

Public Property MetaData Amazon.EC2.Model.TransitGatewayRequestPolicyRuleMetaData

Gets and sets the property MetaData.

The metadata key-value pair for the policy rule.

Public Property Protocol System.String

Gets and sets the property Protocol.

The protocol for the policy rule. Valid values are 1 (ICMP), 6 (TCP), 17 (UDP), 47 (GRE), or * for all protocols.

Public Property SourceCidrBlock System.String

Gets and sets the property SourceCidrBlock.

The source CIDR block for the policy rule.

Public Property SourcePortRange System.String

Gets and sets the property SourcePortRange.

The source port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer