package awsapigateway import ( "github.com/aws/aws-cdk-go/awscdk/v2/awscertificatemanager" ) // Example: // var acmCertificateForExampleCom interface{} // // // api := apigateway.NewRestApi(this, jsii.String("MyDomain"), &RestApiProps{ // DomainName: &DomainNameOptions{ // DomainName: jsii.String("example.com"), // Certificate: acmCertificateForExampleCom, // }, // }) // type DomainNameOptions struct { // The reference to an AWS-managed certificate for use by the edge-optimized endpoint for the domain name. // // For "EDGE" domain names, the certificate // needs to be in the US East (N. Virginia) region. Certificate awscertificatemanager.ICertificate `field:"required" json:"certificate" yaml:"certificate"` // The custom domain name for your API. // // Uppercase letters are not supported. DomainName *string `field:"required" json:"domainName" yaml:"domainName"` // The base path name that callers of the API must provide in the URL after the domain name (e.g. `example.com/base-path`). If you specify this property, it can't be an empty string. BasePath *string `field:"optional" json:"basePath" yaml:"basePath"` // The type of endpoint for this DomainName. EndpointType EndpointType `field:"optional" json:"endpointType" yaml:"endpointType"` // The mutual TLS authentication configuration for a custom domain name. Mtls *MTLSConfig `field:"optional" json:"mtls" yaml:"mtls"` // The Transport Layer Security (TLS) version + cipher suite for this domain name. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html // SecurityPolicy SecurityPolicy `field:"optional" json:"securityPolicy" yaml:"securityPolicy"` }