aws_sdk_iotwireless/client/create_device_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 [`CreateDeviceProfile`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::set_name):<br>required: **false**<br><p>The name of the new resource.</p><note> <p>The following special characters aren't accepted: <code><>^#~$</code></p> </note><br>
7 /// - [`lo_ra_wan(LoRaWanDeviceProfile)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::lo_ra_wan) / [`set_lo_ra_wan(Option<LoRaWanDeviceProfile>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::set_lo_ra_wan):<br>required: **false**<br><p>The device profile information to use to create the device profile.</p><br>
8 /// - [`tags(Tag)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to attach to the new device profile. Tags are metadata that you can use to manage a resource.</p><br>
9 /// - [`client_request_token(impl Into<String>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::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 /// - [`sidewalk(SidewalkCreateDeviceProfile)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::sidewalk) / [`set_sidewalk(Option<SidewalkCreateDeviceProfile>)`](crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::set_sidewalk):<br>required: **false**<br><p>The Sidewalk-related information for creating the Sidewalk device profile.</p><br>
11 /// - On success, responds with [`CreateDeviceProfileOutput`](crate::operation::create_device_profile::CreateDeviceProfileOutput) with field(s):
12 /// - [`arn(Option<String>)`](crate::operation::create_device_profile::CreateDeviceProfileOutput::arn): <p>The Amazon Resource Name of the new resource.</p>
13 /// - [`id(Option<String>)`](crate::operation::create_device_profile::CreateDeviceProfileOutput::id): <p>The ID of the new device profile.</p>
14 /// - On failure, responds with [`SdkError<CreateDeviceProfileError>`](crate::operation::create_device_profile::CreateDeviceProfileError)
15 pub fn create_device_profile(&self) -> crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder {
16 crate::operation::create_device_profile::builders::CreateDeviceProfileFluentBuilder::new(self.handle.clone())
17 }
18}