Class ShellScriptAction
(deprecated) Validate a revision using shell commands.
Inheritance
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Pipelines.dll
Syntax (csharp)
public class ShellScriptAction : DeputyBase, IAction, IGrantable
Syntax (vb)
Public Class ShellScriptAction
Inherits DeputyBase
Implements IAction, IGrantable
Remarks
Stability: Deprecated
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
using Amazon.CDK.AWS.CodePipeline;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.Pipelines;
Artifact artifact;
Bucket bucket;
IBuildImage buildImage;
PolicyStatement policyStatement;
SecurityGroup securityGroup;
StackOutput stackOutput;
Subnet subnet;
SubnetFilter subnetFilter;
var value;
Vpc vpc;
var shellScriptAction = new ShellScriptAction(new ShellScriptActionProps {
ActionName = "actionName",
Commands = new [] { "commands" },
// the properties below are optional
AdditionalArtifacts = new [] { artifact },
BashOptions = "bashOptions",
Environment = new BuildEnvironment {
BuildImage = buildImage,
Certificate = new BuildEnvironmentCertificate {
Bucket = bucket,
ObjectKey = "objectKey"
},
ComputeType = ComputeType.SMALL,
EnvironmentVariables = new Dictionary<string, BuildEnvironmentVariable> {
{ "environmentVariablesKey", new BuildEnvironmentVariable {
Value = value,
// the properties below are optional
Type = BuildEnvironmentVariableType.PLAINTEXT
} }
},
Privileged = false
},
EnvironmentVariables = new Dictionary<string, BuildEnvironmentVariable> {
{ "environmentVariablesKey", new BuildEnvironmentVariable {
Value = value,
// the properties below are optional
Type = BuildEnvironmentVariableType.PLAINTEXT
} }
},
RolePolicyStatements = new [] { policyStatement },
RunOrder = 123,
SecurityGroups = new [] { securityGroup },
SubnetSelection = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
SubnetName = "subnetName",
Subnets = new [] { subnet },
SubnetType = SubnetType.ISOLATED
},
UseOutputs = new Dictionary<string, StackOutput> {
{ "useOutputsKey", stackOutput }
},
Vpc = vpc
});
Synopsis
Constructors
ShellScriptAction(IShellScriptActionProps) | |
ShellScriptAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ShellScriptAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ActionProperties | (deprecated) Exists to implement IAction. |
GrantPrincipal | (deprecated) The CodeBuild Project's principal. |
Project | (deprecated) Project generated to run the shell script in. |
Methods
Bind(Construct, IStage, IActionBindOptions) | (deprecated) Exists to implement IAction. |
OnStateChange(String, IRuleTarget, IRuleProps) | (deprecated) Exists to implement IAction. |
Constructors
ShellScriptAction(IShellScriptActionProps)
public ShellScriptAction(IShellScriptActionProps props)
Parameters
- props IShellScriptActionProps
Remarks
Stability: Deprecated
ShellScriptAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ShellScriptAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ShellScriptAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ShellScriptAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ActionProperties
(deprecated) Exists to implement IAction.
public virtual IActionProperties ActionProperties { get; }
Property Value
Remarks
Stability: Deprecated
GrantPrincipal
(deprecated) The CodeBuild Project's principal.
public virtual IPrincipal GrantPrincipal { get; }
Property Value
Remarks
Stability: Deprecated
Project
(deprecated) Project generated to run the shell script in.
public virtual IProject Project { get; }
Property Value
Remarks
Stability: Deprecated
Methods
Bind(Construct, IStage, IActionBindOptions)
(deprecated) Exists to implement IAction.
public virtual IActionConfig Bind(Construct scope, IStage stage, IActionBindOptions options)
Parameters
- scope Construct
- stage IStage
- options IActionBindOptions
Returns
Remarks
Stability: Deprecated
OnStateChange(String, IRuleTarget, IRuleProps)
(deprecated) Exists to implement IAction.
public virtual Rule OnStateChange(string name, IRuleTarget target = null, IRuleProps options = null)
Parameters
- name System.String
- target IRuleTarget
- options IRuleProps
Returns
Remarks
Stability: Deprecated