# GitLabConfigurationProperty

Configuration for GitLab project integration.

Defines the numeric project ID, full project path (namespace/project-name), GitLab instance identifier, and webhook update settings required for the Agent Space to access and interact with the GitLab project.

- Source: Generated at build time
- Type last changed: v2.232.0 · 5 Dec 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_devopsagent as devopsagent } from 'aws-cdk-lib';
const gitLabConfigurationProperty: devopsagent.CfnAssociation.GitLabConfigurationProperty = {
  projectId: 'projectId',
  projectPath: 'projectPath',

  // the properties below are optional
  enableWebhookUpdates: false,
  instanceIdentifier: 'instanceIdentifier',
};
```

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_devopsagent as devopsagent

git_lab_configuration_property = devopsagent.CfnAssociation.GitLabConfigurationProperty(
    project_id="projectId",
    project_path="projectPath",

    # the properties below are optional
    enable_webhook_updates=False,
    instance_identifier="instanceIdentifier"
)
```

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

GitLabConfigurationProperty gitLabConfigurationProperty = GitLabConfigurationProperty.builder()
        .projectId("projectId")
        .projectPath("projectPath")

        // the properties below are optional
        .enableWebhookUpdates(false)
        .instanceIdentifier("instanceIdentifier")
        .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.DevOpsAgent;

var gitLabConfigurationProperty = new GitLabConfigurationProperty {
    ProjectId = "projectId",
    ProjectPath = "projectPath",

    // the properties below are optional
    EnableWebhookUpdates = false,
    InstanceIdentifier = "instanceIdentifier"
};
```

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"

gitLabConfigurationProperty := &GitLabConfigurationProperty{
	ProjectId: jsii.String("projectId"),
	ProjectPath: jsii.String("projectPath"),

	// the properties below are optional
	EnableWebhookUpdates: jsii.Boolean(false),
	InstanceIdentifier: jsii.String("instanceIdentifier"),
}
```

## Properties

- `enableWebhookUpdates`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.

- `instanceIdentifier`: string — GitLab instance identifier (e.g., gitlab.com).

- `projectId`: string (required) — GitLab numeric project ID.

- `projectPath`: string (required) — Full GitLab project path (e.g., namespace/project-name).
