ViewerMtlsConfigProperty Struct
A viewer mTLS configuration.
| 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_cloudfront as cloudfront } from 'aws-cdk-lib';
const viewerMtlsConfigProperty: cloudfront.CfnDistribution.ViewerMtlsConfigProperty = {
mode: 'mode',
trustStoreConfig: {
trustStoreId: 'trustStoreId',
// the properties below are optional
advertiseTrustStoreCaNames: false,
ignoreCertificateExpiry: false,
},
};
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_cloudfront as cloudfront
viewer_mtls_config_property = cloudfront.CfnDistribution.ViewerMtlsConfigProperty(
mode="mode",
trust_store_config=cloudfront.CfnDistribution.TrustStoreConfigProperty(
trust_store_id="trustStoreId",
# the properties below are optional
advertise_trust_store_ca_names=False,
ignore_certificate_expiry=False
)
)
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.cloudfront.*;
ViewerMtlsConfigProperty viewerMtlsConfigProperty = ViewerMtlsConfigProperty.builder()
.mode("mode")
.trustStoreConfig(TrustStoreConfigProperty.builder()
.trustStoreId("trustStoreId")
// the properties below are optional
.advertiseTrustStoreCaNames(false)
.ignoreCertificateExpiry(false)
.build())
.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.CloudFront;
var viewerMtlsConfigProperty = new ViewerMtlsConfigProperty {
Mode = "mode",
TrustStoreConfig = new TrustStoreConfigProperty {
TrustStoreId = "trustStoreId",
// the properties below are optional
AdvertiseTrustStoreCaNames = false,
IgnoreCertificateExpiry = false
}
};
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"
viewerMtlsConfigProperty := &ViewerMtlsConfigProperty{
Mode: jsii.String("mode"),
TrustStoreConfig: &TrustStoreConfigProperty{
TrustStoreId: jsii.String("trustStoreId"),
// the properties below are optional
AdvertiseTrustStoreCaNames: jsii.Boolean(false),
IgnoreCertificateExpiry: jsii.Boolean(false),
},
}
Properties
The viewer mTLS mode.
trustStoreConfigoptionalIResolvable | CfnDistribution.trust_store_configoptionaltyping.Union[IResolvable, TrustStoreConfigProperty]trustStoreConfigoptionalIResolvableTrustStoreConfigoptionalIResolvableTrustStoreConfigoptionalinterface{} #The trust store configuration associated with the viewer mTLS configuration.