1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. codecommit
  6. getRepository

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Resource Type definition for AWS::CodeCommit::Repository

    Using getRepository

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
    function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOutputOptions): Output<GetRepositoryResult>
    def get_repository(repository_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
    def get_repository_output(repository_id: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetRepositoryResult]
    func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
    func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput

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

    public static class GetRepository 
    {
        public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:codecommit:getRepository
      arguments:
        # arguments dictionary
    data "aws-native_codecommit_get_repository" "name" {
        # arguments
    }

    The following arguments are supported:

    RepositoryId string
    The ID of the repository.
    RepositoryId string
    The ID of the repository.
    repository_id string
    The ID of the repository.
    repositoryId String
    The ID of the repository.
    repositoryId string
    The ID of the repository.
    repository_id str
    The ID of the repository.
    repositoryId String
    The ID of the repository.

    getRepository Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (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.
    KmsKeyId string
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    Name string
    The repository's name.
    RepositoryDescription string
    A comment or description about the new repository.
    RepositoryId string
    The ID of the repository.
    RepositoryName string
    The name of the new repository to be created.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    One or more tag key-value pairs to use when tagging this repository.
    Triggers List<Pulumi.AwsNative.CodeCommit.Outputs.RepositoryTrigger>
    Information about a trigger for a repository.
    Arn string
    The Amazon Resource Name (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.
    KmsKeyId string
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    Name string
    The repository's name.
    RepositoryDescription string
    A comment or description about the new repository.
    RepositoryId string
    The ID of the repository.
    RepositoryName string
    The name of the new repository to be created.
    Tags Tag
    One or more tag key-value pairs to use when tagging this repository.
    Triggers []RepositoryTrigger
    Information about a trigger for a repository.
    arn string
    The Amazon Resource Name (ARN) of the repository.
    clone_url_http string
    The URL to use for cloning the repository over HTTPS.
    clone_url_ssh string
    The URL to use for cloning the repository over SSH.
    kms_key_id string
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    name string
    The repository's name.
    repository_description string
    A comment or description about the new repository.
    repository_id string
    The ID of the repository.
    repository_name string
    The name of the new repository to be created.
    tags list(object)
    One or more tag key-value pairs to use when tagging this repository.
    triggers list(object)
    Information about a trigger for a repository.
    arn String
    The Amazon Resource Name (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.
    kmsKeyId String
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    name String
    The repository's name.
    repositoryDescription String
    A comment or description about the new repository.
    repositoryId String
    The ID of the repository.
    repositoryName String
    The name of the new repository to be created.
    tags List<Tag>
    One or more tag key-value pairs to use when tagging this repository.
    triggers List<RepositoryTrigger>
    Information about a trigger for a repository.
    arn string
    The Amazon Resource Name (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.
    kmsKeyId string
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    name string
    The repository's name.
    repositoryDescription string
    A comment or description about the new repository.
    repositoryId string
    The ID of the repository.
    repositoryName string
    The name of the new repository to be created.
    tags Tag[]
    One or more tag key-value pairs to use when tagging this repository.
    triggers RepositoryTrigger[]
    Information about a trigger for a repository.
    arn str
    The Amazon Resource Name (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.
    kms_key_id str
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    name str
    The repository's name.
    repository_description str
    A comment or description about the new repository.
    repository_id str
    The ID of the repository.
    repository_name str
    The name of the new repository to be created.
    tags Sequence[root_Tag]
    One or more tag key-value pairs to use when tagging this repository.
    triggers Sequence[RepositoryTrigger]
    Information about a trigger for a repository.
    arn String
    The Amazon Resource Name (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.
    kmsKeyId String
    The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
    name String
    The repository's name.
    repositoryDescription String
    A comment or description about the new repository.
    repositoryId String
    The ID of the repository.
    repositoryName String
    The name of the new repository to be created.
    tags List<Property Map>
    One or more tag key-value pairs to use when tagging this repository.
    triggers List<Property Map>
    Information about a trigger for a repository.

    Supporting Types

    RepositoryTrigger

    DestinationArn string
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    Events List<string>
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    Name string
    The name of the trigger.
    Branches List<string>
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    CustomData string
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    DestinationArn string
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    Events []string
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    Name string
    The name of the trigger.
    Branches []string
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    CustomData string
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    destination_arn string
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    events list(string)
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    name string
    The name of the trigger.
    branches list(string)
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    custom_data string
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    destinationArn String
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    events List<String>
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    name String
    The name of the trigger.
    branches List<String>
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    customData String
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    destinationArn string
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    events string[]
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    name string
    The name of the trigger.
    branches string[]
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    customData string
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    destination_arn str
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    events Sequence[str]
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    name str
    The name of the trigger.
    branches Sequence[str]
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    custom_data str
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
    destinationArn String
    The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
    events List<String>
    The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
    name String
    The name of the trigger.
    branches List<String>
    The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
    customData String
    Any custom data associated with the trigger to be included in the information sent to the target of the trigger.

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial