Skip to content
v2.278.0

MutualTlsAuthenticationProperty ​

Struct External

The mutual TLS authentication configuration for a custom domain name.

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const mutualTlsAuthenticationProperty: apigateway.CfnDomainName.MutualTlsAuthenticationProperty = {
  truststoreUri: 'truststoreUri',
  truststoreVersion: 'truststoreVersion',
};
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_apigateway as apigateway

mutual_tls_authentication_property = apigateway.CfnDomainName.MutualTlsAuthenticationProperty(
    truststore_uri="truststoreUri",
    truststore_version="truststoreVersion"
)
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.apigateway.*;

MutualTlsAuthenticationProperty mutualTlsAuthenticationProperty = MutualTlsAuthenticationProperty.builder()
        .truststoreUri("truststoreUri")
        .truststoreVersion("truststoreVersion")
        .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.APIGateway;

var mutualTlsAuthenticationProperty = new MutualTlsAuthenticationProperty {
    TruststoreUri = "truststoreUri",
    TruststoreVersion = "truststoreVersion"
};
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"

mutualTlsAuthenticationProperty := &MutualTlsAuthenticationProperty{
	TruststoreUri: jsii.String("truststoreUri"),
	TruststoreVersion: jsii.String("truststoreVersion"),
}

Properties ​

truststoreUrioptionalstringtruststore_urioptionalstrtruststoreUrioptionalStringTruststoreUrioptionalstringTruststoreUrioptional*string #
An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example `s3://bucket-name/key-name` .
notes

The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

truststoreVersionoptionalstringtruststore_versionoptionalstrtruststoreVersionoptionalStringTruststoreVersionoptionalstringTruststoreVersionoptional*string #
The version of the S3 object that contains your truststore.

To specify a version, you must have versioning enabled for the S3 bucket.