Class CloudFormationTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.servicecatalog.CloudFormationTemplate
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.109.0 (build c221850)", date="2025-03-14T03:25:05.508Z") @Stability(Stable) public abstract class CloudFormationTemplate extends software.amazon.jsii.JsiiObject
Represents the Product Provisioning Artifact Template.

Example:

 import software.amazon.awscdk.*;
 public class S3BucketProduct extends ProductStack {
     public S3BucketProduct(Construct scope, String id) {
         super(scope, id);
         new Bucket(this, "BucketProduct");
     }
 }
 CloudFormationProduct product = CloudFormationProduct.Builder.create(this, "Product")
         .productName("My Product")
         .owner("Product Owner")
         .productVersions(List.of(CloudFormationProductVersion.builder()
                 .productVersionName("v1")
                 .cloudFormationTemplate(CloudFormationTemplate.fromProductStack(new S3BucketProduct(this, "S3BucketProduct")))
                 .build()))
         .build();
 
  • Constructor Details

    • CloudFormationTemplate

      protected CloudFormationTemplate(software.amazon.jsii.JsiiObjectRef objRef)
    • CloudFormationTemplate

      protected CloudFormationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CloudFormationTemplate

      @Stability(Stable) protected CloudFormationTemplate()
  • Method Details

    • fromAsset

      @Stability(Stable) @NotNull public static CloudFormationTemplate fromAsset(@NotNull String path, @Nullable AssetOptions options)
      Loads the provisioning artifacts template from a local disk path.

      Parameters:
      path - A file containing the provisioning artifacts. This parameter is required.
      options -
    • fromAsset

      @Stability(Stable) @NotNull public static CloudFormationTemplate fromAsset(@NotNull String path)
      Loads the provisioning artifacts template from a local disk path.

      Parameters:
      path - A file containing the provisioning artifacts. This parameter is required.
    • fromProductStack

      @Stability(Stable) @NotNull public static CloudFormationTemplate fromProductStack(@NotNull ProductStack productStack)
      Creates a product with the resources defined in the given product stack.

      Parameters:
      productStack - This parameter is required.
    • fromUrl

      @Stability(Stable) @NotNull public static CloudFormationTemplate fromUrl(@NotNull String url)
      Template from URL.

      Parameters:
      url - The url that points to the provisioning artifacts template. This parameter is required.
    • bind

      @Stability(Stable) @NotNull public abstract CloudFormationTemplateConfig bind(@NotNull software.constructs.Construct scope)
      Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.

      Parameters:
      scope - The binding scope. This parameter is required.