@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.678Z") @Stability(value=Deprecated) @Deprecated public class ShellScriptAction extends software.amazon.jsii.JsiiObject implements IAction, IGrantable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.services.codepipeline.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.pipelines.*;
Artifact artifact;
Bucket bucket;
IBuildImage buildImage;
PolicyStatement policyStatement;
SecurityGroup securityGroup;
StackOutput stackOutput;
Subnet subnet;
SubnetFilter subnetFilter;
Object value;
Vpc vpc;
ShellScriptAction shellScriptAction = ShellScriptAction.Builder.create()
.actionName("actionName")
.commands(List.of("commands"))
// the properties below are optional
.additionalArtifacts(List.of(artifact))
.bashOptions("bashOptions")
.environment(BuildEnvironment.builder()
.buildImage(buildImage)
.certificate(BuildEnvironmentCertificate.builder()
.bucket(bucket)
.objectKey("objectKey")
.build())
.computeType(ComputeType.SMALL)
.environmentVariables(Map.of(
"environmentVariablesKey", BuildEnvironmentVariable.builder()
.value(value)
// the properties below are optional
.type(BuildEnvironmentVariableType.PLAINTEXT)
.build()))
.privileged(false)
.build())
.environmentVariables(Map.of(
"environmentVariablesKey", BuildEnvironmentVariable.builder()
.value(value)
// the properties below are optional
.type(BuildEnvironmentVariableType.PLAINTEXT)
.build()))
.rolePolicyStatements(List.of(policyStatement))
.runOrder(123)
.securityGroups(List.of(securityGroup))
.subnetSelection(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.useOutputs(Map.of(
"useOutputsKey", stackOutput))
.vpc(vpc)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ShellScriptAction.Builder
Deprecated.
|
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default, IAction.Jsii$ProxyIGrantable.Jsii$Default, IGrantable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
ShellScriptAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
ShellScriptAction(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
|
ShellScriptAction(ShellScriptActionProps props)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ActionConfig |
bind(Construct scope,
IStage stage,
ActionBindOptions options)
Deprecated.
|
ActionProperties |
getActionProperties()
Deprecated.
|
IPrincipal |
getGrantPrincipal()
Deprecated.
|
IProject |
getProject()
Deprecated.
|
Rule |
onStateChange(String name)
Deprecated.
|
Rule |
onStateChange(String name,
IRuleTarget target)
Deprecated.
|
Rule |
onStateChange(String name,
IRuleTarget target,
RuleProps options)
Deprecated.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ShellScriptAction(software.amazon.jsii.JsiiObjectRef objRef)
protected ShellScriptAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Deprecated) @Deprecated public ShellScriptAction(@NotNull ShellScriptActionProps props)
props - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public ActionConfig bind(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
@Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target, @Nullable RuleProps options)
onStateChange in interface IActionname - This parameter is required.target - options - @Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target)
onStateChange in interface IActionname - This parameter is required.target - @Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name)
onStateChange in interface IActionname - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public ActionProperties getActionProperties()
getActionProperties in interface IAction@Stability(value=Deprecated) @Deprecated @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Deprecated) @Deprecated @NotNull public IProject getProject()
Copyright © 2022. All rights reserved.