Show / Hide Table of Contents

Class PortProps

Properties to create a port range.

Inheritance
object
PortProps
Implements
IPortProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortProps : IPortProps
Syntax (vb)
Public Class PortProps Implements IPortProps
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.EC2;

            var portProps = new PortProps {
                Protocol = Protocol.ALL,
                StringRepresentation = "stringRepresentation",

                // the properties below are optional
                FromPort = 123,
                ToPort = 123
            };

Synopsis

Constructors

PortProps()

Properties to create a port range.

Properties

FromPort

The starting port for the range.

Protocol

The protocol for the range.

StringRepresentation

String representation for this object.

ToPort

The ending port for the range.

Constructors

PortProps()

Properties to create a port range.

public PortProps()
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.EC2;

            var portProps = new PortProps {
                Protocol = Protocol.ALL,
                StringRepresentation = "stringRepresentation",

                // the properties below are optional
                FromPort = 123,
                ToPort = 123
            };

Properties

FromPort

The starting port for the range.

public double? FromPort { get; set; }
Property Value

double?

Remarks

Default: - Not included in the rule

Protocol

The protocol for the range.

public Protocol Protocol { get; set; }
Property Value

Protocol

Remarks

ExampleMetadata: fixture=_generated

StringRepresentation

String representation for this object.

public string StringRepresentation { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

ToPort

The ending port for the range.

public double? ToPort { get; set; }
Property Value

double?

Remarks

Default: - Not included in the rule

Implements

IPortProps
Back to top Generated by DocFX