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 Summary
Modifier and TypeMethodDescriptionbuild()static CfnRepository.Builderdescription(String description) A text description of the repository.domainName(String domainName) The name of the domain that contains the repository.domainOwner(String domainOwner) The 12-digit account number of the AWS account that owns the domain that contains the repository.externalConnections(List<String> externalConnections) An array of external connections associated with the repository.permissionsPolicyDocument(Object permissionsPolicyDocument) The document that defines the resource policy that is set on a repository.repositoryName(String repositoryName) The name of an upstream repository.A list of tags to be applied to the repository.A list of upstream repositories to associate with the repository.
-
Method Details
-
create
@Stability(Stable) public static CfnRepository.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnRepository.Builder.
-
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- See Also:
-
repositoryName
The name of an upstream repository.- Parameters:
repositoryName- The name of an upstream repository. This parameter is required.- Returns:
this- See Also:
-
description
A text description of the repository.- Parameters:
description- A text description of the repository. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
externalConnections
@Stability(Stable) public CfnRepository.Builder externalConnections(List<String> externalConnections) An array of external connections associated with the repository.For more information, see Supported external connection repositories in the CodeArtifact user guide .
- Parameters:
externalConnections- An array of external connections associated with the repository. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepository>- Returns:
- a newly built instance of
CfnRepository.
-