# SourceCodeVersionProperty

Identifies a version of code that AWS App Runner refers to within a source code repository.

- 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_apprunner as apprunner } from 'aws-cdk-lib';
const sourceCodeVersionProperty: apprunner.CfnService.SourceCodeVersionProperty = {
  type: 'type',
  value: 'value',
};
```

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_apprunner as apprunner

source_code_version_property = apprunner.CfnService.SourceCodeVersionProperty(
    type="type",
    value="value"
)
```

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.apprunner.*;

SourceCodeVersionProperty sourceCodeVersionProperty = SourceCodeVersionProperty.builder()
        .type("type")
        .value("value")
        .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.AppRunner;

var sourceCodeVersionProperty = new SourceCodeVersionProperty {
    Type = "type",
    Value = "value"
};
```

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"

sourceCodeVersionProperty := &SourceCodeVersionProperty{
	Type: jsii.String("type"),
	Value: jsii.String("value"),
}
```

## Properties

- `type`: string (required) — The type of version identifier.

  For a git-based repository, branches represent versions.

- `value`: string (required) — A source code version.

  For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
