Struct aws_sdk_iam::types::builders::ContextEntryBuilder
source · #[non_exhaustive]pub struct ContextEntryBuilder { /* private fields */ }Expand description
A builder for ContextEntry.
Implementations§
source§impl ContextEntryBuilder
impl ContextEntryBuilder
sourcepub fn context_key_name(self, input: impl Into<String>) -> Self
pub fn context_key_name(self, input: impl Into<String>) -> Self
The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.
sourcepub fn set_context_key_name(self, input: Option<String>) -> Self
pub fn set_context_key_name(self, input: Option<String>) -> Self
The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.
sourcepub fn get_context_key_name(&self) -> &Option<String>
pub fn get_context_key_name(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn context_key_values(self, input: impl Into<String>) -> Self
Appends an item to context_key_values.
To override the contents of this collection use set_context_key_values.
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 set_context_key_values(self, input: Option<Vec<String>>) -> Self
pub fn set_context_key_values(self, input: Option<Vec<String>>) -> Self
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 get_context_key_values(&self) -> &Option<Vec<String>>
pub fn get_context_key_values(&self) -> &Option<Vec<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, input: ContextKeyTypeEnum) -> Self
pub fn context_key_type(self, input: ContextKeyTypeEnum) -> Self
The data type of the value (or values) specified in the ContextKeyValues parameter.
sourcepub fn set_context_key_type(self, input: Option<ContextKeyTypeEnum>) -> Self
pub fn set_context_key_type(self, input: Option<ContextKeyTypeEnum>) -> Self
The data type of the value (or values) specified in the ContextKeyValues parameter.
sourcepub fn get_context_key_type(&self) -> &Option<ContextKeyTypeEnum>
pub fn get_context_key_type(&self) -> &Option<ContextKeyTypeEnum>
The data type of the value (or values) specified in the ContextKeyValues parameter.
sourcepub fn build(self) -> ContextEntry
pub fn build(self) -> ContextEntry
Consumes the builder and constructs a ContextEntry.
Trait Implementations§
source§impl Clone for ContextEntryBuilder
impl Clone for ContextEntryBuilder
source§fn clone(&self) -> ContextEntryBuilder
fn clone(&self) -> ContextEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ContextEntryBuilder
impl Debug for ContextEntryBuilder
source§impl Default for ContextEntryBuilder
impl Default for ContextEntryBuilder
source§fn default() -> ContextEntryBuilder
fn default() -> ContextEntryBuilder
source§impl PartialEq for ContextEntryBuilder
impl PartialEq for ContextEntryBuilder
source§fn eq(&self, other: &ContextEntryBuilder) -> bool
fn eq(&self, other: &ContextEntryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ContextEntryBuilder
Auto Trait Implementations§
impl Freeze for ContextEntryBuilder
impl RefUnwindSafe for ContextEntryBuilder
impl Send for ContextEntryBuilder
impl Sync for ContextEntryBuilder
impl Unpin for ContextEntryBuilder
impl UnwindSafe for ContextEntryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more