1. Packages
  2. AWS
  3. API Docs
  4. codeartifact
  5. Repository
AWS v6.75.0 published on Wednesday, Apr 2, 2025 by Pulumi

aws.codeartifact.Repository

Explore with Pulumi AI

Provides a CodeArtifact Repository Resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kms.Key("example", {description: "domain key"});
const exampleDomain = new aws.codeartifact.Domain("example", {
    domain: "example",
    encryptionKey: example.arn,
});
const test = new aws.codeartifact.Repository("test", {
    repository: "example",
    domain: exampleDomain.domain,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.kms.Key("example", description="domain key")
example_domain = aws.codeartifact.Domain("example",
    domain="example",
    encryption_key=example.arn)
test = aws.codeartifact.Repository("test",
    repository="example",
    domain=example_domain.domain)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeartifact"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := kms.NewKey(ctx, "example", &kms.KeyArgs{
			Description: pulumi.String("domain key"),
		})
		if err != nil {
			return err
		}
		exampleDomain, err := codeartifact.NewDomain(ctx, "example", &codeartifact.DomainArgs{
			Domain:        pulumi.String("example"),
			EncryptionKey: example.Arn,
		})
		if err != nil {
			return err
		}
		_, err = codeartifact.NewRepository(ctx, "test", &codeartifact.RepositoryArgs{
			Repository: pulumi.String("example"),
			Domain:     exampleDomain.Domain,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kms.Key("example", new()
    {
        Description = "domain key",
    });

    var exampleDomain = new Aws.CodeArtifact.Domain("example", new()
    {
        DomainName = "example",
        EncryptionKey = example.Arn,
    });

    var test = new Aws.CodeArtifact.Repository("test", new()
    {
        RepositoryName = "example",
        Domain = exampleDomain.DomainName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.Key;
import com.pulumi.aws.kms.KeyArgs;
import com.pulumi.aws.codeartifact.Domain;
import com.pulumi.aws.codeartifact.DomainArgs;
import com.pulumi.aws.codeartifact.Repository;
import com.pulumi.aws.codeartifact.RepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Key("example", KeyArgs.builder()
            .description("domain key")
            .build());

        var exampleDomain = new Domain("exampleDomain", DomainArgs.builder()
            .domain("example")
            .encryptionKey(example.arn())
            .build());

        var test = new Repository("test", RepositoryArgs.builder()
            .repository("example")
            .domain(exampleDomain.domain())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:kms:Key
    properties:
      description: domain key
  exampleDomain:
    type: aws:codeartifact:Domain
    name: example
    properties:
      domain: example
      encryptionKey: ${example.arn}
  test:
    type: aws:codeartifact:Repository
    properties:
      repository: example
      domain: ${exampleDomain.domain}
Copy

With Upstream Repository

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const upstream = new aws.codeartifact.Repository("upstream", {
    repository: "upstream",
    domain: testAwsCodeartifactDomain.domain,
});
const test = new aws.codeartifact.Repository("test", {
    repository: "example",
    domain: example.domain,
    upstreams: [{
        repositoryName: upstream.repository,
    }],
});
Copy
import pulumi
import pulumi_aws as aws

upstream = aws.codeartifact.Repository("upstream",
    repository="upstream",
    domain=test_aws_codeartifact_domain["domain"])
test = aws.codeartifact.Repository("test",
    repository="example",
    domain=example["domain"],
    upstreams=[{
        "repository_name": upstream.repository,
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeartifact"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		upstream, err := codeartifact.NewRepository(ctx, "upstream", &codeartifact.RepositoryArgs{
			Repository: pulumi.String("upstream"),
			Domain:     pulumi.Any(testAwsCodeartifactDomain.Domain),
		})
		if err != nil {
			return err
		}
		_, err = codeartifact.NewRepository(ctx, "test", &codeartifact.RepositoryArgs{
			Repository: pulumi.String("example"),
			Domain:     pulumi.Any(example.Domain),
			Upstreams: codeartifact.RepositoryUpstreamArray{
				&codeartifact.RepositoryUpstreamArgs{
					RepositoryName: upstream.Repository,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var upstream = new Aws.CodeArtifact.Repository("upstream", new()
    {
        RepositoryName = "upstream",
        Domain = testAwsCodeartifactDomain.Domain,
    });

    var test = new Aws.CodeArtifact.Repository("test", new()
    {
        RepositoryName = "example",
        Domain = example.Domain,
        Upstreams = new[]
        {
            new Aws.CodeArtifact.Inputs.RepositoryUpstreamArgs
            {
                RepositoryName = upstream.RepositoryName,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codeartifact.Repository;
import com.pulumi.aws.codeartifact.RepositoryArgs;
import com.pulumi.aws.codeartifact.inputs.RepositoryUpstreamArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var upstream = new Repository("upstream", RepositoryArgs.builder()
            .repository("upstream")
            .domain(testAwsCodeartifactDomain.domain())
            .build());

        var test = new Repository("test", RepositoryArgs.builder()
            .repository("example")
            .domain(example.domain())
            .upstreams(RepositoryUpstreamArgs.builder()
                .repositoryName(upstream.repository())
                .build())
            .build());

    }
}
Copy
resources:
  upstream:
    type: aws:codeartifact:Repository
    properties:
      repository: upstream
      domain: ${testAwsCodeartifactDomain.domain}
  test:
    type: aws:codeartifact:Repository
    properties:
      repository: example
      domain: ${example.domain}
      upstreams:
        - repositoryName: ${upstream.repository}
Copy

With External Connection

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const upstream = new aws.codeartifact.Repository("upstream", {
    repository: "upstream",
    domain: testAwsCodeartifactDomain.domain,
});
const test = new aws.codeartifact.Repository("test", {
    repository: "example",
    domain: example.domain,
    externalConnections: {
        externalConnectionName: "public:npmjs",
    },
});
Copy
import pulumi
import pulumi_aws as aws

upstream = aws.codeartifact.Repository("upstream",
    repository="upstream",
    domain=test_aws_codeartifact_domain["domain"])
test = aws.codeartifact.Repository("test",
    repository="example",
    domain=example["domain"],
    external_connections={
        "external_connection_name": "public:npmjs",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeartifact"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := codeartifact.NewRepository(ctx, "upstream", &codeartifact.RepositoryArgs{
			Repository: pulumi.String("upstream"),
			Domain:     pulumi.Any(testAwsCodeartifactDomain.Domain),
		})
		if err != nil {
			return err
		}
		_, err = codeartifact.NewRepository(ctx, "test", &codeartifact.RepositoryArgs{
			Repository: pulumi.String("example"),
			Domain:     pulumi.Any(example.Domain),
			ExternalConnections: &codeartifact.RepositoryExternalConnectionsArgs{
				ExternalConnectionName: pulumi.String("public:npmjs"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var upstream = new Aws.CodeArtifact.Repository("upstream", new()
    {
        RepositoryName = "upstream",
        Domain = testAwsCodeartifactDomain.Domain,
    });

    var test = new Aws.CodeArtifact.Repository("test", new()
    {
        RepositoryName = "example",
        Domain = example.Domain,
        ExternalConnections = new Aws.CodeArtifact.Inputs.RepositoryExternalConnectionsArgs
        {
            ExternalConnectionName = "public:npmjs",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codeartifact.Repository;
import com.pulumi.aws.codeartifact.RepositoryArgs;
import com.pulumi.aws.codeartifact.inputs.RepositoryExternalConnectionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var upstream = new Repository("upstream", RepositoryArgs.builder()
            .repository("upstream")
            .domain(testAwsCodeartifactDomain.domain())
            .build());

        var test = new Repository("test", RepositoryArgs.builder()
            .repository("example")
            .domain(example.domain())
            .externalConnections(RepositoryExternalConnectionsArgs.builder()
                .externalConnectionName("public:npmjs")
                .build())
            .build());

    }
}
Copy
resources:
  upstream:
    type: aws:codeartifact:Repository
    properties:
      repository: upstream
      domain: ${testAwsCodeartifactDomain.domain}
  test:
    type: aws:codeartifact:Repository
    properties:
      repository: example
      domain: ${example.domain}
      externalConnections:
        externalConnectionName: public:npmjs
Copy

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: Optional[str] = None,
               repository: Optional[str] = None,
               description: Optional[str] = None,
               domain_owner: Optional[str] = None,
               external_connections: Optional[RepositoryExternalConnectionsArgs] = None,
               tags: Optional[Mapping[str, str]] = None,
               upstreams: Optional[Sequence[RepositoryUpstreamArgs]] = 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: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.

Constructor example

The following reference example uses placeholder values for all input properties.

var repositoryResource = new Aws.CodeArtifact.Repository("repositoryResource", new()
{
    Domain = "string",
    RepositoryName = "string",
    Description = "string",
    DomainOwner = "string",
    ExternalConnections = new Aws.CodeArtifact.Inputs.RepositoryExternalConnectionsArgs
    {
        ExternalConnectionName = "string",
        PackageFormat = "string",
        Status = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    Upstreams = new[]
    {
        new Aws.CodeArtifact.Inputs.RepositoryUpstreamArgs
        {
            RepositoryName = "string",
        },
    },
});
Copy
example, err := codeartifact.NewRepository(ctx, "repositoryResource", &codeartifact.RepositoryArgs{
	Domain:      pulumi.String("string"),
	Repository:  pulumi.String("string"),
	Description: pulumi.String("string"),
	DomainOwner: pulumi.String("string"),
	ExternalConnections: &codeartifact.RepositoryExternalConnectionsArgs{
		ExternalConnectionName: pulumi.String("string"),
		PackageFormat:          pulumi.String("string"),
		Status:                 pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Upstreams: codeartifact.RepositoryUpstreamArray{
		&codeartifact.RepositoryUpstreamArgs{
			RepositoryName: pulumi.String("string"),
		},
	},
})
Copy
var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
    .domain("string")
    .repository("string")
    .description("string")
    .domainOwner("string")
    .externalConnections(RepositoryExternalConnectionsArgs.builder()
        .externalConnectionName("string")
        .packageFormat("string")
        .status("string")
        .build())
    .tags(Map.of("string", "string"))
    .upstreams(RepositoryUpstreamArgs.builder()
        .repositoryName("string")
        .build())
    .build());
Copy
repository_resource = aws.codeartifact.Repository("repositoryResource",
    domain="string",
    repository="string",
    description="string",
    domain_owner="string",
    external_connections={
        "external_connection_name": "string",
        "package_format": "string",
        "status": "string",
    },
    tags={
        "string": "string",
    },
    upstreams=[{
        "repository_name": "string",
    }])
Copy
const repositoryResource = new aws.codeartifact.Repository("repositoryResource", {
    domain: "string",
    repository: "string",
    description: "string",
    domainOwner: "string",
    externalConnections: {
        externalConnectionName: "string",
        packageFormat: "string",
        status: "string",
    },
    tags: {
        string: "string",
    },
    upstreams: [{
        repositoryName: "string",
    }],
});
Copy
type: aws:codeartifact:Repository
properties:
    description: string
    domain: string
    domainOwner: string
    externalConnections:
        externalConnectionName: string
        packageFormat: string
        status: string
    repository: string
    tags:
        string: string
    upstreams:
        - repositoryName: string
Copy

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:

Domain
This property is required.
Changes to this property will trigger replacement.
string
The domain that contains the created repository.
RepositoryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the repository to create.
Description string
The description of the repository.
DomainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
ExternalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
Tags Dictionary<string, string>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Upstreams List<RepositoryUpstream>
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. see Upstream
Domain
This property is required.
Changes to this property will trigger replacement.
string
The domain that contains the created repository.
Repository
This property is required.
Changes to this property will trigger replacement.
string
The name of the repository to create.
Description string
The description of the repository.
DomainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
ExternalConnections RepositoryExternalConnectionsArgs
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
Tags map[string]string
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Upstreams []RepositoryUpstreamArgs
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. see Upstream
domain
This property is required.
Changes to this property will trigger replacement.
String
The domain that contains the created repository.
repository
This property is required.
Changes to this property will trigger replacement.
String
The name of the repository to create.
description String
The description of the repository.
domainOwner Changes to this property will trigger replacement. String
The account number of the AWS account that owns the domain.
externalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
tags Map<String,String>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
upstreams List<RepositoryUpstream>
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. see Upstream
domain
This property is required.
Changes to this property will trigger replacement.
string
The domain that contains the created repository.
repository
This property is required.
Changes to this property will trigger replacement.
string
The name of the repository to create.
description string
The description of the repository.
domainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
externalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
tags {[key: string]: string}
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
upstreams RepositoryUpstream[]
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. see Upstream
domain
This property is required.
Changes to this property will trigger replacement.
str
The domain that contains the created repository.
repository
This property is required.
Changes to this property will trigger replacement.
str
The name of the repository to create.
description str
The description of the repository.
domain_owner Changes to this property will trigger replacement. str
The account number of the AWS account that owns the domain.
external_connections RepositoryExternalConnectionsArgs
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
tags Mapping[str, str]
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
upstreams Sequence[RepositoryUpstreamArgs]
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. see Upstream
domain
This property is required.
Changes to this property will trigger replacement.
String
The domain that contains the created repository.
repository
This property is required.
Changes to this property will trigger replacement.
String
The name of the repository to create.
description String
The description of the repository.
domainOwner Changes to this property will trigger replacement. String
The account number of the AWS account that owns the domain.
externalConnections Property Map
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
tags Map<String>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
upstreams List<Property Map>
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. see Upstream

Outputs

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

AdministratorAccount string
The account number of the AWS account that manages the repository.
Arn string
The ARN of the repository.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

AdministratorAccount string
The account number of the AWS account that manages the repository.
Arn string
The ARN of the repository.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

administratorAccount String
The account number of the AWS account that manages the repository.
arn String
The ARN of the repository.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

administratorAccount string
The account number of the AWS account that manages the repository.
arn string
The ARN of the repository.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

administrator_account str
The account number of the AWS account that manages the repository.
arn str
The ARN of the repository.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

administratorAccount String
The account number of the AWS account that manages the repository.
arn String
The ARN of the repository.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Look up Existing Repository Resource

Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        administrator_account: Optional[str] = None,
        arn: Optional[str] = None,
        description: Optional[str] = None,
        domain: Optional[str] = None,
        domain_owner: Optional[str] = None,
        external_connections: Optional[RepositoryExternalConnectionsArgs] = None,
        repository: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        upstreams: Optional[Sequence[RepositoryUpstreamArgs]] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
resources:  _:    type: aws:codeartifact:Repository    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdministratorAccount string
The account number of the AWS account that manages the repository.
Arn string
The ARN of the repository.
Description string
The description of the repository.
Domain Changes to this property will trigger replacement. string
The domain that contains the created repository.
DomainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
ExternalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
RepositoryName Changes to this property will trigger replacement. string
The name of the repository to create.
Tags Dictionary<string, string>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Upstreams List<RepositoryUpstream>
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. see Upstream
AdministratorAccount string
The account number of the AWS account that manages the repository.
Arn string
The ARN of the repository.
Description string
The description of the repository.
Domain Changes to this property will trigger replacement. string
The domain that contains the created repository.
DomainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
ExternalConnections RepositoryExternalConnectionsArgs
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
Repository Changes to this property will trigger replacement. string
The name of the repository to create.
Tags map[string]string
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

Upstreams []RepositoryUpstreamArgs
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. see Upstream
administratorAccount String
The account number of the AWS account that manages the repository.
arn String
The ARN of the repository.
description String
The description of the repository.
domain Changes to this property will trigger replacement. String
The domain that contains the created repository.
domainOwner Changes to this property will trigger replacement. String
The account number of the AWS account that owns the domain.
externalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
repository Changes to this property will trigger replacement. String
The name of the repository to create.
tags Map<String,String>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

upstreams List<RepositoryUpstream>
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. see Upstream
administratorAccount string
The account number of the AWS account that manages the repository.
arn string
The ARN of the repository.
description string
The description of the repository.
domain Changes to this property will trigger replacement. string
The domain that contains the created repository.
domainOwner Changes to this property will trigger replacement. string
The account number of the AWS account that owns the domain.
externalConnections RepositoryExternalConnections
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
repository Changes to this property will trigger replacement. string
The name of the repository to create.
tags {[key: string]: string}
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

upstreams RepositoryUpstream[]
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. see Upstream
administrator_account str
The account number of the AWS account that manages the repository.
arn str
The ARN of the repository.
description str
The description of the repository.
domain Changes to this property will trigger replacement. str
The domain that contains the created repository.
domain_owner Changes to this property will trigger replacement. str
The account number of the AWS account that owns the domain.
external_connections RepositoryExternalConnectionsArgs
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
repository Changes to this property will trigger replacement. str
The name of the repository to create.
tags Mapping[str, str]
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

upstreams Sequence[RepositoryUpstreamArgs]
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. see Upstream
administratorAccount String
The account number of the AWS account that manages the repository.
arn String
The ARN of the repository.
description String
The description of the repository.
domain Changes to this property will trigger replacement. String
The domain that contains the created repository.
domainOwner Changes to this property will trigger replacement. String
The account number of the AWS account that owns the domain.
externalConnections Property Map
An array of external connections associated with the repository. Only one external connection can be set per repository. see External Connections.
repository Changes to this property will trigger replacement. String
The name of the repository to create.
tags Map<String>
Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

upstreams List<Property Map>
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. see Upstream

Supporting Types

RepositoryExternalConnections
, RepositoryExternalConnectionsArgs

ExternalConnectionName This property is required. string
The name of the external connection associated with a repository.
PackageFormat string
Status string
ExternalConnectionName This property is required. string
The name of the external connection associated with a repository.
PackageFormat string
Status string
externalConnectionName This property is required. String
The name of the external connection associated with a repository.
packageFormat String
status String
externalConnectionName This property is required. string
The name of the external connection associated with a repository.
packageFormat string
status string
external_connection_name This property is required. str
The name of the external connection associated with a repository.
package_format str
status str
externalConnectionName This property is required. String
The name of the external connection associated with a repository.
packageFormat String
status String

RepositoryUpstream
, RepositoryUpstreamArgs

RepositoryName This property is required. string
The name of an upstream repository.
RepositoryName This property is required. string
The name of an upstream repository.
repositoryName This property is required. String
The name of an upstream repository.
repositoryName This property is required. string
The name of an upstream repository.
repository_name This property is required. str
The name of an upstream repository.
repositoryName This property is required. String
The name of an upstream repository.

Import

Using pulumi import, import CodeArtifact Repository using the CodeArtifact Repository ARN. For example:

$ pulumi import aws:codeartifact/repository:Repository example arn:aws:codeartifact:us-west-2:012345678912:repository/tf-acc-test-6968272603913957763/tf-acc-test-6968272603913957763
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.