Class CfnRepository.Builder

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

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

    • create

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

      @Stability(Stable) public CfnRepository.Builder domainName(String domainName)
      The name of the domain that contains the repository.

      Parameters:
      domainName - The name of the domain that contains the repository. This parameter is required.
      Returns:
      this
    • repositoryName

      @Stability(Stable) public CfnRepository.Builder repositoryName(String repositoryName)
      The name of an upstream repository.

      Parameters:
      repositoryName - The name of an upstream repository. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnRepository.Builder description(String description)
      A text description of the repository.

      Parameters:
      description - A text description of the repository. This parameter is required.
      Returns:
      this
    • domainOwner

      @Stability(Stable) public CfnRepository.Builder domainOwner(String domainOwner)
      The 12-digit account number of the AWS account that owns the domain that contains the repository.

      It does not include dashes or spaces.

      Parameters:
      domainOwner - The 12-digit account number of the AWS account that owns the domain that contains the repository. This parameter is required.
      Returns:
      this
    • externalConnections

      @Stability(Stable) public CfnRepository.Builder externalConnections(List<String> externalConnections)
      An array of external connections associated with the repository.

      Parameters:
      externalConnections - An array of external connections associated with the repository. This parameter is required.
      Returns:
      this
    • permissionsPolicyDocument

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

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

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

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

      @Stability(Stable) public CfnRepository.Builder upstreams(List<String> upstreams)
      A list of upstream repositories to associate with the repository.

      The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .

      Parameters:
      upstreams - A list of upstream repositories to associate with the repository. This parameter is required.
      Returns:
      this
    • build

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