aws_sdk_storagegateway/client/
disable_gateway.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 [`DisableGateway`](crate::operation::disable_gateway::builders::DisableGatewayFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::disable_gateway::builders::DisableGatewayFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::disable_gateway::builders::DisableGatewayFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
7    /// - On success, responds with [`DisableGatewayOutput`](crate::operation::disable_gateway::DisableGatewayOutput) with field(s):
8    ///   - [`gateway_arn(Option<String>)`](crate::operation::disable_gateway::DisableGatewayOutput::gateway_arn): <p>The unique Amazon Resource Name (ARN) of the disabled gateway.</p>
9    /// - On failure, responds with [`SdkError<DisableGatewayError>`](crate::operation::disable_gateway::DisableGatewayError)
10    pub fn disable_gateway(&self) -> crate::operation::disable_gateway::builders::DisableGatewayFluentBuilder {
11        crate::operation::disable_gateway::builders::DisableGatewayFluentBuilder::new(self.handle.clone())
12    }
13}