Interface CfnRepositoryProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRepositoryProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.893Z") @Stability(Stable) public interface CfnRepositoryProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnRepository.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codeartifact.*;
 Object permissionsPolicyDocument;
 CfnRepositoryProps cfnRepositoryProps = CfnRepositoryProps.builder()
         .domainName("domainName")
         .repositoryName("repositoryName")
         // the properties below are optional
         .description("description")
         .domainOwner("domainOwner")
         .externalConnections(List.of("externalConnections"))
         .permissionsPolicyDocument(permissionsPolicyDocument)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .upstreams(List.of("upstreams"))
         .build();
 
  • Method Details

    • getDomainName

      @Stability(Stable) @NotNull String getDomainName()
      The name of the domain that contains the repository.
    • getRepositoryName

      @Stability(Stable) @NotNull String getRepositoryName()
      The name of an upstream repository.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A text description of the repository.
    • getDomainOwner

      @Stability(Stable) @Nullable default String getDomainOwner()
      The 12-digit account number of the AWS account that owns the domain that contains the repository.

      It does not include dashes or spaces.

    • getExternalConnections

      @Stability(Stable) @Nullable default List<String> getExternalConnections()
      An array of external connections associated with the repository.
    • getPermissionsPolicyDocument

      @Stability(Stable) @Nullable default Object getPermissionsPolicyDocument()
      The document that defines the resource policy that is set on a repository.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      A list of tags to be applied to the repository.
    • getUpstreams

      @Stability(Stable) @Nullable default List<String> getUpstreams()
      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 .

    • builder

      @Stability(Stable) static CfnRepositoryProps.Builder builder()
      Returns:
      a CfnRepositoryProps.Builder of CfnRepositoryProps