Class CnameInstance.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CnameInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CnameInstance>
- Enclosing class:
CnameInstance
@Stability(Stable)
public static final class CnameInstance.Builder
extends Object
implements software.amazon.jsii.Builder<CnameInstance>
A fluent builder for
CnameInstance
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CnameInstance.Builder
customAttributes
(Map<String, String> customAttributes) Custom attributes of the instance.instanceCname
(String instanceCname) If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.instanceId
(String instanceId) The id of the instance resource.The Cloudmap service this resource is registered to.
-
Method Details
-
create
@Stability(Stable) public static CnameInstance.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
CnameInstance.Builder
.
-
customAttributes
@Stability(Stable) public CnameInstance.Builder customAttributes(Map<String, String> customAttributes) Custom attributes of the instance.Default: none
- Parameters:
customAttributes
- Custom attributes of the instance. This parameter is required.- Returns:
this
-
instanceId
The id of the instance resource.Default: Automatically generated name
- Parameters:
instanceId
- The id of the instance resource. This parameter is required.- Returns:
this
-
instanceCname
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record.- Parameters:
instanceCname
- If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record. This parameter is required.- Returns:
this
-
service
The Cloudmap service this resource is registered to.- Parameters:
service
- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CnameInstance>
- Returns:
- a newly built instance of
CnameInstance
.
-