Class: AWSCDK::CodeBuild::GitHubEnterpriseSourceCredentialsProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/git_hub_enterprise_source_credentials_props.rb

Overview

Creation properties for GitHubEnterpriseSourceCredentials.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token:) ⇒ GitHubEnterpriseSourceCredentialsProps

Returns a new instance of GitHubEnterpriseSourceCredentialsProps.

Parameters:

  • access_token (AWSCDK::SecretValue)

    The personal access token to use when contacting the instance of the GitHub Enterprise API.



8
9
10
11
# File 'code_build/git_hub_enterprise_source_credentials_props.rb', line 8

def initialize(access_token:)
  @access_token = access_token
  Jsii::Type.check_type(@access_token, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TZWNyZXRWYWx1ZSJ9")), "accessToken")
end

Instance Attribute Details

#access_tokenAWSCDK::SecretValue (readonly)

The personal access token to use when contacting the instance of the GitHub Enterprise API.

Returns:



16
17
18
# File 'code_build/git_hub_enterprise_source_credentials_props.rb', line 16

def access_token
  @access_token
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'code_build/git_hub_enterprise_source_credentials_props.rb', line 18

def self.jsii_properties
  {
    :access_token => "accessToken",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'code_build/git_hub_enterprise_source_credentials_props.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "accessToken" => @access_token,
  })
  result.compact
end