Class: AWSCDK::CodeBuild::GitHubEnterpriseSourceCredentialsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::GitHubEnterpriseSourceCredentialsProps
- Defined in:
- code_build/git_hub_enterprise_source_credentials_props.rb
Overview
Creation properties for GitHubEnterpriseSourceCredentials.
Instance Attribute Summary collapse
-
#access_token ⇒ AWSCDK::SecretValue
readonly
The personal access token to use when contacting the instance of the GitHub Enterprise API.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_token:) ⇒ GitHubEnterpriseSourceCredentialsProps
constructor
A new instance of GitHubEnterpriseSourceCredentialsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_token:) ⇒ GitHubEnterpriseSourceCredentialsProps
Returns a new instance of GitHubEnterpriseSourceCredentialsProps.
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_token ⇒ AWSCDK::SecretValue (readonly)
The personal access token to use when contacting the instance of the GitHub Enterprise API.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |