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 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

      @Stability(Stable) public CnameInstance.Builder instanceId(String 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

      @Stability(Stable) public CnameInstance.Builder 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. 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

      @Stability(Stable) public CnameInstance.Builder service(IService 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

      @Stability(Stable) public CnameInstance build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CnameInstance>
      Returns:
      a newly built instance of CnameInstance.