put_template_action
async
¶
put_template_action(
launch_configuration_template_id: LaunchConfigurationTemplateID,
action_name: BoundedString,
document_identifier: BoundedString,
order: OrderType,
action_id: ActionID,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
document_version: Optional[DocumentVersion] = None,
active: Optional[bool] = None,
timeout_seconds: Optional[StrictlyPositiveInteger] = None,
must_succeed_for_cutover: Optional[bool] = None,
parameters: Optional[SsmDocumentParameters] = None,
operating_system: Optional[OperatingSystemString] = None,
external_parameters: Optional[SsmDocumentExternalParameters] = None,
description: Optional[ActionDescription] = None,
category: Optional[ActionCategory] = None,
) -> TemplateActionDocument
Put template post migration custom action.
Parameters:
-
launch_configuration_template_id(LaunchConfigurationTemplateID) –Launch configuration template ID.
-
action_name(BoundedString) –Template post migration custom action name.
-
document_identifier(BoundedString) –Template post migration custom action document identifier.
-
order(OrderType) –Template post migration custom action order.
-
action_id(ActionID) –Template post migration custom action ID.
-
document_version(Optional[DocumentVersion], default:None) –Template post migration custom action document version.
-
active(Optional[bool], default:None) –Template post migration custom action active status.
-
timeout_seconds(Optional[StrictlyPositiveInteger], default:None) –Template post migration custom action timeout in seconds.
-
must_succeed_for_cutover(Optional[bool], default:None) –Template post migration custom action must succeed for cutover.
-
parameters(Optional[SsmDocumentParameters], default:None) –Template post migration custom action parameters.
-
operating_system(Optional[OperatingSystemString], default:None) –Operating system eligible for this template post migration custom action.
-
external_parameters(Optional[SsmDocumentExternalParameters], default:None) –Template post migration custom action external parameters.
-
description(Optional[ActionDescription], default:None) –Template post migration custom action description.
-
category(Optional[ActionCategory], default:None) –Template post migration custom action category.
Raises:
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
ResourceNotFoundException–Resource not found exception.
-
UninitializedAccountException–Uninitialized account exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mgn/_services/async_mgn.py
2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 | |