Struct aws_sdk_iam::model::ContextEntry
source · [−]#[non_exhaustive]pub struct ContextEntry { /* private fields */ }Expand description
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.
Implementations
sourceimpl ContextEntry
impl ContextEntry
sourcepub fn context_key_name(&self) -> Option<&str>
pub fn context_key_name(&self) -> Option<&str>
The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.
sourcepub fn context_key_values(&self) -> Option<&[String]>
pub fn context_key_values(&self) -> Option<&[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.
sourcepub fn context_key_type(&self) -> Option<&ContextKeyTypeEnum>
pub fn context_key_type(&self) -> Option<&ContextKeyTypeEnum>
The data type of the value (or values) specified in the ContextKeyValues parameter.
sourceimpl ContextEntry
impl ContextEntry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ContextEntry.
Trait Implementations
sourceimpl Clone for ContextEntry
impl Clone for ContextEntry
sourcefn clone(&self) -> ContextEntry
fn clone(&self) -> ContextEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ContextEntry
impl Debug for ContextEntry
sourceimpl PartialEq<ContextEntry> for ContextEntry
impl PartialEq<ContextEntry> for ContextEntry
sourcefn eq(&self, other: &ContextEntry) -> bool
fn eq(&self, other: &ContextEntry) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ContextEntry) -> bool
fn ne(&self, other: &ContextEntry) -> bool
This method tests for !=.
impl StructuralPartialEq for ContextEntry
Auto Trait Implementations
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync for ContextEntry
impl Unpin for ContextEntry
impl UnwindSafe for ContextEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more