create_application
async
¶
create_application(
name: ApplicationName,
environment_identifier: EnvironmentId,
vpc_id: VpcId,
proxy_type: ProxyType,
*,
config_overrides: Optional[AsyncMigrationHubRefactorSpacesClientConfig] = None,
api_gateway_proxy: Optional[ApiGatewayProxyInput] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
) -> CreateApplicationResponse
Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account.
In environments created with a CreateEnvironment:NetworkFabricType of NONE you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.
Parameters:
-
name(ApplicationName) –The name to use for the application.
-
environment_identifier(EnvironmentId) –The unique identifier of the environment.
-
vpc_id(VpcId) –The ID of the virtual private cloud (VPC).
-
proxy_type(ProxyType) –The proxy type of the proxy created within the application.
-
api_gateway_proxy(Optional[ApiGatewayProxyInput], default:None) –A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
-
tags(Optional[TagMap], default:None) –The tags to assign to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–Request was denied because the request was throttled.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_migration_hub_refactor_spaces/_services/async_migration_hub_refactor_spaces.py
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | |