Class ManualApprovalAction
Manual approval action.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ManualApprovalAction : Action, IAction
Syntax (vb)
Public Class ManualApprovalAction
Inherits Action
Implements IAction
Remarks
ExampleMetadata: infused
Examples
var pipeline = new Pipeline(this, "MyPipeline");
var approveStage = pipeline.AddStage(new StageOptions { StageName = "Approve" });
var manualApprovalAction = new ManualApprovalAction(new ManualApprovalActionProps {
ActionName = "Approve"
});
approveStage.AddAction(manualApprovalAction);
var role = Role.FromRoleArn(this, "Admin", Arn.Format(new ArnComponents { Service = "iam", Resource = "role", ResourceName = "Admin" }, this));
manualApprovalAction.GrantManualApproval(role);
Synopsis
Constructors
ManualApprovalAction(IManualApprovalActionProps) | |
ManualApprovalAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ManualApprovalAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
NotificationTopic |
Methods
Bound(Construct, IStage, IActionBindOptions) | This is a renamed version of the |
GrantManualApproval(IGrantable) | grant the provided principal the permissions to approve or reject this manual approval action. |
Constructors
ManualApprovalAction(IManualApprovalActionProps)
public ManualApprovalAction(IManualApprovalActionProps props)
Parameters
ManualApprovalAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ManualApprovalAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ManualApprovalAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ManualApprovalAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
NotificationTopic
Methods
Bound(Construct, IStage, IActionBindOptions)
This is a renamed version of the IAction.bind
method.
protected override IActionConfig Bound(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Constructs.Construct
- stage IStage
- options IActionBindOptions
Returns
Overrides
GrantManualApproval(IGrantable)
grant the provided principal the permissions to approve or reject this manual approval action.
public virtual void GrantManualApproval(IGrantable grantable)
Parameters
- grantable IGrantable
the grantable to attach the permissions to.