Interface DomainNameProps
- All Superinterfaces:
DomainNameOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DomainNameProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:04.113Z")
@Stability(Stable)
public interface DomainNameProps
extends software.amazon.jsii.JsiiSerializable, DomainNameOptions
Example:
Object acmCertificateForExampleCom;
RestApi restApi;
DomainName.Builder.create(this, "custom-domain")
.domainName("example.com")
.certificate(acmCertificateForExampleCom)
.mapping(restApi)
.basePath("orders/v1/api")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDomainNamePropsstatic final classAn implementation forDomainNameProps -
Method Summary
Modifier and TypeMethodDescriptionstatic DomainNameProps.Builderbuilder()default IRestApiIf specified, all requests to this domain will be mapped to the production deployment of this API.Methods inherited from interface software.amazon.awscdk.services.apigateway.DomainNameOptions
getBasePath, getCertificate, getDomainName, getEndpointType, getMtls, getSecurityPolicyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMapping
If specified, all requests to this domain will be mapped to the production deployment of this API.If you wish to map this domain to multiple APIs with different base paths, use
addBasePathMappingoraddApiMapping.Default: - you will have to call `addBasePathMapping` to map this domain to API endpoints.
-
builder
- Returns:
- a
DomainNameProps.BuilderofDomainNameProps
-