Class CfnService.Builder

java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnService.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService>
Enclosing class:
CfnService

@Stability(Stable) public static final class CfnService.Builder extends Object implements software.amazon.jsii.Builder<CfnService>
A fluent builder for CfnService.
  • Method Details

    • create

      @Stability(Stable) public static CfnService.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnService.Builder.
    • authType

      @Stability(Stable) public CfnService.Builder authType(String authType)
      The type of IAM policy.

      • NONE : The resource does not use an IAM policy. This is the default.
      • AWS_IAM : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.

      Parameters:
      authType - The type of IAM policy. This parameter is required.
      Returns:
      this
    • certificateArn

      @Stability(Stable) public CfnService.Builder certificateArn(String certificateArn)
      The Amazon Resource Name (ARN) of the certificate.

      Parameters:
      certificateArn - The Amazon Resource Name (ARN) of the certificate. This parameter is required.
      Returns:
      this
    • customDomainName

      @Stability(Stable) public CfnService.Builder customDomainName(String customDomainName)
      The custom domain name of the service.

      Parameters:
      customDomainName - The custom domain name of the service. This parameter is required.
      Returns:
      this
    • dnsEntry

      @Stability(Stable) public CfnService.Builder dnsEntry(IResolvable dnsEntry)
      AWS::VpcLattice::Service.DnsEntry.

      Parameters:
      dnsEntry - AWS::VpcLattice::Service.DnsEntry. This parameter is required.
      Returns:
      this
    • dnsEntry

      @Stability(Stable) public CfnService.Builder dnsEntry(CfnService.DnsEntryProperty dnsEntry)
      AWS::VpcLattice::Service.DnsEntry.

      Parameters:
      dnsEntry - AWS::VpcLattice::Service.DnsEntry. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnService.Builder name(String name)
      The name of the service.

      The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

      If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.

      Parameters:
      name - The name of the service. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnService.Builder tags(List<? extends CfnTag> tags)
      The tags for the service.

      Parameters:
      tags - The tags for the service. This parameter is required.
      Returns:
      this
    • build

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