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

A builder for CreateDataSourceInput.

Implementations§

The Amazon Web Services account ID.

Examples found in repository?
src/client.rs (line 3295)
3294
3295
3296
3297
        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.

Examples found in repository?
src/client.rs (line 3303)
3299
3300
3301
3302
3303
3304
3305
        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
        }

An ID for the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 3308)
3307
3308
3309
3310
        pub fn data_source_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.data_source_id(input.into());
            self
        }

An ID for the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

Examples found in repository?
src/client.rs (line 3316)
3312
3313
3314
3315
3316
3317
3318
        pub fn set_data_source_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_data_source_id(input);
            self
        }

A display name for the data source.

Examples found in repository?
src/client.rs (line 3321)
3320
3321
3322
3323
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

A display name for the data source.

Examples found in repository?
src/client.rs (line 3326)
3325
3326
3327
3328
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

The type of the data source. To return a list of all data sources, use ListDataSources.

Use AMAZON_ELASTICSEARCH for Amazon OpenSearch Service.

Examples found in repository?
src/client.rs (line 3332)
3331
3332
3333
3334
        pub fn r#type(mut self, input: crate::model::DataSourceType) -> Self {
            self.inner = self.inner.r#type(input);
            self
        }

The type of the data source. To return a list of all data sources, use ListDataSources.

Use AMAZON_ELASTICSEARCH for Amazon OpenSearch Service.

Examples found in repository?
src/client.rs (line 3341)
3337
3338
3339
3340
3341
3342
3343
        pub fn set_type(
            mut self,
            input: std::option::Option<crate::model::DataSourceType>,
        ) -> Self {
            self.inner = self.inner.set_type(input);
            self
        }

The parameters that Amazon QuickSight uses to connect to your underlying source.

Examples found in repository?
src/client.rs (line 3346)
3345
3346
3347
3348
        pub fn data_source_parameters(mut self, input: crate::model::DataSourceParameters) -> Self {
            self.inner = self.inner.data_source_parameters(input);
            self
        }

The parameters that Amazon QuickSight uses to connect to your underlying source.

Examples found in repository?
src/client.rs (line 3354)
3350
3351
3352
3353
3354
3355
3356
        pub fn set_data_source_parameters(
            mut self,
            input: std::option::Option<crate::model::DataSourceParameters>,
        ) -> Self {
            self.inner = self.inner.set_data_source_parameters(input);
            self
        }

The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.

Examples found in repository?
src/client.rs (line 3359)
3358
3359
3360
3361
        pub fn credentials(mut self, input: crate::model::DataSourceCredentials) -> Self {
            self.inner = self.inner.credentials(input);
            self
        }

The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.

Examples found in repository?
src/client.rs (line 3367)
3363
3364
3365
3366
3367
3368
3369
        pub fn set_credentials(
            mut self,
            input: std::option::Option<crate::model::DataSourceCredentials>,
        ) -> Self {
            self.inner = self.inner.set_credentials(input);
            self
        }

Appends an item to permissions.

To override the contents of this collection use set_permissions.

A list of resource permissions on the data source.

Examples found in repository?
src/client.rs (line 3376)
3375
3376
3377
3378
        pub fn permissions(mut self, input: crate::model::ResourcePermission) -> Self {
            self.inner = self.inner.permissions(input);
            self
        }

A list of resource permissions on the data source.

Examples found in repository?
src/client.rs (line 3384)
3380
3381
3382
3383
3384
3385
3386
        pub fn set_permissions(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ResourcePermission>>,
        ) -> Self {
            self.inner = self.inner.set_permissions(input);
            self
        }

Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

Examples found in repository?
src/client.rs (line 3392)
3388
3389
3390
3391
3392
3393
3394
        pub fn vpc_connection_properties(
            mut self,
            input: crate::model::VpcConnectionProperties,
        ) -> Self {
            self.inner = self.inner.vpc_connection_properties(input);
            self
        }

Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

Examples found in repository?
src/client.rs (line 3400)
3396
3397
3398
3399
3400
3401
3402
        pub fn set_vpc_connection_properties(
            mut self,
            input: std::option::Option<crate::model::VpcConnectionProperties>,
        ) -> Self {
            self.inner = self.inner.set_vpc_connection_properties(input);
            self
        }

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.

Examples found in repository?
src/client.rs (line 3405)
3404
3405
3406
3407
        pub fn ssl_properties(mut self, input: crate::model::SslProperties) -> Self {
            self.inner = self.inner.ssl_properties(input);
            self
        }

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.

Examples found in repository?
src/client.rs (line 3413)
3409
3410
3411
3412
3413
3414
3415
        pub fn set_ssl_properties(
            mut self,
            input: std::option::Option<crate::model::SslProperties>,
        ) -> Self {
            self.inner = self.inner.set_ssl_properties(input);
            self
        }

Appends an item to tags.

To override the contents of this collection use set_tags.

Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.

Examples found in repository?
src/client.rs (line 3422)
3421
3422
3423
3424
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            self
        }

Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.

Examples found in repository?
src/client.rs (line 3430)
3426
3427
3428
3429
3430
3431
3432
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

Consumes the builder and constructs a CreateDataSourceInput.

Examples found in repository?
src/client.rs (line 3262)
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateDataSource,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateDataSourceError>,
        > {
            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::CreateDataSourceOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateDataSourceError>,
        > {
            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