#[non_exhaustive]pub struct AttachUserPolicyInputBuilder { /* private fields */ }
Expand description
A builder for AttachUserPolicyInput
.
Implementations§
source§impl AttachUserPolicyInputBuilder
impl AttachUserPolicyInputBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name (friendly name, not ARN) of the IAM user to attach the policy to.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name (friendly name, not ARN) of the IAM user to attach the policy to.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name (friendly name, not ARN) of the IAM user to attach the policy to.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
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) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
This field is required.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) of the IAM policy you want to attach.
For more information about ARNs, see 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) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn build(self) -> Result<AttachUserPolicyInput, BuildError>
pub fn build(self) -> Result<AttachUserPolicyInput, BuildError>
Consumes the builder and constructs a AttachUserPolicyInput
.
source§impl AttachUserPolicyInputBuilder
impl AttachUserPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AttachUserPolicyOutput, SdkError<AttachUserPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AttachUserPolicyOutput, SdkError<AttachUserPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AttachUserPolicyInputBuilder
impl Clone for AttachUserPolicyInputBuilder
source§fn clone(&self) -> AttachUserPolicyInputBuilder
fn clone(&self) -> AttachUserPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttachUserPolicyInputBuilder
impl Debug for AttachUserPolicyInputBuilder
source§impl Default for AttachUserPolicyInputBuilder
impl Default for AttachUserPolicyInputBuilder
source§fn default() -> AttachUserPolicyInputBuilder
fn default() -> AttachUserPolicyInputBuilder
source§impl PartialEq for AttachUserPolicyInputBuilder
impl PartialEq for AttachUserPolicyInputBuilder
source§fn eq(&self, other: &AttachUserPolicyInputBuilder) -> bool
fn eq(&self, other: &AttachUserPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.