# GitLabInputProperty

The input required to create a GitLab integration.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const gitLabInputProperty: securityagent.CfnIntegration.GitLabInputProperty = {
  accessToken: 'accessToken',
  tokenType: 'tokenType',

  // the properties below are optional
  groupId: 'groupId',
  targetUrl: 'targetUrl',
};
```

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_securityagent as securityagent

git_lab_input_property = securityagent.CfnIntegration.GitLabInputProperty(
    access_token="accessToken",
    token_type="tokenType",

    # the properties below are optional
    group_id="groupId",
    target_url="targetUrl"
)
```

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

GitLabInputProperty gitLabInputProperty = GitLabInputProperty.builder()
        .accessToken("accessToken")
        .tokenType("tokenType")

        // the properties below are optional
        .groupId("groupId")
        .targetUrl("targetUrl")
        .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.SecurityAgent;

var gitLabInputProperty = new GitLabInputProperty {
    AccessToken = "accessToken",
    TokenType = "tokenType",

    // the properties below are optional
    GroupId = "groupId",
    TargetUrl = "targetUrl"
};
```

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"

gitLabInputProperty := &GitLabInputProperty{
	AccessToken: jsii.String("accessToken"),
	TokenType: jsii.String("tokenType"),

	// the properties below are optional
	GroupId: jsii.String("groupId"),
	TargetUrl: jsii.String("targetUrl"),
}
```

## Properties

- `accessToken`: string (required) — The GitLab access token used to authenticate.

  This can be a personal access token or a group access token.

- `groupId`: string — The identifier of the GitLab group.

  Required when TokenType is GROUP and ignored for personal tokens.

- `targetUrl`: string — The HTTPS URL of a self-managed GitLab instance.

  Omit this value for GitLab SaaS (gitlab.com).

- `tokenType`: string (required) — The type of GitLab access token.
