1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RevokeEndpointAccess`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_identifier(impl Into<String>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::set_cluster_identifier): <p>The cluster to revoke access from.</p>
    ///   - [`account(impl Into<String>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::account) / [`set_account(Option<String>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::set_account): <p>The Amazon Web Services account ID whose access is to be revoked.</p>
    ///   - [`vpc_ids(impl Into<String>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::vpc_ids) / [`set_vpc_ids(Option<Vec<String>>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::set_vpc_ids): <p>The virtual private cloud (VPC) identifiers for which access is to be revoked.</p>
    ///   - [`force(bool)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::set_force): <p>Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.</p>
    /// - On success, responds with [`RevokeEndpointAccessOutput`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput) with field(s):
    ///   - [`grantor(Option<String>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::grantor): <p>The Amazon Web Services account ID of the cluster owner.</p>
    ///   - [`grantee(Option<String>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::grantee): <p>The Amazon Web Services account ID of the grantee of the cluster.</p>
    ///   - [`cluster_identifier(Option<String>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::cluster_identifier): <p>The cluster identifier.</p>
    ///   - [`authorize_time(Option<DateTime>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::authorize_time): <p>The time (UTC) when the authorization was created.</p>
    ///   - [`cluster_status(Option<String>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::cluster_status): <p>The status of the cluster.</p>
    ///   - [`status(Option<AuthorizationStatus>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::status): <p>The status of the authorization action.</p>
    ///   - [`allowed_all_vp_cs(bool)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::allowed_all_vp_cs): <p>Indicates whether all VPCs in the grantee account are allowed access to the cluster.</p>
    ///   - [`allowed_vp_cs(Option<Vec<String>>)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::allowed_vp_cs): <p>The VPCs allowed access to the cluster.</p>
    ///   - [`endpoint_count(i32)`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput::endpoint_count): <p>The number of Redshift-managed VPC endpoints created for the authorization.</p>
    /// - On failure, responds with [`SdkError<RevokeEndpointAccessError>`](crate::operation::revoke_endpoint_access::RevokeEndpointAccessError)
    pub fn revoke_endpoint_access(&self) -> crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder {
        crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessFluentBuilder::new(self.handle.clone())
    }
}