1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. codeartifact
  5. Repository

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.codeartifact.Repository

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

The resource schema to create a CodeArtifact repository.

Create Repository Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
               args: RepositoryArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def Repository(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               domain_name: Optional[str] = None,
               description: Optional[str] = None,
               domain_owner: Optional[str] = None,
               external_connections: Optional[Sequence[str]] = None,
               permissions_policy_document: Optional[Any] = None,
               repository_name: Optional[str] = None,
               tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
               upstreams: Optional[Sequence[str]] = None)
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: aws-native:codeartifact:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RepositoryArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Repository Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Repository resource accepts the following input properties:

DomainName This property is required. string
The name of the domain that contains the repository.
Description string
A text description of the repository.
DomainOwner string
The 12-digit account ID of the AWS account that owns the domain.
ExternalConnections List<string>
A list of external connections associated with the repository.
PermissionsPolicyDocument object

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

RepositoryName string
The name of the repository.
Tags List<Pulumi.AwsNative.Inputs.Tag>
An array of key-value pairs to apply to this resource.
Upstreams List<string>
A list of upstream repositories associated with the repository.
DomainName This property is required. string
The name of the domain that contains the repository.
Description string
A text description of the repository.
DomainOwner string
The 12-digit account ID of the AWS account that owns the domain.
ExternalConnections []string
A list of external connections associated with the repository.
PermissionsPolicyDocument interface{}

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

RepositoryName string
The name of the repository.
Tags TagArgs
An array of key-value pairs to apply to this resource.
Upstreams []string
A list of upstream repositories associated with the repository.
domainName This property is required. String
The name of the domain that contains the repository.
description String
A text description of the repository.
domainOwner String
The 12-digit account ID of the AWS account that owns the domain.
externalConnections List<String>
A list of external connections associated with the repository.
permissionsPolicyDocument Object

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

repositoryName String
The name of the repository.
tags List<Tag>
An array of key-value pairs to apply to this resource.
upstreams List<String>
A list of upstream repositories associated with the repository.
domainName This property is required. string
The name of the domain that contains the repository.
description string
A text description of the repository.
domainOwner string
The 12-digit account ID of the AWS account that owns the domain.
externalConnections string[]
A list of external connections associated with the repository.
permissionsPolicyDocument any

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

repositoryName string
The name of the repository.
tags Tag[]
An array of key-value pairs to apply to this resource.
upstreams string[]
A list of upstream repositories associated with the repository.
domain_name This property is required. str
The name of the domain that contains the repository.
description str
A text description of the repository.
domain_owner str
The 12-digit account ID of the AWS account that owns the domain.
external_connections Sequence[str]
A list of external connections associated with the repository.
permissions_policy_document Any

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

repository_name str
The name of the repository.
tags Sequence[TagArgs]
An array of key-value pairs to apply to this resource.
upstreams Sequence[str]
A list of upstream repositories associated with the repository.
domainName This property is required. String
The name of the domain that contains the repository.
description String
A text description of the repository.
domainOwner String
The 12-digit account ID of the AWS account that owns the domain.
externalConnections List<String>
A list of external connections associated with the repository.
permissionsPolicyDocument Any

The access control resource policy on the provided repository.

Search the CloudFormation User Guide for AWS::CodeArtifact::Repository for more information about the expected schema for this property.

repositoryName String
The name of the repository.
tags List<Property Map>
An array of key-value pairs to apply to this resource.
upstreams List<String>
A list of upstream repositories associated with the repository.

Outputs

All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:

Arn string
The ARN of the repository.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the repository. This is used for GetAtt
Arn string
The ARN of the repository.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the repository. This is used for GetAtt
arn String
The ARN of the repository.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the repository. This is used for GetAtt
arn string
The ARN of the repository.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the repository. This is used for GetAtt
arn str
The ARN of the repository.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the repository. This is used for GetAtt
arn String
The ARN of the repository.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the repository. This is used for GetAtt

Supporting Types

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi