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 IAM or Amazon Web Services account.

  • computePlatform (string) -- The destination platform type for the deployment ( Lambda , Server , or ECS ).
  • 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 CreateApplication operation.

    • applicationId (string) --

      A unique application ID.

Exceptions

  • CodeDeploy.Client.exceptions.ApplicationNameRequiredException
  • CodeDeploy.Client.exceptions.InvalidApplicationNameException
  • CodeDeploy.Client.exceptions.ApplicationAlreadyExistsException
  • CodeDeploy.Client.exceptions.ApplicationLimitExceededException
  • CodeDeploy.Client.exceptions.InvalidComputePlatformException
  • CodeDeploy.Client.exceptions.InvalidTagsToAddException