# ApplicationListenerCertificateProps

Properties for adding a set of certificates to a listener.

Used as props by: [ApplicationListenerCertificate](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListenerCertificate.html)

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-listener-certificate.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener-certificate.ts#L11)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
import { aws_elasticloadbalancingv2 as interfaces_elasticloadbalancingv2 } from 'aws-cdk-lib/interfaces';

declare const listenerCertificate: elbv2.ListenerCertificate;
declare const listenerRef: interfaces_elasticloadbalancingv2.IListenerRef;
const applicationListenerCertificateProps: elbv2.ApplicationListenerCertificateProps = {
  listener: listenerRef,

  // the properties below are optional
  certificates: [listenerCertificate],
};
```

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 aws_elasticloadbalancingv2 as elbv2
from aws_cdk.interfaces import aws_elasticloadbalancingv2 as interfaces_elasticloadbalancingv2

# listener_certificate: elbv2.ListenerCertificate
# listener_ref: interfaces_elasticloadbalancingv2.IListenerRef

application_listener_certificate_props = elbv2.ApplicationListenerCertificateProps(
    listener=listener_ref,

    # the properties below are optional
    certificates=[listener_certificate]
)
```

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.services.elasticloadbalancingv2.*;
import software.amazon.awscdk.interfaces.elasticloadbalancingv2.*;

ListenerCertificate listenerCertificate;
IListenerRef listenerRef;

ApplicationListenerCertificateProps applicationListenerCertificateProps = ApplicationListenerCertificateProps.builder()
        .listener(listenerRef)

        // the properties below are optional
        .certificates(List.of(listenerCertificate))
        .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.AWS.ElasticLoadBalancingV2;
using Amazon.CDK.Interfaces.ElasticLoadBalancingV2;

ListenerCertificate listenerCertificate;
IListenerRef listenerRef;

var applicationListenerCertificateProps = new ApplicationListenerCertificateProps {
    Listener = listenerRef,

    // the properties below are optional
    Certificates = new [] { listenerCertificate }
};
```

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"
import "github.com/aws/aws-cdk-go/awscdk"

var listenerCertificate ListenerCertificate
var listenerRef IListenerRef

applicationListenerCertificateProps := &ApplicationListenerCertificateProps{
	Listener: listenerRef,

	// the properties below are optional
	Certificates: []IListenerCertificate{
		listenerCertificate,
	},
}
```

## Properties

- `certificates`: [IListenerCertificate](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.IListenerCertificate.html)[] — Certificates to attach.

  **Default:** One of 'certificates' and 'certificateArns' is required.

  Duplicates are not allowed.

- `listener`: [IListenerRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_elasticloadbalancingv2.IListenerRef.html) (required) — The listener to attach the rule to.
