mgn / Client / put_template_action
put_template_action¶
- mgn.Client.put_template_action(**kwargs)¶
Put template post migration custom action.
See also: AWS API Documentation
Request Syntax
response = client.put_template_action( launchConfigurationTemplateID='string', actionName='string', documentIdentifier='string', order=123, actionID='string', documentVersion='string', active=True|False, timeoutSeconds=123, mustSucceedForCutover=True|False, parameters={ 'string': [ { 'parameterType': 'STRING'|'SECURE_STRING', 'parameterName': 'string' }, ] }, operatingSystem='string', externalParameters={ 'string': { 'dynamicPath': 'string' } }, description='string', category='DISASTER_RECOVERY'|'OPERATING_SYSTEM'|'LICENSE_AND_SUBSCRIPTION'|'VALIDATION'|'OBSERVABILITY'|'REFACTORING'|'SECURITY'|'NETWORKING'|'CONFIGURATION'|'BACKUP'|'OTHER' )
- Parameters:
launchConfigurationTemplateID (string) –
[REQUIRED]
Launch configuration template ID.
actionName (string) –
[REQUIRED]
Template post migration custom action name.
documentIdentifier (string) –
[REQUIRED]
Template post migration custom action document identifier.
order (integer) –
[REQUIRED]
Template post migration custom action order.
actionID (string) –
[REQUIRED]
Template post migration custom action ID.
documentVersion (string) – Template post migration custom action document version.
active (boolean) – Template post migration custom action active status.
timeoutSeconds (integer) – Template post migration custom action timeout in seconds.
mustSucceedForCutover (boolean) – Template post migration custom action must succeed for cutover.
parameters (dict) –
Template post migration custom action parameters.
(string) –
(list) –
(dict) –
AWS Systems Manager Parameter Store parameter.
parameterType (string) – [REQUIRED]
AWS Systems Manager Parameter Store parameter type.
parameterName (string) – [REQUIRED]
AWS Systems Manager Parameter Store parameter name.
operatingSystem (string) – Operating system eligible for this template post migration custom action.
externalParameters (dict) –
Template post migration custom action external parameters.
(string) –
(dict) –
AWS Systems Manager Document external parameter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
dynamicPath.dynamicPath (string) –
AWS Systems Manager Document external parameters dynamic path.
description (string) – Template post migration custom action description.
category (string) – Template post migration custom action category.
- Return type:
dict
- Returns:
Response Syntax
{ 'actionID': 'string', 'actionName': 'string', 'documentIdentifier': 'string', 'order': 123, 'documentVersion': 'string', 'active': True|False, 'timeoutSeconds': 123, 'mustSucceedForCutover': True|False, 'parameters': { 'string': [ { 'parameterType': 'STRING'|'SECURE_STRING', 'parameterName': 'string' }, ] }, 'operatingSystem': 'string', 'externalParameters': { 'string': { 'dynamicPath': 'string' } }, 'description': 'string', 'category': 'DISASTER_RECOVERY'|'OPERATING_SYSTEM'|'LICENSE_AND_SUBSCRIPTION'|'VALIDATION'|'OBSERVABILITY'|'REFACTORING'|'SECURITY'|'NETWORKING'|'CONFIGURATION'|'BACKUP'|'OTHER' }
Response Structure
(dict) –
actionID (string) –
Template post migration custom action ID.
actionName (string) –
Template post migration custom action name.
documentIdentifier (string) –
Template post migration custom action document identifier.
order (integer) –
Template post migration custom action order.
documentVersion (string) –
Template post migration custom action document version.
active (boolean) –
Template post migration custom action active status.
timeoutSeconds (integer) –
Template post migration custom action timeout in seconds.
mustSucceedForCutover (boolean) –
Template post migration custom action must succeed for cutover.
parameters (dict) –
Template post migration custom action parameters.
(string) –
(list) –
(dict) –
AWS Systems Manager Parameter Store parameter.
parameterType (string) –
AWS Systems Manager Parameter Store parameter type.
parameterName (string) –
AWS Systems Manager Parameter Store parameter name.
operatingSystem (string) –
Operating system eligible for this template post migration custom action.
externalParameters (dict) –
Template post migration custom action external parameters.
(string) –
(dict) –
AWS Systems Manager Document external parameter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
dynamicPath. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
dynamicPath (string) –
AWS Systems Manager Document external parameters dynamic path.
description (string) –
Template post migration custom action description.
category (string) –
Template post migration custom action category.
Exceptions
mgn.Client.exceptions.UninitializedAccountExceptionmgn.Client.exceptions.ResourceNotFoundExceptionmgn.Client.exceptions.ValidationExceptionmgn.Client.exceptions.ConflictException