ApplicationListenerCertificateProps Struct
Properties for adding a set of certificates to a listener.
Example
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
# 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
// 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();
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 }
};
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
certificatesoptionalIListenerCertificate[]certificatesoptionaltyping.List[IListenerCertificate]certificatesoptionalList<IListenerCertificate>CertificatesoptionalIListenerCertificate[]Certificatesoptional*[]IListenerCertificate#Certificates to attach.
Default: One of 'certificates' and 'certificateArns' is required.
Duplicates are not allowed.
listenerIListenerReflistenerIListenerReflistenerIListenerRefListenerIListenerRefListenerIListenerRefrequired#The listener to attach the rule to.