ARCRegionswitch / Client / approve_plan_execution_step

approve_plan_execution_step

ARCRegionswitch.Client.approve_plan_execution_step(**kwargs)

Approves a step in a plan execution that requires manual approval. When you create a plan, you can include approval steps that require manual intervention before the execution can proceed. This operation allows you to provide that approval.

You must specify the plan ARN, execution ID, step name, and approval status. You can also provide an optional comment explaining the approval decision.

See also: AWS API Documentation

Request Syntax

response = client.approve_plan_execution_step(
    planArn='string',
    executionId='string',
    stepName='string',
    approval='approve'|'decline',
    comment='string'
)
Parameters:
  • planArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the plan.

  • executionId (string) –

    [REQUIRED]

    The execution identifier of a plan execution.

  • stepName (string) –

    [REQUIRED]

    The name of a step in a plan execution.

  • approval (string) –

    [REQUIRED]

    The status of approval for a plan execution step.

  • comment (string) – A comment that you can enter about a plan execution.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • ARCRegionswitch.Client.exceptions.ResourceNotFoundException

  • ARCRegionswitch.Client.exceptions.AccessDeniedException