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
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);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:
- Repository
Name string The name for the repository. This needs to be less than 100 characters.
- Default
Branch 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
- Dictionary<string, string>
Key-value map of resource tags
- Repository
Name string The name for the repository. This needs to be less than 100 characters.
- Default
Branch 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
- map[string]string
Key-value map of resource tags
- repository
Name string The name for the repository. This needs to be less than 100 characters.
- default
Branch 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
- {[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
- 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
- Clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- Clone
Url stringSsh The URL to use for cloning the repository over SSH.
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string The ID of the repository
- Arn string
The ARN of the repository
- Clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- Clone
Url stringSsh The URL to use for cloning the repository over SSH.
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string The ID of the repository
- arn string
The ARN of the repository
- clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- clone
Url stringSsh The URL to use for cloning the repository over SSH.
- id string
- The provider-assigned unique ID for this managed resource.
- repository
Id string The ID of the repository
- arn str
The ARN of the repository
- clone_
url_ strhttp The URL to use for cloning the repository over HTTPS.
- clone_
url_ strssh 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): Repositorystatic 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
- Clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- Clone
Url stringSsh The URL to use for cloning the repository over SSH.
- Default
Branch 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
- Repository
Id string The ID of the repository
- Repository
Name string The name for the repository. This needs to be less than 100 characters.
- Dictionary<string, string>
Key-value map of resource tags
- Arn string
The ARN of the repository
- Clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- Clone
Url stringSsh The URL to use for cloning the repository over SSH.
- Default
Branch 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
- Repository
Id string The ID of the repository
- Repository
Name string The name for the repository. This needs to be less than 100 characters.
- map[string]string
Key-value map of resource tags
- arn string
The ARN of the repository
- clone
Url stringHttp The URL to use for cloning the repository over HTTPS.
- clone
Url stringSsh The URL to use for cloning the repository over SSH.
- default
Branch 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
- repository
Id string The ID of the repository
- repository
Name string The name for the repository. This needs to be less than 100 characters.
- {[key: string]: string}
Key-value map of resource tags
- arn str
The ARN of the repository
- clone_
url_ strhttp The URL to use for cloning the repository over HTTPS.
- clone_
url_ strssh 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.
- 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
awsTerraform Provider.