Class FindInMapIntrinsic
Represents the Fn::FindInMap intrinsic.
Inherited Members
Namespace: Firefly.CloudFormationParser.Intrinsics.Functions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public class FindInMapIntrinsic : AbstractArrayIntrinsic, IIntrinsic, IEnumerable<object>, IEnumerable
Constructors
| Improve this Doc View SourceFindInMapIntrinsic()
Initializes a new instance of the Find
Declaration
public FindInMapIntrinsic()
FindInMapIntrinsic(Object)
Initializes a new instance of the Find
Declaration
public FindInMapIntrinsic(object value)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value. |
FindInMapIntrinsic(Object, Boolean)
Initializes a new instance of the Find
Declaration
public FindInMapIntrinsic(object value, bool useLongForm)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value. |
Boolean | useLongForm | If set to |
FindInMapIntrinsic(Object, Object, Object)
Initializes a new instance of the Find
Declaration
public FindInMapIntrinsic(object mapName, object topLevelKey, object secondLevelKey)
Parameters
Type | Name | Description |
---|---|---|
Object | mapName | Name of the map. String or reference to intrinsic. |
Object | topLevelKey | The top level key. String or reference to intrinsic. |
Object | secondLevelKey | The second level key. String or reference to intrinsic. |
Fields
| Improve this Doc View SourceTag
The tag
Declaration
public const string Tag = "!FindInMap"
Field Value
Type | Description |
---|---|
String |
Properties
| Improve this Doc View SourceLongName
Gets the long name of the intrinsic.
Declaration
public override string LongName { get; }
Property Value
Type | Description |
---|---|
String | The long name. |
Overrides
| Improve this Doc View SourceMapName
Gets or sets the name of the map.
Declaration
public object MapName { get; set; }
Property Value
Type | Description |
---|---|
Object | The name of the map. |
SecondLevelKey
Gets or sets the second level key.
Declaration
public object SecondLevelKey { get; }
Property Value
Type | Description |
---|---|
Object | The second level key. |
TagName
Gets the YAML tag name.
Declaration
public override string TagName { get; }
Property Value
Type | Description |
---|---|
String | The name of the tag. |
Overrides
| Improve this Doc View SourceTopLevelKey
Gets or sets the top level key.
Declaration
public object TopLevelKey { get; }
Property Value
Type | Description |
---|---|
Object | The top level key. May be a !Ref |
Type
Gets the intrinsic type for this intrinsic.
Declaration
public override IntrinsicType Type { get; }
Property Value
Type | Description |
---|---|
Intrinsic |
The type. |
Overrides
Methods
| Improve this Doc View SourceEvaluate(ITemplate)
Evaluates the result of the intrinsic function.
Declaration
public override object Evaluate(ITemplate template)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | template | Reference to the template being processed |
Returns
Type | Description |
---|---|
Object | The result. |
Overrides
| Improve this Doc View SourceGetReferencedObjects(ITemplate)
Gets a list of referenced resources and/or parameters in this expression
Declaration
public override IEnumerable<string> GetReferencedObjects(ITemplate template)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | template | Reference to the template being processed |
Returns
Type | Description |
---|---|
IEnumerable<String> | List of references |
Overrides
| Improve this Doc View SourceSetValue(IEnumerable<Object>)
Sets the values for the intrinsic.
This is a list of objects, whose length depends on the number of properties (usually list elements) supported by the intrinsic.
Each element depending on the intrinsic, may be a scalar value, another intrinsic or another list of items e.g. for !Join
or !Select
Declaration
protected override void SetValue(IEnumerable<object> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Object> | values | Values to assign to the intrinsic |
Overrides
| Improve this Doc View SourceToString()
Converts to string.
Declaration
public override string ToString()