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 ==
.