@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:02.634Z") @Deprecated public class PublishAssetsAction extends Construct implements IAction
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.
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.core.*; import software.amazon.awscdk.pipelines.*; Artifact artifact; BuildSpec buildSpec; IDependable dependable; Role role; Subnet subnet; SubnetFilter subnetFilter; Vpc vpc; PublishAssetsAction publishAssetsAction = PublishAssetsAction.Builder.create(this, "MyPublishAssetsAction") .actionName("actionName") .assetType(AssetType.FILE) .cloudAssemblyInput(artifact) // the properties below are optional .buildSpec(buildSpec) .cdkCliVersion("cdkCliVersion") .createBuildspecFile(false) .dependable(dependable) .preInstallCommands(List.of("preInstallCommands")) .projectName("projectName") .role(role) .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()) .vpc(vpc) .build();
Modifier and Type | Class and Description |
---|---|
static class |
PublishAssetsAction.Builder
Deprecated.
|
IAction.Jsii$Default, IAction.Jsii$Proxy
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
PublishAssetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
PublishAssetsAction(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
|
PublishAssetsAction(software.constructs.Construct scope,
java.lang.String id,
PublishAssetsActionProps props)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPublishCommand(java.lang.String relativeManifestPath,
java.lang.String assetSelector)
Deprecated.
|
ActionConfig |
bind(Construct scope,
IStage stage,
ActionBindOptions options)
Deprecated.
|
ActionProperties |
getActionProperties()
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.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected PublishAssetsAction(software.amazon.jsii.JsiiObjectRef objRef)
protected PublishAssetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public PublishAssetsAction(software.constructs.Construct scope, java.lang.String id, PublishAssetsActionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Deprecated public void addPublishCommand(java.lang.String relativeManifestPath, java.lang.String assetSelector)
Manifest path should be relative to the root Cloud Assembly.
relativeManifestPath
- This parameter is required.assetSelector
- This parameter is required.@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