amazonka-shield-2.0: Amazon Shield SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Shield.Types.Contributor

Description

 
Synopsis

Documentation

data Contributor Source #

A contributor to the attack and their contribution.

See: newContributor smart constructor.

Constructors

Contributor' 

Fields

  • name :: Maybe Text

    The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier setting in the AttackProperty where this contributor is defined. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States.

  • value :: Maybe Integer

    The contribution of this contributor expressed in Protection units. For example 10,000.

Instances

Instances details
FromJSON Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

Generic Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

Associated Types

type Rep Contributor :: Type -> Type #

Read Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

Show Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

NFData Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

Methods

rnf :: Contributor -> () #

Eq Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

Hashable Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

type Rep Contributor Source # 
Instance details

Defined in Amazonka.Shield.Types.Contributor

type Rep Contributor = D1 ('MetaData "Contributor" "Amazonka.Shield.Types.Contributor" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" 'False) (C1 ('MetaCons "Contributor'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))

newContributor :: Contributor Source #

Create a value of Contributor 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:name:Contributor', contributor_name - The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier setting in the AttackProperty where this contributor is defined. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States.

$sel:value:Contributor', contributor_value - The contribution of this contributor expressed in Protection units. For example 10,000.

contributor_name :: Lens' Contributor (Maybe Text) Source #

The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier setting in the AttackProperty where this contributor is defined. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States.

contributor_value :: Lens' Contributor (Maybe Integer) Source #

The contribution of this contributor expressed in Protection units. For example 10,000.