You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IAM::Types::ContextEntry
- Inherits:
-
Struct
- Object
- Struct
- Aws::IAM::Types::ContextEntry
- Defined in:
- (unknown)
Overview
When passing ContextEntry as input to an Aws::Client method, you can use a vanilla Hash:
{
context_key_name: "ContextKeyNameType",
context_key_values: ["ContextKeyValueType"],
context_key_type: "string", # accepts string, stringList, numeric, numericList, boolean, booleanList, ip, ipList, binary, binaryList, date, dateList
}
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.
Instance Attribute Summary collapse
-
#context_key_name ⇒ String
The full name of a condition context key, including the service prefix.
-
#context_key_type ⇒ String
The data type of the value (or values) specified in the
ContextKeyValuesparameter. -
#context_key_values ⇒ Array<String>
The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a
Conditionelement in an input policy.
Instance Attribute Details
#context_key_name ⇒ String
The full name of a condition context key, including the service prefix.
For example, aws:SourceIp or s3:VersionId.
#context_key_type ⇒ String
The data type of the value (or values) specified in the
ContextKeyValues parameter.
Possible values:
- string
- stringList
- numeric
- numericList
- boolean
- booleanList
- ip
- ipList
- binary
- binaryList
- date
- dateList
#context_key_values ⇒ Array<String>
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.