Class CfnDomain
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lightsail.CfnDomain
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDomainRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:24.672Z")
@Stability(Stable)
public class CfnDomain
extends CfnResource
implements IInspectable, IDomainRef, ITaggableV2
Describes a domain where you are storing recordsets.
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.lightsail.*;
CfnDomain cfnDomain = CfnDomain.Builder.create(this, "MyCfnDomain")
.domainName("domainName")
// the properties below are optional
.domainEntries(List.of(DomainEntryProperty.builder()
.name("name")
.target("target")
.type("type")
// the properties below are optional
.id("id")
.isAlias(false)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDomain.static interfaceDescribes a domain recordset entry.static interfaceThe AWS Region and Availability Zone where the domain was created (read-only).Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.lightsail.IDomainRef
IDomainRef.Jsii$Default, IDomainRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDomain(software.amazon.jsii.JsiiObjectRef objRef) CfnDomain(software.constructs.Construct scope, String id, CfnDomainProps props) Create a newAWS::Lightsail::Domain. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDomain(IDomainRef resource) The Amazon Resource Name (ARN) of the domain recordset (arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE).The date when the domain recordset was created.The AWS Region and Availability Zone where the domain was created (read-only).The resource type.The support code.Tag Manager which manages the tags for this resource.An array of key-value pairs containing information about the domain entries.The fully qualified domain name in the certificate request.A reference to a Domain resource.getTags()The tag keys and optional values for the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDomainEntries(List<Object> value) An array of key-value pairs containing information about the domain entries.voidsetDomainEntries(IResolvable value) An array of key-value pairs containing information about the domain entries.voidsetDomainName(String value) The fully qualified domain name in the certificate request.voidThe tag keys and optional values for the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDomain
protected CfnDomain(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDomain
protected CfnDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDomain
@Stability(Stable) public CfnDomain(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDomainProps props) Create a newAWS::Lightsail::Domain.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForDomain
- Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the domain recordset (arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE). -
getAttrCreatedAt
The date when the domain recordset was created. -
getAttrLocation
The AWS Region and Availability Zone where the domain was created (read-only). -
getAttrResourceType
The resource type. -
getAttrSupportCode
The support code.Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDomainRef
A reference to a Domain resource.- Specified by:
getDomainRefin interfaceIDomainRef
-
getDomainName
The fully qualified domain name in the certificate request. -
setDomainName
The fully qualified domain name in the certificate request. -
getDomainEntries
An array of key-value pairs containing information about the domain entries.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDomain.DomainEntryProperty> -
setDomainEntries
An array of key-value pairs containing information about the domain entries. -
setDomainEntries
An array of key-value pairs containing information about the domain entries. -
getTags
The tag keys and optional values for the resource. -
setTags
The tag keys and optional values for the resource.
-