Struct aws_sdk_opsworks::operation::create_user_profile::builders::CreateUserProfileFluentBuilder
source · pub struct CreateUserProfileFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateUserProfile.
Creates a new user profile.
Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
Implementations§
source§impl CreateUserProfileFluentBuilder
impl CreateUserProfileFluentBuilder
sourcepub fn as_input(&self) -> &CreateUserProfileInputBuilder
pub fn as_input(&self) -> &CreateUserProfileInputBuilder
Access the CreateUserProfile as a reference.
sourcepub async fn send(
self
) -> Result<CreateUserProfileOutput, SdkError<CreateUserProfileError, HttpResponse>>
pub async fn send( self ) -> Result<CreateUserProfileOutput, SdkError<CreateUserProfileError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateUserProfileOutput, CreateUserProfileError>, SdkError<CreateUserProfileError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateUserProfileOutput, CreateUserProfileError>, SdkError<CreateUserProfileError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn iam_user_arn(self, input: impl Into<String>) -> Self
pub fn iam_user_arn(self, input: impl Into<String>) -> Self
The user's IAM ARN; this can also be a federated user's ARN.
sourcepub fn set_iam_user_arn(self, input: Option<String>) -> Self
pub fn set_iam_user_arn(self, input: Option<String>) -> Self
The user's IAM ARN; this can also be a federated user's ARN.
sourcepub fn get_iam_user_arn(&self) -> &Option<String>
pub fn get_iam_user_arn(&self) -> &Option<String>
The user's IAM ARN; this can also be a federated user's ARN.
sourcepub fn ssh_username(self, input: impl Into<String>) -> Self
pub fn ssh_username(self, input: impl Into<String>) -> Self
The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], '-', and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.
sourcepub fn set_ssh_username(self, input: Option<String>) -> Self
pub fn set_ssh_username(self, input: Option<String>) -> Self
The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], '-', and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.
sourcepub fn get_ssh_username(&self) -> &Option<String>
pub fn get_ssh_username(&self) -> &Option<String>
The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], '-', and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.
sourcepub fn ssh_public_key(self, input: impl Into<String>) -> Self
pub fn ssh_public_key(self, input: impl Into<String>) -> Self
The user's public SSH key.
sourcepub fn set_ssh_public_key(self, input: Option<String>) -> Self
pub fn set_ssh_public_key(self, input: Option<String>) -> Self
The user's public SSH key.
sourcepub fn get_ssh_public_key(&self) -> &Option<String>
pub fn get_ssh_public_key(&self) -> &Option<String>
The user's public SSH key.
sourcepub fn allow_self_management(self, input: bool) -> Self
pub fn allow_self_management(self, input: bool) -> Self
Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key.
sourcepub fn set_allow_self_management(self, input: Option<bool>) -> Self
pub fn set_allow_self_management(self, input: Option<bool>) -> Self
Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key.
sourcepub fn get_allow_self_management(&self) -> &Option<bool>
pub fn get_allow_self_management(&self) -> &Option<bool>
Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key.
Trait Implementations§
source§impl Clone for CreateUserProfileFluentBuilder
impl Clone for CreateUserProfileFluentBuilder
source§fn clone(&self) -> CreateUserProfileFluentBuilder
fn clone(&self) -> CreateUserProfileFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more