cloudformation

package
v1.8.2-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated from Pkl module `cloudformation`. DO NOT EDIT.

Code generated from Pkl module `cloudformation`. DO NOT EDIT.

Code generated from Pkl module `cloudformation`. DO NOT EDIT.

Code generated from Pkl module `cloudformation`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloudformation

type Cloudformation struct {
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Cloudformation, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Cloudformation

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *Cloudformation, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Cloudformation

type Parameter

type Parameter interface {
	GetType() string

	GetDefault() *string

	GetAllowedValues() *[]string

	GetDescription() *string
}

type ParameterImpl

type ParameterImpl struct {
	Type string `pkl:"Type"`

	Default *string `pkl:"Default"`

	AllowedValues *[]string `pkl:"AllowedValues"`

	Description *string `pkl:"Description"`
}

func (*ParameterImpl) GetAllowedValues

func (rcv *ParameterImpl) GetAllowedValues() *[]string

func (*ParameterImpl) GetDefault

func (rcv *ParameterImpl) GetDefault() *string

func (*ParameterImpl) GetDescription

func (rcv *ParameterImpl) GetDescription() *string

func (*ParameterImpl) GetType

func (rcv *ParameterImpl) GetType() string

type Resource

type Resource interface {
	GetType() string

	GetProperties() *any

	GetCreationPolicy() *map[any]any

	GetDeletionPolicy() *string

	GetDependsOn() *[]string

	GetMetadata() *map[any]any

	GetUpdatePolicy() *map[any]any

	GetUpdateReplacePolicy() *string
}

type ResourceImpl

type ResourceImpl struct {
	Type string `pkl:"Type"`

	Properties *any `pkl:"Properties"`

	CreationPolicy *map[any]any `pkl:"CreationPolicy"`

	DeletionPolicy *string `pkl:"DeletionPolicy"`

	DependsOn *[]string `pkl:"DependsOn"`

	Metadata *map[any]any `pkl:"Metadata"`

	UpdatePolicy *map[any]any `pkl:"UpdatePolicy"`

	UpdateReplacePolicy *string `pkl:"UpdateReplacePolicy"`
}

A CloudFormation resource.

Note that in subclasses of Resource, properties are elevated to the top level, so we have to rename any properties that conflict with resource attribute names such as `Type` and `DependsOn`.

Any property that conflicts will be suffixed with `Property`.

func (*ResourceImpl) GetCreationPolicy

func (rcv *ResourceImpl) GetCreationPolicy() *map[any]any

func (*ResourceImpl) GetDeletionPolicy

func (rcv *ResourceImpl) GetDeletionPolicy() *string

func (*ResourceImpl) GetDependsOn

func (rcv *ResourceImpl) GetDependsOn() *[]string

func (*ResourceImpl) GetMetadata

func (rcv *ResourceImpl) GetMetadata() *map[any]any

func (*ResourceImpl) GetProperties

func (rcv *ResourceImpl) GetProperties() *any

func (*ResourceImpl) GetType

func (rcv *ResourceImpl) GetType() string

func (*ResourceImpl) GetUpdatePolicy

func (rcv *ResourceImpl) GetUpdatePolicy() *map[any]any

func (*ResourceImpl) GetUpdateReplacePolicy

func (rcv *ResourceImpl) GetUpdateReplacePolicy() *string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL