Struct aws_sdk_iam::types::builders::AttachedPolicyBuilder
source · #[non_exhaustive]pub struct AttachedPolicyBuilder { /* private fields */ }Expand description
A builder for AttachedPolicy.
Implementations§
source§impl AttachedPolicyBuilder
impl AttachedPolicyBuilder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The friendly name of the attached policy.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The friendly name of the attached policy.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The friendly name of the attached policy.
sourcepub fn policy_arn(self, input: impl Into<String>) -> Self
pub fn policy_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn set_policy_arn(self, input: Option<String>) -> Self
pub fn set_policy_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn get_policy_arn(&self) -> &Option<String>
pub fn get_policy_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn build(self) -> AttachedPolicy
pub fn build(self) -> AttachedPolicy
Consumes the builder and constructs a AttachedPolicy.
Trait Implementations§
source§impl Clone for AttachedPolicyBuilder
impl Clone for AttachedPolicyBuilder
source§fn clone(&self) -> AttachedPolicyBuilder
fn clone(&self) -> AttachedPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AttachedPolicyBuilder
impl Debug for AttachedPolicyBuilder
source§impl Default for AttachedPolicyBuilder
impl Default for AttachedPolicyBuilder
source§fn default() -> AttachedPolicyBuilder
fn default() -> AttachedPolicyBuilder
source§impl PartialEq for AttachedPolicyBuilder
impl PartialEq for AttachedPolicyBuilder
source§fn eq(&self, other: &AttachedPolicyBuilder) -> bool
fn eq(&self, other: &AttachedPolicyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AttachedPolicyBuilder
Auto Trait Implementations§
impl Freeze for AttachedPolicyBuilder
impl RefUnwindSafe for AttachedPolicyBuilder
impl Send for AttachedPolicyBuilder
impl Sync for AttachedPolicyBuilder
impl Unpin for AttachedPolicyBuilder
impl UnwindSafe for AttachedPolicyBuilder
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