Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Merge a74837f into 320146e
Browse files Browse the repository at this point in the history
  • Loading branch information
ojkelly committed Sep 27, 2018
2 parents 320146e + a74837f commit 670edf6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkg/parsers/intrinsics/intrinsics.go
@@ -0,0 +1,32 @@
package intrinsics

// Ref intrinsic
func Ref(ref string) map[string]interface{} {
return map[string]interface{}{
"Ref": ref,
}
}

// Sub intrinsic
func Sub(sub string) map[string]interface{} {
return map[string]interface{}{
"Fn::Sub": sub,
}
}

// GetAtt intrinsic
func GetAtt(vars []string) map[string]interface{} {
return map[string]interface{}{
"Fn::GetAtt": vars,
}
}

// Join intrinsic
func Join(separator string, items []interface{}) map[string]interface{} {
return map[string]interface{}{
"Fn::Join": []interface{}{
separator,
items,
},
}
}

0 comments on commit 670edf6

Please sign in to comment.