stratosphere-1.0.0: EDSL for AWS CloudFormation
Safe HaskellNone
LanguageHaskell2010

Stratosphere.Template

Description

 
Synopsis

Documentation

data Template Source #

Constructors

Template 

Fields

  • conditions :: Maybe Object

    Defines conditions that control whether certain resources are created or whether certain resource properties are assigned a value during stack creation or update. For example, you could conditionally create a resource that depends on whether the stack is for a production or test environment.

  • description :: Maybe Text

    A text string that describes the template. This section must always follow the template format version section.

  • formatVersion :: Maybe Text

    Specifies the AWS CloudFormation template version that the template conforms to. The template format version is not the same as the API or WSDL version. The template format version can change independently of the API and WSDL versions.

  • mappings :: Maybe (Map Text Mapping)

    A mapping of keys and associated values that you can use to specify conditional parameter values, similar to a lookup table. You can match a key to a corresponding value by using the Fn::FindInMap intrinsic function in the Resources and Outputs section.

  • metadata :: Maybe Object

    JSON objects that provide additional information about the template.

  • outputs :: Maybe Outputs

    Describes the values that are returned whenever you view your stack's properties. For example, you can declare an output for an Amazon S3 bucket name and then call the aws cloudformation describe-stacks AWS CLI command to view the name.

  • parameters :: Maybe Parameters

    Specifies values that you can pass in to your template at runtime (when you create or update a stack). You can refer to parameters in the Resources and Outputs sections of the template.

  • resources :: Resources

    Specifies the stack resources and their properties, such as an Amazon Elastic Compute Cloud instance or an Amazon Simple Storage Service bucket. You can refer to resources in the Resources and Outputs sections of the template.

Instances

Instances details
ToJSON Template Source # 
Instance details

Defined in Stratosphere.Template

Generic Template Source # 
Instance details

Defined in Stratosphere.Template

Methods

from :: Template -> Rep Template x #

to :: Rep Template x -> Template #

Show Template Source # 
Instance details

Defined in Stratosphere.Template

Eq Template Source # 
Instance details

Defined in Stratosphere.Template

Property "Conditions" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Conditions" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Conditions" Template = Object

Methods

set :: PropertyType "Conditions" Template -> Template -> Template Source #

Property "Description" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Description" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Description" Template = Text

Methods

set :: PropertyType "Description" Template -> Template -> Template Source #

Property "FormatVersion" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "FormatVersion" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "FormatVersion" Template = Text

Methods

set :: PropertyType "FormatVersion" Template -> Template -> Template Source #

Property "Mappings" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Mappings" Template 
Instance details

Defined in Stratosphere.Template

Methods

set :: PropertyType "Mappings" Template -> Template -> Template Source #

Property "Metadata" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Metadata" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Metadata" Template = Object

Methods

set :: PropertyType "Metadata" Template -> Template -> Template Source #

Property "Outputs" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Outputs" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Outputs" Template = Outputs

Methods

set :: PropertyType "Outputs" Template -> Template -> Template Source #

Property "Parameters" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Parameters" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Parameters" Template = Parameters

Methods

set :: PropertyType "Parameters" Template -> Template -> Template Source #

Property "Resources" Template Source # 
Instance details

Defined in Stratosphere.Template

Associated Types

type PropertyType "Resources" Template 
Instance details

Defined in Stratosphere.Template

type PropertyType "Resources" Template = Resources

Methods

set :: PropertyType "Resources" Template -> Template -> Template Source #

type Rep Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Conditions" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Conditions" Template = Object
type PropertyType "Description" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Description" Template = Text
type PropertyType "FormatVersion" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "FormatVersion" Template = Text
type PropertyType "Mappings" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Metadata" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Metadata" Template = Object
type PropertyType "Outputs" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Outputs" Template = Outputs
type PropertyType "Parameters" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Parameters" Template = Parameters
type PropertyType "Resources" Template Source # 
Instance details

Defined in Stratosphere.Template

type PropertyType "Resources" Template = Resources

encodeTemplate :: Template -> ByteString Source #

Pretty print a template using aeson-pretty.

mkTemplate :: Resources -> Template Source #

Convenient constructor for Template with required arguments.