Class: AWSCDK::Omics::CfnWorkflow::DefinitionRepositoryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_workflow.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::CfnWorkflow::SourceReferenceProperty, nil) (defaults to: nil)

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



827
828
829
830
831
832
833
834
835
836
# File 'omics/cfn_workflow.rb', line 827

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::CfnWorkflow::SourceReferenceProperty.new(**source_reference.transform_keys(&:to_sym)) : source_reference
  Jsii::Type.check_type(@source_reference, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vbWljcy5DZm5Xb3JrZmxvdy5Tb3VyY2VSZWZlcmVuY2VQcm9wZXJ0eSJ9XX19")), "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.



842
843
844
# File 'omics/cfn_workflow.rb', line 842

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.



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

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'.



854
855
856
# File 'omics/cfn_workflow.rb', line 854

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.



859
860
861
# File 'omics/cfn_workflow.rb', line 859

def source_reference
  @source_reference
end

Class Method Details

.jsii_propertiesObject



861
862
863
864
865
866
867
868
# File 'omics/cfn_workflow.rb', line 861

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

Instance Method Details

#to_jsiiObject



870
871
872
873
874
875
876
877
878
879
# File 'omics/cfn_workflow.rb', line 870

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