| 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.AppConfig.Types.Validator
Description
Synopsis
- data Validator = Validator' {}
- newValidator :: ValidatorType -> Text -> Validator
- validator_type :: Lens' Validator ValidatorType
- validator_content :: Lens' Validator Text
Documentation
A validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended. To validate your application configuration data, you provide a schema or an Amazon Web Services Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid.
See: newValidator smart constructor.
Constructors
| Validator' | |
Fields
| |
Instances
| FromJSON Validator Source # | |
| ToJSON Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
| Generic Validator Source # | |
| Show Validator Source # | |
| NFData Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
| Eq Validator Source # | |
| Hashable Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
| type Rep Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator type Rep Validator = D1 ('MetaData "Validator" "Amazonka.AppConfig.Types.Validator" "amazonka-appconfig-2.0-KxEFpSAUlWtLf1lFyPWujo" 'False) (C1 ('MetaCons "Validator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ValidatorType) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))) | |
Arguments
| :: ValidatorType | |
| -> Text | |
| -> Validator |
Create a value of Validator 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:type':Validator', validator_type - AppConfig supports validators of type JSON_SCHEMA and LAMBDA
$sel:content:Validator', validator_content - Either the JSON Schema content or the Amazon Resource Name (ARN) of an
Lambda function.
validator_type :: Lens' Validator ValidatorType Source #
AppConfig supports validators of type JSON_SCHEMA and LAMBDA