aws_sdk_appmonetization/client/create_app.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 [`CreateApp`](crate::operation::create_app::builders::CreateAppFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::set_name):<br>required: **true**<br>A human-readable display name for the app.<br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::set_description):<br>required: **false**<br>A longer description of what the app does.<br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::set_client_token):<br>required: **false**<br>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.<br>
9 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::set_tags):<br>required: **false**<br>Optional tags to add to the app when it is created. To add tags when you create the app, you must also have permission for appmonetization:TagResource.<br>
10 /// - [`cost_tracking(CostTrackingConfiguration)`](crate::operation::create_app::builders::CreateAppFluentBuilder::cost_tracking) / [`set_cost_tracking(Option<CostTrackingConfiguration>)`](crate::operation::create_app::builders::CreateAppFluentBuilder::set_cost_tracking):<br>required: **false**<br>Optional cost-tracking configuration: the IAM role AWS App Monetization uses to track this app's AWS costs. To pass a role, you must have permission for iam:PassRole on it.<br>
11 /// - On success, responds with [`CreateAppOutput`](crate::operation::create_app::CreateAppOutput) with field(s):
12 /// - [`app(Option<App>)`](crate::operation::create_app::CreateAppOutput::app): The created app, carrying its service-assigned appId and initial status. On an idempotent replay with the same clientToken, this is the app the original call created.
13 /// - On failure, responds with [`SdkError<CreateAppError>`](crate::operation::create_app::CreateAppError)
14 pub fn create_app(&self) -> crate::operation::create_app::builders::CreateAppFluentBuilder {
15 crate::operation::create_app::builders::CreateAppFluentBuilder::new(self.handle.clone())
16 }
17}