@@ -52,13 +52,14 @@ type Model struct {
5252// service API
5353func (m * Model ) MetaVars () templateset.MetaVars {
5454 return templateset.MetaVars {
55- ServicePackageName : m .servicePackageName ,
56- ServiceID : m .SDKAPI .ServiceID (),
57- ServiceModelName : m .cfg .ModelName ,
58- APIGroup : m .APIGroup (),
59- APIVersion : m .apiVersion ,
60- APIInterfaceTypeName : m .SDKAPI .APIInterfaceTypeName (),
61- CRDNames : m .crdNames (),
55+ ServicePackageName : m .servicePackageName ,
56+ ServiceID : m .SDKAPI .ServiceID (),
57+ ServiceModelName : m .cfg .SDKNames .Model ,
58+ APIGroup : m .APIGroup (),
59+ APIVersion : m .apiVersion ,
60+ ClientInterfaceTypeName : m .ClientInterfaceTypeName (),
61+ ClientStructTypeName : m .ClientStructTypeName (),
62+ CRDNames : m .crdNames (),
6263 }
6364}
6465
@@ -866,6 +867,24 @@ func (m *Model) APIGroup() string {
866867 return fmt .Sprintf ("%s.%s" , m .servicePackageName , suffix )
867868}
868869
870+ // ClientInterfaceTypeName returns the name of the aws-sdk-go primary API
871+ // interface type name.
872+ func (m * Model ) ClientInterfaceTypeName () string {
873+ if m .cfg .SDKNames .ClientInterface != "" {
874+ return m .cfg .SDKNames .ClientInterface
875+ }
876+ return m .SDKAPI .ClientInterfaceTypeName ()
877+ }
878+
879+ // ClientStructTypeName returns the name of the aws-sdk-go primary client
880+ // struct type name.
881+ func (m * Model ) ClientStructTypeName () string {
882+ if m .cfg .SDKNames .ClientStruct != "" {
883+ return m .cfg .SDKNames .ClientStruct
884+ }
885+ return m .SDKAPI .ClientStructTypeName ()
886+ }
887+
869888// New returns a new Model struct for a supplied API model.
870889// Optionally, pass a file path to a generator config file that can be used to
871890// instruct the code generator how to handle the API properly
0 commit comments