MigrationHubOrchestrator.Client.
create_workflow_step
(**kwargs)¶Create a step in the migration workflow.
See also: AWS API Documentation
Request Syntax
response = client.create_workflow_step(
name='string',
stepGroupId='string',
workflowId='string',
stepActionType='MANUAL'|'AUTOMATED',
description='string',
workflowStepAutomationConfiguration={
'scriptLocationS3Bucket': 'string',
'scriptLocationS3Key': {
'linux': 'string',
'windows': 'string'
},
'command': {
'linux': 'string',
'windows': 'string'
},
'runEnvironment': 'AWS'|'ONPREMISE',
'targetType': 'SINGLE'|'ALL'|'NONE'
},
stepTarget=[
'string',
],
outputs=[
{
'name': 'string',
'dataType': 'STRING'|'INTEGER'|'STRINGLIST'|'STRINGMAP',
'required': True|False,
'value': {
'integerValue': 123,
'stringValue': 'string',
'listOfStringValue': [
'string',
]
}
},
],
previous=[
'string',
],
next=[
'string',
]
)
[REQUIRED]
The name of the step.
[REQUIRED]
The ID of the step group.
[REQUIRED]
The ID of the migration workflow.
[REQUIRED]
The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
The custom script to run tests on source or target environments.
The Amazon S3 bucket where the script is located.
The Amazon S3 key for the script location.
The script location for Linux.
The script location for Windows.
The command required to run the script.
Command for Linux.
Command for Windows.
The source or target environment.
The servers on which to run the script.
The servers on which a step will be run.
The key value pairs added for the expected output.
The output of a step.
The name of the step.
The data type of the output.
Determine if an output is required from a step.
The value of the output.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: integerValue
, stringValue
, listOfStringValue
.
The integer value.
The string value.
The list of string value.
The previous step.
The next step.
dict
Response Syntax
{
'id': 'string',
'stepGroupId': 'string',
'workflowId': 'string',
'name': 'string'
}
Response Structure
(dict) --
id (string) --
The ID of the step.
stepGroupId (string) --
The ID of the step group.
workflowId (string) --
The ID of the migration workflow.
name (string) --
The name of the step.
Exceptions
MigrationHubOrchestrator.Client.exceptions.ThrottlingException
MigrationHubOrchestrator.Client.exceptions.AccessDeniedException
MigrationHubOrchestrator.Client.exceptions.InternalServerException
MigrationHubOrchestrator.Client.exceptions.ValidationException