LoadBalancerListenerContextResponse Struct
Properties of a discovered load balancer listener.
| Source | cx-api/lib/legacy-moved.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const loadBalancerListenerContextResponse: cx_api.LoadBalancerListenerContextResponse = {
listenerArn: 'listenerArn',
listenerPort: 123,
securityGroupIds: ['securityGroupIds'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cx_api
load_balancer_listener_context_response = cx_api.LoadBalancerListenerContextResponse(
listener_arn="listenerArn",
listener_port=123,
security_group_ids=["securityGroupIds"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;
LoadBalancerListenerContextResponse loadBalancerListenerContextResponse = LoadBalancerListenerContextResponse.builder()
.listenerArn("listenerArn")
.listenerPort(123)
.securityGroupIds(List.of("securityGroupIds"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;
var loadBalancerListenerContextResponse = new LoadBalancerListenerContextResponse {
ListenerArn = "listenerArn",
ListenerPort = 123,
SecurityGroupIds = new [] { "securityGroupIds" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
loadBalancerListenerContextResponse := &LoadBalancerListenerContextResponse{
ListenerArn: jsii.String("listenerArn"),
ListenerPort: jsii.Number(123),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
}
Properties
The ARN of the listener.
listenerPortnumberlistener_portint | floatlistenerPortNumberListenerPortdoubleListenerPort*float64 required #The port the listener is listening on.
securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*string required #The security groups of the load balancer.