aws_sdk_redshift/client/
disassociate_data_share_consumer.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DisassociateDataShareConsumer`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`data_share_arn(impl Into<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::data_share_arn) / [`set_data_share_arn(Option<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::set_data_share_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the datashare to remove association for.</p><br>
7    ///   - [`disassociate_entire_account(bool)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::disassociate_entire_account) / [`set_disassociate_entire_account(Option<bool>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::set_disassociate_entire_account):<br>required: **false**<br><p>A value that specifies whether association for the datashare is removed from the entire account.</p><br>
8    ///   - [`consumer_arn(impl Into<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::consumer_arn) / [`set_consumer_arn(Option<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::set_consumer_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the consumer namespace that association for the datashare is removed from.</p><br>
9    ///   - [`consumer_region(impl Into<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::consumer_region) / [`set_consumer_region(Option<String>)`](crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::set_consumer_region):<br>required: **false**<br><p>From a datashare consumer account, removes association of a datashare from all the existing and future namespaces in the specified Amazon Web Services Region.</p><br>
10    /// - On success, responds with [`DisassociateDataShareConsumerOutput`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput) with field(s):
11    ///   - [`data_share_arn(Option<String>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::data_share_arn): <p>The Amazon Resource Name (ARN) of the datashare that the consumer is to use.</p>
12    ///   - [`producer_arn(Option<String>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::producer_arn): <p>The Amazon Resource Name (ARN) of the producer namespace.</p>
13    ///   - [`allow_publicly_accessible_consumers(Option<bool>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::allow_publicly_accessible_consumers): <p>A value that specifies whether the datashare can be shared to a publicly accessible cluster.</p>
14    ///   - [`data_share_associations(Option<Vec::<DataShareAssociation>>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::data_share_associations): <p>A value that specifies when the datashare has an association between producer and data consumers.</p>
15    ///   - [`managed_by(Option<String>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::managed_by): <p>The identifier of a datashare to show its managing entity.</p>
16    ///   - [`data_share_type(Option<DataShareType>)`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerOutput::data_share_type): <p>The type of the datashare created by RegisterNamespace.</p>
17    /// - On failure, responds with [`SdkError<DisassociateDataShareConsumerError>`](crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError)
18    pub fn disassociate_data_share_consumer(
19        &self,
20    ) -> crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder {
21        crate::operation::disassociate_data_share_consumer::builders::DisassociateDataShareConsumerFluentBuilder::new(self.handle.clone())
22    }
23}