CodeDeploy / Client / create_application
create_application#
- CodeDeploy.Client.create_application(**kwargs)#
Creates an application.
See also: AWS API Documentation
Request Syntax
response = client.create_application( applicationName='string', computePlatform='Server'|'Lambda'|'ECS', tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
applicationName (string) –
[REQUIRED]
The name of the application. This name must be unique with the applicable user or Amazon Web Services account.
computePlatform (string) – The destination platform type for the deployment (
Lambda,Server, orECS).tags (list) –
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.
(dict) –
Information about a tag.
Key (string) –
The tag’s key.
Value (string) –
The tag’s value.
- Return type:
dict
- Returns:
Response Syntax
{ 'applicationId': 'string' }
Response Structure
(dict) –
Represents the output of a
CreateApplicationoperation.applicationId (string) –
A unique application ID.
Exceptions
CodeDeploy.Client.exceptions.ApplicationNameRequiredExceptionCodeDeploy.Client.exceptions.InvalidApplicationNameExceptionCodeDeploy.Client.exceptions.ApplicationAlreadyExistsExceptionCodeDeploy.Client.exceptions.ApplicationLimitExceededExceptionCodeDeploy.Client.exceptions.InvalidComputePlatformExceptionCodeDeploy.Client.exceptions.InvalidTagsToAddException