Skip to content
v2.275.0

GitLabInputProperty Struct ​

The input required to create a GitLab integration.

Example ​

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',
};

Properties ​

accessTokenstringaccess_tokenstraccessTokenStringAccessTokenstringAccessToken*stringrequired#
The GitLab access token used to authenticate.

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

groupIdoptionalstringgroup_idoptionalstrgroupIdoptionalStringGroupIdoptionalstringGroupIdoptional*string#
The identifier of the GitLab group.

Required when TokenType is GROUP and ignored for personal tokens.

targetUrloptionalstringtarget_urloptionalstrtargetUrloptionalStringTargetUrloptionalstringTargetUrloptional*string#
The HTTPS URL of a self-managed GitLab instance.

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

tokenTypestringtoken_typestrtokenTypeStringTokenTypestringTokenType*stringrequired#
The type of GitLab access token.