MainframeModernization.Client.
create_environment
(**kwargs)¶Creates a runtime environment for a given runtime engine.
See also: AWS API Documentation
Request Syntax
response = client.create_environment(
clientToken='string',
description='string',
engineType='microfocus'|'bluage',
engineVersion='string',
highAvailabilityConfig={
'desiredCapacity': 123
},
instanceType='string',
kmsKeyId='string',
name='string',
preferredMaintenanceWindow='string',
publiclyAccessible=True|False,
securityGroupIds=[
'string',
],
storageConfigurations=[
{
'efs': {
'fileSystemId': 'string',
'mountPoint': 'string'
},
'fsx': {
'fileSystemId': 'string',
'mountPoint': 'string'
}
},
],
subnetIds=[
'string',
],
tags={
'string': 'string'
}
)
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.
This field is autopopulated if not provided.
[REQUIRED]
The engine type for the runtime environment.
The details of a high availability configuration for this runtime environment.
The number of instances in a high availability configuration.
[REQUIRED]
The type of instance for the runtime environment.
[REQUIRED]
The name of the runtime environment. Must be unique within the account.
The list of security groups for the VPC associated with this runtime environment.
Optional. The storage configurations for this runtime environment.
Defines the storage configuration for a runtime environment.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: efs
, fsx
.
Defines the storage configuration for an Amazon EFS file system.
The file system identifier.
The mount point for the file system.
Defines the storage configuration for an Amazon FSx file system.
The file system identifier.
The mount point for the file system.
The list of subnets associated with the VPC for this runtime environment.
The tags for the runtime environment.
dict
Response Syntax
{
'environmentId': 'string'
}
Response Structure
(dict) --
environmentId (string) --
The unique identifier of the runtime environment.
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