create_environment
¶
create_environment(
name: EntityName,
instance_type: String20,
engine_type: EngineType,
*,
config_overrides: Optional[m2ClientConfig] = None,
description: Optional[EntityDescription] = None,
engine_version: Optional[EngineVersion] = None,
subnet_ids: Optional[String50List] = None,
security_group_ids: Optional[String50List] = None,
storage_configurations: Optional[StorageConfigurationList] = None,
publicly_accessible: Optional[Boolean] = None,
high_availability_config: Optional[HighAvailabilityConfig] = None,
tags: Optional[TagMap] = None,
preferred_maintenance_window: Optional[String50] = None,
network_type: Optional[NetworkType] = None,
client_token: Optional[ClientToken] = None,
kms_key_id: Optional[str] = None,
) -> CreateEnvironmentResponse
Creates a runtime environment for a given runtime engine.
Parameters:
-
name(EntityName) –The name of the runtime environment. Must be unique within the account.
-
instance_type(String20) –The type of instance for the runtime environment.
-
description(Optional[EntityDescription], default:None) –The description of the runtime environment.
-
engine_type(EngineType) –The engine type for the runtime environment.
-
engine_version(Optional[EngineVersion], default:None) –The version of the engine type for the runtime environment.
-
subnet_ids(Optional[String50List], default:None) –The list of subnets associated with the VPC for this runtime environment.
-
security_group_ids(Optional[String50List], default:None) –The list of security groups for the VPC associated with this runtime environment.
-
storage_configurations(Optional[StorageConfigurationList], default:None) –Optional. The storage configurations for this runtime environment.
-
publicly_accessible(Optional[Boolean], default:None) –Specifies whether the runtime environment is publicly accessible.
-
high_availability_config(Optional[HighAvailabilityConfig], default:None) –The details of a high availability configuration for this runtime environment.
-
tags(Optional[TagMap], default:None) –The tags for the runtime environment.
-
preferred_maintenance_window(Optional[String50], default:None) –Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format
ddd:hh24:mi-ddd:hh24:miand must be less than 24 hours. The following two examples are valid maintenance windows:sun:23:45-mon:00:15orsat:01:00-sat:03:00.If you do not provide a value, a random system-generated value will be assigned.
-
network_type(Optional[NetworkType], default:None) –The network type required for the runtime environment.
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. 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.
-
kms_key_id(Optional[str], default:None) –The identifier of a customer managed key.
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.
-
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
2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 | |