TlsConfigProperty Struct
The TlsConfig property specifies the TLS configuration for a private integration.
If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const tlsConfigProperty: apigatewayv2.CfnIntegration.TlsConfigProperty = {
serverNameToVerify: 'serverNameToVerify',
};
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_apigatewayv2 as apigatewayv2
tls_config_property = apigatewayv2.CfnIntegration.TlsConfigProperty(
server_name_to_verify="serverNameToVerify"
)
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.apigatewayv2.*;
TlsConfigProperty tlsConfigProperty = TlsConfigProperty.builder()
.serverNameToVerify("serverNameToVerify")
.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.Apigatewayv2;
var tlsConfigProperty = new TlsConfigProperty {
ServerNameToVerify = "serverNameToVerify"
};
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"
tlsConfigProperty := &TlsConfigProperty{
ServerNameToVerify: jsii.String("serverNameToVerify"),
}
Properties
serverNameToVerifyoptionalstringserver_name_to_verifyoptionalstrserverNameToVerifyoptionalStringServerNameToVerifyoptionalstringServerNameToVerifyoptional*string #If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate.
The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting.