Interface IParameter
Interface describing a CloudFormation Parameter.
Namespace: Firefly.CloudFormationParser
Assembly: Firefly.CloudFormationParser.dll
Syntax
public interface IParameter : ITemplateObject
Properties
| Improve this Doc View SourceAllowedPattern
Gets the allowed pattern as a regular expression.
Declaration
Regex AllowedPattern { get; }
Property Value
Type | Description |
---|---|
Regex | The allowed pattern, or |
AllowedValues
Gets an array containing the list of values allowed for the parameter.
Declaration
List<string> AllowedValues { get; }
Property Value
Type | Description |
---|---|
List<String> | The allowed values, which will be |
ConstraintDescription
Gets a string that explains a constraint when the constraint is violated..
Declaration
string ConstraintDescription { get; }
Property Value
Type | Description |
---|---|
String | The constraint description, which will be |
CurrentValue
Gets the current value of this parameter
This value may be set by passing a Dictionary<TKey,TValue> of string,object to ParameterValues method.
Declaration
object CurrentValue { get; }
Property Value
Type | Description |
---|---|
Object | The current value, which will be |
Default
Gets a value of the appropriate type for the template to use if no value is specified when a stack is created. If you define constraints for the parameter, you must specify a value that adheres to those constraints.
Declaration
string Default { get; }
Property Value
Type | Description |
---|---|
String | The default value, which will be |
Description
Gets a string of up to 4000 characters that describes the parameter.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
String | Description of the parameter, which will be |
HasMaxLength
Gets a value indicating whether this parameter has a maximum length.
Declaration
bool HasMaxLength { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasMaxValue
Gets a value indicating whether this parameter has a maximum value.
Declaration
bool HasMaxValue { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasMinLength
Gets a value indicating whether this parameter has a minimum length.
Declaration
bool HasMinLength { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasMinValue
Gets a value indicating whether this parameter has a minimum value.
Declaration
bool HasMinValue { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsSsmParameter
Gets a value indicating whether this parameter is populated from SSM Parameter Store
Declaration
bool IsSsmParameter { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
MaxLength
Gets an integer value that determines the largest number of characters you want to allow for String types.
Declaration
int? MaxLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | The maximum length, which will be |
MaxValue
Gets a numeric value that determines the largest numeric value you want to allow for Number types.
Declaration
double? MaxValue { get; }
Property Value
Type | Description |
---|---|
Nullable<Double> | The maximum value, which will be |
MinLength
Gets an integer value that determines the smallest number of characters you want to allow for String types.
Declaration
int? MinLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | The minimum length. |
MinValue
Gets a numeric value that determines the smallest numeric value you want to allow for Number types.
Declaration
double? MinValue { get; }
Property Value
Type | Description |
---|---|
Nullable<Double> | The minimum value, which will be |
NoEcho
Gets a value indicating whether to mask the parameter value to prevent it from being displayed in the console, command line tools, or API.
Declaration
bool NoEcho { get; }
Property Value
Type | Description |
---|---|
Boolean | If |
Type
Gets the data type for the parameter.
Declaration
string Type { get; }
Property Value
Type | Description |
---|---|
String | The AWS Parameter type. |
Methods
| Improve this Doc View SourceGetClrType()
Gets the CLR type for the parameter given the AWS type specified for it in the template.
Declaration
Type GetClrType()
Returns
Type | Description |
---|---|
Type | CLR type |
GetCurrentValue()
Gets the current value of the parameter choosing whatever value has been set and if none, the default.
Declaration
object GetCurrentValue()
Returns
Type | Description |
---|---|
Object | Current value. |
SetCurrentValue(IDictionary<String, Object>)
Sets the current value of this parameter to use in evaluations.
Declaration
void SetCurrentValue(IDictionary<string, object> parameterValues)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<String, Object> | parameterValues | The parameter values. |
Exceptions
Type | Condition |
---|---|
InvalidCastException |
|
ArgumentException |
|