Class ManualApprovalAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.Action
software.amazon.awscdk.services.codepipeline.actions.Action
software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.462Z") @Stability(Stable) public class ManualApprovalAction extends Action
Manual approval action.

Example:

 Pipeline pipeline = new Pipeline(this, "MyPipeline");
 IStage approveStage = pipeline.addStage(StageOptions.builder().stageName("Approve").build());
 ManualApprovalAction manualApprovalAction = ManualApprovalAction.Builder.create()
         .actionName("Approve")
         .build();
 approveStage.addAction(manualApprovalAction);
 IRole role = Role.fromRoleArn(this, "Admin", Arn.format(ArnComponents.builder().service("iam").resource("role").resourceName("Admin").build(), this));
 manualApprovalAction.grantManualApproval(role);
 
  • Constructor Details

    • ManualApprovalAction

      protected ManualApprovalAction(software.amazon.jsii.JsiiObjectRef objRef)
    • ManualApprovalAction

      protected ManualApprovalAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ManualApprovalAction

      @Stability(Stable) public ManualApprovalAction(@NotNull ManualApprovalActionProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • bound

      @Stability(Stable) @NotNull protected ActionConfig bound(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
      This is a renamed version of the
      invalid @link
      IAction.bind
      method.

      Specified by:
      bound in class Action
      Parameters:
      scope - This parameter is required.
      stage - This parameter is required.
      options - This parameter is required.
    • grantManualApproval

      @Stability(Stable) public void grantManualApproval(@NotNull IGrantable grantable)
      grant the provided principal the permissions to approve or reject this manual approval action.

      For more info see: https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-iam-permissions.html

      Parameters:
      grantable - the grantable to attach the permissions to. This parameter is required.
    • getNotificationTopic

      @Stability(Stable) @Nullable public ITopic getNotificationTopic()