import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service. * * ## Example Usage * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyRepository", * type: aws_native.codegurureviewer.RepositoryAssociationType.CodeCommit, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyRepository", * type: aws_native.codegurureviewer.RepositoryAssociationType.CodeCommit, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyBitbucketRepoName", * type: aws_native.codegurureviewer.RepositoryAssociationType.Bitbucket, * connectionArn: "arn:aws:codestar-connections:us-west-2:123456789012:connection/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", * owner: "MyOwnerName", * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyBitbucketRepoName", * type: aws_native.codegurureviewer.RepositoryAssociationType.Bitbucket, * connectionArn: "arn:aws:codestar-connections:us-west-2:123456789012:connection/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", * owner: "MyOwnerName", * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyGitHubEnterpriseRepoName", * type: aws_native.codegurureviewer.RepositoryAssociationType.GitHubEnterpriseServer, * connectionArn: "arn:aws:codestar-connections:us-west-2:123456789012:connection/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", * owner: "MyOwnerName", * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyGitHubEnterpriseRepoName", * type: aws_native.codegurureviewer.RepositoryAssociationType.GitHubEnterpriseServer, * connectionArn: "arn:aws:codestar-connections:us-west-2:123456789012:connection/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", * owner: "MyOwnerName", * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyRepository", * type: aws_native.codegurureviewer.RepositoryAssociationType.CodeCommit, * tags: [ * { * key: "tag1-key", * value: "tag1-value", * }, * { * key: "tag2-key", * value: "tag2-value", * }, * ], * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const myRepositoryAssociation = new aws_native.codegurureviewer.RepositoryAssociation("myRepositoryAssociation", { * name: "MyRepository", * type: aws_native.codegurureviewer.RepositoryAssociationType.CodeCommit, * tags: [ * { * key: "tag1-key", * value: "tag1-value", * }, * { * key: "tag2-key", * value: "tag2-value", * }, * ], * }); * * ``` */ export declare class RepositoryAssociation extends pulumi.CustomResource { /** * Get an existing RepositoryAssociation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): RepositoryAssociation; /** * Returns true if the given object is an instance of RepositoryAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RepositoryAssociation; /** * The Amazon Resource Name (ARN) of the repository association. */ readonly associationArn: pulumi.Output; /** * The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`. */ readonly bucketName: pulumi.Output; /** * The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. */ readonly connectionArn: pulumi.Output; /** * Name of the repository to be associated. */ readonly name: pulumi.Output; /** * The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository. */ readonly owner: pulumi.Output; /** * The tags associated with a repository association. */ readonly tags: pulumi.Output; /** * The type of repository to be associated. */ readonly type: pulumi.Output; /** * Create a RepositoryAssociation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RepositoryAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a RepositoryAssociation resource. */ export interface RepositoryAssociationArgs { /** * The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`. */ bucketName?: pulumi.Input; /** * The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. */ connectionArn?: pulumi.Input; /** * Name of the repository to be associated. */ name?: pulumi.Input; /** * The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository. */ owner?: pulumi.Input; /** * The tags associated with a repository association. */ tags?: pulumi.Input[]>; /** * The type of repository to be associated. */ type: pulumi.Input; }