@ -39,8 +39,8 @@ func (*FlatAmiFilterOptions) HCL2Spec() map[string]hcldec.Spec {
// FlatPolicyDocument is an auto-generated flat version of PolicyDocument.
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type FlatPolicyDocument struct {
Version * string ` cty:"version" hcl:"v ersion"`
Statement [ ] FlatStatement ` cty:"statement" hcl:"s tatement"`
Version * string ` mapstructure:"Version" required:"false" cty:"Version" hcl:"V ersion"`
Statement [ ] FlatStatement ` mapstructure:"Statement" required:"false" cty:"Statement" hcl:"S tatement"`
}
// FlatMapstructure returns a new FlatPolicyDocument.
@ -55,8 +55,8 @@ func (*PolicyDocument) FlatMapstructure() interface{ HCL2Spec() map[string]hclde
// The decoded values from this spec will then be applied to a FlatPolicyDocument.
func ( * FlatPolicyDocument ) HCL2Spec ( ) map [ string ] hcldec . Spec {
s := map [ string ] hcldec . Spec {
" v ersion": & hcldec . AttrSpec { Name : " v ersion", Type : cty . String , Required : false } ,
" s tatement": & hcldec . BlockListSpec { TypeName : " s tatement", Nested : hcldec . ObjectSpec ( ( * FlatStatement ) ( nil ) . HCL2Spec ( ) ) } ,
" V ersion": & hcldec . AttrSpec { Name : " V ersion", Type : cty . String , Required : false } ,
" S tatement": & hcldec . BlockListSpec { TypeName : " S tatement", Nested : hcldec . ObjectSpec ( ( * FlatStatement ) ( nil ) . HCL2Spec ( ) ) } ,
}
return s
}
@ -89,9 +89,9 @@ func (*FlatSecurityGroupFilterOptions) HCL2Spec() map[string]hcldec.Spec {
// FlatStatement is an auto-generated flat version of Statement.
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type FlatStatement struct {
Effect * string ` cty:"effect" hcl:"e ffect"`
Action [ ] string ` cty:"action" hcl:"a ction"`
Resource [ ] string ` cty:"resource" hcl:"r esource"`
Effect * string ` mapstructure:"Effect" required:"false" cty:"Effect" hcl:"E ffect"`
Action [ ] string ` mapstructure:"Action" required:"false" cty:"Action" hcl:"A ction"`
Resource [ ] string ` mapstructure:"Resource" required:"false" cty:"Resource" hcl:"R esource"`
}
// FlatMapstructure returns a new FlatStatement.
@ -106,9 +106,9 @@ func (*Statement) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spe
// The decoded values from this spec will then be applied to a FlatStatement.
func ( * FlatStatement ) HCL2Spec ( ) map [ string ] hcldec . Spec {
s := map [ string ] hcldec . Spec {
" e ffect": & hcldec . AttrSpec { Name : " e ffect", Type : cty . String , Required : false } ,
" a ction": & hcldec . AttrSpec { Name : " a ction", Type : cty . List ( cty . String ) , Required : false } ,
" r esource": & hcldec . AttrSpec { Name : " r esource", Type : cty . List ( cty . String ) , Required : false } ,
" E ffect": & hcldec . AttrSpec { Name : " E ffect", Type : cty . String , Required : false } ,
" A ction": & hcldec . AttrSpec { Name : " A ction", Type : cty . List ( cty . String ) , Required : false } ,
" R esource": & hcldec . AttrSpec { Name : " R esource", Type : cty . List ( cty . String ) , Required : false } ,
}
return s
}