Class: AWSCDK::DevOpsAgent::CfnService::GitLabDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_service.rb

Overview

GitLab service configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_url:, token_type:, token_value:, group_id: nil) ⇒ GitLabDetailsProperty

Returns a new instance of GitLabDetailsProperty.

Parameters:

  • target_url (String)

    GitLab instance URL.

  • token_type (String)

    Type of GitLab access token.

  • token_value (String)

    GitLab access token value.

  • group_id (String, nil) (defaults to: nil)

    Optional GitLab group ID for group-level access tokens.



977
978
979
980
981
982
983
984
985
986
# File 'dev_ops_agent/cfn_service.rb', line 977

def initialize(target_url:, token_type:, token_value:, group_id: nil)
  @target_url = target_url
  Jsii::Type.check_type(@target_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetUrl")
  @token_type = token_type
  Jsii::Type.check_type(@token_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenType")
  @token_value = token_value
  Jsii::Type.check_type(@token_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenValue")
  @group_id = group_id
  Jsii::Type.check_type(@group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupId") unless @group_id.nil?
end

Instance Attribute Details

#group_idString? (readonly)

Optional GitLab group ID for group-level access tokens.



1007
1008
1009
# File 'dev_ops_agent/cfn_service.rb', line 1007

def group_id
  @group_id
end

#target_urlString (readonly)

GitLab instance URL.



992
993
994
# File 'dev_ops_agent/cfn_service.rb', line 992

def target_url
  @target_url
end

#token_typeString (readonly)

Type of GitLab access token.



997
998
999
# File 'dev_ops_agent/cfn_service.rb', line 997

def token_type
  @token_type
end

#token_valueString (readonly)

GitLab access token value.



1002
1003
1004
# File 'dev_ops_agent/cfn_service.rb', line 1002

def token_value
  @token_value
end

Class Method Details

.jsii_propertiesObject



1009
1010
1011
1012
1013
1014
1015
1016
# File 'dev_ops_agent/cfn_service.rb', line 1009

def self.jsii_properties
  {
    :target_url => "targetUrl",
    :token_type => "tokenType",
    :token_value => "tokenValue",
    :group_id => "groupId",
  }
end

Instance Method Details

#to_jsiiObject



1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
# File 'dev_ops_agent/cfn_service.rb', line 1018

def to_jsii
  result = {}
  result.merge!({
    "targetUrl" => @target_url,
    "tokenType" => @token_type,
    "tokenValue" => @token_value,
    "groupId" => @group_id,
  })
  result.compact
end