create_app
async
¶
create_app(
name: AppName,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
description: Optional[AppDescription] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
cost_tracking: Optional[CostTrackingConfiguration] = None,
) -> CreateAppResponse
Creates an app. AWS App Monetization assigns a unique app identifier. This operation is idempotent: a repeated request with the same clientToken returns the app created by the original request.
Parameters:
-
name(AppName) –A human-readable display name for the app.
-
description(Optional[AppDescription], default:None) –A longer description of what the app does.
-
client_token(Optional[ClientToken], default:None) –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.
-
tags(Optional[TagMap], default:None) –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.
-
cost_tracking(Optional[CostTrackingConfiguration], default:None) –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.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
ConflictException–The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
-
IdempotencyConflictException–The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.