> **Experimental**
>
> `@aws-cdk/aws-amplify-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# GitLabSourceCodeProviderProps

Properties for a GitLab source code provider.

Used as props by: [GitLabSourceCodeProvider](/cdk/api/v2/docs/@aws-cdk_aws-amplify-alpha.GitLabSourceCodeProvider.html)

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/source-code-providers.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-amplify-alpha/lib/source-code-providers.ts#L42)

## Example

TypeScript:

```ts
const amplifyApp = new amplify.App(this, 'MyApp', {
  sourceCodeProvider: new amplify.GitLabSourceCodeProvider({
    owner: '<user>',
    repository: '<repo>',
    oauthToken: SecretValue.secretsManager('my-gitlab-token'),
  }),
});
```

Python:

```python
amplify_app = amplify.App(self, "MyApp",
    source_code_provider=amplify.GitLabSourceCodeProvider(
        owner="<user>",
        repository="<repo>",
        oauth_token=SecretValue.secrets_manager("my-gitlab-token")
    )
)
```

Java:

```java
App amplifyApp = App.Builder.create(this, "MyApp")
        .sourceCodeProvider(GitLabSourceCodeProvider.Builder.create()
                .owner("<user>")
                .repository("<repo>")
                .oauthToken(SecretValue.secretsManager("my-gitlab-token"))
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Amplify.Alpha
var amplifyApp = new App(this, "MyApp", new AppProps {
    SourceCodeProvider = new GitLabSourceCodeProvider(new GitLabSourceCodeProviderProps {
        Owner = "<user>",
        Repository = "<repo>",
        OauthToken = SecretValue.SecretsManager("my-gitlab-token")
    })
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkamplifyalpha/v2
amplifyApp := amplify.NewApp(this, jsii.String("MyApp"), &AppProps{
	SourceCodeProvider: amplify.NewGitLabSourceCodeProvider(&GitLabSourceCodeProviderProps{
		Owner: jsii.String("<user>"),
		Repository: jsii.String("<repo>"),
		OauthToken: awscdk.SecretValue_SecretsManager(jsii.String("my-gitlab-token")),
	}),
})
```

## Properties

- `oauthToken`: [SecretValue](/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) (required) — A personal access token with the `repo` scope.

- `owner`: string (required) — The user or organization owning the repository.

- `repository`: string (required) — The name of the repository.
