Class PublishAssetsAction
(deprecated) Action to publish an asset in the pipeline.
Inherited Members
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Pipelines.dll
Syntax (csharp)
public class PublishAssetsAction : Construct, IConstruct, IDependable, IAction
Syntax (vb)
Public Class PublishAssetsAction
Inherits Construct
Implements IConstruct, IDependable, IAction
Remarks
Creates a CodeBuild project which will use the CDK CLI to prepare and publish the asset.
You do not need to instantiate this action -- it will automatically be added by the pipeline when you add stacks that use assets.
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;
using Amazon.CDK.Pipelines;
Artifact artifact;
BuildSpec buildSpec;
IDependable dependable;
Role role;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
var publishAssetsAction = new PublishAssetsAction(this, "MyPublishAssetsAction", new PublishAssetsActionProps {
ActionName = "actionName",
AssetType = AssetType.FILE,
CloudAssemblyInput = artifact,
// the properties below are optional
BuildSpec = buildSpec,
CdkCliVersion = "cdkCliVersion",
CreateBuildspecFile = false,
Dependable = dependable,
PreInstallCommands = new [] { "preInstallCommands" },
ProjectName = "projectName",
Role = role,
SubnetSelection = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
SubnetName = "subnetName",
Subnets = new [] { subnet },
SubnetType = SubnetType.ISOLATED
},
Vpc = vpc
});
Synopsis
Constructors
PublishAssetsAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PublishAssetsAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
PublishAssetsAction(Construct, String, IPublishAssetsActionProps) |
Properties
ActionProperties | (deprecated) Exists to implement IAction. |
Methods
AddPublishCommand(String, String) | (deprecated) Add a single publishing command. |
Bind(Construct, IStage, IActionBindOptions) | (deprecated) Exists to implement IAction. |
OnStateChange(String, IRuleTarget, IRuleProps) | (deprecated) Exists to implement IAction. |
Constructors
PublishAssetsAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PublishAssetsAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PublishAssetsAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PublishAssetsAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
PublishAssetsAction(Construct, String, IPublishAssetsActionProps)
public PublishAssetsAction(Construct scope, string id, IPublishAssetsActionProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IPublishAssetsActionProps
Remarks
Stability: Deprecated
Properties
ActionProperties
(deprecated) Exists to implement IAction.
public virtual IActionProperties ActionProperties { get; }
Property Value
Remarks
Stability: Deprecated
Methods
AddPublishCommand(String, String)
(deprecated) Add a single publishing command.
public virtual void AddPublishCommand(string relativeManifestPath, string assetSelector)
Parameters
- relativeManifestPath System.String
- assetSelector System.String
Remarks
Manifest path should be relative to the root Cloud Assembly.
Stability: Deprecated
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