# DefinitionRepositoryProperty

Contains information about a source code repository that hosts the workflow definition files.

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_omics as omics } from 'aws-cdk-lib';
const definitionRepositoryProperty: omics.CfnWorkflow.DefinitionRepositoryProperty = {
  connectionArn: 'connectionArn',
  excludeFilePatterns: ['excludeFilePatterns'],
  fullRepositoryId: 'fullRepositoryId',
  sourceReference: {
    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_omics as omics

definition_repository_property = omics.CfnWorkflow.DefinitionRepositoryProperty(
    connection_arn="connectionArn",
    exclude_file_patterns=["excludeFilePatterns"],
    full_repository_id="fullRepositoryId",
    source_reference=omics.CfnWorkflow.SourceReferenceProperty(
        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.omics.*;

DefinitionRepositoryProperty definitionRepositoryProperty = DefinitionRepositoryProperty.builder()
        .connectionArn("connectionArn")
        .excludeFilePatterns(List.of("excludeFilePatterns"))
        .fullRepositoryId("fullRepositoryId")
        .sourceReference(SourceReferenceProperty.builder()
                .type("type")
                .value("value")
                .build())
        .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.Omics;

var definitionRepositoryProperty = new DefinitionRepositoryProperty {
    ConnectionArn = "connectionArn",
    ExcludeFilePatterns = new [] { "excludeFilePatterns" },
    FullRepositoryId = "fullRepositoryId",
    SourceReference = new SourceReferenceProperty {
        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"

definitionRepositoryProperty := &DefinitionRepositoryProperty{
	ConnectionArn: jsii.String("connectionArn"),
	ExcludeFilePatterns: []*string{
		jsii.String("excludeFilePatterns"),
	},
	FullRepositoryId: jsii.String("fullRepositoryId"),
	SourceReference: &SourceReferenceProperty{
		Type: jsii.String("type"),
		Value: jsii.String("value"),
	},
}
```

## Properties

- `connectionArn`: string — The Amazon Resource Name (ARN) of the connection to the source code repository.

- `excludeFilePatterns`: string[] — A list of file patterns to exclude when retrieving the workflow definition from the repository.

- `fullRepositoryId`: string — The full repository identifier, including the repository owner and name.

  For example, 'repository-owner/repository-name'.

- `sourceReference`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkflow.SourceReferenceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_omics.CfnWorkflow.SourceReferenceProperty.html) — The source reference for the repository, such as a branch name, tag, or commit ID.
