Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func CleanParameterName(unsafes ...string) string
- func Int(i int) *int
- func QualifiedName(name string) string
- func ResolveFunc(raw interface{}, params Params) (string, error)
- func ResourceName(name string, rr cloudformation.Resource) string
- func String(str string) *string
- func Stringf(str string, params ...interface{}) *string
- type BuiltTemplate
- type FuncJoin
- type IResource
- type Output
- type ParamFunc
- type ParamMap
- type Params
- type Resource
- func (rr Resource[T]) AWSCloudFormationType() string
- func (rr *Resource[T]) AddParameter(param *awsdeployer_pb.Parameter)
- func (rr *Resource[T]) DependsOn(b IResource)
- func (rr Resource[T]) GetAtt(name string) TemplateRef
- func (rr Resource[T]) MarshalJSON() ([]byte, error)
- func (rr Resource[T]) Name() string
- func (rr *Resource[T]) Override(key, val string)
- func (rr Resource[T]) Parameters() []*awsdeployer_pb.Parameter
- func (rr Resource[T]) Ref() TemplateRef
- type TemplateBuilder
- type TemplateRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanParameterName ¶
func QualifiedName ¶
func ResolveFunc ¶
func ResourceName ¶
func ResourceName(name string, rr cloudformation.Resource) string
Types ¶
type BuiltTemplate ¶
type BuiltTemplate struct { Template *cloudformation.Template Parameters []*awsdeployer_pb.Parameter }
type FuncJoin ¶
type FuncJoin struct { Join string Values []interface{} }
func (*FuncJoin) MarshalJSON ¶
func (*FuncJoin) UnmarshalJSON ¶
type IResource ¶
type IResource interface { cloudformation.Resource Ref() TemplateRef GetAtt(name string) TemplateRef Name() string DependsOn(IResource) Parameters() []*awsdeployer_pb.Parameter }
type Output ¶
type Output struct { Name string Value TemplateRef Description string }
type Resource ¶
type Resource[T cloudformation.Resource] struct { Resource T // contains filtered or unexported fields }
func NewResource ¶
func NewResource[T cloudformation.Resource](name string, rr T) *Resource[T]
func (Resource[T]) AWSCloudFormationType ¶
func (*Resource[T]) AddParameter ¶
func (rr *Resource[T]) AddParameter(param *awsdeployer_pb.Parameter)
func (Resource[T]) GetAtt ¶
func (rr Resource[T]) GetAtt(name string) TemplateRef
func (Resource[T]) MarshalJSON ¶
func (Resource[T]) Parameters ¶
func (rr Resource[T]) Parameters() []*awsdeployer_pb.Parameter
func (Resource[T]) Ref ¶
func (rr Resource[T]) Ref() TemplateRef
type TemplateBuilder ¶
type TemplateBuilder struct {
// contains filtered or unexported fields
}
func NewTemplateBuilder ¶
func NewTemplateBuilder() *TemplateBuilder
func (*TemplateBuilder) AddOutput ¶
func (ss *TemplateBuilder) AddOutput(output *Output)
func (*TemplateBuilder) AddParameter ¶
func (ss *TemplateBuilder) AddParameter(param *awsdeployer_pb.Parameter)
func (*TemplateBuilder) AddResource ¶
func (ss *TemplateBuilder) AddResource(resource IResource)
func (*TemplateBuilder) Build ¶
func (ss *TemplateBuilder) Build() *BuiltTemplate
type TemplateRef ¶
type TemplateRef string
TemplateRef is a cloudformation 'string' which encodes a reference.
func Join ¶
func Join(sep string, parts ...any) TemplateRef
func (TemplateRef) Ref ¶
func (tr TemplateRef) Ref() string
func (TemplateRef) RefPtr ¶
func (tr TemplateRef) RefPtr() *string
Click to show internal directories.
Click to hide internal directories.