GitLabInputProperty Struct
The input required to create a GitLab integration.
| Source | |
|---|---|
| Type last changed |
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',
};
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
// 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();
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"
};
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
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).
The type of GitLab access token.