Show / Hide Table of Contents

Class ConnectionsProps

Properties to intialize a new Connections object.

Inheritance
object
ConnectionsProps
Implements
IConnectionsProps
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 ConnectionsProps : IConnectionsProps
Syntax (vb)
Public Class ConnectionsProps Implements IConnectionsProps
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;

            IPeer peer;
            Port port;
            SecurityGroup securityGroup;

            var connectionsProps = new ConnectionsProps {
                DefaultPort = port,
                Peer = peer,
                SecurityGroups = new [] { securityGroup }
            };

Synopsis

Constructors

ConnectionsProps()

Properties to intialize a new Connections object.

Properties

DefaultPort

Default port range for initiating connections to and from this object.

Peer

Class that represents the rule by which others can connect to this connectable.

SecurityGroups

What securityGroup(s) this object is managing connections for.

Constructors

ConnectionsProps()

Properties to intialize a new Connections object.

public ConnectionsProps()
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;

            IPeer peer;
            Port port;
            SecurityGroup securityGroup;

            var connectionsProps = new ConnectionsProps {
                DefaultPort = port,
                Peer = peer,
                SecurityGroups = new [] { securityGroup }
            };

Properties

DefaultPort

Default port range for initiating connections to and from this object.

public Port? DefaultPort { get; set; }
Property Value

Port

Remarks

Default: - No default port

Peer

Class that represents the rule by which others can connect to this connectable.

public IPeer? Peer { get; set; }
Property Value

IPeer

Remarks

This object is required, but will be derived from securityGroup if that is passed.

Default: Derived from securityGroup if set.

SecurityGroups

What securityGroup(s) this object is managing connections for.

public ISecurityGroup[]? SecurityGroups { get; set; }
Property Value

ISecurityGroup[]

Remarks

Default: No security groups

Implements

IConnectionsProps
Back to top Generated by DocFX