Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::GitHubLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::GitHubLocationProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
GitHubLocation is a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in GitHub.
Instance Attribute Summary collapse
-
#commit_id ⇒ String
readonly
The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
-
#repository ⇒ String
readonly
The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(commit_id:, repository:) ⇒ GitHubLocationProperty
constructor
A new instance of GitHubLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(commit_id:, repository:) ⇒ GitHubLocationProperty
Returns a new instance of GitHubLocationProperty.
1394 1395 1396 1397 1398 1399 |
# File 'code_deploy/cfn_deployment_group.rb', line 1394 def initialize(commit_id:, repository:) @commit_id = commit_id Jsii::Type.check_type(@commit_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitId") @repository = repository Jsii::Type.check_type(@repository, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repository") end |
Instance Attribute Details
#commit_id ⇒ String (readonly)
The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.
1405 1406 1407 |
# File 'code_deploy/cfn_deployment_group.rb', line 1405 def commit_id @commit_id end |
#repository ⇒ String (readonly)
The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
Specify the value as account/repository .
1412 1413 1414 |
# File 'code_deploy/cfn_deployment_group.rb', line 1412 def repository @repository end |
Class Method Details
.jsii_properties ⇒ Object
1414 1415 1416 1417 1418 1419 |
# File 'code_deploy/cfn_deployment_group.rb', line 1414 def self.jsii_properties { :commit_id => "commitId", :repository => "repository", } end |
Instance Method Details
#to_jsii ⇒ Object
1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'code_deploy/cfn_deployment_group.rb', line 1421 def to_jsii result = {} result.merge!({ "commitId" => @commit_id, "repository" => @repository, }) result.compact end |