build_test.go 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680
  1. package query_test
  2. import (
  3. "bytes"
  4. "encoding/json"
  5. "encoding/xml"
  6. "fmt"
  7. "io"
  8. "io/ioutil"
  9. "net/http"
  10. "net/url"
  11. "testing"
  12. "time"
  13. "github.com/aws/aws-sdk-go/aws"
  14. "github.com/aws/aws-sdk-go/aws/client"
  15. "github.com/aws/aws-sdk-go/aws/client/metadata"
  16. "github.com/aws/aws-sdk-go/aws/request"
  17. "github.com/aws/aws-sdk-go/aws/signer/v4"
  18. "github.com/aws/aws-sdk-go/awstesting"
  19. "github.com/aws/aws-sdk-go/awstesting/unit"
  20. "github.com/aws/aws-sdk-go/private/protocol"
  21. "github.com/aws/aws-sdk-go/private/protocol/query"
  22. "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
  23. "github.com/aws/aws-sdk-go/private/util"
  24. "github.com/stretchr/testify/assert"
  25. )
  26. var _ bytes.Buffer // always import bytes
  27. var _ http.Request
  28. var _ json.Marshaler
  29. var _ time.Time
  30. var _ xmlutil.XMLNode
  31. var _ xml.Attr
  32. var _ = ioutil.Discard
  33. var _ = util.Trim("")
  34. var _ = url.Values{}
  35. var _ = io.EOF
  36. var _ = aws.String
  37. var _ = fmt.Println
  38. func init() {
  39. protocol.RandReader = &awstesting.ZeroReader{}
  40. }
  41. //The service client's operations are safe to be used concurrently.
  42. // It is not safe to mutate any of the client's properties though.
  43. type InputService1ProtocolTest struct {
  44. *client.Client
  45. }
  46. // New creates a new instance of the InputService1ProtocolTest client with a session.
  47. // If additional configuration is needed for the client instance use the optional
  48. // aws.Config parameter to add your extra config.
  49. //
  50. // Example:
  51. // // Create a InputService1ProtocolTest client from just a session.
  52. // svc := inputservice1protocoltest.New(mySession)
  53. //
  54. // // Create a InputService1ProtocolTest client with additional configuration
  55. // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  56. func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
  57. c := p.ClientConfig("inputservice1protocoltest", cfgs...)
  58. return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  59. }
  60. // newClient creates, initializes and returns a new service client instance.
  61. func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest {
  62. svc := &InputService1ProtocolTest{
  63. Client: client.New(
  64. cfg,
  65. metadata.ClientInfo{
  66. ServiceName: "inputservice1protocoltest",
  67. SigningRegion: signingRegion,
  68. Endpoint: endpoint,
  69. APIVersion: "2014-01-01",
  70. },
  71. handlers,
  72. ),
  73. }
  74. // Handlers
  75. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  76. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  77. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  78. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  79. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  80. return svc
  81. }
  82. // newRequest creates a new request for a InputService1ProtocolTest operation and runs any
  83. // custom request initialization.
  84. func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  85. req := c.NewRequest(op, params, data)
  86. return req
  87. }
  88. const opInputService1TestCaseOperation1 = "OperationName"
  89. // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
  90. // client's request for the InputService1TestCaseOperation1 operation. The "output" return
  91. // value can be used to capture response data after the request's "Send" method
  92. // is called.
  93. //
  94. // Creating a request object using this method should be used when you want to inject
  95. // custom logic into the request's lifecycle using a custom handler, or if you want to
  96. // access properties on the request object before or after sending the request. If
  97. // you just want the service response, call the InputService1TestCaseOperation1 method directly
  98. // instead.
  99. //
  100. // Note: You must call the "Send" method on the returned request object in order
  101. // to execute the request.
  102. //
  103. // // Example sending a request using the InputService1TestCaseOperation1Request method.
  104. // req, resp := client.InputService1TestCaseOperation1Request(params)
  105. //
  106. // err := req.Send()
  107. // if err == nil { // resp is now filled
  108. // fmt.Println(resp)
  109. // }
  110. //
  111. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
  112. op := &request.Operation{
  113. Name: opInputService1TestCaseOperation1,
  114. HTTPPath: "/",
  115. }
  116. if input == nil {
  117. input = &InputService1TestShapeInputShape{}
  118. }
  119. req = c.newRequest(op, input, output)
  120. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  121. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  122. output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
  123. req.Data = output
  124. return
  125. }
  126. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  127. req, out := c.InputService1TestCaseOperation1Request(input)
  128. err := req.Send()
  129. return out, err
  130. }
  131. const opInputService1TestCaseOperation2 = "OperationName"
  132. // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
  133. // client's request for the InputService1TestCaseOperation2 operation. The "output" return
  134. // value can be used to capture response data after the request's "Send" method
  135. // is called.
  136. //
  137. // Creating a request object using this method should be used when you want to inject
  138. // custom logic into the request's lifecycle using a custom handler, or if you want to
  139. // access properties on the request object before or after sending the request. If
  140. // you just want the service response, call the InputService1TestCaseOperation2 method directly
  141. // instead.
  142. //
  143. // Note: You must call the "Send" method on the returned request object in order
  144. // to execute the request.
  145. //
  146. // // Example sending a request using the InputService1TestCaseOperation2Request method.
  147. // req, resp := client.InputService1TestCaseOperation2Request(params)
  148. //
  149. // err := req.Send()
  150. // if err == nil { // resp is now filled
  151. // fmt.Println(resp)
  152. // }
  153. //
  154. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
  155. op := &request.Operation{
  156. Name: opInputService1TestCaseOperation2,
  157. HTTPPath: "/",
  158. }
  159. if input == nil {
  160. input = &InputService1TestShapeInputShape{}
  161. }
  162. req = c.newRequest(op, input, output)
  163. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  164. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  165. output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
  166. req.Data = output
  167. return
  168. }
  169. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
  170. req, out := c.InputService1TestCaseOperation2Request(input)
  171. err := req.Send()
  172. return out, err
  173. }
  174. const opInputService1TestCaseOperation3 = "OperationName"
  175. // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
  176. // client's request for the InputService1TestCaseOperation3 operation. The "output" return
  177. // value can be used to capture response data after the request's "Send" method
  178. // is called.
  179. //
  180. // Creating a request object using this method should be used when you want to inject
  181. // custom logic into the request's lifecycle using a custom handler, or if you want to
  182. // access properties on the request object before or after sending the request. If
  183. // you just want the service response, call the InputService1TestCaseOperation3 method directly
  184. // instead.
  185. //
  186. // Note: You must call the "Send" method on the returned request object in order
  187. // to execute the request.
  188. //
  189. // // Example sending a request using the InputService1TestCaseOperation3Request method.
  190. // req, resp := client.InputService1TestCaseOperation3Request(params)
  191. //
  192. // err := req.Send()
  193. // if err == nil { // resp is now filled
  194. // fmt.Println(resp)
  195. // }
  196. //
  197. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
  198. op := &request.Operation{
  199. Name: opInputService1TestCaseOperation3,
  200. HTTPPath: "/",
  201. }
  202. if input == nil {
  203. input = &InputService1TestShapeInputShape{}
  204. }
  205. req = c.newRequest(op, input, output)
  206. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  207. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  208. output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
  209. req.Data = output
  210. return
  211. }
  212. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
  213. req, out := c.InputService1TestCaseOperation3Request(input)
  214. err := req.Send()
  215. return out, err
  216. }
  217. type InputService1TestShapeInputService1TestCaseOperation1Output struct {
  218. _ struct{} `type:"structure"`
  219. }
  220. type InputService1TestShapeInputService1TestCaseOperation2Output struct {
  221. _ struct{} `type:"structure"`
  222. }
  223. type InputService1TestShapeInputService1TestCaseOperation3Output struct {
  224. _ struct{} `type:"structure"`
  225. }
  226. type InputService1TestShapeInputShape struct {
  227. _ struct{} `type:"structure"`
  228. Bar *string `type:"string"`
  229. Baz *bool `type:"boolean"`
  230. Foo *string `type:"string"`
  231. }
  232. //The service client's operations are safe to be used concurrently.
  233. // It is not safe to mutate any of the client's properties though.
  234. type InputService2ProtocolTest struct {
  235. *client.Client
  236. }
  237. // New creates a new instance of the InputService2ProtocolTest client with a session.
  238. // If additional configuration is needed for the client instance use the optional
  239. // aws.Config parameter to add your extra config.
  240. //
  241. // Example:
  242. // // Create a InputService2ProtocolTest client from just a session.
  243. // svc := inputservice2protocoltest.New(mySession)
  244. //
  245. // // Create a InputService2ProtocolTest client with additional configuration
  246. // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  247. func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
  248. c := p.ClientConfig("inputservice2protocoltest", cfgs...)
  249. return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  250. }
  251. // newClient creates, initializes and returns a new service client instance.
  252. func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest {
  253. svc := &InputService2ProtocolTest{
  254. Client: client.New(
  255. cfg,
  256. metadata.ClientInfo{
  257. ServiceName: "inputservice2protocoltest",
  258. SigningRegion: signingRegion,
  259. Endpoint: endpoint,
  260. APIVersion: "2014-01-01",
  261. },
  262. handlers,
  263. ),
  264. }
  265. // Handlers
  266. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  267. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  268. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  269. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  270. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  271. return svc
  272. }
  273. // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
  274. // custom request initialization.
  275. func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  276. req := c.NewRequest(op, params, data)
  277. return req
  278. }
  279. const opInputService2TestCaseOperation1 = "OperationName"
  280. // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
  281. // client's request for the InputService2TestCaseOperation1 operation. The "output" return
  282. // value can be used to capture response data after the request's "Send" method
  283. // is called.
  284. //
  285. // Creating a request object using this method should be used when you want to inject
  286. // custom logic into the request's lifecycle using a custom handler, or if you want to
  287. // access properties on the request object before or after sending the request. If
  288. // you just want the service response, call the InputService2TestCaseOperation1 method directly
  289. // instead.
  290. //
  291. // Note: You must call the "Send" method on the returned request object in order
  292. // to execute the request.
  293. //
  294. // // Example sending a request using the InputService2TestCaseOperation1Request method.
  295. // req, resp := client.InputService2TestCaseOperation1Request(params)
  296. //
  297. // err := req.Send()
  298. // if err == nil { // resp is now filled
  299. // fmt.Println(resp)
  300. // }
  301. //
  302. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
  303. op := &request.Operation{
  304. Name: opInputService2TestCaseOperation1,
  305. HTTPPath: "/",
  306. }
  307. if input == nil {
  308. input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
  309. }
  310. req = c.newRequest(op, input, output)
  311. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  312. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  313. output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
  314. req.Data = output
  315. return
  316. }
  317. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  318. req, out := c.InputService2TestCaseOperation1Request(input)
  319. err := req.Send()
  320. return out, err
  321. }
  322. type InputService2TestShapeInputService2TestCaseOperation1Input struct {
  323. _ struct{} `type:"structure"`
  324. StructArg *InputService2TestShapeStructType `type:"structure"`
  325. }
  326. type InputService2TestShapeInputService2TestCaseOperation1Output struct {
  327. _ struct{} `type:"structure"`
  328. }
  329. type InputService2TestShapeStructType struct {
  330. _ struct{} `type:"structure"`
  331. ScalarArg *string `type:"string"`
  332. }
  333. //The service client's operations are safe to be used concurrently.
  334. // It is not safe to mutate any of the client's properties though.
  335. type InputService3ProtocolTest struct {
  336. *client.Client
  337. }
  338. // New creates a new instance of the InputService3ProtocolTest client with a session.
  339. // If additional configuration is needed for the client instance use the optional
  340. // aws.Config parameter to add your extra config.
  341. //
  342. // Example:
  343. // // Create a InputService3ProtocolTest client from just a session.
  344. // svc := inputservice3protocoltest.New(mySession)
  345. //
  346. // // Create a InputService3ProtocolTest client with additional configuration
  347. // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  348. func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
  349. c := p.ClientConfig("inputservice3protocoltest", cfgs...)
  350. return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  351. }
  352. // newClient creates, initializes and returns a new service client instance.
  353. func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest {
  354. svc := &InputService3ProtocolTest{
  355. Client: client.New(
  356. cfg,
  357. metadata.ClientInfo{
  358. ServiceName: "inputservice3protocoltest",
  359. SigningRegion: signingRegion,
  360. Endpoint: endpoint,
  361. APIVersion: "2014-01-01",
  362. },
  363. handlers,
  364. ),
  365. }
  366. // Handlers
  367. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  368. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  369. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  370. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  371. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  372. return svc
  373. }
  374. // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
  375. // custom request initialization.
  376. func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  377. req := c.NewRequest(op, params, data)
  378. return req
  379. }
  380. const opInputService3TestCaseOperation1 = "OperationName"
  381. // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
  382. // client's request for the InputService3TestCaseOperation1 operation. The "output" return
  383. // value can be used to capture response data after the request's "Send" method
  384. // is called.
  385. //
  386. // Creating a request object using this method should be used when you want to inject
  387. // custom logic into the request's lifecycle using a custom handler, or if you want to
  388. // access properties on the request object before or after sending the request. If
  389. // you just want the service response, call the InputService3TestCaseOperation1 method directly
  390. // instead.
  391. //
  392. // Note: You must call the "Send" method on the returned request object in order
  393. // to execute the request.
  394. //
  395. // // Example sending a request using the InputService3TestCaseOperation1Request method.
  396. // req, resp := client.InputService3TestCaseOperation1Request(params)
  397. //
  398. // err := req.Send()
  399. // if err == nil { // resp is now filled
  400. // fmt.Println(resp)
  401. // }
  402. //
  403. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
  404. op := &request.Operation{
  405. Name: opInputService3TestCaseOperation1,
  406. HTTPPath: "/",
  407. }
  408. if input == nil {
  409. input = &InputService3TestShapeInputShape{}
  410. }
  411. req = c.newRequest(op, input, output)
  412. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  413. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  414. output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
  415. req.Data = output
  416. return
  417. }
  418. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  419. req, out := c.InputService3TestCaseOperation1Request(input)
  420. err := req.Send()
  421. return out, err
  422. }
  423. const opInputService3TestCaseOperation2 = "OperationName"
  424. // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
  425. // client's request for the InputService3TestCaseOperation2 operation. The "output" return
  426. // value can be used to capture response data after the request's "Send" method
  427. // is called.
  428. //
  429. // Creating a request object using this method should be used when you want to inject
  430. // custom logic into the request's lifecycle using a custom handler, or if you want to
  431. // access properties on the request object before or after sending the request. If
  432. // you just want the service response, call the InputService3TestCaseOperation2 method directly
  433. // instead.
  434. //
  435. // Note: You must call the "Send" method on the returned request object in order
  436. // to execute the request.
  437. //
  438. // // Example sending a request using the InputService3TestCaseOperation2Request method.
  439. // req, resp := client.InputService3TestCaseOperation2Request(params)
  440. //
  441. // err := req.Send()
  442. // if err == nil { // resp is now filled
  443. // fmt.Println(resp)
  444. // }
  445. //
  446. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
  447. op := &request.Operation{
  448. Name: opInputService3TestCaseOperation2,
  449. HTTPPath: "/",
  450. }
  451. if input == nil {
  452. input = &InputService3TestShapeInputShape{}
  453. }
  454. req = c.newRequest(op, input, output)
  455. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  456. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  457. output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
  458. req.Data = output
  459. return
  460. }
  461. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
  462. req, out := c.InputService3TestCaseOperation2Request(input)
  463. err := req.Send()
  464. return out, err
  465. }
  466. type InputService3TestShapeInputService3TestCaseOperation1Output struct {
  467. _ struct{} `type:"structure"`
  468. }
  469. type InputService3TestShapeInputService3TestCaseOperation2Output struct {
  470. _ struct{} `type:"structure"`
  471. }
  472. type InputService3TestShapeInputShape struct {
  473. _ struct{} `type:"structure"`
  474. ListArg []*string `type:"list"`
  475. }
  476. //The service client's operations are safe to be used concurrently.
  477. // It is not safe to mutate any of the client's properties though.
  478. type InputService4ProtocolTest struct {
  479. *client.Client
  480. }
  481. // New creates a new instance of the InputService4ProtocolTest client with a session.
  482. // If additional configuration is needed for the client instance use the optional
  483. // aws.Config parameter to add your extra config.
  484. //
  485. // Example:
  486. // // Create a InputService4ProtocolTest client from just a session.
  487. // svc := inputservice4protocoltest.New(mySession)
  488. //
  489. // // Create a InputService4ProtocolTest client with additional configuration
  490. // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  491. func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
  492. c := p.ClientConfig("inputservice4protocoltest", cfgs...)
  493. return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  494. }
  495. // newClient creates, initializes and returns a new service client instance.
  496. func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest {
  497. svc := &InputService4ProtocolTest{
  498. Client: client.New(
  499. cfg,
  500. metadata.ClientInfo{
  501. ServiceName: "inputservice4protocoltest",
  502. SigningRegion: signingRegion,
  503. Endpoint: endpoint,
  504. APIVersion: "2014-01-01",
  505. },
  506. handlers,
  507. ),
  508. }
  509. // Handlers
  510. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  511. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  512. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  513. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  514. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  515. return svc
  516. }
  517. // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
  518. // custom request initialization.
  519. func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  520. req := c.NewRequest(op, params, data)
  521. return req
  522. }
  523. const opInputService4TestCaseOperation1 = "OperationName"
  524. // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
  525. // client's request for the InputService4TestCaseOperation1 operation. The "output" return
  526. // value can be used to capture response data after the request's "Send" method
  527. // is called.
  528. //
  529. // Creating a request object using this method should be used when you want to inject
  530. // custom logic into the request's lifecycle using a custom handler, or if you want to
  531. // access properties on the request object before or after sending the request. If
  532. // you just want the service response, call the InputService4TestCaseOperation1 method directly
  533. // instead.
  534. //
  535. // Note: You must call the "Send" method on the returned request object in order
  536. // to execute the request.
  537. //
  538. // // Example sending a request using the InputService4TestCaseOperation1Request method.
  539. // req, resp := client.InputService4TestCaseOperation1Request(params)
  540. //
  541. // err := req.Send()
  542. // if err == nil { // resp is now filled
  543. // fmt.Println(resp)
  544. // }
  545. //
  546. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
  547. op := &request.Operation{
  548. Name: opInputService4TestCaseOperation1,
  549. HTTPPath: "/",
  550. }
  551. if input == nil {
  552. input = &InputService4TestShapeInputShape{}
  553. }
  554. req = c.newRequest(op, input, output)
  555. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  556. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  557. output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
  558. req.Data = output
  559. return
  560. }
  561. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  562. req, out := c.InputService4TestCaseOperation1Request(input)
  563. err := req.Send()
  564. return out, err
  565. }
  566. const opInputService4TestCaseOperation2 = "OperationName"
  567. // InputService4TestCaseOperation2Request generates a "aws/request.Request" representing the
  568. // client's request for the InputService4TestCaseOperation2 operation. The "output" return
  569. // value can be used to capture response data after the request's "Send" method
  570. // is called.
  571. //
  572. // Creating a request object using this method should be used when you want to inject
  573. // custom logic into the request's lifecycle using a custom handler, or if you want to
  574. // access properties on the request object before or after sending the request. If
  575. // you just want the service response, call the InputService4TestCaseOperation2 method directly
  576. // instead.
  577. //
  578. // Note: You must call the "Send" method on the returned request object in order
  579. // to execute the request.
  580. //
  581. // // Example sending a request using the InputService4TestCaseOperation2Request method.
  582. // req, resp := client.InputService4TestCaseOperation2Request(params)
  583. //
  584. // err := req.Send()
  585. // if err == nil { // resp is now filled
  586. // fmt.Println(resp)
  587. // }
  588. //
  589. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) {
  590. op := &request.Operation{
  591. Name: opInputService4TestCaseOperation2,
  592. HTTPPath: "/",
  593. }
  594. if input == nil {
  595. input = &InputService4TestShapeInputShape{}
  596. }
  597. req = c.newRequest(op, input, output)
  598. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  599. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  600. output = &InputService4TestShapeInputService4TestCaseOperation2Output{}
  601. req.Data = output
  602. return
  603. }
  604. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
  605. req, out := c.InputService4TestCaseOperation2Request(input)
  606. err := req.Send()
  607. return out, err
  608. }
  609. type InputService4TestShapeInputService4TestCaseOperation1Output struct {
  610. _ struct{} `type:"structure"`
  611. }
  612. type InputService4TestShapeInputService4TestCaseOperation2Output struct {
  613. _ struct{} `type:"structure"`
  614. }
  615. type InputService4TestShapeInputShape struct {
  616. _ struct{} `type:"structure"`
  617. ListArg []*string `type:"list" flattened:"true"`
  618. NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
  619. ScalarArg *string `type:"string"`
  620. }
  621. //The service client's operations are safe to be used concurrently.
  622. // It is not safe to mutate any of the client's properties though.
  623. type InputService5ProtocolTest struct {
  624. *client.Client
  625. }
  626. // New creates a new instance of the InputService5ProtocolTest client with a session.
  627. // If additional configuration is needed for the client instance use the optional
  628. // aws.Config parameter to add your extra config.
  629. //
  630. // Example:
  631. // // Create a InputService5ProtocolTest client from just a session.
  632. // svc := inputservice5protocoltest.New(mySession)
  633. //
  634. // // Create a InputService5ProtocolTest client with additional configuration
  635. // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  636. func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
  637. c := p.ClientConfig("inputservice5protocoltest", cfgs...)
  638. return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  639. }
  640. // newClient creates, initializes and returns a new service client instance.
  641. func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest {
  642. svc := &InputService5ProtocolTest{
  643. Client: client.New(
  644. cfg,
  645. metadata.ClientInfo{
  646. ServiceName: "inputservice5protocoltest",
  647. SigningRegion: signingRegion,
  648. Endpoint: endpoint,
  649. APIVersion: "2014-01-01",
  650. },
  651. handlers,
  652. ),
  653. }
  654. // Handlers
  655. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  656. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  657. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  658. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  659. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  660. return svc
  661. }
  662. // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
  663. // custom request initialization.
  664. func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  665. req := c.NewRequest(op, params, data)
  666. return req
  667. }
  668. const opInputService5TestCaseOperation1 = "OperationName"
  669. // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
  670. // client's request for the InputService5TestCaseOperation1 operation. The "output" return
  671. // value can be used to capture response data after the request's "Send" method
  672. // is called.
  673. //
  674. // Creating a request object using this method should be used when you want to inject
  675. // custom logic into the request's lifecycle using a custom handler, or if you want to
  676. // access properties on the request object before or after sending the request. If
  677. // you just want the service response, call the InputService5TestCaseOperation1 method directly
  678. // instead.
  679. //
  680. // Note: You must call the "Send" method on the returned request object in order
  681. // to execute the request.
  682. //
  683. // // Example sending a request using the InputService5TestCaseOperation1Request method.
  684. // req, resp := client.InputService5TestCaseOperation1Request(params)
  685. //
  686. // err := req.Send()
  687. // if err == nil { // resp is now filled
  688. // fmt.Println(resp)
  689. // }
  690. //
  691. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
  692. op := &request.Operation{
  693. Name: opInputService5TestCaseOperation1,
  694. HTTPPath: "/",
  695. }
  696. if input == nil {
  697. input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
  698. }
  699. req = c.newRequest(op, input, output)
  700. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  701. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  702. output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
  703. req.Data = output
  704. return
  705. }
  706. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  707. req, out := c.InputService5TestCaseOperation1Request(input)
  708. err := req.Send()
  709. return out, err
  710. }
  711. type InputService5TestShapeInputService5TestCaseOperation1Input struct {
  712. _ struct{} `type:"structure"`
  713. MapArg map[string]*string `type:"map" flattened:"true"`
  714. }
  715. type InputService5TestShapeInputService5TestCaseOperation1Output struct {
  716. _ struct{} `type:"structure"`
  717. }
  718. //The service client's operations are safe to be used concurrently.
  719. // It is not safe to mutate any of the client's properties though.
  720. type InputService6ProtocolTest struct {
  721. *client.Client
  722. }
  723. // New creates a new instance of the InputService6ProtocolTest client with a session.
  724. // If additional configuration is needed for the client instance use the optional
  725. // aws.Config parameter to add your extra config.
  726. //
  727. // Example:
  728. // // Create a InputService6ProtocolTest client from just a session.
  729. // svc := inputservice6protocoltest.New(mySession)
  730. //
  731. // // Create a InputService6ProtocolTest client with additional configuration
  732. // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  733. func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
  734. c := p.ClientConfig("inputservice6protocoltest", cfgs...)
  735. return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  736. }
  737. // newClient creates, initializes and returns a new service client instance.
  738. func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest {
  739. svc := &InputService6ProtocolTest{
  740. Client: client.New(
  741. cfg,
  742. metadata.ClientInfo{
  743. ServiceName: "inputservice6protocoltest",
  744. SigningRegion: signingRegion,
  745. Endpoint: endpoint,
  746. APIVersion: "2014-01-01",
  747. },
  748. handlers,
  749. ),
  750. }
  751. // Handlers
  752. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  753. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  754. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  755. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  756. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  757. return svc
  758. }
  759. // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
  760. // custom request initialization.
  761. func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  762. req := c.NewRequest(op, params, data)
  763. return req
  764. }
  765. const opInputService6TestCaseOperation1 = "OperationName"
  766. // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
  767. // client's request for the InputService6TestCaseOperation1 operation. The "output" return
  768. // value can be used to capture response data after the request's "Send" method
  769. // is called.
  770. //
  771. // Creating a request object using this method should be used when you want to inject
  772. // custom logic into the request's lifecycle using a custom handler, or if you want to
  773. // access properties on the request object before or after sending the request. If
  774. // you just want the service response, call the InputService6TestCaseOperation1 method directly
  775. // instead.
  776. //
  777. // Note: You must call the "Send" method on the returned request object in order
  778. // to execute the request.
  779. //
  780. // // Example sending a request using the InputService6TestCaseOperation1Request method.
  781. // req, resp := client.InputService6TestCaseOperation1Request(params)
  782. //
  783. // err := req.Send()
  784. // if err == nil { // resp is now filled
  785. // fmt.Println(resp)
  786. // }
  787. //
  788. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
  789. op := &request.Operation{
  790. Name: opInputService6TestCaseOperation1,
  791. HTTPPath: "/",
  792. }
  793. if input == nil {
  794. input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
  795. }
  796. req = c.newRequest(op, input, output)
  797. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  798. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  799. output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
  800. req.Data = output
  801. return
  802. }
  803. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  804. req, out := c.InputService6TestCaseOperation1Request(input)
  805. err := req.Send()
  806. return out, err
  807. }
  808. type InputService6TestShapeInputService6TestCaseOperation1Input struct {
  809. _ struct{} `type:"structure"`
  810. ListArg []*string `locationNameList:"item" type:"list"`
  811. }
  812. type InputService6TestShapeInputService6TestCaseOperation1Output struct {
  813. _ struct{} `type:"structure"`
  814. }
  815. //The service client's operations are safe to be used concurrently.
  816. // It is not safe to mutate any of the client's properties though.
  817. type InputService7ProtocolTest struct {
  818. *client.Client
  819. }
  820. // New creates a new instance of the InputService7ProtocolTest client with a session.
  821. // If additional configuration is needed for the client instance use the optional
  822. // aws.Config parameter to add your extra config.
  823. //
  824. // Example:
  825. // // Create a InputService7ProtocolTest client from just a session.
  826. // svc := inputservice7protocoltest.New(mySession)
  827. //
  828. // // Create a InputService7ProtocolTest client with additional configuration
  829. // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  830. func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
  831. c := p.ClientConfig("inputservice7protocoltest", cfgs...)
  832. return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  833. }
  834. // newClient creates, initializes and returns a new service client instance.
  835. func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest {
  836. svc := &InputService7ProtocolTest{
  837. Client: client.New(
  838. cfg,
  839. metadata.ClientInfo{
  840. ServiceName: "inputservice7protocoltest",
  841. SigningRegion: signingRegion,
  842. Endpoint: endpoint,
  843. APIVersion: "2014-01-01",
  844. },
  845. handlers,
  846. ),
  847. }
  848. // Handlers
  849. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  850. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  851. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  852. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  853. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  854. return svc
  855. }
  856. // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
  857. // custom request initialization.
  858. func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  859. req := c.NewRequest(op, params, data)
  860. return req
  861. }
  862. const opInputService7TestCaseOperation1 = "OperationName"
  863. // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
  864. // client's request for the InputService7TestCaseOperation1 operation. The "output" return
  865. // value can be used to capture response data after the request's "Send" method
  866. // is called.
  867. //
  868. // Creating a request object using this method should be used when you want to inject
  869. // custom logic into the request's lifecycle using a custom handler, or if you want to
  870. // access properties on the request object before or after sending the request. If
  871. // you just want the service response, call the InputService7TestCaseOperation1 method directly
  872. // instead.
  873. //
  874. // Note: You must call the "Send" method on the returned request object in order
  875. // to execute the request.
  876. //
  877. // // Example sending a request using the InputService7TestCaseOperation1Request method.
  878. // req, resp := client.InputService7TestCaseOperation1Request(params)
  879. //
  880. // err := req.Send()
  881. // if err == nil { // resp is now filled
  882. // fmt.Println(resp)
  883. // }
  884. //
  885. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
  886. op := &request.Operation{
  887. Name: opInputService7TestCaseOperation1,
  888. HTTPPath: "/",
  889. }
  890. if input == nil {
  891. input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
  892. }
  893. req = c.newRequest(op, input, output)
  894. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  895. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  896. output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
  897. req.Data = output
  898. return
  899. }
  900. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  901. req, out := c.InputService7TestCaseOperation1Request(input)
  902. err := req.Send()
  903. return out, err
  904. }
  905. type InputService7TestShapeInputService7TestCaseOperation1Input struct {
  906. _ struct{} `type:"structure"`
  907. ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"`
  908. ScalarArg *string `type:"string"`
  909. }
  910. type InputService7TestShapeInputService7TestCaseOperation1Output struct {
  911. _ struct{} `type:"structure"`
  912. }
  913. //The service client's operations are safe to be used concurrently.
  914. // It is not safe to mutate any of the client's properties though.
  915. type InputService8ProtocolTest struct {
  916. *client.Client
  917. }
  918. // New creates a new instance of the InputService8ProtocolTest client with a session.
  919. // If additional configuration is needed for the client instance use the optional
  920. // aws.Config parameter to add your extra config.
  921. //
  922. // Example:
  923. // // Create a InputService8ProtocolTest client from just a session.
  924. // svc := inputservice8protocoltest.New(mySession)
  925. //
  926. // // Create a InputService8ProtocolTest client with additional configuration
  927. // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  928. func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
  929. c := p.ClientConfig("inputservice8protocoltest", cfgs...)
  930. return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  931. }
  932. // newClient creates, initializes and returns a new service client instance.
  933. func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest {
  934. svc := &InputService8ProtocolTest{
  935. Client: client.New(
  936. cfg,
  937. metadata.ClientInfo{
  938. ServiceName: "inputservice8protocoltest",
  939. SigningRegion: signingRegion,
  940. Endpoint: endpoint,
  941. APIVersion: "2014-01-01",
  942. },
  943. handlers,
  944. ),
  945. }
  946. // Handlers
  947. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  948. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  949. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  950. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  951. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  952. return svc
  953. }
  954. // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
  955. // custom request initialization.
  956. func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  957. req := c.NewRequest(op, params, data)
  958. return req
  959. }
  960. const opInputService8TestCaseOperation1 = "OperationName"
  961. // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
  962. // client's request for the InputService8TestCaseOperation1 operation. The "output" return
  963. // value can be used to capture response data after the request's "Send" method
  964. // is called.
  965. //
  966. // Creating a request object using this method should be used when you want to inject
  967. // custom logic into the request's lifecycle using a custom handler, or if you want to
  968. // access properties on the request object before or after sending the request. If
  969. // you just want the service response, call the InputService8TestCaseOperation1 method directly
  970. // instead.
  971. //
  972. // Note: You must call the "Send" method on the returned request object in order
  973. // to execute the request.
  974. //
  975. // // Example sending a request using the InputService8TestCaseOperation1Request method.
  976. // req, resp := client.InputService8TestCaseOperation1Request(params)
  977. //
  978. // err := req.Send()
  979. // if err == nil { // resp is now filled
  980. // fmt.Println(resp)
  981. // }
  982. //
  983. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
  984. op := &request.Operation{
  985. Name: opInputService8TestCaseOperation1,
  986. HTTPPath: "/",
  987. }
  988. if input == nil {
  989. input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
  990. }
  991. req = c.newRequest(op, input, output)
  992. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  993. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  994. output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
  995. req.Data = output
  996. return
  997. }
  998. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  999. req, out := c.InputService8TestCaseOperation1Request(input)
  1000. err := req.Send()
  1001. return out, err
  1002. }
  1003. type InputService8TestShapeInputService8TestCaseOperation1Input struct {
  1004. _ struct{} `type:"structure"`
  1005. MapArg map[string]*string `type:"map"`
  1006. }
  1007. type InputService8TestShapeInputService8TestCaseOperation1Output struct {
  1008. _ struct{} `type:"structure"`
  1009. }
  1010. //The service client's operations are safe to be used concurrently.
  1011. // It is not safe to mutate any of the client's properties though.
  1012. type InputService9ProtocolTest struct {
  1013. *client.Client
  1014. }
  1015. // New creates a new instance of the InputService9ProtocolTest client with a session.
  1016. // If additional configuration is needed for the client instance use the optional
  1017. // aws.Config parameter to add your extra config.
  1018. //
  1019. // Example:
  1020. // // Create a InputService9ProtocolTest client from just a session.
  1021. // svc := inputservice9protocoltest.New(mySession)
  1022. //
  1023. // // Create a InputService9ProtocolTest client with additional configuration
  1024. // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1025. func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
  1026. c := p.ClientConfig("inputservice9protocoltest", cfgs...)
  1027. return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1028. }
  1029. // newClient creates, initializes and returns a new service client instance.
  1030. func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest {
  1031. svc := &InputService9ProtocolTest{
  1032. Client: client.New(
  1033. cfg,
  1034. metadata.ClientInfo{
  1035. ServiceName: "inputservice9protocoltest",
  1036. SigningRegion: signingRegion,
  1037. Endpoint: endpoint,
  1038. APIVersion: "2014-01-01",
  1039. },
  1040. handlers,
  1041. ),
  1042. }
  1043. // Handlers
  1044. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1045. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1046. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1047. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1048. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1049. return svc
  1050. }
  1051. // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
  1052. // custom request initialization.
  1053. func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1054. req := c.NewRequest(op, params, data)
  1055. return req
  1056. }
  1057. const opInputService9TestCaseOperation1 = "OperationName"
  1058. // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
  1059. // client's request for the InputService9TestCaseOperation1 operation. The "output" return
  1060. // value can be used to capture response data after the request's "Send" method
  1061. // is called.
  1062. //
  1063. // Creating a request object using this method should be used when you want to inject
  1064. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1065. // access properties on the request object before or after sending the request. If
  1066. // you just want the service response, call the InputService9TestCaseOperation1 method directly
  1067. // instead.
  1068. //
  1069. // Note: You must call the "Send" method on the returned request object in order
  1070. // to execute the request.
  1071. //
  1072. // // Example sending a request using the InputService9TestCaseOperation1Request method.
  1073. // req, resp := client.InputService9TestCaseOperation1Request(params)
  1074. //
  1075. // err := req.Send()
  1076. // if err == nil { // resp is now filled
  1077. // fmt.Println(resp)
  1078. // }
  1079. //
  1080. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
  1081. op := &request.Operation{
  1082. Name: opInputService9TestCaseOperation1,
  1083. HTTPPath: "/",
  1084. }
  1085. if input == nil {
  1086. input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
  1087. }
  1088. req = c.newRequest(op, input, output)
  1089. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1090. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1091. output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
  1092. req.Data = output
  1093. return
  1094. }
  1095. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  1096. req, out := c.InputService9TestCaseOperation1Request(input)
  1097. err := req.Send()
  1098. return out, err
  1099. }
  1100. type InputService9TestShapeInputService9TestCaseOperation1Input struct {
  1101. _ struct{} `type:"structure"`
  1102. MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"`
  1103. }
  1104. type InputService9TestShapeInputService9TestCaseOperation1Output struct {
  1105. _ struct{} `type:"structure"`
  1106. }
  1107. //The service client's operations are safe to be used concurrently.
  1108. // It is not safe to mutate any of the client's properties though.
  1109. type InputService10ProtocolTest struct {
  1110. *client.Client
  1111. }
  1112. // New creates a new instance of the InputService10ProtocolTest client with a session.
  1113. // If additional configuration is needed for the client instance use the optional
  1114. // aws.Config parameter to add your extra config.
  1115. //
  1116. // Example:
  1117. // // Create a InputService10ProtocolTest client from just a session.
  1118. // svc := inputservice10protocoltest.New(mySession)
  1119. //
  1120. // // Create a InputService10ProtocolTest client with additional configuration
  1121. // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1122. func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
  1123. c := p.ClientConfig("inputservice10protocoltest", cfgs...)
  1124. return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1125. }
  1126. // newClient creates, initializes and returns a new service client instance.
  1127. func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest {
  1128. svc := &InputService10ProtocolTest{
  1129. Client: client.New(
  1130. cfg,
  1131. metadata.ClientInfo{
  1132. ServiceName: "inputservice10protocoltest",
  1133. SigningRegion: signingRegion,
  1134. Endpoint: endpoint,
  1135. APIVersion: "2014-01-01",
  1136. },
  1137. handlers,
  1138. ),
  1139. }
  1140. // Handlers
  1141. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1142. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1143. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1144. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1145. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1146. return svc
  1147. }
  1148. // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
  1149. // custom request initialization.
  1150. func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1151. req := c.NewRequest(op, params, data)
  1152. return req
  1153. }
  1154. const opInputService10TestCaseOperation1 = "OperationName"
  1155. // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
  1156. // client's request for the InputService10TestCaseOperation1 operation. The "output" return
  1157. // value can be used to capture response data after the request's "Send" method
  1158. // is called.
  1159. //
  1160. // Creating a request object using this method should be used when you want to inject
  1161. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1162. // access properties on the request object before or after sending the request. If
  1163. // you just want the service response, call the InputService10TestCaseOperation1 method directly
  1164. // instead.
  1165. //
  1166. // Note: You must call the "Send" method on the returned request object in order
  1167. // to execute the request.
  1168. //
  1169. // // Example sending a request using the InputService10TestCaseOperation1Request method.
  1170. // req, resp := client.InputService10TestCaseOperation1Request(params)
  1171. //
  1172. // err := req.Send()
  1173. // if err == nil { // resp is now filled
  1174. // fmt.Println(resp)
  1175. // }
  1176. //
  1177. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
  1178. op := &request.Operation{
  1179. Name: opInputService10TestCaseOperation1,
  1180. HTTPPath: "/",
  1181. }
  1182. if input == nil {
  1183. input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
  1184. }
  1185. req = c.newRequest(op, input, output)
  1186. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1187. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1188. output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
  1189. req.Data = output
  1190. return
  1191. }
  1192. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1193. req, out := c.InputService10TestCaseOperation1Request(input)
  1194. err := req.Send()
  1195. return out, err
  1196. }
  1197. type InputService10TestShapeInputService10TestCaseOperation1Input struct {
  1198. _ struct{} `type:"structure"`
  1199. // BlobArg is automatically base64 encoded/decoded by the SDK.
  1200. BlobArg []byte `type:"blob"`
  1201. }
  1202. type InputService10TestShapeInputService10TestCaseOperation1Output struct {
  1203. _ struct{} `type:"structure"`
  1204. }
  1205. //The service client's operations are safe to be used concurrently.
  1206. // It is not safe to mutate any of the client's properties though.
  1207. type InputService11ProtocolTest struct {
  1208. *client.Client
  1209. }
  1210. // New creates a new instance of the InputService11ProtocolTest client with a session.
  1211. // If additional configuration is needed for the client instance use the optional
  1212. // aws.Config parameter to add your extra config.
  1213. //
  1214. // Example:
  1215. // // Create a InputService11ProtocolTest client from just a session.
  1216. // svc := inputservice11protocoltest.New(mySession)
  1217. //
  1218. // // Create a InputService11ProtocolTest client with additional configuration
  1219. // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1220. func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
  1221. c := p.ClientConfig("inputservice11protocoltest", cfgs...)
  1222. return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1223. }
  1224. // newClient creates, initializes and returns a new service client instance.
  1225. func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest {
  1226. svc := &InputService11ProtocolTest{
  1227. Client: client.New(
  1228. cfg,
  1229. metadata.ClientInfo{
  1230. ServiceName: "inputservice11protocoltest",
  1231. SigningRegion: signingRegion,
  1232. Endpoint: endpoint,
  1233. APIVersion: "2014-01-01",
  1234. },
  1235. handlers,
  1236. ),
  1237. }
  1238. // Handlers
  1239. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1240. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1241. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1242. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1243. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1244. return svc
  1245. }
  1246. // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
  1247. // custom request initialization.
  1248. func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1249. req := c.NewRequest(op, params, data)
  1250. return req
  1251. }
  1252. const opInputService11TestCaseOperation1 = "OperationName"
  1253. // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
  1254. // client's request for the InputService11TestCaseOperation1 operation. The "output" return
  1255. // value can be used to capture response data after the request's "Send" method
  1256. // is called.
  1257. //
  1258. // Creating a request object using this method should be used when you want to inject
  1259. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1260. // access properties on the request object before or after sending the request. If
  1261. // you just want the service response, call the InputService11TestCaseOperation1 method directly
  1262. // instead.
  1263. //
  1264. // Note: You must call the "Send" method on the returned request object in order
  1265. // to execute the request.
  1266. //
  1267. // // Example sending a request using the InputService11TestCaseOperation1Request method.
  1268. // req, resp := client.InputService11TestCaseOperation1Request(params)
  1269. //
  1270. // err := req.Send()
  1271. // if err == nil { // resp is now filled
  1272. // fmt.Println(resp)
  1273. // }
  1274. //
  1275. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
  1276. op := &request.Operation{
  1277. Name: opInputService11TestCaseOperation1,
  1278. HTTPPath: "/",
  1279. }
  1280. if input == nil {
  1281. input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
  1282. }
  1283. req = c.newRequest(op, input, output)
  1284. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1285. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1286. output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
  1287. req.Data = output
  1288. return
  1289. }
  1290. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1291. req, out := c.InputService11TestCaseOperation1Request(input)
  1292. err := req.Send()
  1293. return out, err
  1294. }
  1295. type InputService11TestShapeInputService11TestCaseOperation1Input struct {
  1296. _ struct{} `type:"structure"`
  1297. TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1298. }
  1299. type InputService11TestShapeInputService11TestCaseOperation1Output struct {
  1300. _ struct{} `type:"structure"`
  1301. }
  1302. //The service client's operations are safe to be used concurrently.
  1303. // It is not safe to mutate any of the client's properties though.
  1304. type InputService12ProtocolTest struct {
  1305. *client.Client
  1306. }
  1307. // New creates a new instance of the InputService12ProtocolTest client with a session.
  1308. // If additional configuration is needed for the client instance use the optional
  1309. // aws.Config parameter to add your extra config.
  1310. //
  1311. // Example:
  1312. // // Create a InputService12ProtocolTest client from just a session.
  1313. // svc := inputservice12protocoltest.New(mySession)
  1314. //
  1315. // // Create a InputService12ProtocolTest client with additional configuration
  1316. // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1317. func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
  1318. c := p.ClientConfig("inputservice12protocoltest", cfgs...)
  1319. return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1320. }
  1321. // newClient creates, initializes and returns a new service client instance.
  1322. func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest {
  1323. svc := &InputService12ProtocolTest{
  1324. Client: client.New(
  1325. cfg,
  1326. metadata.ClientInfo{
  1327. ServiceName: "inputservice12protocoltest",
  1328. SigningRegion: signingRegion,
  1329. Endpoint: endpoint,
  1330. APIVersion: "2014-01-01",
  1331. },
  1332. handlers,
  1333. ),
  1334. }
  1335. // Handlers
  1336. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1337. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1338. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1339. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1340. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1341. return svc
  1342. }
  1343. // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
  1344. // custom request initialization.
  1345. func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1346. req := c.NewRequest(op, params, data)
  1347. return req
  1348. }
  1349. const opInputService12TestCaseOperation1 = "OperationName"
  1350. // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
  1351. // client's request for the InputService12TestCaseOperation1 operation. The "output" return
  1352. // value can be used to capture response data after the request's "Send" method
  1353. // is called.
  1354. //
  1355. // Creating a request object using this method should be used when you want to inject
  1356. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1357. // access properties on the request object before or after sending the request. If
  1358. // you just want the service response, call the InputService12TestCaseOperation1 method directly
  1359. // instead.
  1360. //
  1361. // Note: You must call the "Send" method on the returned request object in order
  1362. // to execute the request.
  1363. //
  1364. // // Example sending a request using the InputService12TestCaseOperation1Request method.
  1365. // req, resp := client.InputService12TestCaseOperation1Request(params)
  1366. //
  1367. // err := req.Send()
  1368. // if err == nil { // resp is now filled
  1369. // fmt.Println(resp)
  1370. // }
  1371. //
  1372. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
  1373. op := &request.Operation{
  1374. Name: opInputService12TestCaseOperation1,
  1375. HTTPPath: "/",
  1376. }
  1377. if input == nil {
  1378. input = &InputService12TestShapeInputShape{}
  1379. }
  1380. req = c.newRequest(op, input, output)
  1381. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1382. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1383. output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
  1384. req.Data = output
  1385. return
  1386. }
  1387. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1388. req, out := c.InputService12TestCaseOperation1Request(input)
  1389. err := req.Send()
  1390. return out, err
  1391. }
  1392. const opInputService12TestCaseOperation2 = "OperationName"
  1393. // InputService12TestCaseOperation2Request generates a "aws/request.Request" representing the
  1394. // client's request for the InputService12TestCaseOperation2 operation. The "output" return
  1395. // value can be used to capture response data after the request's "Send" method
  1396. // is called.
  1397. //
  1398. // Creating a request object using this method should be used when you want to inject
  1399. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1400. // access properties on the request object before or after sending the request. If
  1401. // you just want the service response, call the InputService12TestCaseOperation2 method directly
  1402. // instead.
  1403. //
  1404. // Note: You must call the "Send" method on the returned request object in order
  1405. // to execute the request.
  1406. //
  1407. // // Example sending a request using the InputService12TestCaseOperation2Request method.
  1408. // req, resp := client.InputService12TestCaseOperation2Request(params)
  1409. //
  1410. // err := req.Send()
  1411. // if err == nil { // resp is now filled
  1412. // fmt.Println(resp)
  1413. // }
  1414. //
  1415. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) {
  1416. op := &request.Operation{
  1417. Name: opInputService12TestCaseOperation2,
  1418. HTTPPath: "/",
  1419. }
  1420. if input == nil {
  1421. input = &InputService12TestShapeInputShape{}
  1422. }
  1423. req = c.newRequest(op, input, output)
  1424. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1425. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1426. output = &InputService12TestShapeInputService12TestCaseOperation2Output{}
  1427. req.Data = output
  1428. return
  1429. }
  1430. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) {
  1431. req, out := c.InputService12TestCaseOperation2Request(input)
  1432. err := req.Send()
  1433. return out, err
  1434. }
  1435. const opInputService12TestCaseOperation3 = "OperationName"
  1436. // InputService12TestCaseOperation3Request generates a "aws/request.Request" representing the
  1437. // client's request for the InputService12TestCaseOperation3 operation. The "output" return
  1438. // value can be used to capture response data after the request's "Send" method
  1439. // is called.
  1440. //
  1441. // Creating a request object using this method should be used when you want to inject
  1442. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1443. // access properties on the request object before or after sending the request. If
  1444. // you just want the service response, call the InputService12TestCaseOperation3 method directly
  1445. // instead.
  1446. //
  1447. // Note: You must call the "Send" method on the returned request object in order
  1448. // to execute the request.
  1449. //
  1450. // // Example sending a request using the InputService12TestCaseOperation3Request method.
  1451. // req, resp := client.InputService12TestCaseOperation3Request(params)
  1452. //
  1453. // err := req.Send()
  1454. // if err == nil { // resp is now filled
  1455. // fmt.Println(resp)
  1456. // }
  1457. //
  1458. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation3Output) {
  1459. op := &request.Operation{
  1460. Name: opInputService12TestCaseOperation3,
  1461. HTTPPath: "/",
  1462. }
  1463. if input == nil {
  1464. input = &InputService12TestShapeInputShape{}
  1465. }
  1466. req = c.newRequest(op, input, output)
  1467. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1468. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1469. output = &InputService12TestShapeInputService12TestCaseOperation3Output{}
  1470. req.Data = output
  1471. return
  1472. }
  1473. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation3Output, error) {
  1474. req, out := c.InputService12TestCaseOperation3Request(input)
  1475. err := req.Send()
  1476. return out, err
  1477. }
  1478. const opInputService12TestCaseOperation4 = "OperationName"
  1479. // InputService12TestCaseOperation4Request generates a "aws/request.Request" representing the
  1480. // client's request for the InputService12TestCaseOperation4 operation. The "output" return
  1481. // value can be used to capture response data after the request's "Send" method
  1482. // is called.
  1483. //
  1484. // Creating a request object using this method should be used when you want to inject
  1485. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1486. // access properties on the request object before or after sending the request. If
  1487. // you just want the service response, call the InputService12TestCaseOperation4 method directly
  1488. // instead.
  1489. //
  1490. // Note: You must call the "Send" method on the returned request object in order
  1491. // to execute the request.
  1492. //
  1493. // // Example sending a request using the InputService12TestCaseOperation4Request method.
  1494. // req, resp := client.InputService12TestCaseOperation4Request(params)
  1495. //
  1496. // err := req.Send()
  1497. // if err == nil { // resp is now filled
  1498. // fmt.Println(resp)
  1499. // }
  1500. //
  1501. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation4Output) {
  1502. op := &request.Operation{
  1503. Name: opInputService12TestCaseOperation4,
  1504. HTTPPath: "/",
  1505. }
  1506. if input == nil {
  1507. input = &InputService12TestShapeInputShape{}
  1508. }
  1509. req = c.newRequest(op, input, output)
  1510. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1511. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1512. output = &InputService12TestShapeInputService12TestCaseOperation4Output{}
  1513. req.Data = output
  1514. return
  1515. }
  1516. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation4Output, error) {
  1517. req, out := c.InputService12TestCaseOperation4Request(input)
  1518. err := req.Send()
  1519. return out, err
  1520. }
  1521. const opInputService12TestCaseOperation5 = "OperationName"
  1522. // InputService12TestCaseOperation5Request generates a "aws/request.Request" representing the
  1523. // client's request for the InputService12TestCaseOperation5 operation. The "output" return
  1524. // value can be used to capture response data after the request's "Send" method
  1525. // is called.
  1526. //
  1527. // Creating a request object using this method should be used when you want to inject
  1528. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1529. // access properties on the request object before or after sending the request. If
  1530. // you just want the service response, call the InputService12TestCaseOperation5 method directly
  1531. // instead.
  1532. //
  1533. // Note: You must call the "Send" method on the returned request object in order
  1534. // to execute the request.
  1535. //
  1536. // // Example sending a request using the InputService12TestCaseOperation5Request method.
  1537. // req, resp := client.InputService12TestCaseOperation5Request(params)
  1538. //
  1539. // err := req.Send()
  1540. // if err == nil { // resp is now filled
  1541. // fmt.Println(resp)
  1542. // }
  1543. //
  1544. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation5Output) {
  1545. op := &request.Operation{
  1546. Name: opInputService12TestCaseOperation5,
  1547. HTTPPath: "/",
  1548. }
  1549. if input == nil {
  1550. input = &InputService12TestShapeInputShape{}
  1551. }
  1552. req = c.newRequest(op, input, output)
  1553. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1554. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1555. output = &InputService12TestShapeInputService12TestCaseOperation5Output{}
  1556. req.Data = output
  1557. return
  1558. }
  1559. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation5Output, error) {
  1560. req, out := c.InputService12TestCaseOperation5Request(input)
  1561. err := req.Send()
  1562. return out, err
  1563. }
  1564. const opInputService12TestCaseOperation6 = "OperationName"
  1565. // InputService12TestCaseOperation6Request generates a "aws/request.Request" representing the
  1566. // client's request for the InputService12TestCaseOperation6 operation. The "output" return
  1567. // value can be used to capture response data after the request's "Send" method
  1568. // is called.
  1569. //
  1570. // Creating a request object using this method should be used when you want to inject
  1571. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1572. // access properties on the request object before or after sending the request. If
  1573. // you just want the service response, call the InputService12TestCaseOperation6 method directly
  1574. // instead.
  1575. //
  1576. // Note: You must call the "Send" method on the returned request object in order
  1577. // to execute the request.
  1578. //
  1579. // // Example sending a request using the InputService12TestCaseOperation6Request method.
  1580. // req, resp := client.InputService12TestCaseOperation6Request(params)
  1581. //
  1582. // err := req.Send()
  1583. // if err == nil { // resp is now filled
  1584. // fmt.Println(resp)
  1585. // }
  1586. //
  1587. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation6Output) {
  1588. op := &request.Operation{
  1589. Name: opInputService12TestCaseOperation6,
  1590. HTTPPath: "/",
  1591. }
  1592. if input == nil {
  1593. input = &InputService12TestShapeInputShape{}
  1594. }
  1595. req = c.newRequest(op, input, output)
  1596. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1597. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1598. output = &InputService12TestShapeInputService12TestCaseOperation6Output{}
  1599. req.Data = output
  1600. return
  1601. }
  1602. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation6Output, error) {
  1603. req, out := c.InputService12TestCaseOperation6Request(input)
  1604. err := req.Send()
  1605. return out, err
  1606. }
  1607. type InputService12TestShapeInputService12TestCaseOperation1Output struct {
  1608. _ struct{} `type:"structure"`
  1609. }
  1610. type InputService12TestShapeInputService12TestCaseOperation2Output struct {
  1611. _ struct{} `type:"structure"`
  1612. }
  1613. type InputService12TestShapeInputService12TestCaseOperation3Output struct {
  1614. _ struct{} `type:"structure"`
  1615. }
  1616. type InputService12TestShapeInputService12TestCaseOperation4Output struct {
  1617. _ struct{} `type:"structure"`
  1618. }
  1619. type InputService12TestShapeInputService12TestCaseOperation5Output struct {
  1620. _ struct{} `type:"structure"`
  1621. }
  1622. type InputService12TestShapeInputService12TestCaseOperation6Output struct {
  1623. _ struct{} `type:"structure"`
  1624. }
  1625. type InputService12TestShapeInputShape struct {
  1626. _ struct{} `type:"structure"`
  1627. RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"`
  1628. }
  1629. type InputService12TestShapeRecursiveStructType struct {
  1630. _ struct{} `type:"structure"`
  1631. NoRecurse *string `type:"string"`
  1632. RecursiveList []*InputService12TestShapeRecursiveStructType `type:"list"`
  1633. RecursiveMap map[string]*InputService12TestShapeRecursiveStructType `type:"map"`
  1634. RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"`
  1635. }
  1636. //The service client's operations are safe to be used concurrently.
  1637. // It is not safe to mutate any of the client's properties though.
  1638. type InputService13ProtocolTest struct {
  1639. *client.Client
  1640. }
  1641. // New creates a new instance of the InputService13ProtocolTest client with a session.
  1642. // If additional configuration is needed for the client instance use the optional
  1643. // aws.Config parameter to add your extra config.
  1644. //
  1645. // Example:
  1646. // // Create a InputService13ProtocolTest client from just a session.
  1647. // svc := inputservice13protocoltest.New(mySession)
  1648. //
  1649. // // Create a InputService13ProtocolTest client with additional configuration
  1650. // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1651. func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
  1652. c := p.ClientConfig("inputservice13protocoltest", cfgs...)
  1653. return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1654. }
  1655. // newClient creates, initializes and returns a new service client instance.
  1656. func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest {
  1657. svc := &InputService13ProtocolTest{
  1658. Client: client.New(
  1659. cfg,
  1660. metadata.ClientInfo{
  1661. ServiceName: "inputservice13protocoltest",
  1662. SigningRegion: signingRegion,
  1663. Endpoint: endpoint,
  1664. APIVersion: "2014-01-01",
  1665. },
  1666. handlers,
  1667. ),
  1668. }
  1669. // Handlers
  1670. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1671. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1672. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1673. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1674. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1675. return svc
  1676. }
  1677. // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
  1678. // custom request initialization.
  1679. func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1680. req := c.NewRequest(op, params, data)
  1681. return req
  1682. }
  1683. const opInputService13TestCaseOperation1 = "OperationName"
  1684. // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
  1685. // client's request for the InputService13TestCaseOperation1 operation. The "output" return
  1686. // value can be used to capture response data after the request's "Send" method
  1687. // is called.
  1688. //
  1689. // Creating a request object using this method should be used when you want to inject
  1690. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1691. // access properties on the request object before or after sending the request. If
  1692. // you just want the service response, call the InputService13TestCaseOperation1 method directly
  1693. // instead.
  1694. //
  1695. // Note: You must call the "Send" method on the returned request object in order
  1696. // to execute the request.
  1697. //
  1698. // // Example sending a request using the InputService13TestCaseOperation1Request method.
  1699. // req, resp := client.InputService13TestCaseOperation1Request(params)
  1700. //
  1701. // err := req.Send()
  1702. // if err == nil { // resp is now filled
  1703. // fmt.Println(resp)
  1704. // }
  1705. //
  1706. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
  1707. op := &request.Operation{
  1708. Name: opInputService13TestCaseOperation1,
  1709. HTTPMethod: "POST",
  1710. HTTPPath: "/path",
  1711. }
  1712. if input == nil {
  1713. input = &InputService13TestShapeInputShape{}
  1714. }
  1715. req = c.newRequest(op, input, output)
  1716. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1717. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1718. output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
  1719. req.Data = output
  1720. return
  1721. }
  1722. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  1723. req, out := c.InputService13TestCaseOperation1Request(input)
  1724. err := req.Send()
  1725. return out, err
  1726. }
  1727. const opInputService13TestCaseOperation2 = "OperationName"
  1728. // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
  1729. // client's request for the InputService13TestCaseOperation2 operation. The "output" return
  1730. // value can be used to capture response data after the request's "Send" method
  1731. // is called.
  1732. //
  1733. // Creating a request object using this method should be used when you want to inject
  1734. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1735. // access properties on the request object before or after sending the request. If
  1736. // you just want the service response, call the InputService13TestCaseOperation2 method directly
  1737. // instead.
  1738. //
  1739. // Note: You must call the "Send" method on the returned request object in order
  1740. // to execute the request.
  1741. //
  1742. // // Example sending a request using the InputService13TestCaseOperation2Request method.
  1743. // req, resp := client.InputService13TestCaseOperation2Request(params)
  1744. //
  1745. // err := req.Send()
  1746. // if err == nil { // resp is now filled
  1747. // fmt.Println(resp)
  1748. // }
  1749. //
  1750. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
  1751. op := &request.Operation{
  1752. Name: opInputService13TestCaseOperation2,
  1753. HTTPMethod: "POST",
  1754. HTTPPath: "/path",
  1755. }
  1756. if input == nil {
  1757. input = &InputService13TestShapeInputShape{}
  1758. }
  1759. req = c.newRequest(op, input, output)
  1760. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1761. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1762. output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
  1763. req.Data = output
  1764. return
  1765. }
  1766. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
  1767. req, out := c.InputService13TestCaseOperation2Request(input)
  1768. err := req.Send()
  1769. return out, err
  1770. }
  1771. type InputService13TestShapeInputService13TestCaseOperation1Output struct {
  1772. _ struct{} `type:"structure"`
  1773. }
  1774. type InputService13TestShapeInputService13TestCaseOperation2Output struct {
  1775. _ struct{} `type:"structure"`
  1776. }
  1777. type InputService13TestShapeInputShape struct {
  1778. _ struct{} `type:"structure"`
  1779. Token *string `type:"string" idempotencyToken:"true"`
  1780. }
  1781. //
  1782. // Tests begin here
  1783. //
  1784. func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) {
  1785. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1786. input := &InputService1TestShapeInputShape{
  1787. Bar: aws.String("val2"),
  1788. Foo: aws.String("val1"),
  1789. }
  1790. req, _ := svc.InputService1TestCaseOperation1Request(input)
  1791. r := req.HTTPRequest
  1792. // build request
  1793. query.Build(req)
  1794. assert.NoError(t, req.Error)
  1795. // assert body
  1796. assert.NotNil(t, r.Body)
  1797. body, _ := ioutil.ReadAll(r.Body)
  1798. awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body)))
  1799. // assert URL
  1800. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1801. // assert headers
  1802. }
  1803. func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) {
  1804. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1805. input := &InputService1TestShapeInputShape{
  1806. Baz: aws.Bool(true),
  1807. }
  1808. req, _ := svc.InputService1TestCaseOperation2Request(input)
  1809. r := req.HTTPRequest
  1810. // build request
  1811. query.Build(req)
  1812. assert.NoError(t, req.Error)
  1813. // assert body
  1814. assert.NotNil(t, r.Body)
  1815. body, _ := ioutil.ReadAll(r.Body)
  1816. awstesting.AssertQuery(t, `Action=OperationName&Baz=true&Version=2014-01-01`, util.Trim(string(body)))
  1817. // assert URL
  1818. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1819. // assert headers
  1820. }
  1821. func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) {
  1822. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1823. input := &InputService1TestShapeInputShape{
  1824. Baz: aws.Bool(false),
  1825. }
  1826. req, _ := svc.InputService1TestCaseOperation3Request(input)
  1827. r := req.HTTPRequest
  1828. // build request
  1829. query.Build(req)
  1830. assert.NoError(t, req.Error)
  1831. // assert body
  1832. assert.NotNil(t, r.Body)
  1833. body, _ := ioutil.ReadAll(r.Body)
  1834. awstesting.AssertQuery(t, `Action=OperationName&Baz=false&Version=2014-01-01`, util.Trim(string(body)))
  1835. // assert URL
  1836. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1837. // assert headers
  1838. }
  1839. func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) {
  1840. svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1841. input := &InputService2TestShapeInputService2TestCaseOperation1Input{
  1842. StructArg: &InputService2TestShapeStructType{
  1843. ScalarArg: aws.String("foo"),
  1844. },
  1845. }
  1846. req, _ := svc.InputService2TestCaseOperation1Request(input)
  1847. r := req.HTTPRequest
  1848. // build request
  1849. query.Build(req)
  1850. assert.NoError(t, req.Error)
  1851. // assert body
  1852. assert.NotNil(t, r.Body)
  1853. body, _ := ioutil.ReadAll(r.Body)
  1854. awstesting.AssertQuery(t, `Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  1855. // assert URL
  1856. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1857. // assert headers
  1858. }
  1859. func TestInputService3ProtocolTestListTypesCase1(t *testing.T) {
  1860. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1861. input := &InputService3TestShapeInputShape{
  1862. ListArg: []*string{
  1863. aws.String("foo"),
  1864. aws.String("bar"),
  1865. aws.String("baz"),
  1866. },
  1867. }
  1868. req, _ := svc.InputService3TestCaseOperation1Request(input)
  1869. r := req.HTTPRequest
  1870. // build request
  1871. query.Build(req)
  1872. assert.NoError(t, req.Error)
  1873. // assert body
  1874. assert.NotNil(t, r.Body)
  1875. body, _ := ioutil.ReadAll(r.Body)
  1876. awstesting.AssertQuery(t, `Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`, util.Trim(string(body)))
  1877. // assert URL
  1878. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1879. // assert headers
  1880. }
  1881. func TestInputService3ProtocolTestListTypesCase2(t *testing.T) {
  1882. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1883. input := &InputService3TestShapeInputShape{
  1884. ListArg: []*string{},
  1885. }
  1886. req, _ := svc.InputService3TestCaseOperation2Request(input)
  1887. r := req.HTTPRequest
  1888. // build request
  1889. query.Build(req)
  1890. assert.NoError(t, req.Error)
  1891. // assert body
  1892. assert.NotNil(t, r.Body)
  1893. body, _ := ioutil.ReadAll(r.Body)
  1894. awstesting.AssertQuery(t, `Action=OperationName&ListArg=&Version=2014-01-01`, util.Trim(string(body)))
  1895. // assert URL
  1896. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1897. // assert headers
  1898. }
  1899. func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) {
  1900. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1901. input := &InputService4TestShapeInputShape{
  1902. ListArg: []*string{
  1903. aws.String("a"),
  1904. aws.String("b"),
  1905. aws.String("c"),
  1906. },
  1907. ScalarArg: aws.String("foo"),
  1908. }
  1909. req, _ := svc.InputService4TestCaseOperation1Request(input)
  1910. r := req.HTTPRequest
  1911. // build request
  1912. query.Build(req)
  1913. assert.NoError(t, req.Error)
  1914. // assert body
  1915. assert.NotNil(t, r.Body)
  1916. body, _ := ioutil.ReadAll(r.Body)
  1917. awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  1918. // assert URL
  1919. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1920. // assert headers
  1921. }
  1922. func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) {
  1923. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1924. input := &InputService4TestShapeInputShape{
  1925. NamedListArg: []*string{
  1926. aws.String("a"),
  1927. },
  1928. }
  1929. req, _ := svc.InputService4TestCaseOperation2Request(input)
  1930. r := req.HTTPRequest
  1931. // build request
  1932. query.Build(req)
  1933. assert.NoError(t, req.Error)
  1934. // assert body
  1935. assert.NotNil(t, r.Body)
  1936. body, _ := ioutil.ReadAll(r.Body)
  1937. awstesting.AssertQuery(t, `Action=OperationName&Foo.1=a&Version=2014-01-01`, util.Trim(string(body)))
  1938. // assert URL
  1939. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1940. // assert headers
  1941. }
  1942. func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) {
  1943. svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1944. input := &InputService5TestShapeInputService5TestCaseOperation1Input{
  1945. MapArg: map[string]*string{
  1946. "key1": aws.String("val1"),
  1947. "key2": aws.String("val2"),
  1948. },
  1949. }
  1950. req, _ := svc.InputService5TestCaseOperation1Request(input)
  1951. r := req.HTTPRequest
  1952. // build request
  1953. query.Build(req)
  1954. assert.NoError(t, req.Error)
  1955. // assert body
  1956. assert.NotNil(t, r.Body)
  1957. body, _ := ioutil.ReadAll(r.Body)
  1958. awstesting.AssertQuery(t, `Action=OperationName&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  1959. // assert URL
  1960. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1961. // assert headers
  1962. }
  1963. func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testing.T) {
  1964. svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1965. input := &InputService6TestShapeInputService6TestCaseOperation1Input{
  1966. ListArg: []*string{
  1967. aws.String("a"),
  1968. aws.String("b"),
  1969. aws.String("c"),
  1970. },
  1971. }
  1972. req, _ := svc.InputService6TestCaseOperation1Request(input)
  1973. r := req.HTTPRequest
  1974. // build request
  1975. query.Build(req)
  1976. assert.NoError(t, req.Error)
  1977. // assert body
  1978. assert.NotNil(t, r.Body)
  1979. body, _ := ioutil.ReadAll(r.Body)
  1980. awstesting.AssertQuery(t, `Action=OperationName&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c&Version=2014-01-01`, util.Trim(string(body)))
  1981. // assert URL
  1982. awstesting.AssertURL(t, "https://test/", r.URL.String())
  1983. // assert headers
  1984. }
  1985. func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) {
  1986. svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  1987. input := &InputService7TestShapeInputService7TestCaseOperation1Input{
  1988. ListArg: []*string{
  1989. aws.String("a"),
  1990. aws.String("b"),
  1991. aws.String("c"),
  1992. },
  1993. ScalarArg: aws.String("foo"),
  1994. }
  1995. req, _ := svc.InputService7TestCaseOperation1Request(input)
  1996. r := req.HTTPRequest
  1997. // build request
  1998. query.Build(req)
  1999. assert.NoError(t, req.Error)
  2000. // assert body
  2001. assert.NotNil(t, r.Body)
  2002. body, _ := ioutil.ReadAll(r.Body)
  2003. awstesting.AssertQuery(t, `Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  2004. // assert URL
  2005. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2006. // assert headers
  2007. }
  2008. func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) {
  2009. svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2010. input := &InputService8TestShapeInputService8TestCaseOperation1Input{
  2011. MapArg: map[string]*string{
  2012. "key1": aws.String("val1"),
  2013. "key2": aws.String("val2"),
  2014. },
  2015. }
  2016. req, _ := svc.InputService8TestCaseOperation1Request(input)
  2017. r := req.HTTPRequest
  2018. // build request
  2019. query.Build(req)
  2020. assert.NoError(t, req.Error)
  2021. // assert body
  2022. assert.NotNil(t, r.Body)
  2023. body, _ := ioutil.ReadAll(r.Body)
  2024. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  2025. // assert URL
  2026. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2027. // assert headers
  2028. }
  2029. func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testing.T) {
  2030. svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2031. input := &InputService9TestShapeInputService9TestCaseOperation1Input{
  2032. MapArg: map[string]*string{
  2033. "key1": aws.String("val1"),
  2034. "key2": aws.String("val2"),
  2035. },
  2036. }
  2037. req, _ := svc.InputService9TestCaseOperation1Request(input)
  2038. r := req.HTTPRequest
  2039. // build request
  2040. query.Build(req)
  2041. assert.NoError(t, req.Error)
  2042. // assert body
  2043. assert.NotNil(t, r.Body)
  2044. body, _ := ioutil.ReadAll(r.Body)
  2045. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2&Version=2014-01-01`, util.Trim(string(body)))
  2046. // assert URL
  2047. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2048. // assert headers
  2049. }
  2050. func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) {
  2051. svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2052. input := &InputService10TestShapeInputService10TestCaseOperation1Input{
  2053. BlobArg: []byte("foo"),
  2054. }
  2055. req, _ := svc.InputService10TestCaseOperation1Request(input)
  2056. r := req.HTTPRequest
  2057. // build request
  2058. query.Build(req)
  2059. assert.NoError(t, req.Error)
  2060. // assert body
  2061. assert.NotNil(t, r.Body)
  2062. body, _ := ioutil.ReadAll(r.Body)
  2063. awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
  2064. // assert URL
  2065. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2066. // assert headers
  2067. }
  2068. func TestInputService11ProtocolTestTimestampValuesCase1(t *testing.T) {
  2069. svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2070. input := &InputService11TestShapeInputService11TestCaseOperation1Input{
  2071. TimeArg: aws.Time(time.Unix(1422172800, 0)),
  2072. }
  2073. req, _ := svc.InputService11TestCaseOperation1Request(input)
  2074. r := req.HTTPRequest
  2075. // build request
  2076. query.Build(req)
  2077. assert.NoError(t, req.Error)
  2078. // assert body
  2079. assert.NotNil(t, r.Body)
  2080. body, _ := ioutil.ReadAll(r.Body)
  2081. awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body)))
  2082. // assert URL
  2083. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2084. // assert headers
  2085. }
  2086. func TestInputService12ProtocolTestRecursiveShapesCase1(t *testing.T) {
  2087. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2088. input := &InputService12TestShapeInputShape{
  2089. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2090. NoRecurse: aws.String("foo"),
  2091. },
  2092. }
  2093. req, _ := svc.InputService12TestCaseOperation1Request(input)
  2094. r := req.HTTPRequest
  2095. // build request
  2096. query.Build(req)
  2097. assert.NoError(t, req.Error)
  2098. // assert body
  2099. assert.NotNil(t, r.Body)
  2100. body, _ := ioutil.ReadAll(r.Body)
  2101. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2102. // assert URL
  2103. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2104. // assert headers
  2105. }
  2106. func TestInputService12ProtocolTestRecursiveShapesCase2(t *testing.T) {
  2107. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2108. input := &InputService12TestShapeInputShape{
  2109. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2110. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2111. NoRecurse: aws.String("foo"),
  2112. },
  2113. },
  2114. }
  2115. req, _ := svc.InputService12TestCaseOperation2Request(input)
  2116. r := req.HTTPRequest
  2117. // build request
  2118. query.Build(req)
  2119. assert.NoError(t, req.Error)
  2120. // assert body
  2121. assert.NotNil(t, r.Body)
  2122. body, _ := ioutil.ReadAll(r.Body)
  2123. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2124. // assert URL
  2125. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2126. // assert headers
  2127. }
  2128. func TestInputService12ProtocolTestRecursiveShapesCase3(t *testing.T) {
  2129. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2130. input := &InputService12TestShapeInputShape{
  2131. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2132. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2133. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2134. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2135. NoRecurse: aws.String("foo"),
  2136. },
  2137. },
  2138. },
  2139. },
  2140. }
  2141. req, _ := svc.InputService12TestCaseOperation3Request(input)
  2142. r := req.HTTPRequest
  2143. // build request
  2144. query.Build(req)
  2145. assert.NoError(t, req.Error)
  2146. // assert body
  2147. assert.NotNil(t, r.Body)
  2148. body, _ := ioutil.ReadAll(r.Body)
  2149. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2150. // assert URL
  2151. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2152. // assert headers
  2153. }
  2154. func TestInputService12ProtocolTestRecursiveShapesCase4(t *testing.T) {
  2155. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2156. input := &InputService12TestShapeInputShape{
  2157. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2158. RecursiveList: []*InputService12TestShapeRecursiveStructType{
  2159. {
  2160. NoRecurse: aws.String("foo"),
  2161. },
  2162. {
  2163. NoRecurse: aws.String("bar"),
  2164. },
  2165. },
  2166. },
  2167. }
  2168. req, _ := svc.InputService12TestCaseOperation4Request(input)
  2169. r := req.HTTPRequest
  2170. // build request
  2171. query.Build(req)
  2172. assert.NoError(t, req.Error)
  2173. // assert body
  2174. assert.NotNil(t, r.Body)
  2175. body, _ := ioutil.ReadAll(r.Body)
  2176. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2177. // assert URL
  2178. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2179. // assert headers
  2180. }
  2181. func TestInputService12ProtocolTestRecursiveShapesCase5(t *testing.T) {
  2182. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2183. input := &InputService12TestShapeInputShape{
  2184. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2185. RecursiveList: []*InputService12TestShapeRecursiveStructType{
  2186. {
  2187. NoRecurse: aws.String("foo"),
  2188. },
  2189. {
  2190. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2191. NoRecurse: aws.String("bar"),
  2192. },
  2193. },
  2194. },
  2195. },
  2196. }
  2197. req, _ := svc.InputService12TestCaseOperation5Request(input)
  2198. r := req.HTTPRequest
  2199. // build request
  2200. query.Build(req)
  2201. assert.NoError(t, req.Error)
  2202. // assert body
  2203. assert.NotNil(t, r.Body)
  2204. body, _ := ioutil.ReadAll(r.Body)
  2205. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2206. // assert URL
  2207. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2208. // assert headers
  2209. }
  2210. func TestInputService12ProtocolTestRecursiveShapesCase6(t *testing.T) {
  2211. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2212. input := &InputService12TestShapeInputShape{
  2213. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2214. RecursiveMap: map[string]*InputService12TestShapeRecursiveStructType{
  2215. "bar": {
  2216. NoRecurse: aws.String("bar"),
  2217. },
  2218. "foo": {
  2219. NoRecurse: aws.String("foo"),
  2220. },
  2221. },
  2222. },
  2223. }
  2224. req, _ := svc.InputService12TestCaseOperation6Request(input)
  2225. r := req.HTTPRequest
  2226. // build request
  2227. query.Build(req)
  2228. assert.NoError(t, req.Error)
  2229. // assert body
  2230. assert.NotNil(t, r.Body)
  2231. body, _ := ioutil.ReadAll(r.Body)
  2232. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2233. // assert URL
  2234. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2235. // assert headers
  2236. }
  2237. func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
  2238. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2239. input := &InputService13TestShapeInputShape{
  2240. Token: aws.String("abc123"),
  2241. }
  2242. req, _ := svc.InputService13TestCaseOperation1Request(input)
  2243. r := req.HTTPRequest
  2244. // build request
  2245. query.Build(req)
  2246. assert.NoError(t, req.Error)
  2247. // assert body
  2248. assert.NotNil(t, r.Body)
  2249. body, _ := ioutil.ReadAll(r.Body)
  2250. awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body)))
  2251. // assert URL
  2252. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2253. // assert headers
  2254. }
  2255. func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
  2256. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2257. input := &InputService13TestShapeInputShape{}
  2258. req, _ := svc.InputService13TestCaseOperation2Request(input)
  2259. r := req.HTTPRequest
  2260. // build request
  2261. query.Build(req)
  2262. assert.NoError(t, req.Error)
  2263. // assert body
  2264. assert.NotNil(t, r.Body)
  2265. body, _ := ioutil.ReadAll(r.Body)
  2266. awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body)))
  2267. // assert URL
  2268. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2269. // assert headers
  2270. }