class ApplicationListenerCertificate (construct)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.ApplicationListenerCertificate |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ApplicationListenerCertificate |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerCertificate |
Python | aws_cdk.aws_elasticloadbalancingv2.ApplicationListenerCertificate |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » ApplicationListenerCertificate |
Implements
IConstruct, IDependable
Add certificates to a listener.
Example
// 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 applicationListenerCertificate = new elbv2.ApplicationListenerCertificate(this, 'MyApplicationListenerCertificate', {
listener: listenerRef,
// the properties below are optional
certificates: [listenerCertificate],
});
Initializer
new ApplicationListenerCertificate(scope: Construct, id: string, props: ApplicationListenerCertificateProps)
Parameters
- scope
Construct - id
string - props
ApplicationListener Certificate Props
Construct Props
| Name | Type | Description |
|---|---|---|
| listener | IListener | The listener to attach the rule to. |
| certificates? | IListener[] | Certificates to attach. |
listener
Type:
IListener
The listener to attach the rule to.
certificates?
Type:
IListener[]
(optional, default: One of 'certificates' and 'certificateArns' is required.)
Certificates to attach.
Duplicates are not allowed.
Properties
| Name | Type | Description |
|---|---|---|
| node | Node | The tree node. |
node
Type:
Node
The tree node.
Methods
| Name | Description |
|---|---|
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.

.NET
Go
Java
Python
TypeScript (