class ListenerCertificate
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticLoadBalancingV2.ListenerCertificate |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ListenerCertificate |
![]() | software.amazon.awscdk.services.elasticloadbalancingv2.ListenerCertificate |
![]() | aws_cdk.aws_elasticloadbalancingv2.ListenerCertificate |
![]() | aws-cdk-lib » aws_elasticloadbalancingv2 » ListenerCertificate |
Implements
IListener
A certificate source for an ELBv2 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';
const listenerCertificate = elbv2.ListenerCertificate.fromArn('certificateArn');
Initializer (protected)
super(certificateArn: string)
Parameters
- certificateArn
string
— The ARN of the certificate to use.
Properties
Name | Type | Description |
---|---|---|
certificate | string | The ARN of the certificate to use. |
certificateArn
Type:
string
The ARN of the certificate to use.
Methods
Name | Description |
---|---|
static from | Use any certificate, identified by its ARN, as a listener certificate. |
static from | Use an ACM certificate as a listener certificate. |
static fromArn(certificateArn)
public static fromArn(certificateArn: string): ListenerCertificate
Parameters
- certificateArn
string
Returns
Use any certificate, identified by its ARN, as a listener certificate.
static fromCertificateManager(acmCertificate)
public static fromCertificateManager(acmCertificate: ICertificate): ListenerCertificate
Parameters
- acmCertificate
ICertificate
Returns
Use an ACM certificate as a listener certificate.