Skip to content

Estimate Template Cost

cloudformation_estimate_template_cost R Documentation

Returns the estimated monthly cost of a template

Description

Returns the estimated monthly cost of a template. The return value is an Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

Usage

cloudformation_estimate_template_cost(TemplateBody, TemplateURL,
  Parameters)

Arguments

TemplateBody

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

TemplateURL

Location of file containing the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide. The location for an Amazon S3 bucket must start with ⁠https://⁠.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

Parameters

A list of Parameter structures that specify input parameters.

Value

A list with the following syntax:

list(
  Url = "string"
)

Request syntax

svc$estimate_template_cost(
  TemplateBody = "string",
  TemplateURL = "string",
  Parameters = list(
    list(
      ParameterKey = "string",
      ParameterValue = "string",
      UsePreviousValue = TRUE|FALSE,
      ResolvedValue = "string"
    )
  )
)