# RepositoryProperty

The `Repository` property type specifies an AWS CodeCommit source code repository to be cloned into an AWS Cloud9 development environment.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloud9 as cloud9 } from 'aws-cdk-lib';
const repositoryProperty: cloud9.CfnEnvironmentEC2.RepositoryProperty = {
  pathComponent: 'pathComponent',
  repositoryUrl: 'repositoryUrl',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloud9 as cloud9

repository_property = cloud9.CfnEnvironmentEC2.RepositoryProperty(
    path_component="pathComponent",
    repository_url="repositoryUrl"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloud9.*;

RepositoryProperty repositoryProperty = RepositoryProperty.builder()
        .pathComponent("pathComponent")
        .repositoryUrl("repositoryUrl")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cloud9;

var repositoryProperty = new RepositoryProperty {
    PathComponent = "pathComponent",
    RepositoryUrl = "repositoryUrl"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

repositoryProperty := &RepositoryProperty{
	PathComponent: jsii.String("pathComponent"),
	RepositoryUrl: jsii.String("repositoryUrl"),
}
```

## Properties

- `pathComponent`: string (required) — The path within the development environment's default file system location to clone the AWS CodeCommit repository into.

  For example, `/REPOSITORY_NAME` would clone the repository into the `/home/USER_NAME/environment/REPOSITORY_NAME` directory in the environment.

- `repositoryUrl`: string (required) — The clone URL of the AWS CodeCommit repository to be cloned.

  For example, for an AWS CodeCommit repository this might be `https://git-codecommit.us-east-2.amazonaws.com/v1/repos/REPOSITORY_NAME` .
