Show / Hide Table of Contents

Interface IPortProps

Properties to create a port range.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IPortProps
Syntax (vb)
Public Interface 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

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.

Properties

FromPort

The starting port for the range.

double? FromPort { get; }
Property Value

double?

Remarks

Default: - Not included in the rule

Protocol

The protocol for the range.

Protocol Protocol { get; }
Property Value

Protocol

Remarks

ExampleMetadata: fixture=_generated

StringRepresentation

String representation for this object.

string StringRepresentation { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

ToPort

The ending port for the range.

double? ToPort { get; }
Property Value

double?

Remarks

Default: - Not included in the rule

Back to top Generated by DocFX