1. Packages
  2. AWS
  3. API Docs
  4. codegurureviewer
  5. RepositoryAssociation
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.codegurureviewer.RepositoryAssociation

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Resource for managing an AWS CodeGuru Reviewer Repository Association.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.kms.Key("example", {});
    const exampleRepository = new aws.codecommit.Repository("example", {repositoryName: "example-repo"});
    const exampleRepositoryAssociation = new aws.codegurureviewer.RepositoryAssociation("example", {
        repository: {
            codecommit: {
                name: exampleRepository.repositoryName,
            },
        },
        kmsKeyDetails: {
            encryptionOption: "CUSTOMER_MANAGED_CMK",
            kmsKeyId: example.keyId,
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.kms.Key("example")
    example_repository = aws.codecommit.Repository("example", repository_name="example-repo")
    example_repository_association = aws.codegurureviewer.RepositoryAssociation("example",
        repository={
            "codecommit": {
                "name": example_repository.repository_name,
            },
        },
        kms_key_details={
            "encryption_option": "CUSTOMER_MANAGED_CMK",
            "kms_key_id": example.key_id,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codecommit"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codegurureviewer"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := kms.NewKey(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		exampleRepository, err := codecommit.NewRepository(ctx, "example", &codecommit.RepositoryArgs{
    			RepositoryName: pulumi.String("example-repo"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = codegurureviewer.NewRepositoryAssociation(ctx, "example", &codegurureviewer.RepositoryAssociationArgs{
    			Repository: &codegurureviewer.RepositoryAssociationRepositoryArgs{
    				Codecommit: &codegurureviewer.RepositoryAssociationRepositoryCodecommitArgs{
    					Name: exampleRepository.RepositoryName,
    				},
    			},
    			KmsKeyDetails: &codegurureviewer.RepositoryAssociationKmsKeyDetailsArgs{
    				EncryptionOption: pulumi.String("CUSTOMER_MANAGED_CMK"),
    				KmsKeyId:         example.KeyId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Kms.Key("example");
    
        var exampleRepository = new Aws.CodeCommit.Repository("example", new()
        {
            RepositoryName = "example-repo",
        });
    
        var exampleRepositoryAssociation = new Aws.CodeGuruReviewer.RepositoryAssociation("example", new()
        {
            Repository = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryArgs
            {
                Codecommit = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryCodecommitArgs
                {
                    Name = exampleRepository.RepositoryName,
                },
            },
            KmsKeyDetails = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationKmsKeyDetailsArgs
            {
                EncryptionOption = "CUSTOMER_MANAGED_CMK",
                KmsKeyId = example.KeyId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.kms.Key;
    import com.pulumi.aws.codecommit.Repository;
    import com.pulumi.aws.codecommit.RepositoryArgs;
    import com.pulumi.aws.codegurureviewer.RepositoryAssociation;
    import com.pulumi.aws.codegurureviewer.RepositoryAssociationArgs;
    import com.pulumi.aws.codegurureviewer.inputs.RepositoryAssociationRepositoryArgs;
    import com.pulumi.aws.codegurureviewer.inputs.RepositoryAssociationRepositoryCodecommitArgs;
    import com.pulumi.aws.codegurureviewer.inputs.RepositoryAssociationKmsKeyDetailsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Key("example");
    
            var exampleRepository = new Repository("exampleRepository", RepositoryArgs.builder()
                .repositoryName("example-repo")
                .build());
    
            var exampleRepositoryAssociation = new RepositoryAssociation("exampleRepositoryAssociation", RepositoryAssociationArgs.builder()
                .repository(RepositoryAssociationRepositoryArgs.builder()
                    .codecommit(RepositoryAssociationRepositoryCodecommitArgs.builder()
                        .name(exampleRepository.repositoryName())
                        .build())
                    .build())
                .kmsKeyDetails(RepositoryAssociationKmsKeyDetailsArgs.builder()
                    .encryptionOption("CUSTOMER_MANAGED_CMK")
                    .kmsKeyId(example.keyId())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:kms:Key
      exampleRepository:
        type: aws:codecommit:Repository
        name: example
        properties:
          repositoryName: example-repo
      exampleRepositoryAssociation:
        type: aws:codegurureviewer:RepositoryAssociation
        name: example
        properties:
          repository:
            codecommit:
              name: ${exampleRepository.repositoryName}
          kmsKeyDetails:
            encryptionOption: CUSTOMER_MANAGED_CMK
            kmsKeyId: ${example.keyId}
    

    Create RepositoryAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RepositoryAssociation(name: string, args: RepositoryAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def RepositoryAssociation(resource_name: str,
                              args: RepositoryAssociationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepositoryAssociation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              repository: Optional[RepositoryAssociationRepositoryArgs] = None,
                              kms_key_details: Optional[RepositoryAssociationKmsKeyDetailsArgs] = None,
                              tags: Optional[Mapping[str, str]] = None)
    func NewRepositoryAssociation(ctx *Context, name string, args RepositoryAssociationArgs, opts ...ResourceOption) (*RepositoryAssociation, error)
    public RepositoryAssociation(string name, RepositoryAssociationArgs args, CustomResourceOptions? opts = null)
    public RepositoryAssociation(String name, RepositoryAssociationArgs args)
    public RepositoryAssociation(String name, RepositoryAssociationArgs args, CustomResourceOptions options)
    
    type: aws:codegurureviewer:RepositoryAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RepositoryAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RepositoryAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RepositoryAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var repositoryAssociationResource = new Aws.CodeGuruReviewer.RepositoryAssociation("repositoryAssociationResource", new()
    {
        Repository = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryArgs
        {
            Bitbucket = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryBitbucketArgs
            {
                ConnectionArn = "string",
                Name = "string",
                Owner = "string",
            },
            Codecommit = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryCodecommitArgs
            {
                Name = "string",
            },
            GithubEnterpriseServer = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryGithubEnterpriseServerArgs
            {
                ConnectionArn = "string",
                Name = "string",
                Owner = "string",
            },
            S3Bucket = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationRepositoryS3BucketArgs
            {
                BucketName = "string",
                Name = "string",
            },
        },
        KmsKeyDetails = new Aws.CodeGuruReviewer.Inputs.RepositoryAssociationKmsKeyDetailsArgs
        {
            EncryptionOption = "string",
            KmsKeyId = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := codegurureviewer.NewRepositoryAssociation(ctx, "repositoryAssociationResource", &codegurureviewer.RepositoryAssociationArgs{
    	Repository: &codegurureviewer.RepositoryAssociationRepositoryArgs{
    		Bitbucket: &codegurureviewer.RepositoryAssociationRepositoryBitbucketArgs{
    			ConnectionArn: pulumi.String("string"),
    			Name:          pulumi.String("string"),
    			Owner:         pulumi.String("string"),
    		},
    		Codecommit: &codegurureviewer.RepositoryAssociationRepositoryCodecommitArgs{
    			Name: pulumi.String("string"),
    		},
    		GithubEnterpriseServer: &codegurureviewer.RepositoryAssociationRepositoryGithubEnterpriseServerArgs{
    			ConnectionArn: pulumi.String("string"),
    			Name:          pulumi.String("string"),
    			Owner:         pulumi.String("string"),
    		},
    		S3Bucket: &codegurureviewer.RepositoryAssociationRepositoryS3BucketArgs{
    			BucketName: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    		},
    	},
    	KmsKeyDetails: &codegurureviewer.RepositoryAssociationKmsKeyDetailsArgs{
    		EncryptionOption: pulumi.String("string"),
    		KmsKeyId:         pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var repositoryAssociationResource = new RepositoryAssociation("repositoryAssociationResource", RepositoryAssociationArgs.builder()
        .repository(RepositoryAssociationRepositoryArgs.builder()
            .bitbucket(RepositoryAssociationRepositoryBitbucketArgs.builder()
                .connectionArn("string")
                .name("string")
                .owner("string")
                .build())
            .codecommit(RepositoryAssociationRepositoryCodecommitArgs.builder()
                .name("string")
                .build())
            .githubEnterpriseServer(RepositoryAssociationRepositoryGithubEnterpriseServerArgs.builder()
                .connectionArn("string")
                .name("string")
                .owner("string")
                .build())
            .s3Bucket(RepositoryAssociationRepositoryS3BucketArgs.builder()
                .bucketName("string")
                .name("string")
                .build())
            .build())
        .kmsKeyDetails(RepositoryAssociationKmsKeyDetailsArgs.builder()
            .encryptionOption("string")
            .kmsKeyId("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    repository_association_resource = aws.codegurureviewer.RepositoryAssociation("repositoryAssociationResource",
        repository={
            "bitbucket": {
                "connection_arn": "string",
                "name": "string",
                "owner": "string",
            },
            "codecommit": {
                "name": "string",
            },
            "github_enterprise_server": {
                "connection_arn": "string",
                "name": "string",
                "owner": "string",
            },
            "s3_bucket": {
                "bucket_name": "string",
                "name": "string",
            },
        },
        kms_key_details={
            "encryption_option": "string",
            "kms_key_id": "string",
        },
        tags={
            "string": "string",
        })
    
    const repositoryAssociationResource = new aws.codegurureviewer.RepositoryAssociation("repositoryAssociationResource", {
        repository: {
            bitbucket: {
                connectionArn: "string",
                name: "string",
                owner: "string",
            },
            codecommit: {
                name: "string",
            },
            githubEnterpriseServer: {
                connectionArn: "string",
                name: "string",
                owner: "string",
            },
            s3Bucket: {
                bucketName: "string",
                name: "string",
            },
        },
        kmsKeyDetails: {
            encryptionOption: "string",
            kmsKeyId: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: aws:codegurureviewer:RepositoryAssociation
    properties:
        kmsKeyDetails:
            encryptionOption: string
            kmsKeyId: string
        repository:
            bitbucket:
                connectionArn: string
                name: string
                owner: string
            codecommit:
                name: string
            githubEnterpriseServer:
                connectionArn: string
                name: string
                owner: string
            s3Bucket:
                bucketName: string
                name: string
        tags:
            string: string
    

    RepositoryAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RepositoryAssociation resource accepts the following input properties:

    Repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    KmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    Tags Dictionary<string, string>
    Repository RepositoryAssociationRepositoryArgs

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    KmsKeyDetails RepositoryAssociationKmsKeyDetailsArgs
    An object describing the KMS key to asssociate. Block is documented below.
    Tags map[string]string
    repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    kmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    tags Map<String,String>
    repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    kmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    tags {[key: string]: string}
    repository RepositoryAssociationRepositoryArgs

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    kms_key_details RepositoryAssociationKmsKeyDetailsArgs
    An object describing the KMS key to asssociate. Block is documented below.
    tags Mapping[str, str]
    repository Property Map

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    kmsKeyDetails Property Map
    An object describing the KMS key to asssociate. Block is documented below.
    tags Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RepositoryAssociation resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) identifying the repository association.
    AssociationId string
    The ID of the repository association.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the repository.
    Owner string
    The owner of the repository.
    ProviderType string
    The provider type of the repository association.
    S3RepositoryDetails List<RepositoryAssociationS3RepositoryDetail>
    State string
    The state of the repository association.
    StateReason string
    A description of why the repository association is in the current state.
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name (ARN) identifying the repository association.
    AssociationId string
    The ID of the repository association.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the repository.
    Owner string
    The owner of the repository.
    ProviderType string
    The provider type of the repository association.
    S3RepositoryDetails []RepositoryAssociationS3RepositoryDetail
    State string
    The state of the repository association.
    StateReason string
    A description of why the repository association is in the current state.
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId String
    The ID of the repository association.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the repository.
    owner String
    The owner of the repository.
    providerType String
    The provider type of the repository association.
    s3RepositoryDetails List<RepositoryAssociationS3RepositoryDetail>
    state String
    The state of the repository association.
    stateReason String
    A description of why the repository association is in the current state.
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId string
    The ID of the repository association.
    connectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the repository.
    owner string
    The owner of the repository.
    providerType string
    The provider type of the repository association.
    s3RepositoryDetails RepositoryAssociationS3RepositoryDetail[]
    state string
    The state of the repository association.
    stateReason string
    A description of why the repository association is in the current state.
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name (ARN) identifying the repository association.
    association_id str
    The ID of the repository association.
    connection_arn str
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the repository.
    owner str
    The owner of the repository.
    provider_type str
    The provider type of the repository association.
    s3_repository_details Sequence[RepositoryAssociationS3RepositoryDetail]
    state str
    The state of the repository association.
    state_reason str
    A description of why the repository association is in the current state.
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId String
    The ID of the repository association.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the repository.
    owner String
    The owner of the repository.
    providerType String
    The provider type of the repository association.
    s3RepositoryDetails List<Property Map>
    state String
    The state of the repository association.
    stateReason String
    A description of why the repository association is in the current state.
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Look up Existing RepositoryAssociation Resource

    Get an existing RepositoryAssociation 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?: RepositoryAssociationState, opts?: CustomResourceOptions): RepositoryAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            association_id: Optional[str] = None,
            connection_arn: Optional[str] = None,
            kms_key_details: Optional[RepositoryAssociationKmsKeyDetailsArgs] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            provider_type: Optional[str] = None,
            repository: Optional[RepositoryAssociationRepositoryArgs] = None,
            s3_repository_details: Optional[Sequence[RepositoryAssociationS3RepositoryDetailArgs]] = None,
            state: Optional[str] = None,
            state_reason: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> RepositoryAssociation
    func GetRepositoryAssociation(ctx *Context, name string, id IDInput, state *RepositoryAssociationState, opts ...ResourceOption) (*RepositoryAssociation, error)
    public static RepositoryAssociation Get(string name, Input<string> id, RepositoryAssociationState? state, CustomResourceOptions? opts = null)
    public static RepositoryAssociation get(String name, Output<String> id, RepositoryAssociationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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 Amazon Resource Name (ARN) identifying the repository association.
    AssociationId string
    The ID of the repository association.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    KmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    Name string
    The name of the repository.
    Owner string
    The owner of the repository.
    ProviderType string
    The provider type of the repository association.
    Repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    S3RepositoryDetails List<RepositoryAssociationS3RepositoryDetail>
    State string
    The state of the repository association.
    StateReason string
    A description of why the repository association is in the current state.
    Tags Dictionary<string, string>
    TagsAll Dictionary<string, string>

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name (ARN) identifying the repository association.
    AssociationId string
    The ID of the repository association.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    KmsKeyDetails RepositoryAssociationKmsKeyDetailsArgs
    An object describing the KMS key to asssociate. Block is documented below.
    Name string
    The name of the repository.
    Owner string
    The owner of the repository.
    ProviderType string
    The provider type of the repository association.
    Repository RepositoryAssociationRepositoryArgs

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    S3RepositoryDetails []RepositoryAssociationS3RepositoryDetailArgs
    State string
    The state of the repository association.
    StateReason string
    A description of why the repository association is in the current state.
    Tags map[string]string
    TagsAll map[string]string

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId String
    The ID of the repository association.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    kmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    name String
    The name of the repository.
    owner String
    The owner of the repository.
    providerType String
    The provider type of the repository association.
    repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    s3RepositoryDetails List<RepositoryAssociationS3RepositoryDetail>
    state String
    The state of the repository association.
    stateReason String
    A description of why the repository association is in the current state.
    tags Map<String,String>
    tagsAll Map<String,String>

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId string
    The ID of the repository association.
    connectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    kmsKeyDetails RepositoryAssociationKmsKeyDetails
    An object describing the KMS key to asssociate. Block is documented below.
    name string
    The name of the repository.
    owner string
    The owner of the repository.
    providerType string
    The provider type of the repository association.
    repository RepositoryAssociationRepository

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    s3RepositoryDetails RepositoryAssociationS3RepositoryDetail[]
    state string
    The state of the repository association.
    stateReason string
    A description of why the repository association is in the current state.
    tags {[key: string]: string}
    tagsAll {[key: string]: string}

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name (ARN) identifying the repository association.
    association_id str
    The ID of the repository association.
    connection_arn str
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    kms_key_details RepositoryAssociationKmsKeyDetailsArgs
    An object describing the KMS key to asssociate. Block is documented below.
    name str
    The name of the repository.
    owner str
    The owner of the repository.
    provider_type str
    The provider type of the repository association.
    repository RepositoryAssociationRepositoryArgs

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    s3_repository_details Sequence[RepositoryAssociationS3RepositoryDetailArgs]
    state str
    The state of the repository association.
    state_reason str
    A description of why the repository association is in the current state.
    tags Mapping[str, str]
    tags_all Mapping[str, str]

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name (ARN) identifying the repository association.
    associationId String
    The ID of the repository association.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    kmsKeyDetails Property Map
    An object describing the KMS key to asssociate. Block is documented below.
    name String
    The name of the repository.
    owner String
    The owner of the repository.
    providerType String
    The provider type of the repository association.
    repository Property Map

    An object describing the repository to associate. Valid values: bitbucket, codecommit, github_enterprise_server, or s3_bucket. Block is documented below. Note: for repositories that leverage CodeStar connections (ex. bitbucket, github_enterprise_server) the connection must be in Available status prior to creating this resource.

    The following arguments are optional:

    s3RepositoryDetails List<Property Map>
    state String
    The state of the repository association.
    stateReason String
    A description of why the repository association is in the current state.
    tags Map<String>
    tagsAll Map<String>

    Deprecated: Please use tags instead.

    Supporting Types

    RepositoryAssociationKmsKeyDetails, RepositoryAssociationKmsKeyDetailsArgs

    EncryptionOption string
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    KmsKeyId string
    The ID of the AWS KMS key that is associated with a repository association.
    EncryptionOption string
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    KmsKeyId string
    The ID of the AWS KMS key that is associated with a repository association.
    encryptionOption String
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    kmsKeyId String
    The ID of the AWS KMS key that is associated with a repository association.
    encryptionOption string
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    kmsKeyId string
    The ID of the AWS KMS key that is associated with a repository association.
    encryption_option str
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    kms_key_id str
    The ID of the AWS KMS key that is associated with a repository association.
    encryptionOption String
    The encryption option for a repository association. It is either owned by AWS Key Management Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK).
    kmsKeyId String
    The ID of the AWS KMS key that is associated with a repository association.

    RepositoryAssociationRepository, RepositoryAssociationRepositoryArgs

    RepositoryAssociationRepositoryBitbucket, RepositoryAssociationRepositoryBitbucketArgs

    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Name string
    The name of the third party source repository.
    Owner string
    The username for the account that owns the repository.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Name string
    The name of the third party source repository.
    Owner string
    The username for the account that owns the repository.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name String
    The name of the third party source repository.
    owner String
    The username for the account that owns the repository.
    connectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name string
    The name of the third party source repository.
    owner string
    The username for the account that owns the repository.
    connection_arn str
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name str
    The name of the third party source repository.
    owner str
    The username for the account that owns the repository.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name String
    The name of the third party source repository.
    owner String
    The username for the account that owns the repository.

    RepositoryAssociationRepositoryCodecommit, RepositoryAssociationRepositoryCodecommitArgs

    Name string
    The name of the AWS CodeCommit repository.
    Name string
    The name of the AWS CodeCommit repository.
    name String
    The name of the AWS CodeCommit repository.
    name string
    The name of the AWS CodeCommit repository.
    name str
    The name of the AWS CodeCommit repository.
    name String
    The name of the AWS CodeCommit repository.

    RepositoryAssociationRepositoryGithubEnterpriseServer, RepositoryAssociationRepositoryGithubEnterpriseServerArgs

    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Name string
    The name of the third party source repository.
    Owner string
    The username for the account that owns the repository.
    ConnectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    Name string
    The name of the third party source repository.
    Owner string
    The username for the account that owns the repository.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name String
    The name of the third party source repository.
    owner String
    The username for the account that owns the repository.
    connectionArn string
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name string
    The name of the third party source repository.
    owner string
    The username for the account that owns the repository.
    connection_arn str
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name str
    The name of the third party source repository.
    owner str
    The username for the account that owns the repository.
    connectionArn String
    The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
    name String
    The name of the third party source repository.
    owner String
    The username for the account that owns the repository.

    RepositoryAssociationRepositoryS3Bucket, RepositoryAssociationRepositoryS3BucketArgs

    BucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    Name string
    The name of the repository in the S3 bucket.
    BucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    Name string
    The name of the repository in the S3 bucket.
    bucketName String
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    name String
    The name of the repository in the S3 bucket.
    bucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    name string
    The name of the repository in the S3 bucket.
    bucket_name str
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    name str
    The name of the repository in the S3 bucket.
    bucketName String
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    name String
    The name of the repository in the S3 bucket.

    RepositoryAssociationS3RepositoryDetail, RepositoryAssociationS3RepositoryDetailArgs

    BucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    CodeArtifacts List<RepositoryAssociationS3RepositoryDetailCodeArtifact>
    BucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    CodeArtifacts []RepositoryAssociationS3RepositoryDetailCodeArtifact
    bucketName String
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    codeArtifacts List<RepositoryAssociationS3RepositoryDetailCodeArtifact>
    bucketName string
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    codeArtifacts RepositoryAssociationS3RepositoryDetailCodeArtifact[]
    bucket_name str
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    code_artifacts Sequence[RepositoryAssociationS3RepositoryDetailCodeArtifact]
    bucketName String
    The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with codeguru-reviewer-.
    codeArtifacts List<Property Map>

    RepositoryAssociationS3RepositoryDetailCodeArtifact, RepositoryAssociationS3RepositoryDetailCodeArtifactArgs

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi