Class CidrIntrinsic
Represents the Fn::Cidr intrinsic.
Inherited Members
Namespace: Firefly.CloudFormationParser.Intrinsics.Functions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public class CidrIntrinsic : AbstractArrayIntrinsic, IIntrinsic, IEnumerable<object>, IEnumerableConstructors
| Improve this Doc View SourceCidrIntrinsic()
Initializes a new instance of the CidrIntrinsic class.
Declaration
public CidrIntrinsic()CidrIntrinsic(Object)
Initializes a new instance of the CidrIntrinsic class.
Declaration
public CidrIntrinsic(object value)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | value | The value. | 
CidrIntrinsic(Object, Boolean)
Initializes a new instance of the CidrIntrinsic class.
Declaration
public CidrIntrinsic(object value, bool useLongForm)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | value | The value. | 
| Boolean | useLongForm | If set to  | 
Fields
| Improve this Doc View SourceTag
The tag
Declaration
public const string Tag = "!Cidr"Field Value
| Type | Description | 
|---|---|
| String | 
Properties
| Improve this Doc View SourceCidrBits
Gets or sets the number of subnet bits for the CIDR. For example, specifying a value "8" for this parameter will create a CIDR with a mask of "/24"..
Declaration
public int CidrBits { get; set; }Property Value
| Type | Description | 
|---|---|
| Int32 | The CIDR bits. | 
Count
Gets or sets The number of CIDRs to generate.
Declaration
public int Count { get; set; }Property Value
| Type | Description | 
|---|---|
| Int32 | The count. | 
IpBlock
Gets or sets the user-specified CIDR address block to be split into smaller CIDR blocks.
Declaration
public object IpBlock { get; set; }Property Value
| Type | Description | 
|---|---|
| Object | The IP block. | 
LongName
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 SourceTagName
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 SourceType
Gets the intrinsic type for this intrinsic.
Declaration
public override IntrinsicType Type { get; }Property Value
| Type | Description | 
|---|---|
| IntrinsicType | 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 |