aws_sdk_backupgateway/client/
create_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 [`CreateGateway`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`activation_key(impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::activation_key) / [`set_activation_key(Option<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_activation_key):<br>required: **true**<br><p>The activation key of the created gateway.</p><br>
7    ///   - [`gateway_display_name(impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::gateway_display_name) / [`set_gateway_display_name(Option<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_gateway_display_name):<br>required: **true**<br><p>The display name of the created gateway.</p><br>
8    ///   - [`gateway_type(GatewayType)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::gateway_type) / [`set_gateway_type(Option<GatewayType>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_gateway_type):<br>required: **true**<br><p>The type of created gateway.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_tags):<br>required: **false**<br><p>A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.</p><br>
10    /// - On success, responds with [`CreateGatewayOutput`](crate::operation::create_gateway::CreateGatewayOutput) with field(s):
11    ///   - [`gateway_arn(Option<String>)`](crate::operation::create_gateway::CreateGatewayOutput::gateway_arn): <p>The Amazon Resource Name (ARN) of the gateway you create.</p>
12    /// - On failure, responds with [`SdkError<CreateGatewayError>`](crate::operation::create_gateway::CreateGatewayError)
13    pub fn create_gateway(&self) -> crate::operation::create_gateway::builders::CreateGatewayFluentBuilder {
14        crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::new(self.handle.clone())
15    }
16}