Class: AWSCDK::AppRunner::CfnService::SourceCodeVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ SourceCodeVersionProperty

Returns a new instance of SourceCodeVersionProperty.

Parameters:

  • type (String)

    The type of version identifier.

  • value (String)

    A source code version.



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

#typeString (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

#valueString (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_propertiesObject



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_jsiiObject



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