Repository

Provides a CodeCommit Repository Resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new Aws.CodeCommit.Repository("test", new Aws.CodeCommit.RepositoryArgs
        {
            Description = "This is the Sample App Repository",
            RepositoryName = "MyTestRepository",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/codecommit"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := codecommit.NewRepository(ctx, "test", &codecommit.RepositoryArgs{
            Description:    pulumi.String("This is the Sample App Repository"),
            RepositoryName: pulumi.String("MyTestRepository"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test = aws.codecommit.Repository("test",
    description="This is the Sample App Repository",
    repository_name="MyTestRepository")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.codecommit.Repository("test", {
    description: "This is the Sample App Repository",
    repositoryName: "MyTestRepository",
});

Create a Repository Resource

def Repository(resource_name, opts=None, default_branch=None, description=None, repository_name=None, tags=None, __props__=None);
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args RepositoryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RepositoryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RepositoryArgs
The arguments to resource properties.
opts 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 Programming Model docs.

Inputs

The Repository resource accepts the following input properties:

RepositoryName string

The name for the repository. This needs to be less than 100 characters.

DefaultBranch string

The default branch of the repository. The branch specified here needs to exist.

Description string

The description of the repository. This needs to be less than 1000 characters

Tags Dictionary<string, string>

Key-value map of resource tags

RepositoryName string

The name for the repository. This needs to be less than 100 characters.

DefaultBranch string

The default branch of the repository. The branch specified here needs to exist.

Description string

The description of the repository. This needs to be less than 1000 characters

Tags map[string]string

Key-value map of resource tags

repositoryName string

The name for the repository. This needs to be less than 100 characters.

defaultBranch string

The default branch of the repository. The branch specified here needs to exist.

description string

The description of the repository. This needs to be less than 1000 characters

tags {[key: string]: string}

Key-value map of resource tags

repository_name str

The name for the repository. This needs to be less than 100 characters.

default_branch str

The default branch of the repository. The branch specified here needs to exist.

description str

The description of the repository. This needs to be less than 1000 characters

tags Dict[str, str]

Key-value map of resource tags

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

CloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

CloneUrlSsh string

The URL to use for cloning the repository over SSH.

Id string
The provider-assigned unique ID for this managed resource.
RepositoryId string

The ID of the repository

Arn string

The ARN of the repository

CloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

CloneUrlSsh string

The URL to use for cloning the repository over SSH.

Id string
The provider-assigned unique ID for this managed resource.
RepositoryId string

The ID of the repository

arn string

The ARN of the repository

cloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

cloneUrlSsh string

The URL to use for cloning the repository over SSH.

id string
The provider-assigned unique ID for this managed resource.
repositoryId string

The ID of the repository

arn str

The ARN of the repository

clone_url_http str

The URL to use for cloning the repository over HTTPS.

clone_url_ssh str

The URL to use for cloning the repository over SSH.

id str
The provider-assigned unique ID for this managed resource.
repository_id str

The ID of the repository

Look up an 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
static get(resource_name, id, opts=None, arn=None, clone_url_http=None, clone_url_ssh=None, default_branch=None, description=None, repository_id=None, repository_name=None, tags=None, __props__=None);
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)
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:

Arn string

The ARN of the repository

CloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

CloneUrlSsh string

The URL to use for cloning the repository over SSH.

DefaultBranch string

The default branch of the repository. The branch specified here needs to exist.

Description string

The description of the repository. This needs to be less than 1000 characters

RepositoryId string

The ID of the repository

RepositoryName string

The name for the repository. This needs to be less than 100 characters.

Tags Dictionary<string, string>

Key-value map of resource tags

Arn string

The ARN of the repository

CloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

CloneUrlSsh string

The URL to use for cloning the repository over SSH.

DefaultBranch string

The default branch of the repository. The branch specified here needs to exist.

Description string

The description of the repository. This needs to be less than 1000 characters

RepositoryId string

The ID of the repository

RepositoryName string

The name for the repository. This needs to be less than 100 characters.

Tags map[string]string

Key-value map of resource tags

arn string

The ARN of the repository

cloneUrlHttp string

The URL to use for cloning the repository over HTTPS.

cloneUrlSsh string

The URL to use for cloning the repository over SSH.

defaultBranch string

The default branch of the repository. The branch specified here needs to exist.

description string

The description of the repository. This needs to be less than 1000 characters

repositoryId string

The ID of the repository

repositoryName string

The name for the repository. This needs to be less than 100 characters.

tags {[key: string]: string}

Key-value map of resource tags

arn str

The ARN of the repository

clone_url_http str

The URL to use for cloning the repository over HTTPS.

clone_url_ssh str

The URL to use for cloning the repository over SSH.

default_branch str

The default branch of the repository. The branch specified here needs to exist.

description str

The description of the repository. This needs to be less than 1000 characters

repository_id str

The ID of the repository

repository_name str

The name for the repository. This needs to be less than 100 characters.

tags Dict[str, str]

Key-value map of resource tags

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.