Class: AWSCDK::Omics::CfnWorkflowVersion::DefinitionRepositoryProperty

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

Overview

Contains information about a source code repository that hosts the workflow definition files.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_arn: nil, exclude_file_patterns: nil, full_repository_id: nil, source_reference: nil) ⇒ DefinitionRepositoryProperty

Returns a new instance of DefinitionRepositoryProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the connection to the source code repository.

  • exclude_file_patterns (Array<String>, nil) (defaults to: nil)

    A list of file patterns to exclude when retrieving the workflow definition from the repository.

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

    The full repository identifier, including the repository owner and name.

  • source_reference (AWSCDK::IResolvable, AWSCDK::Omics::CfnWorkflowVersion::SourceReferenceProperty, nil) (defaults to: nil)

    The source reference for the repository, such as a branch name, tag, or commit ID.



820
821
822
823
824
825
826
827
828
829
# File 'omics/cfn_workflow_version.rb', line 820

def initialize(connection_arn: nil, exclude_file_patterns: nil, full_repository_id: nil, source_reference: nil)
  @connection_arn = connection_arn
  Jsii::Type.check_type(@connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionArn") unless @connection_arn.nil?
  @exclude_file_patterns = exclude_file_patterns
  Jsii::Type.check_type(@exclude_file_patterns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "excludeFilePatterns") unless @exclude_file_patterns.nil?
  @full_repository_id = full_repository_id
  Jsii::Type.check_type(@full_repository_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fullRepositoryId") unless @full_repository_id.nil?
  @source_reference = source_reference.is_a?(Hash) ? ::AWSCDK::Omics::CfnWorkflowVersion::SourceReferenceProperty.new(**source_reference.transform_keys(&:to_sym)) : source_reference
  Jsii::Type.check_type(@source_reference, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vbWljcy5DZm5Xb3JrZmxvd1ZlcnNpb24uU291cmNlUmVmZXJlbmNlUHJvcGVydHkifV19fQ==")), "sourceReference") unless @source_reference.nil?
end

Instance Attribute Details

#connection_arnString? (readonly)

The Amazon Resource Name (ARN) of the connection to the source code repository.



835
836
837
# File 'omics/cfn_workflow_version.rb', line 835

def connection_arn
  @connection_arn
end

#exclude_file_patternsArray<String>? (readonly)

A list of file patterns to exclude when retrieving the workflow definition from the repository.



840
841
842
# File 'omics/cfn_workflow_version.rb', line 840

def exclude_file_patterns
  @exclude_file_patterns
end

#full_repository_idString? (readonly)

The full repository identifier, including the repository owner and name.

For example, 'repository-owner/repository-name'.



847
848
849
# File 'omics/cfn_workflow_version.rb', line 847

def full_repository_id
  @full_repository_id
end

#source_referenceAWSCDK::IResolvable, ... (readonly)

The source reference for the repository, such as a branch name, tag, or commit ID.



852
853
854
# File 'omics/cfn_workflow_version.rb', line 852

def source_reference
  @source_reference
end

Class Method Details

.jsii_propertiesObject



854
855
856
857
858
859
860
861
# File 'omics/cfn_workflow_version.rb', line 854

def self.jsii_properties
  {
    :connection_arn => "connectionArn",
    :exclude_file_patterns => "excludeFilePatterns",
    :full_repository_id => "fullRepositoryId",
    :source_reference => "sourceReference",
  }
end

Instance Method Details

#to_jsiiObject



863
864
865
866
867
868
869
870
871
872
# File 'omics/cfn_workflow_version.rb', line 863

def to_jsii
  result = {}
  result.merge!({
    "connectionArn" => @connection_arn,
    "excludeFilePatterns" => @exclude_file_patterns,
    "fullRepositoryId" => @full_repository_id,
    "sourceReference" => @source_reference,
  })
  result.compact
end