aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationListenerCertificate

class ApplicationListenerCertificate (construct)

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.ApplicationListenerCertificate
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ApplicationListenerCertificate
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerCertificate
Pythonaws_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';

declare const applicationListener: elbv2.ApplicationListener;
declare const listenerCertificate: elbv2.ListenerCertificate;
const applicationListenerCertificate = new elbv2.ApplicationListenerCertificate(this, 'MyApplicationListenerCertificate', {
  listener: applicationListener,

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

Initializer

new ApplicationListenerCertificate(scope: Construct, id: string, props: ApplicationListenerCertificateProps)

Parameters

  • scope Construct
  • id string
  • props ApplicationListenerCertificateProps

Construct Props

NameTypeDescription
listenerIApplicationListenerThe listener to attach the rule to.
certificates?IListenerCertificate[]Certificates to attach.

listener

Type: IApplicationListener

The listener to attach the rule to.


certificates?

Type: IListenerCertificate[] (optional, default: One of 'certificates' and 'certificateArns' is required.)

Certificates to attach.

Duplicates are not allowed.

Properties

NameTypeDescription
nodeNodeThe tree node.

node

Type: Node

The tree node.

Methods

NameDescription
toString()Returns a string representation of this construct.

toString()

public toString(): string

Returns

  • string

Returns a string representation of this construct.