Class ListenerPort
Reference to a listener's port just created.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ListenerPort : DeputyBase, IConnectable
Syntax (vb)
Public Class ListenerPort
Inherits DeputyBase
Implements IConnectable
Remarks
This implements IConnectable with a default port (the port that an ELB listener was just created on) for a given security group so that it can be conveniently used just like any Connectable. E.g:
const listener = elb.addListener(...);
listener.connections.allowDefaultPortFromAnyIPv4(); // or instance.connections.allowToDefaultPort(listener);
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;
using Amazon.CDK.AWS.ElasticLoadBalancing;
Port port;
SecurityGroup securityGroup;
var listenerPort = new ListenerPort(securityGroup, port);
Synopsis
Constructors
ListenerPort(ISecurityGroup, Port) | |
ListenerPort(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ListenerPort(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Connections | The network connections associated with this resource. |
Constructors
ListenerPort(ISecurityGroup, Port)
public ListenerPort(ISecurityGroup securityGroup, Port defaultPort)
Parameters
- securityGroup ISecurityGroup
- defaultPort Port
ListenerPort(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ListenerPort(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ListenerPort(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ListenerPort(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Connections
The network connections associated with this resource.
public virtual Connections_ Connections { get; }
Property Value