create_application
async
¶
create_application(
application_name: ApplicationName,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
compute_platform: Optional[ComputePlatform] = None,
tags: Optional[TagList] = None,
) -> CreateApplicationOutput
Creates an application.
Parameters:
-
application_name(ApplicationName) –The name of the application. This name must be unique with the applicable user or Amazon Web Services account.
-
compute_platform(Optional[ComputePlatform], default:None) –The destination platform type for the deployment (
Lambda,Server, orECS). -
tags(Optional[TagList], default:None) –The metadata that you apply to CodeDeploy applications to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define.
Raises:
-
ApplicationAlreadyExistsException–An application with the specified name with the user or Amazon Web Services account already exists.
-
ApplicationLimitExceededException–More applications were attempted to be created than are allowed.
-
ApplicationNameRequiredException–The minimum number of required application names was not specified.
-
InvalidApplicationNameException–The application name was specified in an invalid format.
-
InvalidComputePlatformException–The computePlatform is invalid. The computePlatform should be
Lambda,Server, orECS. -
InvalidTagsToAddException–The specified tags are not valid.
-
ThrottlingException–An API function was called too frequently.
-
UnknownServiceError–The service returned an error code this client does not model.