Module type Template.ResourceType

The module interface for a stack resource

Modules used to create resources with add_resource must conform to this signature.

type properties

The resource properties type

type attributes

The resource attributes type (can be unit)

val yojson_of_properties : properties -> Yojson.Safe.t

Serialise the properties as a Yojson.Safe.t type

val create_attributes : string -> attributes

Create the attributes for a template resource given the specified logical_id

val cloudformation_type : string

The CloudFormation Type field for this resource type e.g. AWS::Logs::LogGroup