Class: AWSCDK::Codepipeline::CfnPipeline::OutputArtifactProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
codepipeline/cfn_pipeline.rb

Overview

Represents information about the output of an action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, files: nil) ⇒ OutputArtifactProperty

Returns a new instance of OutputArtifactProperty.

Parameters:

  • name (String)

    The name of the output of an artifact, such as "My App".

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

    The files that you want to associate with the output artifact that will be exported from the compute action.



1668
1669
1670
1671
1672
1673
# File 'codepipeline/cfn_pipeline.rb', line 1668

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

Instance Attribute Details

#filesArray<String>? (readonly)

The files that you want to associate with the output artifact that will be exported from the compute action.



1688
1689
1690
# File 'codepipeline/cfn_pipeline.rb', line 1688

def files
  @files
end

#nameString (readonly)

The name of the output of an artifact, such as "My App".

The output artifact name must exactly match the input artifact declared for a downstream action. However, the downstream action's input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

Output artifact names must be unique within a pipeline.



1683
1684
1685
# File 'codepipeline/cfn_pipeline.rb', line 1683

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1690
1691
1692
1693
1694
1695
# File 'codepipeline/cfn_pipeline.rb', line 1690

def self.jsii_properties
  {
    :name => "name",
    :files => "files",
  }
end

Instance Method Details

#to_jsiiObject



1697
1698
1699
1700
1701
1702
1703
1704
# File 'codepipeline/cfn_pipeline.rb', line 1697

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