| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ServiceCatalog.Types.ParameterConstraints
Description
Synopsis
- data ParameterConstraints = ParameterConstraints' {}
- newParameterConstraints :: ParameterConstraints
- parameterConstraints_allowedPattern :: Lens' ParameterConstraints (Maybe Text)
- parameterConstraints_allowedValues :: Lens' ParameterConstraints (Maybe [Text])
- parameterConstraints_constraintDescription :: Lens' ParameterConstraints (Maybe Text)
- parameterConstraints_maxLength :: Lens' ParameterConstraints (Maybe Text)
- parameterConstraints_maxValue :: Lens' ParameterConstraints (Maybe Text)
- parameterConstraints_minLength :: Lens' ParameterConstraints (Maybe Text)
- parameterConstraints_minValue :: Lens' ParameterConstraints (Maybe Text)
Documentation
data ParameterConstraints Source #
The constraints that the administrator has put on the parameter.
See: newParameterConstraints smart constructor.
Constructors
| ParameterConstraints' | |
Fields
| |
Instances
newParameterConstraints :: ParameterConstraints Source #
Create a value of ParameterConstraints with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:allowedPattern:ParameterConstraints', parameterConstraints_allowedPattern - A regular expression that represents the patterns that allow for
String types. The pattern must match the entire parameter value
provided.
$sel:allowedValues:ParameterConstraints', parameterConstraints_allowedValues - The values that the administrator has allowed for the parameter.
$sel:constraintDescription:ParameterConstraints', parameterConstraints_constraintDescription - A string that explains a constraint when the constraint is violated. For
example, without a constraint description, a parameter that has an
allowed pattern of [A-Za-z0-9]+ displays the following error message
when the user specifies an invalid value:
Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+
By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:
Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.
$sel:maxLength:ParameterConstraints', parameterConstraints_maxLength - An integer value that determines the largest number of characters you
want to allow for String types.
$sel:maxValue:ParameterConstraints', parameterConstraints_maxValue - A numeric value that determines the largest numeric value you want to
allow for Number types.
$sel:minLength:ParameterConstraints', parameterConstraints_minLength - An integer value that determines the smallest number of characters you
want to allow for String types.
$sel:minValue:ParameterConstraints', parameterConstraints_minValue - A numeric value that determines the smallest numeric value you want to
allow for Number types.
parameterConstraints_allowedPattern :: Lens' ParameterConstraints (Maybe Text) Source #
A regular expression that represents the patterns that allow for
String types. The pattern must match the entire parameter value
provided.
parameterConstraints_allowedValues :: Lens' ParameterConstraints (Maybe [Text]) Source #
The values that the administrator has allowed for the parameter.
parameterConstraints_constraintDescription :: Lens' ParameterConstraints (Maybe Text) Source #
A string that explains a constraint when the constraint is violated. For
example, without a constraint description, a parameter that has an
allowed pattern of [A-Za-z0-9]+ displays the following error message
when the user specifies an invalid value:
Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+
By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:
Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.
parameterConstraints_maxLength :: Lens' ParameterConstraints (Maybe Text) Source #
An integer value that determines the largest number of characters you
want to allow for String types.
parameterConstraints_maxValue :: Lens' ParameterConstraints (Maybe Text) Source #
A numeric value that determines the largest numeric value you want to
allow for Number types.
parameterConstraints_minLength :: Lens' ParameterConstraints (Maybe Text) Source #
An integer value that determines the smallest number of characters you
want to allow for String types.
parameterConstraints_minValue :: Lens' ParameterConstraints (Maybe Text) Source #
A numeric value that determines the smallest numeric value you want to
allow for Number types.