Interface DomainProps

All Superinterfaces:
DomainOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DomainProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:13:07.662Z") @Stability(Experimental) public interface DomainProps extends software.amazon.jsii.JsiiSerializable, DomainOptions
(experimental) Properties for a Domain.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.amplify.alpha.*;
 import software.amazon.awscdk.services.certificatemanager.*;
 import software.amazon.awscdk.services.iam.*;
 App app;
 Branch branch;
 Certificate certificate;
 Role role;
 DomainProps domainProps = DomainProps.builder()
         .app(app)
         // the properties below are optional
         .autoSubdomainCreationPatterns(List.of("autoSubdomainCreationPatterns"))
         .autoSubDomainIamRole(role)
         .customCertificate(certificate)
         .domainName("domainName")
         .enableAutoSubdomain(false)
         .subDomains(List.of(SubDomain.builder()
                 .branch(branch)
                 // the properties below are optional
                 .prefix("prefix")
                 .build()))
         .build();
 
  • Method Details

    • getApp

      @Stability(Experimental) @NotNull IApp getApp()
      (experimental) The application to which the domain must be connected.
    • getAutoSubDomainIamRole

      @Stability(Experimental) @Nullable default IRole getAutoSubDomainIamRole()
      (experimental) The IAM role with access to Route53 when using enableAutoSubdomain.

      Default: the IAM role from App.grantPrincipal

    • builder

      @Stability(Experimental) static DomainProps.Builder builder()
      Returns:
      a DomainProps.Builder of DomainProps