@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:58.585Z") @Stability(value=Deprecated) @Deprecated public interface ShellScriptActionProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ShellScriptActionProps.Builder
Deprecated.
|
static class |
ShellScriptActionProps.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ShellScriptActionProps.Builder |
builder()
Deprecated.
|
String |
getActionName()
Deprecated.
|
default List<Artifact> |
getAdditionalArtifacts()
Deprecated.
|
default String |
getBashOptions()
Deprecated.
|
List<String> |
getCommands()
Deprecated.
|
default BuildEnvironment |
getEnvironment()
Deprecated.
|
default Map<String,BuildEnvironmentVariable> |
getEnvironmentVariables()
Deprecated.
|
default List<PolicyStatement> |
getRolePolicyStatements()
Deprecated.
|
default Number |
getRunOrder()
Deprecated.
|
default List<ISecurityGroup> |
getSecurityGroups()
Deprecated.
|
default SubnetSelection |
getSubnetSelection()
Deprecated.
|
default Map<String,StackOutput> |
getUseOutputs()
Deprecated.
|
default IVpc |
getVpc()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @NotNull String getActionName()
@Stability(value=Deprecated) @Deprecated @NotNull List<String> getCommands()
@Stability(value=Deprecated) @Deprecated @Nullable default List<Artifact> getAdditionalArtifacts()
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
Default: - No additional artifactsuseOutput.
@Stability(value=Deprecated) @Deprecated @Nullable default String getBashOptions()
Default: '-eu' (errexit and nounset)
@Stability(value=Deprecated) @Deprecated @Nullable default BuildEnvironment getEnvironment()
Default: LinuxBuildImage.STANDARD_5_0
@Stability(value=Deprecated) @Deprecated @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariables()
Default: - No additional environment variables
@Stability(value=Deprecated) @Deprecated @Nullable default List<PolicyStatement> getRolePolicyStatements()
Default: - No policy statements
@Stability(value=Deprecated) @Deprecated @Nullable default Number getRunOrder()
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
@Stability(value=Deprecated) @Deprecated @Nullable default List<ISecurityGroup> getSecurityGroups()
If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Default: - Security group will be automatically created.
@Stability(value=Deprecated) @Deprecated @Nullable default SubnetSelection getSubnetSelection()
Only used if 'vpc' is supplied.
Default: - All private subnets.
@Stability(value=Deprecated) @Deprecated @Nullable default Map<String,StackOutput> getUseOutputs()
Default: - No outputs used
@Stability(value=Deprecated) @Deprecated @Nullable default IVpc getVpc()
Default: - No VPC
@Stability(value=Deprecated) @Deprecated static ShellScriptActionProps.Builder builder()
ShellScriptActionProps.Builder of ShellScriptActionPropsCopyright © 2022. All rights reserved.