types

package
v4.10.2-0...-bf1ae63 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountID        = "AWS::AccountId"
	NotificationARNs = "AWS::NotificationARNs"
	NoValue          = "AWS::NoValue"
	Partition        = "AWS::Partition"
	Region           = "AWS::Region"
	StackID          = "AWS::StackId"
	StackName        = "AWS::StackName"
)

Variables

View Source
var (
	Ref           = "Ref"
	FnBase64      = "Fn::Base64"
	FnCIDR        = "Fn::Cidr"
	FnAnd         = "Fn::And"
	FnEquals      = "Fn::Equals"
	FnIf          = "Fn::If"
	FnNot         = "Fn::Not"
	FnOr          = "Fn::Or"
	FnFindInMap   = "Fn::FindInMap"
	FnGetAtt      = "Fn::GetAtt"
	FnGetAZs      = "Fn::GetAZs"
	FnImportValue = "Fn::ImportValue"
	FnJoin        = "Fn::Join"
	FnSub         = "Fn::Sub"
	FnSelect      = "Fn::Select"
	FnSplit       = "Fn::Split"
)
View Source
var (
	RefAccountID        = MakeRef(AccountID)
	RefNotificationARNs = MakeRef(NotificationARNs)
	RefNoValue          = MakeRef(NoValue)
	RefPartition        = MakeRef(Partition)
	RefRegion           = MakeRef(Region)
	RefStackID          = MakeRef(StackID)
	RefStackName        = MakeRef(StackName)
)

Functions

This section is empty.

Types

type AnythingMap

type AnythingMap map[string]interface{}

func (AnythingMap) Convert

func (v AnythingMap) Convert(obj interface{}) error

func (AnythingMap) MarshalJSON

func (v AnythingMap) MarshalJSON() ([]byte, error)

type Boolean

type Boolean bool

func (Boolean) MarshalJSON

func (v Boolean) MarshalJSON() ([]byte, error)

type Double

type Double float64

func (Double) MarshalJSON

func (v Double) MarshalJSON() ([]byte, error)

type Integer

type Integer int

func (Integer) MarshalJSON

func (v Integer) MarshalJSON() ([]byte, error)

type Intrinsic

type Intrinsic struct {
	Value map[string]interface{}
}

func (Intrinsic) MarshalJSON

func (v Intrinsic) MarshalJSON() ([]byte, error)

type Long

type Long int64

func (Long) MarshalJSON

func (v Long) MarshalJSON() ([]byte, error)

type Slice

type Slice []*Value

func (Slice) MarshalJSON

func (v Slice) MarshalJSON() ([]byte, error)

type String

type String string

func (String) MarshalJSON

func (v String) MarshalJSON() ([]byte, error)

type Value

type Value struct {
	// contains filtered or unexported fields
}

func False

func False() *Value

func IntrinsicFromMap

func IntrinsicFromMap(raw map[string]interface{}) (*Value, error)

IntrinsicFromMap attempts to parse a map to an intrinsic function

func MakeFnCIDR

func MakeFnCIDR(arg, n, l *Value) *Value

func MakeFnEquals

func MakeFnEquals(value1, value2 *Value) *Value

func MakeFnFindInMap

func MakeFnFindInMap(mapName *Value, topLevelKey *Value, secondLevelKey *Value) *Value

func MakeFnGetAtt

func MakeFnGetAtt(name string, attr *Value) *Value

func MakeFnGetAttString

func MakeFnGetAttString(name string, attr string) *Value

func MakeFnImportValue

func MakeFnImportValue(arg *Value) *Value

func MakeFnImportValueString

func MakeFnImportValueString(arg string) *Value

func MakeFnJoin

func MakeFnJoin(sep string, args []*Value) *Value

func MakeFnSelect

func MakeFnSelect(i, arg *Value) *Value

func MakeFnSplit

func MakeFnSplit(sep string, arg *Value) *Value

func MakeFnSplitString

func MakeFnSplitString(sep string, arg string) *Value

func MakeFnSubString

func MakeFnSubString(arg string) *Value

func MakeIntrinsic

func MakeIntrinsic(k string, v interface{}) *Value

func MakeRef

func MakeRef(r string) *Value

func NewBoolean

func NewBoolean(v bool) *Value

func NewDouble

func NewDouble(v float64) *Value

func NewInteger

func NewInteger(v int) *Value

func NewLong

func NewLong(v int64) *Value

func NewSlice

func NewSlice(v ...*Value) *Value

NewSlice returns nil if it would otherwise be empty

func NewString

func NewString(v string) *Value

func NewStringSlice

func NewStringSlice(ss ...string) *Value

func NewValue

func NewValue(v json.Marshaler) *Value

func NewValueFromPrimitive

func NewValueFromPrimitive(raw interface{}) (*Value, error)

func True

func True() *Value

func (Value) MarshalJSON

func (v Value) MarshalJSON() ([]byte, error)

func (*Value) Raw

func (v *Value) Raw() interface{}

func (*Value) String

func (v *Value) String() string

func (*Value) UnmarshalJSON

func (v *Value) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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