amazonka-iam-2.0: Amazon Identity and Access Management 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.IAM.Types.ContextEntry

Description

 
Synopsis

Documentation

data ContextEntry Source #

Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.

This data type is used as an input parameter to SimulateCustomPolicy and SimulatePrincipalPolicy.

See: newContextEntry smart constructor.

Constructors

ContextEntry' 

Fields

  • contextKeyName :: Maybe Text

    The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.

  • contextKeyType :: Maybe ContextKeyTypeEnum

    The data type of the value (or values) specified in the ContextKeyValues parameter.

  • contextKeyValues :: Maybe [Text]

    The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition element in an input policy.

Instances

Instances details
ToQuery ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

Generic ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

Associated Types

type Rep ContextEntry :: Type -> Type #

Read ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

Show ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

NFData ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

Methods

rnf :: ContextEntry -> () #

Eq ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

Hashable ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

type Rep ContextEntry Source # 
Instance details

Defined in Amazonka.IAM.Types.ContextEntry

type Rep ContextEntry = D1 ('MetaData "ContextEntry" "Amazonka.IAM.Types.ContextEntry" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "ContextEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contextKeyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "contextKeyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContextKeyTypeEnum)) :*: S1 ('MetaSel ('Just "contextKeyValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

newContextEntry :: ContextEntry Source #

Create a value of ContextEntry 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:contextKeyName:ContextEntry', contextEntry_contextKeyName - The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.

$sel:contextKeyType:ContextEntry', contextEntry_contextKeyType - The data type of the value (or values) specified in the ContextKeyValues parameter.

$sel:contextKeyValues:ContextEntry', contextEntry_contextKeyValues - The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition element in an input policy.

contextEntry_contextKeyName :: Lens' ContextEntry (Maybe Text) Source #

The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.

contextEntry_contextKeyType :: Lens' ContextEntry (Maybe ContextKeyTypeEnum) Source #

The data type of the value (or values) specified in the ContextKeyValues parameter.

contextEntry_contextKeyValues :: Lens' ContextEntry (Maybe [Text]) Source #

The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition element in an input policy.