GetRepository

The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Aws.CodeCommit.GetRepository.InvokeAsync(new Aws.CodeCommit.GetRepositoryArgs
        {
            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.LookupRepository(ctx, &codecommit.LookupRepositoryArgs{
            RepositoryName: "MyTestRepository",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test = aws.codecommit.get_repository(repository_name="MyTestRepository")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = pulumi.output(aws.codecommit.getRepository({
    repositoryName: "MyTestRepository",
}, { async: true }));

Using GetRepository

function getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function  get_repository(repository_name=None, opts=None)
func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)

Note: This function is named LookupRepository in the Go SDK.

public static class GetRepository {
    public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

RepositoryName string

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

RepositoryName string

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

repositoryName string

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

repository_name str

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

GetRepository Result

The following output properties are available:

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

RepositoryName string
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

RepositoryName string
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

repositoryName string
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

repository_name str

Package Details

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