io.github.cdklabs.cdk.cicd.wrapper.ShellScriptPhaseCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-cicd-wrapper Show documentation
Show all versions of cdk-cicd-wrapper Show documentation
This repository contains the infrastructure as code to wrap your AWS CDK project with CI/CD around it.
package io.github.cdklabs.cdk.cicd.wrapper;
/**
* Phase Command that invokes shell scripts from project folder.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-03T16:35:59.361Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.cicd.wrapper.$Module.class, fqn = "@cdklabs/cdk-cicd-wrapper.ShellScriptPhaseCommand")
public class ShellScriptPhaseCommand extends software.amazon.jsii.JsiiObject implements io.github.cdklabs.cdk.cicd.wrapper.IPhaseCommand {
protected ShellScriptPhaseCommand(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ShellScriptPhaseCommand(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param script This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public ShellScriptPhaseCommand(final @org.jetbrains.annotations.NotNull java.lang.String script) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(script, "script is required") });
}
/**
* Returns the command to be executed for the given shell script.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getCommand() {
return software.amazon.jsii.Kernel.get(this, "command", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getScript() {
return software.amazon.jsii.Kernel.get(this, "script", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
}