MainframeModernization.Client.
create_application
(**kwargs)¶Creates a new application with given parameters. Requires an existing runtime environment and application definition file.
See also: AWS API Documentation
Request Syntax
response = client.create_application(
clientToken='string',
definition={
'content': 'string',
's3Location': 'string'
},
description='string',
engineType='microfocus'|'bluage',
kmsKeyId='string',
name='string',
tags={
'string': 'string'
}
)
Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
This field is autopopulated if not provided.
[REQUIRED]
The application definition for this application. You can specify either inline JSON or an S3 bucket location.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: content
, s3Location
.
The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
The S3 bucket that contains the application definition.
[REQUIRED]
The type of the target platform for this application.
[REQUIRED]
The unique identifier of the application.
A list of tags to apply to the application.
dict
Response Syntax
{
'applicationArn': 'string',
'applicationId': 'string',
'applicationVersion': 123
}
Response Structure
(dict) --
applicationArn (string) --
The Amazon Resource Name (ARN) of the application.
applicationId (string) --
The unique application identifier.
applicationVersion (integer) --
The version number of the application.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ServiceQuotaExceededException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException