aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateApp`](crate::operation::create_app::builders::CreateAppFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`CreateAppOutput`](crate::operation::create_app::CreateAppOutput) with field(s):
    ///   - [`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.
    /// - On failure, responds with [`SdkError<CreateAppError>`](crate::operation::create_app::CreateAppError)
    pub fn create_app(&self) -> crate::operation::create_app::builders::CreateAppFluentBuilder {
        crate::operation::create_app::builders::CreateAppFluentBuilder::new(self.handle.clone())
    }
}