libZSservicesZSamazonka-appconfigZSamazonka-appconfig
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppConfig.Types.Validator

Description

 
Synopsis

Documentation

data Validator Source #

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.

Constructors

Validator' 

Fields

  • type' :: ValidatorType

    AppConfig supports validators of type JSON_SCHEMA and LAMBDA

  • content :: Sensitive Text

    Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.

Instances

Instances details
Eq Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

Show Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

Generic Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

Associated Types

type Rep Validator :: Type -> Type #

NFData Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

Methods

rnf :: Validator -> () #

Hashable Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

ToJSON Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

FromJSON Validator Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Validator

type Rep Validator Source # 
Instance details

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))))

newValidator Source #

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

validator_content :: Lens' Validator Text Source #

Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS Lambda function.