MigrationHubOrchestrator / Client / create_template
create_template#
- MigrationHubOrchestrator.Client.create_template(**kwargs)#
Creates a migration workflow template.
See also: AWS API Documentation
Request Syntax
response = client.create_template( templateName='string', templateDescription='string', templateSource={ 'workflowId': 'string' }, clientToken='string', tags={ 'string': 'string' } )
- Parameters:
templateName (string) –
[REQUIRED]
The name of the migration workflow template.
templateDescription (string) – A description of the migration workflow template.
templateSource (dict) –
[REQUIRED]
The source of the migration workflow template.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
workflowId
.workflowId (string) –
The ID of the workflow from the source migration workflow template.
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Idempotency in the Smithy documentation.
This field is autopopulated if not provided.
tags (dict) –
The tags to add to the migration workflow template.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'templateId': 'string', 'templateArn': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) –
templateId (string) –
The ID of the migration workflow template.
templateArn (string) –
The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is
arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234
. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.tags (dict) –
The tags added to the migration workflow template.
(string) –
(string) –
Exceptions
MigrationHubOrchestrator.Client.exceptions.ThrottlingException
MigrationHubOrchestrator.Client.exceptions.ConflictException
MigrationHubOrchestrator.Client.exceptions.AccessDeniedException
MigrationHubOrchestrator.Client.exceptions.InternalServerException
MigrationHubOrchestrator.Client.exceptions.ValidationException