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.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.788Z") @Stability(Stable) public abstract class CloudFormationTemplate extends software.amazon.jsii.JsiiObject
Represents the Product Provisioning Artifact Template.

Example:

 import path.*;
 CloudFormationProduct product = CloudFormationProduct.Builder.create(this, "Product")
         .productName("My Product")
         .owner("Product Owner")
         .productVersions(List.of(CloudFormationProductVersion.builder()
                 .productVersionName("v1")
                 .cloudFormationTemplate(CloudFormationTemplate.fromUrl("https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml"))
                 .build(), CloudFormationProductVersion.builder()
                 .productVersionName("v2")
                 .cloudFormationTemplate(CloudFormationTemplate.fromAsset(join(__dirname, "development-environment.template.json")))
                 .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 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.