1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ActivateGateway`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`activation_key(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::activation_key) / [`set_activation_key(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_activation_key):<br>required: **true**<br><p>Your gateway activation key. You can obtain the activation key by sending an HTTP GET request with redirects enabled to the gateway IP address (port 80). The redirect URL returned in the response provides you the activation key for your gateway in the query string parameter <code>activationKey</code>. It may also include other activation-related parameters, however, these are merely defaults -- the arguments you pass to the <code>ActivateGateway</code> API call determine the actual configuration of your gateway.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/storagegateway/latest/userguide/get-activation-key.html">Getting activation key</a> in the <i>Storage Gateway User Guide</i>.</p><br>
    ///   - [`gateway_name(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::gateway_name) / [`set_gateway_name(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_gateway_name):<br>required: **true**<br><p>The name you configured for your gateway.</p><br>
    ///   - [`gateway_timezone(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::gateway_timezone) / [`set_gateway_timezone(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_gateway_timezone):<br>required: **true**<br><p>A value that indicates the time zone you want to set for the gateway. The time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.</p><br>
    ///   - [`gateway_region(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::gateway_region) / [`set_gateway_region(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_gateway_region):<br>required: **true**<br><p>A value that indicates the Amazon Web Services Region where you want to store your data. The gateway Amazon Web Services Region specified must be the same Amazon Web Services Region as the Amazon Web Services Region in your <code>Host</code> header in the request. For more information about available Amazon Web Services Regions and endpoints for Storage Gateway, see <a href="https://docs.aws.amazon.com/general/latest/gr/sg.html"> Storage Gateway endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>.</p> <p>Valid Values: See <a href="https://docs.aws.amazon.com/general/latest/gr/sg.html"> Storage Gateway endpoints and quotas</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
    ///   - [`gateway_type(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::gateway_type) / [`set_gateway_type(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_gateway_type):<br>required: **false**<br><p>A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is <code>CACHED</code>.</p> <p>Valid Values: <code>STORED</code> | <code>CACHED</code> | <code>VTL</code> | <code>FILE_S3</code> | <code>FILE_FSX_SMB</code></p><br>
    ///   - [`tape_drive_type(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::tape_drive_type) / [`set_tape_drive_type(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_tape_drive_type):<br>required: **false**<br><p>The value that indicates the type of tape drive to use for tape gateway. This field is optional.</p> <p>Valid Values: <code>IBM-ULT3580-TD5</code></p><br>
    ///   - [`medium_changer_type(impl Into<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::medium_changer_type) / [`set_medium_changer_type(Option<String>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_medium_changer_type):<br>required: **false**<br><p>The value that indicates the type of medium changer to use for tape gateway. This field is optional.</p> <p>Valid Values: <code>STK-L700</code> | <code>AWS-Gateway-VTL</code> | <code>IBM-03584L32-0402</code></p><br>
    ///   - [`tags(Tag)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::set_tags):<br>required: **false**<br><p>A list of up to 50 tags that you can assign to the gateway. Each tag is a key-value pair.</p><note>  <p>Valid characters for key and value are letters, spaces, and numbers that can be represented in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256 characters.</p> </note><br>
    /// - On success, responds with [`ActivateGatewayOutput`](crate::operation::activate_gateway::ActivateGatewayOutput) with field(s):
    ///   - [`gateway_arn(Option<String>)`](crate::operation::activate_gateway::ActivateGatewayOutput::gateway_arn): <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>
    /// - On failure, responds with [`SdkError<ActivateGatewayError>`](crate::operation::activate_gateway::ActivateGatewayError)
    pub fn activate_gateway(&self) -> crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder {
        crate::operation::activate_gateway::builders::ActivateGatewayFluentBuilder::new(self.handle.clone())
    }
}