Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Repository
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CodeCommit
Assembly: Pulumi.Aws.dll
Syntax
public class Repository : CustomResource

Constructors

View Source

Repository(String, RepositoryArgs, CustomResourceOptions)

Create a Repository resource with the given unique name, arguments, and options.

Declaration
public Repository(string name, RepositoryArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RepositoryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The ARN of the repository

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

CloneUrlHttp

The URL to use for cloning the repository over HTTPS.

Declaration
public Output<string> CloneUrlHttp { get; }
Property Value
Type Description
Output<System.String>
View Source

CloneUrlSsh

The URL to use for cloning the repository over SSH.

Declaration
public Output<string> CloneUrlSsh { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultBranch

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

Declaration
public Output<string> DefaultBranch { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

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

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

RepositoryId

The ID of the repository

Declaration
public Output<string> RepositoryId { get; }
Property Value
Type Description
Output<System.String>
View Source

RepositoryName

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

Declaration
public Output<string> RepositoryName { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

Key-value map of resource tags

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, RepositoryState, CustomResourceOptions)

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

Declaration
public static Repository Get(string name, Input<string> id, RepositoryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RepositoryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Repository
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.