Class ConnectionsProps
Properties to intialize a new Connections object.
Implements
Inherited Members
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
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
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
Remarks
Default: No security groups