Class: AWSCDK::AppRunner::CfnService::SourceCodeVersionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppRunner::CfnService::SourceCodeVersionProperty
- Defined in:
- app_runner/cfn_service.rb
Overview
Identifies a version of code that AWS App Runner refers to within a source code repository.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
The type of version identifier.
-
#value ⇒ String
readonly
A source code version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value:) ⇒ SourceCodeVersionProperty
constructor
A new instance of SourceCodeVersionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value:) ⇒ SourceCodeVersionProperty
Returns a new instance of SourceCodeVersionProperty.
1478 1479 1480 1481 1482 1483 |
# File 'app_runner/cfn_service.rb', line 1478 def initialize(type:, value:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#type ⇒ String (readonly)
The type of version identifier.
For a git-based repository, branches represent versions.
1491 1492 1493 |
# File 'app_runner/cfn_service.rb', line 1491 def type @type end |
#value ⇒ String (readonly)
A source code version.
For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
1498 1499 1500 |
# File 'app_runner/cfn_service.rb', line 1498 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1500 1501 1502 1503 1504 1505 |
# File 'app_runner/cfn_service.rb', line 1500 def self.jsii_properties { :type => "type", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'app_runner/cfn_service.rb', line 1507 def to_jsii result = {} result.merge!({ "type" => @type, "value" => @value, }) result.compact end |