1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RegisterUser`](crate::operation::register_user::builders::RegisterUserFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity_type(IdentityType)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::identity_type) / [`set_identity_type(Option<IdentityType>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_identity_type):<br>required: **true**<br><p>Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts two values:</p>  <ul>   <li> <p> <code>IAM</code>: A user whose identity maps to an existing IAM user or role. </p> </li>   <li> <p> <code>QUICKSIGHT</code>: A user whose identity is owned and managed internally by Amazon QuickSight. </p> </li>  </ul><br>
    ///   - [`email(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::email) / [`set_email(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_email):<br>required: **true**<br><p>The email address of the user that you want to register.</p><br>
    ///   - [`user_role(UserRole)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::user_role) / [`set_user_role(Option<UserRole>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_user_role):<br>required: **true**<br><p>The Amazon QuickSight role for the user. The user role can be one of the following:</p>  <ul>   <li> <p> <code>READER</code>: A user who has read-only access to dashboards.</p> </li>   <li> <p> <code>AUTHOR</code>: A user who can create data sources, datasets, analyses, and dashboards.</p> </li>   <li> <p> <code>ADMIN</code>: A user who is an author, who can also manage Amazon QuickSight settings.</p> </li>   <li> <p> <code>RESTRICTED_READER</code>: This role isn't currently available for use.</p> </li>   <li> <p> <code>RESTRICTED_AUTHOR</code>: This role isn't currently available for use.</p> </li>  </ul><br>
    ///   - [`iam_arn(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::iam_arn) / [`set_iam_arn(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_iam_arn):<br>required: **false**<br><p>The ARN of the IAM user or role that you are registering with Amazon QuickSight. </p><br>
    ///   - [`session_name(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::session_name) / [`set_session_name(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_session_name):<br>required: **false**<br><p>You need to use this parameter only when you register one or more users using an assumed IAM role. You don't need to provide the session name for other scenarios, for example when you are registering an IAM user or an Amazon QuickSight user. You can register multiple users using the same IAM role if each user has a different session name. For more information on assuming IAM roles, see <a href="https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html"> <code>assume-role</code> </a> in the <i>CLI Reference.</i> </p><br>
    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.</p><br>
    ///   - [`namespace(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_namespace):<br>required: **true**<br><p>The namespace. Currently, you should set this to <code>default</code>.</p><br>
    ///   - [`user_name(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_user_name):<br>required: **false**<br><p>The Amazon QuickSight user name that you want to create for the user you are registering.</p><br>
    ///   - [`custom_permissions_name(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::custom_permissions_name) / [`set_custom_permissions_name(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_custom_permissions_name):<br>required: **false**<br><p>(Enterprise edition only) The name of the custom permissions profile that you want to assign to this user. Customized permissions allows you to control a user's access by restricting access the following operations:</p>  <ul>   <li> <p>Create and update data sources</p> </li>   <li> <p>Create and update datasets</p> </li>   <li> <p>Create and update email reports</p> </li>   <li> <p>Subscribe to email reports</p> </li>  </ul>  <p>To add custom permissions to an existing user, use <code> <a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API_UpdateUser.html">UpdateUser</a> </code> instead.</p>  <p>A set of custom permissions includes any combination of these restrictions. Currently, you need to create the profile names for custom permission sets by using the Amazon QuickSight console. Then, you use the <code>RegisterUser</code> API operation to assign the named set of permissions to a Amazon QuickSight user. </p>  <p>Amazon QuickSight custom permissions are applied through IAM policies. Therefore, they override the permissions typically granted by assigning Amazon QuickSight users to one of the default security cohorts in Amazon QuickSight (admin, author, reader).</p>  <p>This feature is available only to Amazon QuickSight Enterprise edition subscriptions.</p><br>
    ///   - [`external_login_federation_provider_type(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::external_login_federation_provider_type) / [`set_external_login_federation_provider_type(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_external_login_federation_provider_type):<br>required: **false**<br><p>The type of supported external login provider that provides identity to let a user federate into Amazon QuickSight with an associated Identity and Access Management(IAM) role. The type of supported external login provider can be one of the following.</p>  <ul>   <li> <p> <code>COGNITO</code>: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com. When choosing the <code>COGNITO</code> provider type, don’t use the "CustomFederationProviderUrl" parameter which is only needed when the external provider is custom.</p> </li>   <li> <p> <code>CUSTOM_OIDC</code>: Custom OpenID Connect (OIDC) provider. When choosing <code>CUSTOM_OIDC</code> type, use the <code>CustomFederationProviderUrl</code> parameter to provide the custom OIDC provider URL.</p> </li>  </ul><br>
    ///   - [`custom_federation_provider_url(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::custom_federation_provider_url) / [`set_custom_federation_provider_url(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_custom_federation_provider_url):<br>required: **false**<br><p>The URL of the custom OpenID Connect (OIDC) provider that provides identity to let a user federate into Amazon QuickSight with an associated Identity and Access Management(IAM) role. This parameter should only be used when <code>ExternalLoginFederationProviderType</code> parameter is set to <code>CUSTOM_OIDC</code>.</p><br>
    ///   - [`external_login_id(impl Into<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::external_login_id) / [`set_external_login_id(Option<String>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_external_login_id):<br>required: **false**<br><p>The identity ID for a user in the external login provider.</p><br>
    ///   - [`tags(Tag)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::register_user::builders::RegisterUserFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to associate with the user.</p><br>
    /// - On success, responds with [`RegisterUserOutput`](crate::operation::register_user::RegisterUserOutput) with field(s):
    ///   - [`user(Option<User>)`](crate::operation::register_user::RegisterUserOutput::user): <p>The user's user name.</p>
    ///   - [`user_invitation_url(Option<String>)`](crate::operation::register_user::RegisterUserOutput::user_invitation_url): <p>The URL the user visits to complete registration and provide a password. This is returned only for users with an identity type of <code>QUICKSIGHT</code>.</p>
    ///   - [`request_id(Option<String>)`](crate::operation::register_user::RegisterUserOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
    ///   - [`status(i32)`](crate::operation::register_user::RegisterUserOutput::status): <p>The HTTP status of the request.</p>
    /// - On failure, responds with [`SdkError<RegisterUserError>`](crate::operation::register_user::RegisterUserError)
    pub fn register_user(&self) -> crate::operation::register_user::builders::RegisterUserFluentBuilder {
        crate::operation::register_user::builders::RegisterUserFluentBuilder::new(self.handle.clone())
    }
}