Table of Contents
MainframeModernization.
Client
¶A low-level client representing AWSMainframeModernization
Amazon Web Services Mainframe Modernization provides tools and resources to help you plan and implement migration and modernization from mainframes to Amazon Web Services managed runtime environments. It provides tools for analyzing existing mainframe applications, developing or updating mainframe applications using COBOL or PL/I, and implementing an automated pipeline for continuous integration and continuous delivery (CI/CD) of the applications.
import boto3
client = boto3.client('m2')
These are the available methods:
can_paginate()
cancel_batch_job_execution()
close()
create_application()
create_data_set_import_task()
create_deployment()
create_environment()
delete_application()
delete_application_from_environment()
delete_environment()
get_application()
get_application_version()
get_batch_job_execution()
get_data_set_details()
get_data_set_import_task()
get_deployment()
get_environment()
get_paginator()
get_waiter()
list_application_versions()
list_applications()
list_batch_job_definitions()
list_batch_job_executions()
list_data_set_import_history()
list_data_sets()
list_deployments()
list_engine_versions()
list_environments()
list_tags_for_resource()
start_application()
start_batch_job()
stop_application()
tag_resource()
untag_resource()
update_application()
update_environment()
can_paginate
(operation_name)¶Check if an operation can be paginated.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.True
if the operation can be paginated,
False
otherwise.cancel_batch_job_execution
(**kwargs)¶Cancels the running of a specific batch job execution.
See also: AWS API Documentation
Request Syntax
response = client.cancel_batch_job_execution(
applicationId='string',
executionId='string'
)
[REQUIRED]
The unique identifier of the application.
[REQUIRED]
The unique identifier of the batch job execution.
dict
Response Syntax
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
close
()¶Closes underlying endpoint connections.
create_application
(**kwargs)¶Creates a new application with given parameters. Requires an existing runtime environment and application definition file.
See also: AWS API Documentation
Request Syntax
response = client.create_application(
clientToken='string',
definition={
'content': 'string',
's3Location': 'string'
},
description='string',
engineType='microfocus'|'bluage',
kmsKeyId='string',
name='string',
tags={
'string': 'string'
}
)
Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. 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 application definition for this application. You can specify either inline JSON or an S3 bucket location.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: content
, s3Location
.
The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
The S3 bucket that contains the application definition.
[REQUIRED]
The type of the target platform for this application.
[REQUIRED]
The unique identifier of the application.
A list of tags to apply to the application.
dict
Response Syntax
{
'applicationArn': 'string',
'applicationId': 'string',
'applicationVersion': 123
}
Response Structure
(dict) --
applicationArn (string) --
The Amazon Resource Name (ARN) of the application.
applicationId (string) --
The unique application identifier.
applicationVersion (integer) --
The version number of the application.
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
create_data_set_import_task
(**kwargs)¶Starts a data set import task for a specific application.
See also: AWS API Documentation
Request Syntax
response = client.create_data_set_import_task(
applicationId='string',
clientToken='string',
importConfig={
'dataSets': [
{
'dataSet': {
'datasetName': 'string',
'datasetOrg': {
'gdg': {
'limit': 123,
'rollDisposition': 'string'
},
'vsam': {
'alternateKeys': [
{
'allowDuplicates': True|False,
'length': 123,
'name': 'string',
'offset': 123
},
],
'compressed': True|False,
'encoding': 'string',
'format': 'string',
'primaryKey': {
'length': 123,
'name': 'string',
'offset': 123
}
}
},
'recordLength': {
'max': 123,
'min': 123
},
'relativePath': 'string',
'storageType': 'string'
},
'externalLocation': {
's3Location': 'string'
}
},
],
's3Location': 'string'
}
)
[REQUIRED]
The unique identifier of the application for which you want to import data sets.
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a data set import. 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 data set import task configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: dataSets
, s3Location
.
The data sets.
Identifies a specific data set to import from an external location.
The data set.
The logical identifier for a specific data set (in mainframe format).
The type of dataset. The only supported value is VSAM.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: gdg
, vsam
.
The generation data group of the data set.
The maximum number of generation data sets, up to 255, in a GDG.
The disposition of the data set in the catalog.
The details of a VSAM data set.
The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
Defines an alternate key. This value is optional. A legacy data set might not have any alternate key defined but if those alternate keys definitions exist, provide them, as some applications will make use of them.
Indicates whether the alternate key values are supposed to be unique for the given data set.
A strictly positive integer value representing the length of the alternate key.
The name of the alternate key.
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
The record format of the data set.
The primary key of the data set.
A strictly positive integer value representing the length of the primary key.
A name for the Primary Key.
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
The length of a record.
The maximum record length. In case of fixed, both minimum and maximum are the same.
The minimum record length of a record.
The relative location of the data set in the database or file system.
The storage type of the data set: database or file system. For Micro Focus, database corresponds to datastore and file system corresponds to EFS/FSX. For Blu Age, there is no support of file system and database corresponds to Blusam.
The location of the data set.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: s3Location
.
The URI of the Amazon S3 bucket.
The Amazon S3 location of the data sets.
dict
Response Syntax
{
'taskId': 'string'
}
Response Structure
(dict) --
taskId (string) --
The task identifier. This operation is asynchronous. Use this identifier with the GetDataSetImportTask operation to obtain the status of this task.
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
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'
)
[REQUIRED]
The application identifier.
[REQUIRED]
The version of the application to deploy.
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.
[REQUIRED]
The identifier of the runtime environment where you want to deploy this application.
dict
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
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
delete_application
(**kwargs)¶Deletes a specific application. You cannot delete a running application.
See also: AWS API Documentation
Request Syntax
response = client.delete_application(
applicationId='string'
)
[REQUIRED]
The unique identifier of the application you want to delete.
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
delete_application_from_environment
(**kwargs)¶Deletes a specific application from the specific runtime environment where it was previously deployed. You cannot delete a runtime environment using DeleteEnvironment if any application has ever been deployed to it. This API removes the association of the application with the runtime environment so you can delete the environment smoothly.
See also: AWS API Documentation
Request Syntax
response = client.delete_application_from_environment(
applicationId='string',
environmentId='string'
)
[REQUIRED]
The unique identifier of the application you want to delete.
[REQUIRED]
The unique identifier of the runtime environment where the application was previously deployed.
dict
Response Syntax
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
delete_environment
(**kwargs)¶Deletes a specific runtime environment. The environment cannot contain deployed applications. If it does, you must delete those applications before you delete the environment.
See also: AWS API Documentation
Request Syntax
response = client.delete_environment(
environmentId='string'
)
[REQUIRED]
The unique identifier of the runtime environment you want to delete.
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
get_application
(**kwargs)¶Describes the details of a specific application.
See also: AWS API Documentation
Request Syntax
response = client.get_application(
applicationId='string'
)
[REQUIRED]
The identifier of the application.
{
'applicationArn': 'string',
'applicationId': 'string',
'creationTime': datetime(2015, 1, 1),
'deployedVersion': {
'applicationVersion': 123,
'status': 'Deploying'|'Succeeded'|'Failed',
'statusReason': 'string'
},
'description': 'string',
'engineType': 'microfocus'|'bluage',
'environmentId': 'string',
'kmsKeyId': 'string',
'lastStartTime': datetime(2015, 1, 1),
'latestVersion': {
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'status': 'Creating'|'Available'|'Failed',
'statusReason': 'string'
},
'listenerArns': [
'string',
],
'listenerPorts': [
123,
],
'loadBalancerDnsName': 'string',
'logGroups': [
{
'logGroupName': 'string',
'logType': 'string'
},
],
'name': 'string',
'status': 'Creating'|'Created'|'Available'|'Ready'|'Starting'|'Running'|'Stopping'|'Stopped'|'Failed'|'Deleting'|'Deleting From Environment',
'statusReason': 'string',
'tags': {
'string': 'string'
},
'targetGroupArns': [
'string',
]
}
Response Structure
The Amazon Resource Name (ARN) of the application.
The identifier of the application.
The timestamp when this application was created.
The version of the application that is deployed.
The version of the deployed application.
The status of the deployment.
The reason for the reported status.
The description of the application.
The type of the target platform for the application.
The identifier of the runtime environment where you want to deploy the application.
The identifier of a customer managed key.
The timestamp when you last started the application. Null until the application runs for the first time.
The latest version of the application.
The application version.
The timestamp when the application version was created.
The status of the application.
The reason for the reported status.
The Amazon Resource Name (ARN) for the network load balancer listener created in your Amazon Web Services account. Amazon Web Services Mainframe Modernization creates this listener for you the first time you deploy an application.
The port associated with the network load balancer listener created in your Amazon Web Services account.
The public DNS name of the load balancer created in your Amazon Web Services account.
The list of log summaries. Each log summary includes the log type as well as the log group identifier. These are CloudWatch logs. Amazon Web Services Mainframe Modernization pushes the application log to CloudWatch under the customer's account.
A subset of the attributes that describe a log group. In CloudWatch a log group is a group of log streams that share the same retention, monitoring, and access control settings.
The name of the log group.
The type of log.
The unique identifier of the application.
The status of the application.
The reason for the reported status.
A list of tags associated with the application.
Returns the Amazon Resource Names (ARNs) of the target groups that are attached to the network load balancer.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_application_version
(**kwargs)¶Returns details about a specific version of a specific application.
See also: AWS API Documentation
Request Syntax
response = client.get_application_version(
applicationId='string',
applicationVersion=123
)
[REQUIRED]
The unique identifier of the application.
[REQUIRED]
The specific version of the application.
dict
Response Syntax
{
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'definitionContent': 'string',
'description': 'string',
'name': 'string',
'status': 'Creating'|'Available'|'Failed',
'statusReason': 'string'
}
Response Structure
(dict) --
applicationVersion (integer) --
The specific version of the application.
creationTime (datetime) --
The timestamp when the application version was created.
definitionContent (string) --
The content of the application definition. This is a JSON object that contains the resource configuration and definitions that identify an application.
description (string) --
The application description.
name (string) --
The name of the application version.
status (string) --
The status of the application version.
statusReason (string) --
The reason for the reported status.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_batch_job_execution
(**kwargs)¶Gets the details of a specific batch job execution for a specific application.
See also: AWS API Documentation
Request Syntax
response = client.get_batch_job_execution(
applicationId='string',
executionId='string'
)
[REQUIRED]
The identifier of the application.
[REQUIRED]
The unique identifier of the batch job execution.
dict
Response Syntax
{
'applicationId': 'string',
'batchJobIdentifier': {
'fileBatchJobIdentifier': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobIdentifier': {
'scriptName': 'string'
}
},
'endTime': datetime(2015, 1, 1),
'executionId': 'string',
'jobId': 'string',
'jobName': 'string',
'jobType': 'VSE'|'JES2'|'JES3',
'jobUser': 'string',
'returnCode': 'string',
'startTime': datetime(2015, 1, 1),
'status': 'Submitting'|'Holding'|'Dispatching'|'Running'|'Cancelling'|'Cancelled'|'Succeeded'|'Failed'|'Succeeded With Warning',
'statusReason': 'string'
}
Response Structure
(dict) --
applicationId (string) --
The identifier of the application.
batchJobIdentifier (dict) --
Identifies a specific batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fileBatchJobIdentifier
, scriptBatchJobIdentifier
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fileBatchJobIdentifier (dict) --
Specifies a file associated with a specific batch job.
fileName (string) --
The file name for the batch job identifier.
folderPath (string) --
The relative path to the file name for the batch job identifier.
scriptBatchJobIdentifier (dict) --
A batch job identifier in which the batch job to run is identified by the script name.
scriptName (string) --
The name of the script containing the batch job definition.
endTime (datetime) --
The timestamp when the batch job execution ended.
executionId (string) --
The unique identifier for this batch job execution.
jobId (string) --
The unique identifier for this batch job.
jobName (string) --
The name of this batch job.
jobType (string) --
The type of job.
jobUser (string) --
The user for the job.
returnCode (string) --
startTime (datetime) --
The timestamp when the batch job execution started.
status (string) --
The status of the batch job execution.
statusReason (string) --
The reason for the reported status.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_data_set_details
(**kwargs)¶Gets the details of a specific data set.
See also: AWS API Documentation
Request Syntax
response = client.get_data_set_details(
applicationId='string',
dataSetName='string'
)
[REQUIRED]
The unique identifier of the application that this data set is associated with.
[REQUIRED]
The name of the data set.
dict
Response Syntax
{
'blocksize': 123,
'creationTime': datetime(2015, 1, 1),
'dataSetName': 'string',
'dataSetOrg': {
'gdg': {
'limit': 123,
'rollDisposition': 'string'
},
'vsam': {
'alternateKeys': [
{
'allowDuplicates': True|False,
'length': 123,
'name': 'string',
'offset': 123
},
],
'cacheAtStartup': True|False,
'compressed': True|False,
'encoding': 'string',
'primaryKey': {
'length': 123,
'name': 'string',
'offset': 123
},
'recordFormat': 'string'
}
},
'lastReferencedTime': datetime(2015, 1, 1),
'lastUpdatedTime': datetime(2015, 1, 1),
'location': 'string',
'recordLength': 123
}
Response Structure
(dict) --
blocksize (integer) --
The size of the block on disk.
creationTime (datetime) --
The timestamp when the data set was created.
dataSetName (string) --
The name of the data set.
dataSetOrg (dict) --
The type of data set. The only supported value is VSAM.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: gdg
, vsam
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
gdg (dict) --
The generation data group of the data set.
limit (integer) --
The maximum number of generation data sets, up to 255, in a GDG.
rollDisposition (string) --
The disposition of the data set in the catalog.
vsam (dict) --
The details of a VSAM data set.
alternateKeys (list) --
The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
(dict) --
Defines an alternate key. This value is optional. A legacy data set might not have any alternate key defined but if those alternate keys definitions exist, provide them, as some applications will make use of them.
allowDuplicates (boolean) --
Indicates whether the alternate key values are supposed to be unique for the given data set.
length (integer) --
A strictly positive integer value representing the length of the alternate key.
name (string) --
The name of the alternate key.
offset (integer) --
A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.
cacheAtStartup (boolean) --
If set to True, enforces loading the data set into cache before it’s used by the application.
compressed (boolean) --
Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
encoding (string) --
The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
primaryKey (dict) --
The primary key of the data set.
length (integer) --
A strictly positive integer value representing the length of the primary key.
name (string) --
A name for the Primary Key.
offset (integer) --
A positive integer value representing the offset to mark the start of the primary key in the record byte array.
recordFormat (string) --
The record format of the data set.
lastReferencedTime (datetime) --
The last time the data set was referenced.
lastUpdatedTime (datetime) --
The last time the data set was updated.
location (string) --
The location where the data set is stored.
recordLength (integer) --
The length of records in the data set.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_data_set_import_task
(**kwargs)¶Gets the status of a data set import task initiated with the CreateDataSetImportTask operation.
See also: AWS API Documentation
Request Syntax
response = client.get_data_set_import_task(
applicationId='string',
taskId='string'
)
[REQUIRED]
The application identifier.
[REQUIRED]
The task identifier returned by the CreateDataSetImportTask operation.
dict
Response Syntax
{
'status': 'Creating'|'Running'|'Completed',
'summary': {
'failed': 123,
'inProgress': 123,
'pending': 123,
'succeeded': 123,
'total': 123
},
'taskId': 'string'
}
Response Structure
(dict) --
status (string) --
The status of the task.
summary (dict) --
A summary of the status of the task.
failed (integer) --
The number of data set imports that have failed.
inProgress (integer) --
The number of data set imports that are in progress.
pending (integer) --
The number of data set imports that are pending.
succeeded (integer) --
The number of data set imports that have succeeded.
total (integer) --
The total number of data set imports.
taskId (string) --
The task identifier.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_deployment
(**kwargs)¶Gets details of a specific deployment with a given deployment identifier.
See also: AWS API Documentation
Request Syntax
response = client.get_deployment(
applicationId='string',
deploymentId='string'
)
[REQUIRED]
The unique identifier of the application.
[REQUIRED]
The unique identifier for the deployment.
dict
Response Syntax
{
'applicationId': 'string',
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'deploymentId': 'string',
'environmentId': 'string',
'status': 'Deploying'|'Succeeded'|'Failed',
'statusReason': 'string'
}
Response Structure
(dict) --
applicationId (string) --
The unique identifier of the application.
applicationVersion (integer) --
The application version.
creationTime (datetime) --
The timestamp when the deployment was created.
deploymentId (string) --
The unique identifier of the deployment.
environmentId (string) --
The unique identifier of the runtime environment.
status (string) --
The status of the deployment.
statusReason (string) --
The reason for the reported status.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_environment
(**kwargs)¶Describes a specific runtime environment.
See also: AWS API Documentation
Request Syntax
response = client.get_environment(
environmentId='string'
)
[REQUIRED]
The unique identifier of the runtime environment.
{
'actualCapacity': 123,
'creationTime': datetime(2015, 1, 1),
'description': 'string',
'engineType': 'microfocus'|'bluage',
'engineVersion': 'string',
'environmentArn': 'string',
'environmentId': 'string',
'highAvailabilityConfig': {
'desiredCapacity': 123
},
'instanceType': 'string',
'kmsKeyId': 'string',
'loadBalancerArn': 'string',
'name': 'string',
'pendingMaintenance': {
'engineVersion': 'string',
'schedule': {
'endTime': datetime(2015, 1, 1),
'startTime': datetime(2015, 1, 1)
}
},
'preferredMaintenanceWindow': 'string',
'publiclyAccessible': True|False,
'securityGroupIds': [
'string',
],
'status': 'Creating'|'Available'|'Deleting'|'Failed'|'Updating',
'statusReason': 'string',
'storageConfigurations': [
{
'efs': {
'fileSystemId': 'string',
'mountPoint': 'string'
},
'fsx': {
'fileSystemId': 'string',
'mountPoint': 'string'
}
},
],
'subnetIds': [
'string',
],
'tags': {
'string': 'string'
},
'vpcId': 'string'
}
Response Structure
The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two instances.
The timestamp when the runtime environment was created.
The description of the runtime environment.
The target platform for the runtime environment.
The version of the runtime engine.
The Amazon Resource Name (ARN) of the runtime environment.
The unique identifier of the runtime environment.
The desired capacity of the high availability configuration for the runtime environment.
The number of instances in a high availability configuration.
The type of instance underlying the runtime environment.
The identifier of a customer managed key.
The Amazon Resource Name (ARN) for the load balancer used with the runtime environment.
The name of the runtime environment. Must be unique within the account.
Indicates the pending maintenance scheduled on this environment.
The specific runtime engine that the maintenance schedule applies to.
The maintenance schedule for the runtime engine version.
The time the scheduled maintenance is to end.
The time the scheduled maintenance is to start.
Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
Whether applications running in this runtime environment are publicly accessible.
The unique identifiers of the security groups assigned to this runtime environment.
The status of the runtime environment.
The reason for the reported status.
The storage configurations defined for the 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 will be set: efs
, fsx
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
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 unique identifiers of the subnets assigned to this runtime environment.
The tags defined for this runtime environment.
The unique identifier for the VPC used with this runtime environment.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
get_paginator
(operation_name)¶Create a paginator for an operation.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.client.can_paginate
method to
check if an operation is pageable.get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_application_versions
(**kwargs)¶Returns a list of the application versions for a specific application.
See also: AWS API Documentation
Request Syntax
response = client.list_application_versions(
applicationId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The unique identifier of the application.
dict
Response Syntax
{
'applicationVersions': [
{
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'status': 'Creating'|'Available'|'Failed',
'statusReason': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
applicationVersions (list) --
The list of application versions.
(dict) --
Defines an application version summary.
applicationVersion (integer) --
The application version.
creationTime (datetime) --
The timestamp when the application version was created.
status (string) --
The status of the application.
statusReason (string) --
The reason for the reported status.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_applications
(**kwargs)¶Lists the applications associated with a specific Amazon Web Services account. You can provide the unique identifier of a specific runtime environment in a query parameter to see all applications associated with that environment.
See also: AWS API Documentation
Request Syntax
response = client.list_applications(
environmentId='string',
maxResults=123,
names=[
'string',
],
nextToken='string'
)
The names of the applications.
dict
Response Syntax
{
'applications': [
{
'applicationArn': 'string',
'applicationId': 'string',
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'deploymentStatus': 'Deploying'|'Deployed',
'description': 'string',
'engineType': 'microfocus'|'bluage',
'environmentId': 'string',
'lastStartTime': datetime(2015, 1, 1),
'name': 'string',
'status': 'Creating'|'Created'|'Available'|'Ready'|'Starting'|'Running'|'Stopping'|'Stopped'|'Failed'|'Deleting'|'Deleting From Environment',
'versionStatus': 'Creating'|'Available'|'Failed'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
applications (list) --
Returns a list of summary details for all the applications in a runtime environment.
(dict) --
A subset of the possible application attributes. Used in the application list.
applicationArn (string) --
The Amazon Resource Name (ARN) of the application.
applicationId (string) --
The unique identifier of the application.
applicationVersion (integer) --
The version of the application.
creationTime (datetime) --
The timestamp when the application was created.
deploymentStatus (string) --
Indicates either an ongoing deployment or if the application has ever deployed successfully.
description (string) --
The description of the application.
engineType (string) --
The type of the target platform for this application.
environmentId (string) --
The unique identifier of the runtime environment that hosts this application.
lastStartTime (datetime) --
The timestamp when you last started the application. Null until the application runs for the first time.
name (string) --
The name of the application.
status (string) --
The status of the application.
versionStatus (string) --
Indicates the status of the latest version of the application.
nextToken (string) --
A pagination token that's returned when the response doesn't contain all applications.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
list_batch_job_definitions
(**kwargs)¶Lists all the available batch job definitions based on the batch job resources uploaded during the application creation. You can use the batch job definitions in the list to start a batch job.
See also: AWS API Documentation
Request Syntax
response = client.list_batch_job_definitions(
applicationId='string',
maxResults=123,
nextToken='string',
prefix='string'
)
[REQUIRED]
The identifier of the application.
dict
Response Syntax
{
'batchJobDefinitions': [
{
'fileBatchJobDefinition': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobDefinition': {
'scriptName': 'string'
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
batchJobDefinitions (list) --
The list of batch job definitions.
(dict) --
Defines the details of a batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fileBatchJobDefinition
, scriptBatchJobDefinition
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fileBatchJobDefinition (dict) --
Specifies a file containing a batch job definition.
fileName (string) --
The name of the file containing the batch job definition.
folderPath (string) --
The path to the file containing the batch job definition.
scriptBatchJobDefinition (dict) --
A script containing a batch job definition.
scriptName (string) --
The name of the script containing the batch job definition.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_batch_job_executions
(**kwargs)¶Lists historical, current, and scheduled batch job executions for a specific application.
See also: AWS API Documentation
Request Syntax
response = client.list_batch_job_executions(
applicationId='string',
executionIds=[
'string',
],
jobName='string',
maxResults=123,
nextToken='string',
startedAfter=datetime(2015, 1, 1),
startedBefore=datetime(2015, 1, 1),
status='Submitting'|'Holding'|'Dispatching'|'Running'|'Cancelling'|'Cancelled'|'Succeeded'|'Failed'|'Succeeded With Warning'
)
[REQUIRED]
The unique identifier of the application.
The unique identifier of each batch job execution.
dict
Response Syntax
{
'batchJobExecutions': [
{
'applicationId': 'string',
'batchJobIdentifier': {
'fileBatchJobIdentifier': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobIdentifier': {
'scriptName': 'string'
}
},
'endTime': datetime(2015, 1, 1),
'executionId': 'string',
'jobId': 'string',
'jobName': 'string',
'jobType': 'VSE'|'JES2'|'JES3',
'returnCode': 'string',
'startTime': datetime(2015, 1, 1),
'status': 'Submitting'|'Holding'|'Dispatching'|'Running'|'Cancelling'|'Cancelled'|'Succeeded'|'Failed'|'Succeeded With Warning'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
batchJobExecutions (list) --
Returns a list of batch job executions for an application.
(dict) --
A subset of the possible batch job attributes. Used in the batch job list.
applicationId (string) --
The unique identifier of the application that hosts this batch job.
batchJobIdentifier (dict) --
Identifies a specific batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fileBatchJobIdentifier
, scriptBatchJobIdentifier
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fileBatchJobIdentifier (dict) --
Specifies a file associated with a specific batch job.
fileName (string) --
The file name for the batch job identifier.
folderPath (string) --
The relative path to the file name for the batch job identifier.
scriptBatchJobIdentifier (dict) --
A batch job identifier in which the batch job to run is identified by the script name.
scriptName (string) --
The name of the script containing the batch job definition.
endTime (datetime) --
The timestamp when this batch job execution ended.
executionId (string) --
The unique identifier of this execution of the batch job.
jobId (string) --
The unique identifier of a particular batch job.
jobName (string) --
The name of a particular batch job.
jobType (string) --
The type of a particular batch job execution.
returnCode (string) --
startTime (datetime) --
The timestamp when a particular batch job execution started.
status (string) --
The status of a particular batch job execution.
nextToken (string) --
A pagination token that's returned when the response doesn't contain all batch job executions.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_data_set_import_history
(**kwargs)¶Lists the data set imports for the specified application.
See also: AWS API Documentation
Request Syntax
response = client.list_data_set_import_history(
applicationId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The unique identifier of the application.
dict
Response Syntax
{
'dataSetImportTasks': [
{
'status': 'Creating'|'Running'|'Completed',
'summary': {
'failed': 123,
'inProgress': 123,
'pending': 123,
'succeeded': 123,
'total': 123
},
'taskId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
dataSetImportTasks (list) --
The data set import tasks.
(dict) --
Contains information about a data set import task.
status (string) --
The status of the data set import task.
summary (dict) --
A summary of the data set import task.
failed (integer) --
The number of data set imports that have failed.
inProgress (integer) --
The number of data set imports that are in progress.
pending (integer) --
The number of data set imports that are pending.
succeeded (integer) --
The number of data set imports that have succeeded.
total (integer) --
The total number of data set imports.
taskId (string) --
The identifier of the data set import task.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_data_sets
(**kwargs)¶Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on runtime environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.
See also: AWS API Documentation
Request Syntax
response = client.list_data_sets(
applicationId='string',
maxResults=123,
nextToken='string',
prefix='string'
)
[REQUIRED]
The unique identifier of the application for which you want to list the associated data sets.
dict
Response Syntax
{
'dataSets': [
{
'creationTime': datetime(2015, 1, 1),
'dataSetName': 'string',
'dataSetOrg': 'string',
'format': 'string',
'lastReferencedTime': datetime(2015, 1, 1),
'lastUpdatedTime': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
dataSets (list) --
The list of data sets, containing information including the creation time, the data set name, the data set organization, the data set format, and the last time the data set was referenced or updated.
(dict) --
A subset of the possible data set attributes.
creationTime (datetime) --
The timestamp when the data set was created.
dataSetName (string) --
The name of the data set.
dataSetOrg (string) --
The type of data set. The only supported value is VSAM.
format (string) --
The format of the data set.
lastReferencedTime (datetime) --
The last time the data set was referenced.
lastUpdatedTime (datetime) --
The last time the data set was updated.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_deployments
(**kwargs)¶Returns a list of all deployments of a specific application. A deployment is a combination of a specific application and a specific version of that application. Each deployment is mapped to a particular application version.
See also: AWS API Documentation
Request Syntax
response = client.list_deployments(
applicationId='string',
maxResults=123,
nextToken='string'
)
[REQUIRED]
The application identifier.
dict
Response Syntax
{
'deployments': [
{
'applicationId': 'string',
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'deploymentId': 'string',
'environmentId': 'string',
'status': 'Deploying'|'Succeeded'|'Failed',
'statusReason': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
deployments (list) --
The list of deployments that is returned.
(dict) --
A subset of information about a specific deployment.
applicationId (string) --
The unique identifier of the application.
applicationVersion (integer) --
The version of the application.
creationTime (datetime) --
The timestamp when the deployment was created.
deploymentId (string) --
The unique identifier of the deployment.
environmentId (string) --
The unique identifier of the runtime environment.
status (string) --
The current status of the deployment.
statusReason (string) --
The reason for the reported status.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
list_engine_versions
(**kwargs)¶Lists the available engine versions.
See also: AWS API Documentation
Request Syntax
response = client.list_engine_versions(
engineType='microfocus'|'bluage',
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'engineVersions': [
{
'engineType': 'string',
'engineVersion': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
engineVersions (list) --
Returns the engine versions.
(dict) --
A subset of information about the engine version for a specific application.
engineType (string) --
The type of target platform for the application.
engineVersion (string) --
The version of the engine type used by the application.
nextToken (string) --
If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
list_environments
(**kwargs)¶Lists the runtime environments.
See also: AWS API Documentation
Request Syntax
response = client.list_environments(
engineType='microfocus'|'bluage',
maxResults=123,
names=[
'string',
],
nextToken='string'
)
The names of the runtime environments. Must be unique within the account.
dict
Response Syntax
{
'environments': [
{
'creationTime': datetime(2015, 1, 1),
'engineType': 'microfocus'|'bluage',
'engineVersion': 'string',
'environmentArn': 'string',
'environmentId': 'string',
'instanceType': 'string',
'name': 'string',
'status': 'Creating'|'Available'|'Deleting'|'Failed'|'Updating'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
environments (list) --
Returns a list of summary details for all the runtime environments in your account.
(dict) --
Contains a subset of the possible runtime environment attributes. Used in the environment list.
creationTime (datetime) --
The timestamp when the runtime environment was created.
engineType (string) --
The target platform for the runtime environment.
engineVersion (string) --
The version of the runtime engine.
environmentArn (string) --
The Amazon Resource Name (ARN) of a particular runtime environment.
environmentId (string) --
The unique identifier of a particular runtime environment.
instanceType (string) --
The instance type of the runtime environment.
name (string) --
The name of the runtime environment.
status (string) --
The status of the runtime environment
nextToken (string) --
A pagination token that's returned when the response doesn't contain all the runtime environments.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
Lists the tags for the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
{
'tags': {
'string': 'string'
}
}
Response Structure
The tags for the resource.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
start_application
(**kwargs)¶Starts an application that is currently stopped.
See also: AWS API Documentation
Request Syntax
response = client.start_application(
applicationId='string'
)
[REQUIRED]
The unique identifier of the application you want to start.
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
start_batch_job
(**kwargs)¶Starts a batch job and returns the unique identifier of this execution of the batch job. The associated application must be running in order to start the batch job.
See also: AWS API Documentation
Request Syntax
response = client.start_batch_job(
applicationId='string',
batchJobIdentifier={
'fileBatchJobIdentifier': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobIdentifier': {
'scriptName': 'string'
}
},
jobParams={
'string': 'string'
}
)
[REQUIRED]
The unique identifier of the application associated with this batch job.
[REQUIRED]
The unique identifier of the batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: fileBatchJobIdentifier
, scriptBatchJobIdentifier
.
Specifies a file associated with a specific batch job.
The file name for the batch job identifier.
The relative path to the file name for the batch job identifier.
A batch job identifier in which the batch job to run is identified by the script name.
The name of the script containing the batch job definition.
The collection of batch job parameters. For details about limits for keys and values, see Coding variables in JCL.
Parameter key: the first character must be alphabetic. Can be of up to 8 alphanumeric characters.
Parameter value can be of up to 44 alphanumeric characters.
dict
Response Syntax
{
'executionId': 'string'
}
Response Structure
(dict) --
executionId (string) --
The unique identifier of this execution of the batch job.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
stop_application
(**kwargs)¶Stops a running application.
See also: AWS API Documentation
Request Syntax
response = client.stop_application(
applicationId='string',
forceStop=True|False
)
[REQUIRED]
The unique identifier of the application you want to stop.
dict
Response Syntax
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
tag_resource
(**kwargs)¶Adds one or more tags to the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
[REQUIRED]
The tags to add to the resource.
dict
Response Syntax
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ServiceQuotaExceededException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
untag_resource
(**kwargs)¶Removes one or more tags from the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
[REQUIRED]
The keys of the tags to remove.
dict
Response Syntax
{}
Response Structure
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
update_application
(**kwargs)¶Updates an application and creates a new version.
See also: AWS API Documentation
Request Syntax
response = client.update_application(
applicationId='string',
currentApplicationVersion=123,
definition={
'content': 'string',
's3Location': 'string'
},
description='string'
)
[REQUIRED]
The unique identifier of the application you want to update.
[REQUIRED]
The current version of the application to update.
The application definition for this application. You can specify either inline JSON or an S3 bucket location.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: content
, s3Location
.
The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
The S3 bucket that contains the application definition.
dict
Response Syntax
{
'applicationVersion': 123
}
Response Structure
(dict) --
applicationVersion (integer) --
The new version of the application.
Exceptions
MainframeModernization.Client.exceptions.ValidationException
MainframeModernization.Client.exceptions.ConflictException
MainframeModernization.Client.exceptions.InternalServerException
MainframeModernization.Client.exceptions.AccessDeniedException
MainframeModernization.Client.exceptions.ThrottlingException
MainframeModernization.Client.exceptions.ResourceNotFoundException
update_environment
(**kwargs)¶Updates the configuration details for a specific runtime environment.
See also: AWS API Documentation
Request Syntax
response = client.update_environment(
applyDuringMaintenanceWindow=True|False,
desiredCapacity=123,
engineVersion='string',
environmentId='string',
instanceType='string',
preferredMaintenanceWindow='string'
)
engineVersion
parameter only if applyDuringMaintenanceWindow
is true. If any parameter other than engineVersion
is provided in UpdateEnvironmentRequest
, it will fail if applyDuringMaintenanceWindow
is set to true.[REQUIRED]
The unique identifier of the runtime environment that you want to update.
dict
Response Syntax
{
'environmentId': 'string'
}
Response Structure
(dict) --
environmentId (string) --
The unique identifier of the runtime environment that was updated.
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
The available paginators are:
MainframeModernization.Paginator.ListApplicationVersions
MainframeModernization.Paginator.ListApplications
MainframeModernization.Paginator.ListBatchJobDefinitions
MainframeModernization.Paginator.ListBatchJobExecutions
MainframeModernization.Paginator.ListDataSetImportHistory
MainframeModernization.Paginator.ListDataSets
MainframeModernization.Paginator.ListDeployments
MainframeModernization.Paginator.ListEngineVersions
MainframeModernization.Paginator.ListEnvironments
MainframeModernization.Paginator.
ListApplicationVersions
¶paginator = client.get_paginator('list_application_versions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_application_versions()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier of the application.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'applicationVersions': [
{
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'status': 'Creating'|'Available'|'Failed',
'statusReason': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
applicationVersions (list) --
The list of application versions.
(dict) --
Defines an application version summary.
applicationVersion (integer) --
The application version.
creationTime (datetime) --
The timestamp when the application version was created.
status (string) --
The status of the application.
statusReason (string) --
The reason for the reported status.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListApplications
¶paginator = client.get_paginator('list_applications')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_applications()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
environmentId='string',
names=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
The names of the applications.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'applications': [
{
'applicationArn': 'string',
'applicationId': 'string',
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'deploymentStatus': 'Deploying'|'Deployed',
'description': 'string',
'engineType': 'microfocus'|'bluage',
'environmentId': 'string',
'lastStartTime': datetime(2015, 1, 1),
'name': 'string',
'status': 'Creating'|'Created'|'Available'|'Ready'|'Starting'|'Running'|'Stopping'|'Stopped'|'Failed'|'Deleting'|'Deleting From Environment',
'versionStatus': 'Creating'|'Available'|'Failed'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
applications (list) --
Returns a list of summary details for all the applications in a runtime environment.
(dict) --
A subset of the possible application attributes. Used in the application list.
applicationArn (string) --
The Amazon Resource Name (ARN) of the application.
applicationId (string) --
The unique identifier of the application.
applicationVersion (integer) --
The version of the application.
creationTime (datetime) --
The timestamp when the application was created.
deploymentStatus (string) --
Indicates either an ongoing deployment or if the application has ever deployed successfully.
description (string) --
The description of the application.
engineType (string) --
The type of the target platform for this application.
environmentId (string) --
The unique identifier of the runtime environment that hosts this application.
lastStartTime (datetime) --
The timestamp when you last started the application. Null until the application runs for the first time.
name (string) --
The name of the application.
status (string) --
The status of the application.
versionStatus (string) --
Indicates the status of the latest version of the application.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListBatchJobDefinitions
¶paginator = client.get_paginator('list_batch_job_definitions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_batch_job_definitions()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
prefix='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The identifier of the application.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'batchJobDefinitions': [
{
'fileBatchJobDefinition': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobDefinition': {
'scriptName': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
batchJobDefinitions (list) --
The list of batch job definitions.
(dict) --
Defines the details of a batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fileBatchJobDefinition
, scriptBatchJobDefinition
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fileBatchJobDefinition (dict) --
Specifies a file containing a batch job definition.
fileName (string) --
The name of the file containing the batch job definition.
folderPath (string) --
The path to the file containing the batch job definition.
scriptBatchJobDefinition (dict) --
A script containing a batch job definition.
scriptName (string) --
The name of the script containing the batch job definition.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListBatchJobExecutions
¶paginator = client.get_paginator('list_batch_job_executions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_batch_job_executions()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
executionIds=[
'string',
],
jobName='string',
startedAfter=datetime(2015, 1, 1),
startedBefore=datetime(2015, 1, 1),
status='Submitting'|'Holding'|'Dispatching'|'Running'|'Cancelling'|'Cancelled'|'Succeeded'|'Failed'|'Succeeded With Warning',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier of the application.
The unique identifier of each batch job execution.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'batchJobExecutions': [
{
'applicationId': 'string',
'batchJobIdentifier': {
'fileBatchJobIdentifier': {
'fileName': 'string',
'folderPath': 'string'
},
'scriptBatchJobIdentifier': {
'scriptName': 'string'
}
},
'endTime': datetime(2015, 1, 1),
'executionId': 'string',
'jobId': 'string',
'jobName': 'string',
'jobType': 'VSE'|'JES2'|'JES3',
'returnCode': 'string',
'startTime': datetime(2015, 1, 1),
'status': 'Submitting'|'Holding'|'Dispatching'|'Running'|'Cancelling'|'Cancelled'|'Succeeded'|'Failed'|'Succeeded With Warning'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
batchJobExecutions (list) --
Returns a list of batch job executions for an application.
(dict) --
A subset of the possible batch job attributes. Used in the batch job list.
applicationId (string) --
The unique identifier of the application that hosts this batch job.
batchJobIdentifier (dict) --
Identifies a specific batch job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: fileBatchJobIdentifier
, scriptBatchJobIdentifier
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fileBatchJobIdentifier (dict) --
Specifies a file associated with a specific batch job.
fileName (string) --
The file name for the batch job identifier.
folderPath (string) --
The relative path to the file name for the batch job identifier.
scriptBatchJobIdentifier (dict) --
A batch job identifier in which the batch job to run is identified by the script name.
scriptName (string) --
The name of the script containing the batch job definition.
endTime (datetime) --
The timestamp when this batch job execution ended.
executionId (string) --
The unique identifier of this execution of the batch job.
jobId (string) --
The unique identifier of a particular batch job.
jobName (string) --
The name of a particular batch job.
jobType (string) --
The type of a particular batch job execution.
returnCode (string) --
startTime (datetime) --
The timestamp when a particular batch job execution started.
status (string) --
The status of a particular batch job execution.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListDataSetImportHistory
¶paginator = client.get_paginator('list_data_set_import_history')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_data_set_import_history()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier of the application.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'dataSetImportTasks': [
{
'status': 'Creating'|'Running'|'Completed',
'summary': {
'failed': 123,
'inProgress': 123,
'pending': 123,
'succeeded': 123,
'total': 123
},
'taskId': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
dataSetImportTasks (list) --
The data set import tasks.
(dict) --
Contains information about a data set import task.
status (string) --
The status of the data set import task.
summary (dict) --
A summary of the data set import task.
failed (integer) --
The number of data set imports that have failed.
inProgress (integer) --
The number of data set imports that are in progress.
pending (integer) --
The number of data set imports that are pending.
succeeded (integer) --
The number of data set imports that have succeeded.
total (integer) --
The total number of data set imports.
taskId (string) --
The identifier of the data set import task.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListDataSets
¶paginator = client.get_paginator('list_data_sets')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_data_sets()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
prefix='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier of the application for which you want to list the associated data sets.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'dataSets': [
{
'creationTime': datetime(2015, 1, 1),
'dataSetName': 'string',
'dataSetOrg': 'string',
'format': 'string',
'lastReferencedTime': datetime(2015, 1, 1),
'lastUpdatedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
dataSets (list) --
The list of data sets, containing information including the creation time, the data set name, the data set organization, the data set format, and the last time the data set was referenced or updated.
(dict) --
A subset of the possible data set attributes.
creationTime (datetime) --
The timestamp when the data set was created.
dataSetName (string) --
The name of the data set.
dataSetOrg (string) --
The type of data set. The only supported value is VSAM.
format (string) --
The format of the data set.
lastReferencedTime (datetime) --
The last time the data set was referenced.
lastUpdatedTime (datetime) --
The last time the data set was updated.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListDeployments
¶paginator = client.get_paginator('list_deployments')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_deployments()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The application identifier.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'deployments': [
{
'applicationId': 'string',
'applicationVersion': 123,
'creationTime': datetime(2015, 1, 1),
'deploymentId': 'string',
'environmentId': 'string',
'status': 'Deploying'|'Succeeded'|'Failed',
'statusReason': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
deployments (list) --
The list of deployments that is returned.
(dict) --
A subset of information about a specific deployment.
applicationId (string) --
The unique identifier of the application.
applicationVersion (integer) --
The version of the application.
creationTime (datetime) --
The timestamp when the deployment was created.
deploymentId (string) --
The unique identifier of the deployment.
environmentId (string) --
The unique identifier of the runtime environment.
status (string) --
The current status of the deployment.
statusReason (string) --
The reason for the reported status.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListEngineVersions
¶paginator = client.get_paginator('list_engine_versions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_engine_versions()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
engineType='microfocus'|'bluage',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'engineVersions': [
{
'engineType': 'string',
'engineVersion': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
engineVersions (list) --
Returns the engine versions.
(dict) --
A subset of information about the engine version for a specific application.
engineType (string) --
The type of target platform for the application.
engineVersion (string) --
The version of the engine type used by the application.
NextToken (string) --
A token to resume pagination.
MainframeModernization.Paginator.
ListEnvironments
¶paginator = client.get_paginator('list_environments')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MainframeModernization.Client.list_environments()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
engineType='microfocus'|'bluage',
names=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
The names of the runtime environments. Must be unique within the account.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'environments': [
{
'creationTime': datetime(2015, 1, 1),
'engineType': 'microfocus'|'bluage',
'engineVersion': 'string',
'environmentArn': 'string',
'environmentId': 'string',
'instanceType': 'string',
'name': 'string',
'status': 'Creating'|'Available'|'Deleting'|'Failed'|'Updating'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
environments (list) --
Returns a list of summary details for all the runtime environments in your account.
(dict) --
Contains a subset of the possible runtime environment attributes. Used in the environment list.
creationTime (datetime) --
The timestamp when the runtime environment was created.
engineType (string) --
The target platform for the runtime environment.
engineVersion (string) --
The version of the runtime engine.
environmentArn (string) --
The Amazon Resource Name (ARN) of a particular runtime environment.
environmentId (string) --
The unique identifier of a particular runtime environment.
instanceType (string) --
The instance type of the runtime environment.
name (string) --
The name of the runtime environment.
status (string) --
The status of the runtime environment
NextToken (string) --
A token to resume pagination.