Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 you want to deploy functions as intended. To validate your application configuration data, you provide a schema or a 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.
Validator' | |
|
Instances
Eq Validator Source # | |
Show Validator Source # | |
Generic Validator Source # | |
NFData Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
Hashable Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
ToJSON Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator | |
FromJSON Validator Source # | |
type Rep Validator Source # | |
Defined in Amazonka.AppConfig.Types.Validator type Rep Validator = D1 ('MetaData "Validator" "Amazonka.AppConfig.Types.Validator" "libZSservicesZSamazonka-appconfigZSamazonka-appconfig" '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)))) |
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
AWS Lambda function.
validator_type :: Lens' Validator ValidatorType Source #
AppConfig supports validators of type JSON_SCHEMA
and LAMBDA