Interface IConnectionsProps
Properties to intialize a new Connections object.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IConnectionsProps
Syntax (vb)
Public Interface 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
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. |
Properties
DefaultPort
Default port range for initiating connections to and from this object.
virtual Port DefaultPort { get; }
Property Value
Remarks
Default: - No default port
Peer
Class that represents the rule by which others can connect to this connectable.
virtual IPeer Peer { get; }
Property Value
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.
virtual ISecurityGroup[] SecurityGroups { get; }
Property Value
Remarks
Default: No security groups