# LoadBalancerListenerContextResponse

Properties of a discovered load balancer listener.

- Source: [`cx-api/lib/legacy-moved.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/cx-api/lib/legacy-moved.ts#L1054)
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `listenerArn`: string (required) — The ARN of the listener.

- `listenerPort`: number (required) — The port the listener is listening on.

- `securityGroupIds`: string[] (required) — The security groups of the load balancer.
