pub struct ActivateGateway { /* private fields */ }
Expand description
Fluent builder constructing a request to ActivateGateway
.
Activates the gateway you previously deployed on your host. In the activation process, you specify information such as the Amazon Web Services Region that you want to use for storing snapshots or tapes, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account. For more information, see UpdateGatewayInformation
.
You must turn on the gateway VM before you can activate your gateway.
Implementations
sourceimpl ActivateGateway
impl ActivateGateway
sourcepub async fn send(
self
) -> Result<ActivateGatewayOutput, SdkError<ActivateGatewayError>>
pub async fn send(
self
) -> Result<ActivateGatewayOutput, SdkError<ActivateGatewayError>>
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, which can be set when configuring the client.
sourcepub fn activation_key(self, input: impl Into<String>) -> Self
pub fn activation_key(self, input: impl Into<String>) -> Self
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 activationKey
. It may also include other activation-related parameters, however, these are merely defaults -- the arguments you pass to the ActivateGateway
API call determine the actual configuration of your gateway.
For more information, see Getting activation key in the Storage Gateway User Guide.
sourcepub fn set_activation_key(self, input: Option<String>) -> Self
pub fn set_activation_key(self, input: Option<String>) -> Self
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 activationKey
. It may also include other activation-related parameters, however, these are merely defaults -- the arguments you pass to the ActivateGateway
API call determine the actual configuration of your gateway.
For more information, see Getting activation key in the Storage Gateway User Guide.
sourcepub fn gateway_name(self, input: impl Into<String>) -> Self
pub fn gateway_name(self, input: impl Into<String>) -> Self
The name you configured for your gateway.
sourcepub fn set_gateway_name(self, input: Option<String>) -> Self
pub fn set_gateway_name(self, input: Option<String>) -> Self
The name you configured for your gateway.
sourcepub fn gateway_timezone(self, input: impl Into<String>) -> Self
pub fn gateway_timezone(self, input: impl Into<String>) -> Self
A value that indicates the time zone you want to set for the gateway. The time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, 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.
sourcepub fn set_gateway_timezone(self, input: Option<String>) -> Self
pub fn set_gateway_timezone(self, input: Option<String>) -> Self
A value that indicates the time zone you want to set for the gateway. The time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, 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.
sourcepub fn gateway_region(self, input: impl Into<String>) -> Self
pub fn gateway_region(self, input: impl Into<String>) -> Self
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 Host
header in the request. For more information about available Amazon Web Services Regions and endpoints for Storage Gateway, see Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.
Valid Values: See Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.
sourcepub fn set_gateway_region(self, input: Option<String>) -> Self
pub fn set_gateway_region(self, input: Option<String>) -> Self
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 Host
header in the request. For more information about available Amazon Web Services Regions and endpoints for Storage Gateway, see Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.
Valid Values: See Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.
sourcepub fn gateway_type(self, input: impl Into<String>) -> Self
pub fn gateway_type(self, input: impl Into<String>) -> Self
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 CACHED
.
Valid Values: STORED
| CACHED
| VTL
| VTL_SNOW
| FILE_S3
| FILE_FSX_SMB
sourcepub fn set_gateway_type(self, input: Option<String>) -> Self
pub fn set_gateway_type(self, input: Option<String>) -> Self
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 CACHED
.
Valid Values: STORED
| CACHED
| VTL
| VTL_SNOW
| FILE_S3
| FILE_FSX_SMB
sourcepub fn tape_drive_type(self, input: impl Into<String>) -> Self
pub fn tape_drive_type(self, input: impl Into<String>) -> Self
The value that indicates the type of tape drive to use for tape gateway. This field is optional.
Valid Values: IBM-ULT3580-TD5
sourcepub fn set_tape_drive_type(self, input: Option<String>) -> Self
pub fn set_tape_drive_type(self, input: Option<String>) -> Self
The value that indicates the type of tape drive to use for tape gateway. This field is optional.
Valid Values: IBM-ULT3580-TD5
sourcepub fn medium_changer_type(self, input: impl Into<String>) -> Self
pub fn medium_changer_type(self, input: impl Into<String>) -> Self
The value that indicates the type of medium changer to use for tape gateway. This field is optional.
Valid Values: STK-L700
| AWS-Gateway-VTL
| IBM-03584L32-0402
sourcepub fn set_medium_changer_type(self, input: Option<String>) -> Self
pub fn set_medium_changer_type(self, input: Option<String>) -> Self
The value that indicates the type of medium changer to use for tape gateway. This field is optional.
Valid Values: STK-L700
| AWS-Gateway-VTL
| IBM-03584L32-0402
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of up to 50 tags that you can assign to the gateway. Each tag is a key-value pair.
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.
A list of up to 50 tags that you can assign to the gateway. Each tag is a key-value pair.
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.
Trait Implementations
sourceimpl Clone for ActivateGateway
impl Clone for ActivateGateway
sourcefn clone(&self) -> ActivateGateway
fn clone(&self) -> ActivateGateway
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ActivateGateway
impl Send for ActivateGateway
impl Sync for ActivateGateway
impl Unpin for ActivateGateway
impl !UnwindSafe for ActivateGateway
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more