Class: AWSCDK::Omics::CfnWorkflowVersion::SourceReferenceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_workflow_version.rb

Overview

Contains information about the source reference in a code repository, such as a branch, tag, or commit.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, value: nil) ⇒ SourceReferenceProperty

Returns a new instance of SourceReferenceProperty.

Parameters:

  • type (String, nil) (defaults to: nil)

    The type of source reference, such as branch, tag, or commit.

  • value (String, nil) (defaults to: nil)

    The value of the source reference, such as the branch name, tag name, or commit ID.



991
992
993
994
995
996
# File 'omics/cfn_workflow_version.rb', line 991

def initialize(type: nil, value: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#typeString? (readonly)

The type of source reference, such as branch, tag, or commit.



1002
1003
1004
# File 'omics/cfn_workflow_version.rb', line 1002

def type
  @type
end

#valueString? (readonly)

The value of the source reference, such as the branch name, tag name, or commit ID.



1007
1008
1009
# File 'omics/cfn_workflow_version.rb', line 1007

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1009
1010
1011
1012
1013
1014
# File 'omics/cfn_workflow_version.rb', line 1009

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1016
1017
1018
1019
1020
1021
1022
1023
# File 'omics/cfn_workflow_version.rb', line 1016

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end