Interface IDomainOptions
(experimental) Options to add a domain to an application.
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.AWS.Amplify.dll
Syntax (csharp)
public interface IDomainOptions
Syntax (vb)
Public Interface IDomainOptions
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
App amplifyApp;
Branch master;
Branch dev;
var domain = amplifyApp.AddDomain("example.com", new DomainOptions {
EnableAutoSubdomain = true, // in case subdomains should be auto registered for branches
AutoSubdomainCreationPatterns = new [] { "*", "pr*" }
});
domain.MapRoot(master); // map master branch to domain root
domain.MapSubDomain(master, "www");
domain.MapSubDomain(dev);
Synopsis
Properties
AutoSubdomainCreationPatterns | (experimental) Branches which should automatically create subdomains. |
DomainName | (experimental) The name of the domain. |
EnableAutoSubdomain | (experimental) Automatically create subdomains for connected branches. |
SubDomains | (experimental) Subdomains. |
Properties
AutoSubdomainCreationPatterns
(experimental) Branches which should automatically create subdomains.
virtual string[] AutoSubdomainCreationPatterns { get; }
Property Value
System.String[]
Remarks
Default: - all repository branches ['', 'pr']
Stability: Experimental
DomainName
(experimental) The name of the domain.
virtual string DomainName { get; }
Property Value
System.String
Remarks
Default: - the construct's id
Stability: Experimental
EnableAutoSubdomain
(experimental) Automatically create subdomains for connected branches.
virtual Nullable<bool> EnableAutoSubdomain { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Stability: Experimental
SubDomains
(experimental) Subdomains.
virtual ISubDomain[] SubDomains { get; }
Property Value
Remarks
Default: - use addSubDomain()
to add subdomains
Stability: Experimental