@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:51.839Z") @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.
|
IAction.Jsii$Default, IAction.Jsii$Proxy
IGrantable.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.
|
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(java.lang.String name)
Deprecated.
|
Rule |
onStateChange(java.lang.String name,
IRuleTarget target)
Deprecated.
|
Rule |
onStateChange(java.lang.String name,
IRuleTarget target,
RuleProps options)
Deprecated.
|
protected ShellScriptAction(software.amazon.jsii.JsiiObjectRef objRef)
protected ShellScriptAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public ActionConfig bind(Construct scope, IStage stage, ActionBindOptions options)
@Deprecated public Rule onStateChange(java.lang.String name, IRuleTarget target, RuleProps options)
onStateChange
in interface IAction
name
- This parameter is required.target
- options
- @Deprecated public Rule onStateChange(java.lang.String name, IRuleTarget target)
onStateChange
in interface IAction
name
- This parameter is required.target
- @Deprecated public Rule onStateChange(java.lang.String name)
onStateChange
in interface IAction
name
- This parameter is required.@Deprecated public ActionProperties getActionProperties()
getActionProperties
in interface IAction
@Deprecated public IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable
@Deprecated public IProject getProject()