aws.codegurureviewer.RepositoryAssociation
Explore with Pulumi AI
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
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- Kms
Key RepositoryDetails Association Kms Key Details - An object describing the KMS key to asssociate. Block is documented below.
- Dictionary<string, string>
- Repository
Repository
Association Repository Args An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- Kms
Key RepositoryDetails Association Kms Key Details Args - An object describing the KMS key to asssociate. Block is documented below.
- map[string]string
- repository
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- kms
Key RepositoryDetails Association Kms Key Details - An object describing the KMS key to asssociate. Block is documented below.
- Map<String,String>
- repository
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- kms
Key RepositoryDetails Association Kms Key Details - An object describing the KMS key to asssociate. Block is documented below.
- {[key: string]: string}
- repository
Repository
Association Repository Args An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- kms_
key_ Repositorydetails Association Kms Key Details Args - An object describing the KMS key to asssociate. Block is documented below.
- Mapping[str, str]
- repository Property Map
An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- kms
Key Property MapDetails - An object describing the KMS key to asssociate. Block is documented below.
- 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.
- Association
Id string - The ID of the repository association.
- Connection
Arn 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.
- Provider
Type string - The provider type of the repository association.
- S3Repository
Details List<RepositoryAssociation S3Repository Detail> - State string
- The state of the repository association.
- State
Reason string - A description of why the repository association is in the current state.
- Dictionary<string, string>
- Arn string
- The Amazon Resource Name (ARN) identifying the repository association.
- Association
Id string - The ID of the repository association.
- Connection
Arn 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.
- Provider
Type string - The provider type of the repository association.
- S3Repository
Details []RepositoryAssociation S3Repository Detail - State string
- The state of the repository association.
- State
Reason string - A description of why the repository association is in the current state.
- map[string]string
- arn String
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id String - The ID of the repository association.
- connection
Arn 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.
- provider
Type String - The provider type of the repository association.
- s3Repository
Details List<RepositoryAssociation S3Repository Detail> - state String
- The state of the repository association.
- state
Reason String - A description of why the repository association is in the current state.
- Map<String,String>
- arn string
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id string - The ID of the repository association.
- connection
Arn 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.
- provider
Type string - The provider type of the repository association.
- s3Repository
Details RepositoryAssociation S3Repository Detail[] - state string
- The state of the repository association.
- state
Reason string - A description of why the repository association is in the current state.
- {[key: string]: string}
- 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_ Sequence[Repositorydetails Association S3Repository Detail] - state str
- The state of the repository association.
- state_
reason str - A description of why the repository association is in the current state.
- Mapping[str, str]
- arn String
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id String - The ID of the repository association.
- connection
Arn 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.
- provider
Type String - The provider type of the repository association.
- s3Repository
Details List<Property Map> - state String
- The state of the repository association.
- state
Reason String - A description of why the repository association is in the current state.
- Map<String>
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.
- Arn string
- The Amazon Resource Name (ARN) identifying the repository association.
- Association
Id string - The ID of the repository association.
- Connection
Arn string - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
- Kms
Key RepositoryDetails Association Kms Key Details - 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.
- Provider
Type string - The provider type of the repository association.
- Repository
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- S3Repository
Details List<RepositoryAssociation S3Repository Detail> - State string
- The state of the repository association.
- State
Reason string - A description of why the repository association is in the current state.
- Dictionary<string, string>
- Dictionary<string, string>
- Arn string
- The Amazon Resource Name (ARN) identifying the repository association.
- Association
Id string - The ID of the repository association.
- Connection
Arn string - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
- Kms
Key RepositoryDetails Association Kms Key Details Args - 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.
- Provider
Type string - The provider type of the repository association.
- Repository
Repository
Association Repository Args An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- S3Repository
Details []RepositoryAssociation S3Repository Detail Args - State string
- The state of the repository association.
- State
Reason string - A description of why the repository association is in the current state.
- map[string]string
- map[string]string
- arn String
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id String - The ID of the repository association.
- connection
Arn String - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
- kms
Key RepositoryDetails Association Kms Key Details - 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.
- provider
Type String - The provider type of the repository association.
- repository
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- s3Repository
Details List<RepositoryAssociation S3Repository Detail> - state String
- The state of the repository association.
- state
Reason String - A description of why the repository association is in the current state.
- Map<String,String>
- Map<String,String>
- arn string
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id string - The ID of the repository association.
- connection
Arn string - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
- kms
Key RepositoryDetails Association Kms Key Details - 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.
- provider
Type string - The provider type of the repository association.
- repository
Repository
Association Repository An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- s3Repository
Details RepositoryAssociation S3Repository Detail[] - state string
- The state of the repository association.
- state
Reason string - A description of why the repository association is in the current state.
- {[key: string]: string}
- {[key: string]: string}
- 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_ Repositorydetails Association Kms Key Details Args - 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
Repository
Association Repository Args An object describing the repository to associate. Valid values:
bitbucket
,codecommit
,github_enterprise_server
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- s3_
repository_ Sequence[Repositorydetails Association S3Repository Detail Args] - state str
- The state of the repository association.
- state_
reason str - A description of why the repository association is in the current state.
- Mapping[str, str]
- Mapping[str, str]
- arn String
- The Amazon Resource Name (ARN) identifying the repository association.
- association
Id String - The ID of the repository association.
- connection
Arn String - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
- kms
Key Property MapDetails - 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.
- provider
Type 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
, ors3_bucket
. Block is documented below. Note: for repositories that leverage CodeStar connections (ex.bitbucket
,github_enterprise_server
) the connection must be inAvailable
status prior to creating this resource.The following arguments are optional:
- s3Repository
Details List<Property Map> - state String
- The state of the repository association.
- state
Reason String - A description of why the repository association is in the current state.
- Map<String>
- Map<String>
Supporting Types
RepositoryAssociationKmsKeyDetails, RepositoryAssociationKmsKeyDetailsArgs
- Encryption
Option 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
). - Kms
Key stringId - The ID of the AWS KMS key that is associated with a repository association.
- Encryption
Option 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
). - Kms
Key stringId - The ID of the AWS KMS key that is associated with a repository association.
- encryption
Option 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
). - kms
Key StringId - The ID of the AWS KMS key that is associated with a repository association.
- encryption
Option 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
). - kms
Key stringId - 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_ strid - The ID of the AWS KMS key that is associated with a repository association.
- encryption
Option 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
). - kms
Key StringId - The ID of the AWS KMS key that is associated with a repository association.
RepositoryAssociationRepository, RepositoryAssociationRepositoryArgs
RepositoryAssociationRepositoryBitbucket, RepositoryAssociationRepositoryBitbucketArgs
- Connection
Arn 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 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 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 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.
- connection
Arn 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
- Connection
Arn 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 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 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 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.
- connection
Arn 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
- Bucket
Name 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 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 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 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.
- bucket
Name 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
- Bucket
Name string - The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with
codeguru-reviewer-
. - Code
Artifacts List<RepositoryAssociation S3Repository Detail Code Artifact>
- Bucket
Name string - The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with
codeguru-reviewer-
. - Code
Artifacts []RepositoryAssociation S3Repository Detail Code Artifact
- bucket
Name String - The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with
codeguru-reviewer-
. - code
Artifacts List<RepositoryAssociation S3Repository Detail Code Artifact>
- bucket
Name string - The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with
codeguru-reviewer-
. - code
Artifacts RepositoryAssociation S3Repository Detail Code Artifact[]
- 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[RepositoryAssociation S3Repository Detail Code Artifact]
- bucket
Name String - The name of the S3 bucket used for associating a new S3 repository. Note: The name must begin with
codeguru-reviewer-
. - code
Artifacts List<Property Map>
RepositoryAssociationS3RepositoryDetailCodeArtifact, RepositoryAssociationS3RepositoryDetailCodeArtifactArgs
- Build
Artifacts stringObject Key - Source
Code stringArtifacts Object Key
- Build
Artifacts stringObject Key - Source
Code stringArtifacts Object Key
- build
Artifacts StringObject Key - source
Code StringArtifacts Object Key
- build
Artifacts stringObject Key - source
Code stringArtifacts Object Key
- build
Artifacts StringObject Key - source
Code StringArtifacts Object Key
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.