pub struct Builder { /* private fields */ }
Expand description

Implementations§

The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from ENTERPRISE or ENTERPRISE_AND_Q.

If you choose ENTERPRISE_AND_Q, the following parameters are required:

  • FirstName

  • LastName

  • EmailAddress

  • ContactNumber

Examples found in repository?
src/client.rs (line 2356)
2355
2356
2357
2358
        pub fn edition(mut self, input: crate::model::Edition) -> Self {
            self.inner = self.inner.edition(input);
            self
        }

The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from ENTERPRISE or ENTERPRISE_AND_Q.

If you choose ENTERPRISE_AND_Q, the following parameters are required:

  • FirstName

  • LastName

  • EmailAddress

  • ContactNumber

Examples found in repository?
src/client.rs (line 2368)
2367
2368
2369
2370
        pub fn set_edition(mut self, input: std::option::Option<crate::model::Edition>) -> Self {
            self.inner = self.inner.set_edition(input);
            self
        }

The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for this parameter are IAM_AND_QUICKSIGHT, IAM_ONLY, and ACTIVE_DIRECTORY.

If you choose ACTIVE_DIRECTORY, provide an ActiveDirectoryName and an AdminGroup associated with your Active Directory.

Examples found in repository?
src/client.rs (line 2377)
2373
2374
2375
2376
2377
2378
2379
        pub fn authentication_method(
            mut self,
            input: crate::model::AuthenticationMethodOption,
        ) -> Self {
            self.inner = self.inner.authentication_method(input);
            self
        }

The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for this parameter are IAM_AND_QUICKSIGHT, IAM_ONLY, and ACTIVE_DIRECTORY.

If you choose ACTIVE_DIRECTORY, provide an ActiveDirectoryName and an AdminGroup associated with your Active Directory.

Examples found in repository?
src/client.rs (line 2386)
2382
2383
2384
2385
2386
2387
2388
        pub fn set_authentication_method(
            mut self,
            input: std::option::Option<crate::model::AuthenticationMethodOption>,
        ) -> Self {
            self.inner = self.inner.set_authentication_method(input);
            self
        }

The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2391)
2390
2391
2392
2393
        pub fn aws_account_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.aws_account_id(input.into());
            self
        }

The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2399)
2395
2396
2397
2398
2399
2400
2401
        pub fn set_aws_account_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_aws_account_id(input);
            self
        }

The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change AccountName value after the Amazon QuickSight account is created.

Examples found in repository?
src/client.rs (line 2404)
2403
2404
2405
2406
        pub fn account_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.account_name(input.into());
            self
        }

The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change AccountName value after the Amazon QuickSight account is created.

Examples found in repository?
src/client.rs (line 2409)
2408
2409
2410
2411
        pub fn set_account_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_account_name(input);
            self
        }

The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight account or Amazon QuickSight subscription.

Examples found in repository?
src/client.rs (line 2414)
2413
2414
2415
2416
        pub fn notification_email(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.notification_email(input.into());
            self
        }

The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight account or Amazon QuickSight subscription.

Examples found in repository?
src/client.rs (line 2422)
2418
2419
2420
2421
2422
2423
2424
        pub fn set_notification_email(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_notification_email(input);
            self
        }

The name of your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2427)
2426
2427
2428
2429
        pub fn active_directory_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.active_directory_name(input.into());
            self
        }

The name of your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2435)
2431
2432
2433
2434
2435
2436
2437
        pub fn set_active_directory_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_active_directory_name(input);
            self
        }

The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2440)
2439
2440
2441
2442
        pub fn realm(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.realm(input.into());
            self
        }

The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2445)
2444
2445
2446
2447
        pub fn set_realm(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_realm(input);
            self
        }

The ID of the Active Directory that is associated with your Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2450)
2449
2450
2451
2452
        pub fn directory_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.directory_id(input.into());
            self
        }

The ID of the Active Directory that is associated with your Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2455)
2454
2455
2456
2457
        pub fn set_directory_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_directory_id(input);
            self
        }

Appends an item to admin_group.

To override the contents of this collection use set_admin_group.

The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2464)
2463
2464
2465
2466
        pub fn admin_group(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.admin_group(input.into());
            self
        }

The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2472)
2468
2469
2470
2471
2472
2473
2474
        pub fn set_admin_group(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_admin_group(input);
            self
        }

Appends an item to author_group.

To override the contents of this collection use set_author_group.

The author group associated with your Active Directory. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2481)
2480
2481
2482
2483
        pub fn author_group(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.author_group(input.into());
            self
        }

The author group associated with your Active Directory. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2489)
2485
2486
2487
2488
2489
2490
2491
        pub fn set_author_group(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_author_group(input);
            self
        }

Appends an item to reader_group.

To override the contents of this collection use set_reader_group.

The reader group associated with your Active Direcrtory. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2498)
2497
2498
2499
2500
        pub fn reader_group(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.reader_group(input.into());
            self
        }

The reader group associated with your Active Direcrtory. For more information about using Active Directory in Amazon QuickSight, see Using Active Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.

Examples found in repository?
src/client.rs (line 2506)
2502
2503
2504
2505
2506
2507
2508
        pub fn set_reader_group(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_reader_group(input);
            self
        }

The first name of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2511)
2510
2511
2512
2513
        pub fn first_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.first_name(input.into());
            self
        }

The first name of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2516)
2515
2516
2517
2518
        pub fn set_first_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_first_name(input);
            self
        }

The last name of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2521)
2520
2521
2522
2523
        pub fn last_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.last_name(input.into());
            self
        }

The last name of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2526)
2525
2526
2527
2528
        pub fn set_last_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_last_name(input);
            self
        }

The email address of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2531)
2530
2531
2532
2533
        pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.email_address(input.into());
            self
        }

The email address of the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2539)
2535
2536
2537
2538
2539
2540
2541
        pub fn set_email_address(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_email_address(input);
            self
        }

A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2544)
2543
2544
2545
2546
        pub fn contact_number(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.contact_number(input.into());
            self
        }

A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This field is required if ENTERPPRISE_AND_Q is the selected edition of the new Amazon QuickSight account.

Examples found in repository?
src/client.rs (line 2552)
2548
2549
2550
2551
2552
2553
2554
        pub fn set_contact_number(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_contact_number(input);
            self
        }

Consumes the builder and constructs a CreateAccountSubscriptionInput.

Examples found in repository?
src/client.rs (line 2316)
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateAccountSubscription,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateAccountSubscriptionError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// 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](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateAccountSubscriptionOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateAccountSubscriptionError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more