Interface ShellScriptActionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ShellScriptActionProps.Jsii$Proxy
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; ShellScriptActionProps shellScriptActionProps = ShellScriptActionProps.builder() .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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.Deprecated.Deprecated.default String
Deprecated.Deprecated.default BuildEnvironment
Deprecated.default Map<String,
BuildEnvironmentVariable> Deprecated.default List<PolicyStatement>
Deprecated.default Number
Deprecated.default List<ISecurityGroup>
Deprecated.default SubnetSelection
Deprecated.default Map<String,
StackOutput> Deprecated.default IVpc
getVpc()
Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActionName
Deprecated.(deprecated) Name of the validation action in the pipeline. -
getCommands
Deprecated.(deprecated) Commands to run. -
getAdditionalArtifacts
Deprecated.(deprecated) Additional artifacts to use as input for the CodeBuild project.You can use these files to load more complex test sets into the shellscript build environment.
The files artifact given here will be unpacked into the current working directory, the other ones will be unpacked into directories which are available through the environment variables $CODEBUILD_SRC_DIR_
. The CodeBuild job must have at least one input artifact, so you must provide either at least one additional artifact here or one stack output using
useOutput
.Default: - No additional artifacts
-
getBashOptions
Deprecated.(deprecated) Bash options to set at the start of the script.Default: '-eu' (errexit and nounset)
-
getEnvironment
Deprecated.(deprecated) The CodeBuild environment where scripts are executed.Default: LinuxBuildImage.STANDARD_5_0
-
getEnvironmentVariables
@Stability(Deprecated) @Deprecated @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariables()Deprecated.(deprecated) Environment variables to send into build.Default: - No additional environment variables
-
getRolePolicyStatements
@Stability(Deprecated) @Deprecated @Nullable default List<PolicyStatement> getRolePolicyStatements()Deprecated.(deprecated) Additional policy statements to add to the execution role.Default: - No policy statements
-
getRunOrder
Deprecated.(deprecated) RunOrder for this action.Use this to sequence the shell script after the deployments.
The default value is 100 so you don't have to supply the value if you just want to run this after the application stacks have been deployed, and you don't have more than 100 stacks.
Default: 100
-
getSecurityGroups
Deprecated.(deprecated) Which security group to associate with the script's project network interfaces.If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Default: - Security group will be automatically created.
-
getSubnetSelection
Deprecated.(deprecated) Which subnets to use.Only used if 'vpc' is supplied.
Default: - All private subnets.
-
getUseOutputs
Deprecated.(deprecated) Stack outputs to make available as environment variables.Default: - No outputs used
-
getVpc
Deprecated.(deprecated) The VPC where to execute the specified script.Default: - No VPC
-
builder
Deprecated.- Returns:
- a
ShellScriptActionProps.Builder
ofShellScriptActionProps
-
CodePipeline
class instead