import Attribute from 'pipeline-transfer/functions/transfer/transfer/attribute/attribute.js'
Attribute
Resolves an attribute that has been defined as part of the UserParameters. An attribute can either be a static, hardcoded value or can be a reference to a key, found inside a file present in an input artifact.
Constructor Summary
Public Constructor | ||
public |
constructor(mapping: String,Object, artifacts: Array[Artifact]) |
Member Summary
Public Members | ||
public |
artifacts: Array[Artifact] An object containing Artifact instances, with the keys denoting the logical name of the artifact inside CodePipeline. |
|
public |
mapping: String,Object Either a hardcoded value (a string) or an object denoting a remote reference. |
|
public get |
Determine if the type of mapping that has been provided for the attribute value is either a static value, or needs to be resolved using a remote input artifact. |
Method Summary
Public Methods | ||
public |
Resolves the value for the attribute, either returning the static attribute value, or the resolved value from inside a remote artifact. |
Private Methods | ||
private |
|
Public Constructors
public constructor(mapping: String,Object, artifacts: Array[Artifact]) source
Params:
Name | Type | Attribute | Description |
mapping | String,Object | a mapping object, either a hardcoded value or a reference to a key, found inside a file present in an input artifact. |
|
artifacts | Array[Artifact] | an array of artifacts that any remote attribute value could be found inside. |
Public Members
public artifacts: Array[Artifact] source
An object containing Artifact instances, with the keys denoting the logical name of the artifact inside CodePipeline.
public mapping: String,Object source
Either a hardcoded value (a string) or an object denoting a remote reference.