create_deployment
¶
create_deployment(
environment_id: Identifier,
application_id: Identifier,
application_version: Version,
*,
config_overrides: Optional[m2ClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateDeploymentResponse
Creates and starts a deployment to deploy an application into a runtime environment.
Parameters:
-
environment_id(Identifier) –The identifier of the runtime environment where you want to deploy this application.
-
application_id(Identifier) –The application identifier.
-
application_version(Version) –The version of the application to deploy.
-
client_token(Optional[ClientToken], default:None) –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.
Raises:
-
AccessDeniedException–The account or role doesn't have the right permissions to make the request.
-
ConflictException–The parameters provided in the request conflict with existing resources.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit.
-
ThrottlingException–The number of requests made exceeds the limit.
-
ValidationException–One or more parameters provided in the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_m2/_services/m2.py
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 | |