interface MTLSConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.MTLSConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#MTLSConfig |
![]() | software.amazon.awscdk.services.apigatewayv2.MTLSConfig |
![]() | aws_cdk.aws_apigatewayv2.MTLSConfig |
![]() | aws-cdk-lib » aws_apigatewayv2 » MTLSConfig |
The mTLS authentication configuration for a custom domain name.
Example
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
const certArn = 'arn:aws:acm:us-east-1:111111111111:certificate';
const domainName = 'example.com';
declare const bucket: s3.Bucket;
new apigwv2.DomainName(this, 'DomainName', {
domainName,
certificate: acm.Certificate.fromCertificateArn(this, 'cert', certArn),
mtls: {
bucket,
key: 'someca.pem',
version: 'version',
},
});
Properties
Name | Type | Description |
---|---|---|
bucket | IBucket | The bucket that the trust store is hosted in. |
key | string | The key in S3 to look at for the trust store. |
version? | string | The version of the S3 object that contains your truststore. |
bucket
Type:
IBucket
The bucket that the trust store is hosted in.
key
Type:
string
The key in S3 to look at for the trust store.
version?
Type:
string
(optional, default: latest version)
The version of the S3 object that contains your truststore.
To specify a version, you must have versioning enabled for the S3 bucket.