libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
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.CloudDirectory.Types.Rule

Description

 
Synopsis

Documentation

data Rule Source #

Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule.

See: newRule smart constructor.

Constructors

Rule' 

Fields

Instances

Instances details
Eq Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Methods

(==) :: Rule -> Rule -> Bool #

(/=) :: Rule -> Rule -> Bool #

Read Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Show Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #

Generic Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Associated Types

type Rep Rule :: Type -> Type #

Methods

from :: Rule -> Rep Rule x #

to :: Rep Rule x -> Rule #

NFData Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Methods

rnf :: Rule -> () #

Hashable Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

Methods

hashWithSalt :: Int -> Rule -> Int #

hash :: Rule -> Int #

ToJSON Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

FromJSON Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

type Rep Rule Source # 
Instance details

Defined in Amazonka.CloudDirectory.Types.Rule

type Rep Rule = D1 ('MetaData "Rule" "Amazonka.CloudDirectory.Types.Rule" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "Rule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RuleType))))

newRule :: Rule Source #

Create a value of Rule 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:parameters:Rule', rule_parameters - The minimum and maximum parameters that are associated with the rule.

$sel:type':Rule', rule_type - The type of attribute validation rule.

rule_parameters :: Lens' Rule (Maybe (HashMap Text Text)) Source #

The minimum and maximum parameters that are associated with the rule.

rule_type :: Lens' Rule (Maybe RuleType) Source #

The type of attribute validation rule.