All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction Maven / Gradle / Ivy

package software.amazon.awscdk.services.codepipeline.actions;

/**
 * Manual approval action.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.15.0 (build 585166b)", date = "2020-12-17T11:04:33.386Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.codepipeline.actions.$Module.class, fqn = "@aws-cdk/aws-codepipeline-actions.ManualApprovalAction")
public class ManualApprovalAction extends software.amazon.awscdk.services.codepipeline.actions.Action {

    protected ManualApprovalAction(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected ManualApprovalAction(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public ManualApprovalAction(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.actions.ManualApprovalActionProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * The method called when an Action is attached to a Pipeline.
     * 

* This method is guaranteed to be called only once for each Action instance. *

* @param scope This parameter is required. * @param _stage This parameter is required. * @param options This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.ActionConfig bound(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.IStage _stage, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.ActionBindOptions options) { return software.amazon.jsii.Kernel.call(this, "bound", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.codepipeline.ActionConfig.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(_stage, "_stage is required"), java.util.Objects.requireNonNull(options, "options is required") }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.sns.ITopic getNotificationTopic() { return software.amazon.jsii.Kernel.get(this, "notificationTopic", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sns.ITopic.class)); } /** * A fluent builder for {@link software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create() { return new Builder(); } private final software.amazon.awscdk.services.codepipeline.actions.ManualApprovalActionProps.Builder props; private Builder() { this.props = new software.amazon.awscdk.services.codepipeline.actions.ManualApprovalActionProps.Builder(); } /** * The physical, human-readable name of the Action. *

* Note that Action names must be unique within a single Stage. *

* @return {@code this} * @param actionName The physical, human-readable name of the Action. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder actionName(final java.lang.String actionName) { this.props.actionName(actionName); return this; } /** * The runOrder property for this Action. *

* RunOrder determines the relative order in which multiple Actions in the same Stage execute. *

* Default: 1 *

* @return {@code this} * @see https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html * @param runOrder The runOrder property for this Action. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder runOrder(final java.lang.Number runOrder) { this.props.runOrder(runOrder); return this; } /** * The name of the namespace to use for variables emitted by this action. *

* Default: - a name will be generated, based on the stage and action names, * if any of the action's variables were referenced - otherwise, * no namespace will be set *

* @return {@code this} * @param variablesNamespace The name of the namespace to use for variables emitted by this action. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder variablesNamespace(final java.lang.String variablesNamespace) { this.props.variablesNamespace(variablesNamespace); return this; } /** * The Role in which context's this Action will be executing in. *

* The Pipeline's Role will assume this Role * (the required permissions for that will be granted automatically) * right before executing this Action. * This Action will be passed into your {@link IAction.bind} * method in the {@link ActionBindOptions.role} property. *

* Default: a new Role will be generated *

* @return {@code this} * @param role The Role in which context's this Action will be executing in. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder role(final software.amazon.awscdk.services.iam.IRole role) { this.props.role(role); return this; } /** * Any additional information that you want to include in the notification email message. *

* @return {@code this} * @param additionalInformation Any additional information that you want to include in the notification email message. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInformation(final java.lang.String additionalInformation) { this.props.additionalInformation(additionalInformation); return this; } /** * URL you want to provide to the reviewer as part of the approval request. *

* Default: - the approval request will not have an external link *

* @return {@code this} * @param externalEntityLink URL you want to provide to the reviewer as part of the approval request. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder externalEntityLink(final java.lang.String externalEntityLink) { this.props.externalEntityLink(externalEntityLink); return this; } /** * Optional SNS topic to send notifications to when an approval is pending. *

* @return {@code this} * @param notificationTopic Optional SNS topic to send notifications to when an approval is pending. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder notificationTopic(final software.amazon.awscdk.services.sns.ITopic notificationTopic) { this.props.notificationTopic(notificationTopic); return this; } /** * A list of email addresses to subscribe to notifications when this Action is pending approval. *

* If this has been provided, but not notificationTopic, * a new Topic will be created. *

* @return {@code this} * @param notifyEmails A list of email addresses to subscribe to notifications when this Action is pending approval. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder notifyEmails(final java.util.List notifyEmails) { this.props.notifyEmails(notifyEmails); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction build() { return new software.amazon.awscdk.services.codepipeline.actions.ManualApprovalAction( this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy