Class CfnDomain.Builder

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

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

    • create

      @Stability(Stable) public static CfnDomain.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 CfnDomain.Builder.
    • domainName

      @Stability(Stable) public CfnDomain.Builder domainName(String domainName)
      A string that specifies the name of the requested domain.

      Parameters:
      domainName - A string that specifies the name of the requested domain. This parameter is required.
      Returns:
      this
    • encryptionKey

      @Stability(Stable) public CfnDomain.Builder encryptionKey(String encryptionKey)
      The key used to encrypt the domain.

      Parameters:
      encryptionKey - The key used to encrypt the domain. This parameter is required.
      Returns:
      this
    • permissionsPolicyDocument

      @Stability(Stable) public CfnDomain.Builder permissionsPolicyDocument(Object permissionsPolicyDocument)
      The document that defines the resource policy that is set on a domain.

      Parameters:
      permissionsPolicyDocument - The document that defines the resource policy that is set on a domain. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDomain.Builder tags(List<? extends CfnTag> tags)
      A list of tags to be applied to the domain.

      Parameters:
      tags - A list of tags to be applied to the domain. This parameter is required.
      Returns:
      this
    • build

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