Class: AWSCDK::CodePipelineActions::CodeStarSourceVariables
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodePipelineActions::CodeStarSourceVariables
- Defined in:
- code_pipeline_actions/code_star_source_variables.rb
Overview
The CodePipeline variables emitted by CodeStar source Action.
Instance Attribute Summary collapse
-
#author_date ⇒ String
readonly
The date the currently last commit on the tracked branch was authored, in ISO-8601 format.
-
#branch_name ⇒ String
readonly
The name of the branch this action tracks.
-
#commit_id ⇒ String
readonly
The SHA1 hash of the currently last commit on the tracked branch.
-
#commit_message ⇒ String
readonly
The message of the currently last commit on the tracked branch.
-
#connection_arn ⇒ String
readonly
The connection ARN this source uses.
-
#full_repository_name ⇒ String
readonly
The name of the repository this action points to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(author_date:, branch_name:, commit_id:, commit_message:, connection_arn:, full_repository_name:) ⇒ CodeStarSourceVariables
constructor
A new instance of CodeStarSourceVariables.
- #to_jsii ⇒ Object
Constructor Details
#initialize(author_date:, branch_name:, commit_id:, commit_message:, connection_arn:, full_repository_name:) ⇒ CodeStarSourceVariables
Returns a new instance of CodeStarSourceVariables.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 13 def initialize(author_date:, branch_name:, commit_id:, commit_message:, connection_arn:, full_repository_name:) @author_date = Jsii::Type.check_type(@author_date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorDate") @branch_name = branch_name Jsii::Type.check_type(@branch_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "branchName") @commit_id = commit_id Jsii::Type.check_type(@commit_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitId") @commit_message = Jsii::Type.check_type(@commit_message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitMessage") @connection_arn = connection_arn Jsii::Type.check_type(@connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionArn") @full_repository_name = full_repository_name Jsii::Type.check_type(@full_repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fullRepositoryName") end |
Instance Attribute Details
#author_date ⇒ String (readonly)
The date the currently last commit on the tracked branch was authored, in ISO-8601 format.
31 32 33 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 31 def @author_date end |
#branch_name ⇒ String (readonly)
The name of the branch this action tracks.
35 36 37 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 35 def branch_name @branch_name end |
#commit_id ⇒ String (readonly)
The SHA1 hash of the currently last commit on the tracked branch.
39 40 41 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 39 def commit_id @commit_id end |
#commit_message ⇒ String (readonly)
The message of the currently last commit on the tracked branch.
43 44 45 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 43 def @commit_message end |
#connection_arn ⇒ String (readonly)
The connection ARN this source uses.
47 48 49 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 47 def connection_arn @connection_arn end |
#full_repository_name ⇒ String (readonly)
The name of the repository this action points to.
51 52 53 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 51 def full_repository_name @full_repository_name end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 53 def self.jsii_properties { :author_date => "authorDate", :branch_name => "branchName", :commit_id => "commitId", :commit_message => "commitMessage", :connection_arn => "connectionArn", :full_repository_name => "fullRepositoryName", } end |
Instance Method Details
#to_jsii ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'code_pipeline_actions/code_star_source_variables.rb', line 64 def to_jsii result = {} result.merge!({ "authorDate" => @author_date, "branchName" => @branch_name, "commitId" => @commit_id, "commitMessage" => @commit_message, "connectionArn" => @connection_arn, "fullRepositoryName" => @full_repository_name, }) result.compact end |