Class CloudFormationTemplate
Represents the Product Provisioning Artifact Template.
Inheritance
Namespace: Amazon.CDK.AWS.ServiceCatalog
Assembly: Amazon.CDK.AWS.ServiceCatalog.dll
Syntax (csharp)
public abstract class CloudFormationTemplate : DeputyBase
Syntax (vb)
Public MustInherit Class CloudFormationTemplate
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Path;
var product = new CloudFormationProduct(this, "Product", new CloudFormationProductProps {
ProductName = "My Product",
Owner = "Product Owner",
ProductVersions = new [] { new CloudFormationProductVersion {
ProductVersionName = "v1",
CloudFormationTemplate = CloudFormationTemplate.FromUrl("https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml")
}, new CloudFormationProductVersion {
ProductVersionName = "v2",
CloudFormationTemplate = CloudFormationTemplate.FromAsset(Join(__dirname, "development-environment.template.json"))
} }
});
Synopsis
Constructors
CloudFormationTemplate() | |
CloudFormationTemplate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CloudFormationTemplate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Called when the product is initialized to allow this object to bind to the stack, add resources and have fun. |
FromAsset(String, IAssetOptions) | Loads the provisioning artifacts template from a local disk path. |
FromProductStack(ProductStack) | Creates a product with the resources defined in the given product stack. |
FromUrl(String) | Template from URL. |
Constructors
CloudFormationTemplate()
protected CloudFormationTemplate()
CloudFormationTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CloudFormationTemplate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CloudFormationTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CloudFormationTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.
public abstract ICloudFormationTemplateConfig Bind(Construct scope)
Parameters
- scope Construct
The binding scope.
Returns
FromAsset(String, IAssetOptions)
Loads the provisioning artifacts template from a local disk path.
public static CloudFormationTemplate FromAsset(string path, IAssetOptions options = null)
Parameters
- path System.String
A file containing the provisioning artifacts.
- options IAssetOptions
A file containing the provisioning artifacts.
Returns
FromProductStack(ProductStack)
Creates a product with the resources defined in the given product stack.
public static CloudFormationTemplate FromProductStack(ProductStack productStack)
Parameters
- productStack ProductStack
Returns
FromUrl(String)
Template from URL.
public static CloudFormationTemplate FromUrl(string url)
Parameters
- url System.String
The url that points to the provisioning artifacts template.
Returns