-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
Updated cf spec and parsers
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
yaml "github.com/KablamoOSS/yaml" | ||
) | ||
|
||
// ParseAmazonMQBroker Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html | ||
func ParseAmazonMQBroker(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
var resource, output types.TemplateObject | ||
if err = yaml.Unmarshal([]byte(data), &resource); err != nil { | ||
return | ||
} | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQBroker-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
output = types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Fn::GetAtt": []string{name, "BrokerId"}, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQBroker-" + name + "-BrokerId", | ||
}, | ||
}, | ||
} | ||
if condition, ok := resource["Condition"]; ok { | ||
output["Condition"] = condition | ||
} | ||
cf[name+"BrokerId"] = output | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
yaml "github.com/KablamoOSS/yaml" | ||
) | ||
|
||
// ParseAmazonMQConfiguration Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-configuration.html | ||
func ParseAmazonMQConfiguration(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
var resource, output types.TemplateObject | ||
if err = yaml.Unmarshal([]byte(data), &resource); err != nil { | ||
return | ||
} | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQConfiguration-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
output = types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Fn::GetAtt": []string{name, "Arn"}, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQConfiguration-" + name + "-Arn", | ||
}, | ||
}, | ||
} | ||
if condition, ok := resource["Condition"]; ok { | ||
output["Condition"] = condition | ||
} | ||
cf[name+"Arn"] = output | ||
|
||
output = types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Fn::GetAtt": []string{name, "Id"}, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQConfiguration-" + name + "-Id", | ||
}, | ||
}, | ||
} | ||
if condition, ok := resource["Condition"]; ok { | ||
output["Condition"] = condition | ||
} | ||
cf[name+"Id"] = output | ||
|
||
output = types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Fn::GetAtt": []string{name, "Revision"}, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-AmazonMQConfiguration-" + name + "-Revision", | ||
}, | ||
}, | ||
} | ||
if condition, ok := resource["Condition"]; ok { | ||
output["Condition"] = condition | ||
} | ||
cf[name+"Revision"] = output | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
) | ||
|
||
// ParseBudgetsBudget Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html | ||
func ParseBudgetsBudget(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-BudgetsBudget-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
yaml "github.com/KablamoOSS/yaml" | ||
) | ||
|
||
// ParseCodePipelineWebhook Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-webhook.html | ||
func ParseCodePipelineWebhook(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
var resource, output types.TemplateObject | ||
if err = yaml.Unmarshal([]byte(data), &resource); err != nil { | ||
return | ||
} | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-CodePipelineWebhook-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
output = types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Fn::GetAtt": []string{name, "Url"}, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-CodePipelineWebhook-" + name + "-Url", | ||
}, | ||
}, | ||
} | ||
if condition, ok := resource["Condition"]; ok { | ||
output["Condition"] = condition | ||
} | ||
cf[name+"Url"] = output | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
) | ||
|
||
// ParseConfigAggregationAuthorization Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html | ||
func ParseConfigAggregationAuthorization(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-ConfigAggregationAuthorization-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
) | ||
|
||
// ParseConfigConfigurationAggregator Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configurationaggregator.html | ||
func ParseConfigConfigurationAggregator(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-ConfigConfigurationAggregator-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
return | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package outputs | ||
|
||
// DO NOT EDIT: This file is autogenerated by running 'go generate' | ||
// It's generated by "github.com/KablamoOSS/kombustion/generate" | ||
|
||
import ( | ||
"github.com/KablamoOSS/kombustion/types" | ||
) | ||
|
||
// ParseEC2VPCEndpointConnectionNotification Documentation http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html | ||
func ParseEC2VPCEndpointConnectionNotification(name string, data string) (cf types.TemplateObject, err error) { | ||
|
||
cf = types.TemplateObject{ | ||
name: types.TemplateObject{ | ||
"Description": name + " Object", | ||
"Value": map[string]interface{}{ | ||
"Ref": name, | ||
}, | ||
"Export": map[string]interface{}{ | ||
"Name": map[string]interface{}{ | ||
"Fn::Sub": "${AWS::StackName}-EC2VPCEndpointConnectionNotification-" + name, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
return | ||
} |