create_deployment

MainframeModernization.Client.create_deployment(**kwargs)

Creates and starts a deployment to deploy an application into a runtime environment.

See also: AWS API Documentation

Request Syntax

response = client.create_deployment(
    applicationId='string',
    applicationVersion=123,
    clientToken='string',
    environmentId='string'
)
Parameters
  • applicationId (string) --

    [REQUIRED]

    The application identifier.

  • applicationVersion (integer) --

    [REQUIRED]

    The version of the application to deploy.

  • clientToken (string) --

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. 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.

  • environmentId (string) --

    [REQUIRED]

    The identifier of the runtime environment where you want to deploy this application.

Return type

dict

Returns

Response Syntax

{
    'deploymentId': 'string'
}

Response Structure

  • (dict) --

    • deploymentId (string) --

      The unique identifier of the deployment.

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
  • MainframeModernization.Client.exceptions.ResourceNotFoundException