aws_sdk_iotwireless/client/
create_service_profile.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 [`CreateServiceProfile`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::set_name):<br>required: **false**<br><p>The name of the new resource.</p><note>  <p>The following special characters aren't accepted: <code>&lt;&gt;^#~$</code></p> </note><br>
7    ///   - [`lo_ra_wan(LoRaWanServiceProfile)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::lo_ra_wan) / [`set_lo_ra_wan(Option<LoRaWanServiceProfile>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::set_lo_ra_wan):<br>required: **false**<br><p>The service profile information to use to create the service profile.</p><br>
8    ///   - [`tags(Tag)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to attach to the new service profile. Tags are metadata that you can use to manage a resource.</p><br>
9    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::set_client_request_token):<br>required: **false**<br><p>Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency in Amazon EC2 API requests</a>.</p><br>
10    /// - On success, responds with [`CreateServiceProfileOutput`](crate::operation::create_service_profile::CreateServiceProfileOutput) with field(s):
11    ///   - [`arn(Option<String>)`](crate::operation::create_service_profile::CreateServiceProfileOutput::arn): <p>The Amazon Resource Name of the new resource.</p>
12    ///   - [`id(Option<String>)`](crate::operation::create_service_profile::CreateServiceProfileOutput::id): <p>The ID of the new service profile.</p>
13    /// - On failure, responds with [`SdkError<CreateServiceProfileError>`](crate::operation::create_service_profile::CreateServiceProfileError)
14    pub fn create_service_profile(&self) -> crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder {
15        crate::operation::create_service_profile::builders::CreateServiceProfileFluentBuilder::new(self.handle.clone())
16    }
17}