class CertificateAuthority
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ACMPCA.CertificateAuthority |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsacmpca#CertificateAuthority |
![]() | software.amazon.awscdk.services.acmpca.CertificateAuthority |
![]() | aws_cdk.aws_acmpca.CertificateAuthority |
![]() | aws-cdk-lib » aws_acmpca » CertificateAuthority |
Defines a Certificate for ACMPCA.
Example
import * as acmpca from 'aws-cdk-lib/aws-acmpca';
declare const vpc: ec2.Vpc;
const cluster = new msk.Cluster(this, 'Cluster', {
clusterName: 'myCluster',
kafkaVersion: msk.KafkaVersion.V2_8_1,
vpc,
encryptionInTransit: {
clientBroker: msk.ClientBrokerEncryption.TLS,
},
clientAuthentication: msk.ClientAuthentication.tls({
certificateAuthorities: [
acmpca.CertificateAuthority.fromCertificateAuthorityArn(
this,
'CertificateAuthority',
'arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111',
),
],
}),
});
Methods
Name | Description |
---|---|
static from | Import an existing Certificate given an ARN. |
static fromCertificateAuthorityArn(scope, id, certificateAuthorityArn)
public static fromCertificateAuthorityArn(scope: Construct, id: string, certificateAuthorityArn: string): ICertificateAuthority
Parameters
- scope
Construct
- id
string
- certificateAuthorityArn
string
Returns
Import an existing Certificate given an ARN.