1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateGateway`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`gateway_name(impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::gateway_name) / [`set_gateway_name(Option<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_gateway_name):<br>required: **true**<br><p>A unique, friendly name for the gateway.</p><br>
    ///   - [`gateway_platform(GatewayPlatform)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::gateway_platform) / [`set_gateway_platform(Option<GatewayPlatform>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_gateway_platform):<br>required: **true**<br><p>The gateway's platform. You can only specify one platform in a gateway.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pairs that contain metadata for the gateway. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html">Tagging your IoT SiteWise resources</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    /// - On success, responds with [`CreateGatewayOutput`](crate::operation::create_gateway::CreateGatewayOutput) with field(s):
    ///   - [`gateway_id(String)`](crate::operation::create_gateway::CreateGatewayOutput::gateway_id): <p>The ID of the gateway device. You can use this ID when you call other IoT SiteWise API operations.</p>
    ///   - [`gateway_arn(String)`](crate::operation::create_gateway::CreateGatewayOutput::gateway_arn): <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the gateway, which has the following format.</p> <p><code>arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}</code></p>
    /// - On failure, responds with [`SdkError<CreateGatewayError>`](crate::operation::create_gateway::CreateGatewayError)
    pub fn create_gateway(&self) -> crate::operation::create_gateway::builders::CreateGatewayFluentBuilder {
        crate::operation::create_gateway::builders::CreateGatewayFluentBuilder::new(self.handle.clone())
    }
}