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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CodeCommit
Assembly: Pulumi.Aws.dll
Syntax
public class Repository : CustomResource
Constructors
View SourceRepository(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 SourceArn
The ARN of the repository
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CloneUrlHttp
The URL to use for cloning the repository over HTTPS.
Declaration
public Output<string> CloneUrlHttp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CloneUrlSsh
The URL to use for cloning the repository over SSH.
Declaration
public Output<string> CloneUrlSsh { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
RepositoryId
The ID of the repository
Declaration
public Output<string> RepositoryId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |