@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:58.577Z") @Stability(value=Deprecated) @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.core.*;
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.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.
|
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default, IAction.Jsii$ProxyIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
PublishAssetsAction(software.constructs.Construct scope,
String id,
PublishAssetsActionProps props)
Deprecated.
|
protected |
PublishAssetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
PublishAssetsAction(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPublishCommand(String relativeManifestPath,
String assetSelector)
Deprecated.
|
ActionConfig |
bind(Construct scope,
IStage stage,
ActionBindOptions options)
Deprecated.
|
ActionProperties |
getActionProperties()
Deprecated.
|
Rule |
onStateChange(String name)
Deprecated.
|
Rule |
onStateChange(String name,
IRuleTarget target)
Deprecated.
|
Rule |
onStateChange(String name,
IRuleTarget target,
RuleProps options)
Deprecated.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PublishAssetsAction(software.amazon.jsii.JsiiObjectRef objRef)
protected PublishAssetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Deprecated) @Deprecated public PublishAssetsAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PublishAssetsActionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Deprecated) @Deprecated public void addPublishCommand(@NotNull String relativeManifestPath, @NotNull String assetSelector)
Manifest path should be relative to the root Cloud Assembly.
relativeManifestPath - This parameter is required.assetSelector - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public ActionConfig bind(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
@Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target, @Nullable RuleProps options)
onStateChange in interface IActionname - This parameter is required.target - options - @Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target)
onStateChange in interface IActionname - This parameter is required.target - @Stability(value=Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name)
onStateChange in interface IActionname - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public ActionProperties getActionProperties()
getActionProperties in interface IActionCopyright © 2022. All rights reserved.