create_template
async
¶
create_template(
template_name: str,
template_source: TemplateSource,
*,
config_overrides: Optional[AsyncMigrationHubOrchestratorClientConfig] = None,
template_description: Optional[str] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagMap] = None,
) -> CreateTemplateResponse
Creates a migration workflow template.
Parameters:
-
template_name(str) –The name of the migration workflow template.
-
template_description(Optional[str], default:None) –A description of the migration workflow template.
-
template_source(TemplateSource) –The source of the migration workflow template.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Idempotency in the Smithy documentation.
-
tags(Optional[TagMap], default:None) –The tags to add to the migration workflow template.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–This exception is thrown when an attempt to update or delete a resource would cause an inconsistent state.
-
InternalServerException–An internal error has occurred.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.