Class PublishAssetsAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.pipelines.PublishAssetsAction
All Implemented Interfaces:
IConstruct, IDependable, IAction, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.862Z") @Stability(Deprecated) @Deprecated public class PublishAssetsAction extends Construct implements IAction
Deprecated.
This class is part of the old API. Use the API based on the CodePipeline class instead
(deprecated) Action to publish an asset in the pipeline.

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();
 

  • Constructor Details

    • PublishAssetsAction

      protected PublishAssetsAction(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • PublishAssetsAction

      protected PublishAssetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • PublishAssetsAction

      @Stability(Deprecated) @Deprecated public PublishAssetsAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PublishAssetsActionProps props)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • addPublishCommand

      @Stability(Deprecated) @Deprecated public void addPublishCommand(@NotNull String relativeManifestPath, @NotNull String assetSelector)
      Deprecated.
      (deprecated) Add a single publishing command.

      Manifest path should be relative to the root Cloud Assembly.

      Parameters:
      relativeManifestPath - This parameter is required.
      assetSelector - This parameter is required.
    • bind

      @Stability(Deprecated) @Deprecated @NotNull public ActionConfig bind(@NotNull Construct scope, @NotNull IStage stage, @NotNull ActionBindOptions options)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      bind in interface IAction
      Parameters:
      scope - This parameter is required.
      stage - This parameter is required.
      options - This parameter is required.
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target, @Nullable RuleProps options)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
      target -
      options -
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name, @Nullable IRuleTarget target)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
      target -
    • onStateChange

      @Stability(Deprecated) @Deprecated @NotNull public Rule onStateChange(@NotNull String name)
      Deprecated.
      (deprecated) Exists to implement IAction.

      Specified by:
      onStateChange in interface IAction
      Parameters:
      name - This parameter is required.
    • getActionProperties

      @Stability(Deprecated) @Deprecated @NotNull public ActionProperties getActionProperties()
      Deprecated.
      (deprecated) Exists to implement IAction.
      Specified by:
      getActionProperties in interface IAction