api.go 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package applicationdiscoveryservice provides a client for AWS Application Discovery Service.
  3. package applicationdiscoveryservice
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opCreateTags = "CreateTags"
  11. // CreateTagsRequest generates a "aws/request.Request" representing the
  12. // client's request for the CreateTags operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the CreateTags method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the CreateTagsRequest method.
  26. // req, resp := client.CreateTagsRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  34. op := &request.Operation{
  35. Name: opCreateTags,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &CreateTagsInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &CreateTagsOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Creates one or more tags for configuration items. Tags are metadata that
  48. // help you categorize IT assets. This API accepts a list of multiple configuration
  49. // items.
  50. func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  51. req, out := c.CreateTagsRequest(input)
  52. err := req.Send()
  53. return out, err
  54. }
  55. const opDeleteTags = "DeleteTags"
  56. // DeleteTagsRequest generates a "aws/request.Request" representing the
  57. // client's request for the DeleteTags operation. The "output" return
  58. // value can be used to capture response data after the request's "Send" method
  59. // is called.
  60. //
  61. // Creating a request object using this method should be used when you want to inject
  62. // custom logic into the request's lifecycle using a custom handler, or if you want to
  63. // access properties on the request object before or after sending the request. If
  64. // you just want the service response, call the DeleteTags method directly
  65. // instead.
  66. //
  67. // Note: You must call the "Send" method on the returned request object in order
  68. // to execute the request.
  69. //
  70. // // Example sending a request using the DeleteTagsRequest method.
  71. // req, resp := client.DeleteTagsRequest(params)
  72. //
  73. // err := req.Send()
  74. // if err == nil { // resp is now filled
  75. // fmt.Println(resp)
  76. // }
  77. //
  78. func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  79. op := &request.Operation{
  80. Name: opDeleteTags,
  81. HTTPMethod: "POST",
  82. HTTPPath: "/",
  83. }
  84. if input == nil {
  85. input = &DeleteTagsInput{}
  86. }
  87. req = c.newRequest(op, input, output)
  88. output = &DeleteTagsOutput{}
  89. req.Data = output
  90. return
  91. }
  92. // Deletes the association between configuration items and one or more tags.
  93. // This API accepts a list of multiple configuration items.
  94. func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  95. req, out := c.DeleteTagsRequest(input)
  96. err := req.Send()
  97. return out, err
  98. }
  99. const opDescribeAgents = "DescribeAgents"
  100. // DescribeAgentsRequest generates a "aws/request.Request" representing the
  101. // client's request for the DescribeAgents operation. The "output" return
  102. // value can be used to capture response data after the request's "Send" method
  103. // is called.
  104. //
  105. // Creating a request object using this method should be used when you want to inject
  106. // custom logic into the request's lifecycle using a custom handler, or if you want to
  107. // access properties on the request object before or after sending the request. If
  108. // you just want the service response, call the DescribeAgents method directly
  109. // instead.
  110. //
  111. // Note: You must call the "Send" method on the returned request object in order
  112. // to execute the request.
  113. //
  114. // // Example sending a request using the DescribeAgentsRequest method.
  115. // req, resp := client.DescribeAgentsRequest(params)
  116. //
  117. // err := req.Send()
  118. // if err == nil { // resp is now filled
  119. // fmt.Println(resp)
  120. // }
  121. //
  122. func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) {
  123. op := &request.Operation{
  124. Name: opDescribeAgents,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &DescribeAgentsInput{}
  130. }
  131. req = c.newRequest(op, input, output)
  132. output = &DescribeAgentsOutput{}
  133. req.Data = output
  134. return
  135. }
  136. // Lists AWS agents by ID or lists all agents associated with your user account
  137. // if you did not specify an agent ID.
  138. func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) {
  139. req, out := c.DescribeAgentsRequest(input)
  140. err := req.Send()
  141. return out, err
  142. }
  143. const opDescribeConfigurations = "DescribeConfigurations"
  144. // DescribeConfigurationsRequest generates a "aws/request.Request" representing the
  145. // client's request for the DescribeConfigurations operation. The "output" return
  146. // value can be used to capture response data after the request's "Send" method
  147. // is called.
  148. //
  149. // Creating a request object using this method should be used when you want to inject
  150. // custom logic into the request's lifecycle using a custom handler, or if you want to
  151. // access properties on the request object before or after sending the request. If
  152. // you just want the service response, call the DescribeConfigurations method directly
  153. // instead.
  154. //
  155. // Note: You must call the "Send" method on the returned request object in order
  156. // to execute the request.
  157. //
  158. // // Example sending a request using the DescribeConfigurationsRequest method.
  159. // req, resp := client.DescribeConfigurationsRequest(params)
  160. //
  161. // err := req.Send()
  162. // if err == nil { // resp is now filled
  163. // fmt.Println(resp)
  164. // }
  165. //
  166. func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) {
  167. op := &request.Operation{
  168. Name: opDescribeConfigurations,
  169. HTTPMethod: "POST",
  170. HTTPPath: "/",
  171. }
  172. if input == nil {
  173. input = &DescribeConfigurationsInput{}
  174. }
  175. req = c.newRequest(op, input, output)
  176. output = &DescribeConfigurationsOutput{}
  177. req.Data = output
  178. return
  179. }
  180. // Retrieves a list of attributes for a specific configuration ID. For example,
  181. // the output for a server configuration item includes a list of attributes
  182. // about the server, including host name, operating system, number of network
  183. // cards, etc.
  184. func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) {
  185. req, out := c.DescribeConfigurationsRequest(input)
  186. err := req.Send()
  187. return out, err
  188. }
  189. const opDescribeExportConfigurations = "DescribeExportConfigurations"
  190. // DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the
  191. // client's request for the DescribeExportConfigurations operation. The "output" return
  192. // value can be used to capture response data after the request's "Send" method
  193. // is called.
  194. //
  195. // Creating a request object using this method should be used when you want to inject
  196. // custom logic into the request's lifecycle using a custom handler, or if you want to
  197. // access properties on the request object before or after sending the request. If
  198. // you just want the service response, call the DescribeExportConfigurations method directly
  199. // instead.
  200. //
  201. // Note: You must call the "Send" method on the returned request object in order
  202. // to execute the request.
  203. //
  204. // // Example sending a request using the DescribeExportConfigurationsRequest method.
  205. // req, resp := client.DescribeExportConfigurationsRequest(params)
  206. //
  207. // err := req.Send()
  208. // if err == nil { // resp is now filled
  209. // fmt.Println(resp)
  210. // }
  211. //
  212. func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) {
  213. op := &request.Operation{
  214. Name: opDescribeExportConfigurations,
  215. HTTPMethod: "POST",
  216. HTTPPath: "/",
  217. }
  218. if input == nil {
  219. input = &DescribeExportConfigurationsInput{}
  220. }
  221. req = c.newRequest(op, input, output)
  222. output = &DescribeExportConfigurationsOutput{}
  223. req.Data = output
  224. return
  225. }
  226. // Retrieves the status of a given export process. You can retrieve status from
  227. // a maximum of 100 processes.
  228. func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) {
  229. req, out := c.DescribeExportConfigurationsRequest(input)
  230. err := req.Send()
  231. return out, err
  232. }
  233. const opDescribeTags = "DescribeTags"
  234. // DescribeTagsRequest generates a "aws/request.Request" representing the
  235. // client's request for the DescribeTags operation. The "output" return
  236. // value can be used to capture response data after the request's "Send" method
  237. // is called.
  238. //
  239. // Creating a request object using this method should be used when you want to inject
  240. // custom logic into the request's lifecycle using a custom handler, or if you want to
  241. // access properties on the request object before or after sending the request. If
  242. // you just want the service response, call the DescribeTags method directly
  243. // instead.
  244. //
  245. // Note: You must call the "Send" method on the returned request object in order
  246. // to execute the request.
  247. //
  248. // // Example sending a request using the DescribeTagsRequest method.
  249. // req, resp := client.DescribeTagsRequest(params)
  250. //
  251. // err := req.Send()
  252. // if err == nil { // resp is now filled
  253. // fmt.Println(resp)
  254. // }
  255. //
  256. func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  257. op := &request.Operation{
  258. Name: opDescribeTags,
  259. HTTPMethod: "POST",
  260. HTTPPath: "/",
  261. }
  262. if input == nil {
  263. input = &DescribeTagsInput{}
  264. }
  265. req = c.newRequest(op, input, output)
  266. output = &DescribeTagsOutput{}
  267. req.Data = output
  268. return
  269. }
  270. // Retrieves a list of configuration items that are tagged with a specific tag.
  271. // Or retrieves a list of all tags assigned to a specific configuration item.
  272. func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  273. req, out := c.DescribeTagsRequest(input)
  274. err := req.Send()
  275. return out, err
  276. }
  277. const opExportConfigurations = "ExportConfigurations"
  278. // ExportConfigurationsRequest generates a "aws/request.Request" representing the
  279. // client's request for the ExportConfigurations operation. The "output" return
  280. // value can be used to capture response data after the request's "Send" method
  281. // is called.
  282. //
  283. // Creating a request object using this method should be used when you want to inject
  284. // custom logic into the request's lifecycle using a custom handler, or if you want to
  285. // access properties on the request object before or after sending the request. If
  286. // you just want the service response, call the ExportConfigurations method directly
  287. // instead.
  288. //
  289. // Note: You must call the "Send" method on the returned request object in order
  290. // to execute the request.
  291. //
  292. // // Example sending a request using the ExportConfigurationsRequest method.
  293. // req, resp := client.ExportConfigurationsRequest(params)
  294. //
  295. // err := req.Send()
  296. // if err == nil { // resp is now filled
  297. // fmt.Println(resp)
  298. // }
  299. //
  300. func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) {
  301. op := &request.Operation{
  302. Name: opExportConfigurations,
  303. HTTPMethod: "POST",
  304. HTTPPath: "/",
  305. }
  306. if input == nil {
  307. input = &ExportConfigurationsInput{}
  308. }
  309. req = c.newRequest(op, input, output)
  310. output = &ExportConfigurationsOutput{}
  311. req.Data = output
  312. return
  313. }
  314. // Exports all discovered configuration data to an Amazon S3 bucket or an application
  315. // that enables you to view and evaluate the data. Data includes tags and tag
  316. // associations, processes, connections, servers, and system performance. This
  317. // API returns an export ID which you can query using the GetExportStatus API.
  318. // The system imposes a limit of two configuration exports in six hours.
  319. func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) {
  320. req, out := c.ExportConfigurationsRequest(input)
  321. err := req.Send()
  322. return out, err
  323. }
  324. const opListConfigurations = "ListConfigurations"
  325. // ListConfigurationsRequest generates a "aws/request.Request" representing the
  326. // client's request for the ListConfigurations operation. The "output" return
  327. // value can be used to capture response data after the request's "Send" method
  328. // is called.
  329. //
  330. // Creating a request object using this method should be used when you want to inject
  331. // custom logic into the request's lifecycle using a custom handler, or if you want to
  332. // access properties on the request object before or after sending the request. If
  333. // you just want the service response, call the ListConfigurations method directly
  334. // instead.
  335. //
  336. // Note: You must call the "Send" method on the returned request object in order
  337. // to execute the request.
  338. //
  339. // // Example sending a request using the ListConfigurationsRequest method.
  340. // req, resp := client.ListConfigurationsRequest(params)
  341. //
  342. // err := req.Send()
  343. // if err == nil { // resp is now filled
  344. // fmt.Println(resp)
  345. // }
  346. //
  347. func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) {
  348. op := &request.Operation{
  349. Name: opListConfigurations,
  350. HTTPMethod: "POST",
  351. HTTPPath: "/",
  352. }
  353. if input == nil {
  354. input = &ListConfigurationsInput{}
  355. }
  356. req = c.newRequest(op, input, output)
  357. output = &ListConfigurationsOutput{}
  358. req.Data = output
  359. return
  360. }
  361. // Retrieves a list of configurations items according to the criteria you specify
  362. // in a filter. The filter criteria identify relationship requirements.
  363. func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) {
  364. req, out := c.ListConfigurationsRequest(input)
  365. err := req.Send()
  366. return out, err
  367. }
  368. const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds"
  369. // StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  370. // client's request for the StartDataCollectionByAgentIds operation. The "output" return
  371. // value can be used to capture response data after the request's "Send" method
  372. // is called.
  373. //
  374. // Creating a request object using this method should be used when you want to inject
  375. // custom logic into the request's lifecycle using a custom handler, or if you want to
  376. // access properties on the request object before or after sending the request. If
  377. // you just want the service response, call the StartDataCollectionByAgentIds method directly
  378. // instead.
  379. //
  380. // Note: You must call the "Send" method on the returned request object in order
  381. // to execute the request.
  382. //
  383. // // Example sending a request using the StartDataCollectionByAgentIdsRequest method.
  384. // req, resp := client.StartDataCollectionByAgentIdsRequest(params)
  385. //
  386. // err := req.Send()
  387. // if err == nil { // resp is now filled
  388. // fmt.Println(resp)
  389. // }
  390. //
  391. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) {
  392. op := &request.Operation{
  393. Name: opStartDataCollectionByAgentIds,
  394. HTTPMethod: "POST",
  395. HTTPPath: "/",
  396. }
  397. if input == nil {
  398. input = &StartDataCollectionByAgentIdsInput{}
  399. }
  400. req = c.newRequest(op, input, output)
  401. output = &StartDataCollectionByAgentIdsOutput{}
  402. req.Data = output
  403. return
  404. }
  405. // Instructs the specified agents to start collecting data. Agents can reside
  406. // on host servers or virtual machines in your data center.
  407. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) {
  408. req, out := c.StartDataCollectionByAgentIdsRequest(input)
  409. err := req.Send()
  410. return out, err
  411. }
  412. const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds"
  413. // StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  414. // client's request for the StopDataCollectionByAgentIds operation. The "output" return
  415. // value can be used to capture response data after the request's "Send" method
  416. // is called.
  417. //
  418. // Creating a request object using this method should be used when you want to inject
  419. // custom logic into the request's lifecycle using a custom handler, or if you want to
  420. // access properties on the request object before or after sending the request. If
  421. // you just want the service response, call the StopDataCollectionByAgentIds method directly
  422. // instead.
  423. //
  424. // Note: You must call the "Send" method on the returned request object in order
  425. // to execute the request.
  426. //
  427. // // Example sending a request using the StopDataCollectionByAgentIdsRequest method.
  428. // req, resp := client.StopDataCollectionByAgentIdsRequest(params)
  429. //
  430. // err := req.Send()
  431. // if err == nil { // resp is now filled
  432. // fmt.Println(resp)
  433. // }
  434. //
  435. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) {
  436. op := &request.Operation{
  437. Name: opStopDataCollectionByAgentIds,
  438. HTTPMethod: "POST",
  439. HTTPPath: "/",
  440. }
  441. if input == nil {
  442. input = &StopDataCollectionByAgentIdsInput{}
  443. }
  444. req = c.newRequest(op, input, output)
  445. output = &StopDataCollectionByAgentIdsOutput{}
  446. req.Data = output
  447. return
  448. }
  449. // Instructs the specified agents to stop collecting data.
  450. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) {
  451. req, out := c.StopDataCollectionByAgentIdsRequest(input)
  452. err := req.Send()
  453. return out, err
  454. }
  455. // Information about agents that were instructed to start collecting data. Information
  456. // includes the agent ID, a description of the operation, and whether or not
  457. // the agent configuration was updated.
  458. type AgentConfigurationStatus struct {
  459. _ struct{} `type:"structure"`
  460. // The agent ID.
  461. AgentId *string `locationName:"agentId" type:"string"`
  462. // A description of the operation performed.
  463. Description *string `locationName:"description" type:"string"`
  464. // Information about the status of the StartDataCollection and StopDataCollection
  465. // operations. The system has recorded the data collection operation. The agent
  466. // receives this command the next time it polls for a new command.
  467. OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"`
  468. }
  469. // String returns the string representation
  470. func (s AgentConfigurationStatus) String() string {
  471. return awsutil.Prettify(s)
  472. }
  473. // GoString returns the string representation
  474. func (s AgentConfigurationStatus) GoString() string {
  475. return s.String()
  476. }
  477. // Information about agents associated with the user’s AWS account. Information
  478. // includes agent IDs, IP addresses, media access control (MAC) addresses, agent
  479. // health, hostname where the agent resides, and agent version for each agent.
  480. type AgentInfo struct {
  481. _ struct{} `type:"structure"`
  482. // The agent ID.
  483. AgentId *string `locationName:"agentId" type:"string"`
  484. // Network details about the host where the agent resides.
  485. AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"`
  486. // This data type is currently not valid.
  487. ConnectorId *string `locationName:"connectorId" type:"string"`
  488. // The health of the agent.
  489. Health *string `locationName:"health" type:"string" enum:"AgentStatus"`
  490. // The name of the host where the agent resides. The host can be a server or
  491. // virtual machine.
  492. HostName *string `locationName:"hostName" type:"string"`
  493. // The agent version.
  494. Version *string `locationName:"version" type:"string"`
  495. }
  496. // String returns the string representation
  497. func (s AgentInfo) String() string {
  498. return awsutil.Prettify(s)
  499. }
  500. // GoString returns the string representation
  501. func (s AgentInfo) GoString() string {
  502. return s.String()
  503. }
  504. // Network details about the host where the agent resides.
  505. type AgentNetworkInfo struct {
  506. _ struct{} `type:"structure"`
  507. // The IP address for the host where the agent resides.
  508. IpAddress *string `locationName:"ipAddress" type:"string"`
  509. // The MAC address for the host where the agent resides.
  510. MacAddress *string `locationName:"macAddress" type:"string"`
  511. }
  512. // String returns the string representation
  513. func (s AgentNetworkInfo) String() string {
  514. return awsutil.Prettify(s)
  515. }
  516. // GoString returns the string representation
  517. func (s AgentNetworkInfo) GoString() string {
  518. return s.String()
  519. }
  520. // Tags for a configuration item. Tags are metadata that help you categorize
  521. // IT assets.
  522. type ConfigurationTag struct {
  523. _ struct{} `type:"structure"`
  524. // The configuration ID for the item you want to tag. You can specify a list
  525. // of keys and values.
  526. ConfigurationId *string `locationName:"configurationId" type:"string"`
  527. // A type of IT asset that you want to tag.
  528. ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"`
  529. // A type of tag to filter on. For example, serverType.
  530. Key *string `locationName:"key" type:"string"`
  531. // The time the configuration tag was created in Coordinated Universal Time
  532. // (UTC).
  533. TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp" timestampFormat:"unix"`
  534. // A value to filter on. For example key = serverType and value = web server.
  535. Value *string `locationName:"value" type:"string"`
  536. }
  537. // String returns the string representation
  538. func (s ConfigurationTag) String() string {
  539. return awsutil.Prettify(s)
  540. }
  541. // GoString returns the string representation
  542. func (s ConfigurationTag) GoString() string {
  543. return s.String()
  544. }
  545. type CreateTagsInput struct {
  546. _ struct{} `type:"structure"`
  547. // A list of configuration items that you want to tag.
  548. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  549. // Tags that you want to associate with one or more configuration items. Specify
  550. // the tags that you want to create in a key-value format. For example:
  551. //
  552. // {"key": "serverType", "value": "webServer"}
  553. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list" required:"true"`
  554. }
  555. // String returns the string representation
  556. func (s CreateTagsInput) String() string {
  557. return awsutil.Prettify(s)
  558. }
  559. // GoString returns the string representation
  560. func (s CreateTagsInput) GoString() string {
  561. return s.String()
  562. }
  563. // Validate inspects the fields of the type to determine if they are valid.
  564. func (s *CreateTagsInput) Validate() error {
  565. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  566. if s.ConfigurationIds == nil {
  567. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  568. }
  569. if s.Tags == nil {
  570. invalidParams.Add(request.NewErrParamRequired("Tags"))
  571. }
  572. if s.Tags != nil {
  573. for i, v := range s.Tags {
  574. if v == nil {
  575. continue
  576. }
  577. if err := v.Validate(); err != nil {
  578. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  579. }
  580. }
  581. }
  582. if invalidParams.Len() > 0 {
  583. return invalidParams
  584. }
  585. return nil
  586. }
  587. type CreateTagsOutput struct {
  588. _ struct{} `type:"structure"`
  589. }
  590. // String returns the string representation
  591. func (s CreateTagsOutput) String() string {
  592. return awsutil.Prettify(s)
  593. }
  594. // GoString returns the string representation
  595. func (s CreateTagsOutput) GoString() string {
  596. return s.String()
  597. }
  598. type DeleteTagsInput struct {
  599. _ struct{} `type:"structure"`
  600. // A list of configuration items with tags that you want to delete.
  601. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  602. // Tags that you want to delete from one or more configuration items. Specify
  603. // the tags that you want to delete in a key-value format. For example:
  604. //
  605. // {"key": "serverType", "value": "webServer"}
  606. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  607. }
  608. // String returns the string representation
  609. func (s DeleteTagsInput) String() string {
  610. return awsutil.Prettify(s)
  611. }
  612. // GoString returns the string representation
  613. func (s DeleteTagsInput) GoString() string {
  614. return s.String()
  615. }
  616. // Validate inspects the fields of the type to determine if they are valid.
  617. func (s *DeleteTagsInput) Validate() error {
  618. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  619. if s.ConfigurationIds == nil {
  620. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  621. }
  622. if s.Tags != nil {
  623. for i, v := range s.Tags {
  624. if v == nil {
  625. continue
  626. }
  627. if err := v.Validate(); err != nil {
  628. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  629. }
  630. }
  631. }
  632. if invalidParams.Len() > 0 {
  633. return invalidParams
  634. }
  635. return nil
  636. }
  637. type DeleteTagsOutput struct {
  638. _ struct{} `type:"structure"`
  639. }
  640. // String returns the string representation
  641. func (s DeleteTagsOutput) String() string {
  642. return awsutil.Prettify(s)
  643. }
  644. // GoString returns the string representation
  645. func (s DeleteTagsOutput) GoString() string {
  646. return s.String()
  647. }
  648. type DescribeAgentsInput struct {
  649. _ struct{} `type:"structure"`
  650. // The agent IDs for which you want information. If you specify no IDs, the
  651. // system returns information about all agents associated with your AWS user
  652. // account.
  653. AgentIds []*string `locationName:"agentIds" type:"list"`
  654. // The total number of agents to return. The maximum value is 100.
  655. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  656. // A token to start the list. Use this token to get the next set of results.
  657. NextToken *string `locationName:"nextToken" type:"string"`
  658. }
  659. // String returns the string representation
  660. func (s DescribeAgentsInput) String() string {
  661. return awsutil.Prettify(s)
  662. }
  663. // GoString returns the string representation
  664. func (s DescribeAgentsInput) GoString() string {
  665. return s.String()
  666. }
  667. type DescribeAgentsOutput struct {
  668. _ struct{} `type:"structure"`
  669. // Lists AWS agents by ID or lists all agents associated with your user account
  670. // if you did not specify an agent ID. The output includes agent IDs, IP addresses,
  671. // media access control (MAC) addresses, agent health, host name where the agent
  672. // resides, and the version number of each agent.
  673. AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"`
  674. // The call returns a token. Use this token to get the next set of results.
  675. NextToken *string `locationName:"nextToken" type:"string"`
  676. }
  677. // String returns the string representation
  678. func (s DescribeAgentsOutput) String() string {
  679. return awsutil.Prettify(s)
  680. }
  681. // GoString returns the string representation
  682. func (s DescribeAgentsOutput) GoString() string {
  683. return s.String()
  684. }
  685. type DescribeConfigurationsInput struct {
  686. _ struct{} `type:"structure"`
  687. // One or more configuration IDs.
  688. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  689. }
  690. // String returns the string representation
  691. func (s DescribeConfigurationsInput) String() string {
  692. return awsutil.Prettify(s)
  693. }
  694. // GoString returns the string representation
  695. func (s DescribeConfigurationsInput) GoString() string {
  696. return s.String()
  697. }
  698. // Validate inspects the fields of the type to determine if they are valid.
  699. func (s *DescribeConfigurationsInput) Validate() error {
  700. invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationsInput"}
  701. if s.ConfigurationIds == nil {
  702. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  703. }
  704. if invalidParams.Len() > 0 {
  705. return invalidParams
  706. }
  707. return nil
  708. }
  709. type DescribeConfigurationsOutput struct {
  710. _ struct{} `type:"structure"`
  711. // A key in the response map. The value is an array of data.
  712. Configurations []map[string]*string `locationName:"configurations" type:"list"`
  713. }
  714. // String returns the string representation
  715. func (s DescribeConfigurationsOutput) String() string {
  716. return awsutil.Prettify(s)
  717. }
  718. // GoString returns the string representation
  719. func (s DescribeConfigurationsOutput) GoString() string {
  720. return s.String()
  721. }
  722. type DescribeExportConfigurationsInput struct {
  723. _ struct{} `type:"structure"`
  724. // A unique identifier that you can use to query the export status.
  725. ExportIds []*string `locationName:"exportIds" type:"list"`
  726. // The maximum number of results that you want to display as a part of the query.
  727. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  728. // A token to get the next set of results. For example, if you specified 100
  729. // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults
  730. // to 10, you will get results in a set of 10. Use the token in the query to
  731. // get the next set of 10.
  732. NextToken *string `locationName:"nextToken" type:"string"`
  733. }
  734. // String returns the string representation
  735. func (s DescribeExportConfigurationsInput) String() string {
  736. return awsutil.Prettify(s)
  737. }
  738. // GoString returns the string representation
  739. func (s DescribeExportConfigurationsInput) GoString() string {
  740. return s.String()
  741. }
  742. type DescribeExportConfigurationsOutput struct {
  743. _ struct{} `type:"structure"`
  744. // Returns export details. When the status is complete, the response includes
  745. // a URL for an Amazon S3 bucket where you can view the data in a CSV file.
  746. ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"`
  747. // A token to get the next set of results. For example, if you specified 100
  748. // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults
  749. // to 10, you will get results in a set of 10. Use the token in the query to
  750. // get the next set of 10.
  751. NextToken *string `locationName:"nextToken" type:"string"`
  752. }
  753. // String returns the string representation
  754. func (s DescribeExportConfigurationsOutput) String() string {
  755. return awsutil.Prettify(s)
  756. }
  757. // GoString returns the string representation
  758. func (s DescribeExportConfigurationsOutput) GoString() string {
  759. return s.String()
  760. }
  761. type DescribeTagsInput struct {
  762. _ struct{} `type:"structure"`
  763. // You can filter the list using a key-value format. You can separate these
  764. // items by using logical operators. Allowed filters include tagKey, tagValue,
  765. // and configurationId.
  766. Filters []*TagFilter `locationName:"filters" type:"list"`
  767. // The total number of items to return. The maximum value is 100.
  768. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  769. // A token to start the list. Use this token to get the next set of results.
  770. NextToken *string `locationName:"nextToken" type:"string"`
  771. }
  772. // String returns the string representation
  773. func (s DescribeTagsInput) String() string {
  774. return awsutil.Prettify(s)
  775. }
  776. // GoString returns the string representation
  777. func (s DescribeTagsInput) GoString() string {
  778. return s.String()
  779. }
  780. // Validate inspects the fields of the type to determine if they are valid.
  781. func (s *DescribeTagsInput) Validate() error {
  782. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  783. if s.Filters != nil {
  784. for i, v := range s.Filters {
  785. if v == nil {
  786. continue
  787. }
  788. if err := v.Validate(); err != nil {
  789. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  790. }
  791. }
  792. }
  793. if invalidParams.Len() > 0 {
  794. return invalidParams
  795. }
  796. return nil
  797. }
  798. type DescribeTagsOutput struct {
  799. _ struct{} `type:"structure"`
  800. // The call returns a token. Use this token to get the next set of results.
  801. NextToken *string `locationName:"nextToken" type:"string"`
  802. // Depending on the input, this is a list of configuration items tagged with
  803. // a specific tag, or a list of tags for a specific configuration item.
  804. Tags []*ConfigurationTag `locationName:"tags" locationNameList:"item" type:"list"`
  805. }
  806. // String returns the string representation
  807. func (s DescribeTagsOutput) String() string {
  808. return awsutil.Prettify(s)
  809. }
  810. // GoString returns the string representation
  811. func (s DescribeTagsOutput) GoString() string {
  812. return s.String()
  813. }
  814. type ExportConfigurationsInput struct {
  815. _ struct{} `type:"structure"`
  816. }
  817. // String returns the string representation
  818. func (s ExportConfigurationsInput) String() string {
  819. return awsutil.Prettify(s)
  820. }
  821. // GoString returns the string representation
  822. func (s ExportConfigurationsInput) GoString() string {
  823. return s.String()
  824. }
  825. type ExportConfigurationsOutput struct {
  826. _ struct{} `type:"structure"`
  827. // A unique identifier that you can use to query the export status.
  828. ExportId *string `locationName:"exportId" type:"string"`
  829. }
  830. // String returns the string representation
  831. func (s ExportConfigurationsOutput) String() string {
  832. return awsutil.Prettify(s)
  833. }
  834. // GoString returns the string representation
  835. func (s ExportConfigurationsOutput) GoString() string {
  836. return s.String()
  837. }
  838. // Information regarding the export status of the discovered data. The value
  839. // is an array of objects.
  840. type ExportInfo struct {
  841. _ struct{} `type:"structure"`
  842. // A URL for an Amazon S3 bucket where you can review the configuration data.
  843. // The URL is displayed only if the export succeeded.
  844. ConfigurationsDownloadUrl *string `locationName:"configurationsDownloadUrl" type:"string"`
  845. // A unique identifier that you can use to query the export.
  846. ExportId *string `locationName:"exportId" type:"string" required:"true"`
  847. // The time the configuration data export was initiated.
  848. ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" timestampFormat:"unix" required:"true"`
  849. // The status of the configuration data export. The status can succeed, fail,
  850. // or be in-progress.
  851. ExportStatus *string `locationName:"exportStatus" type:"string" required:"true" enum:"ExportStatus"`
  852. // Helpful status messages for API callers. For example: Too many exports in
  853. // the last 6 hours. Export in progress. Export was successful.
  854. StatusMessage *string `locationName:"statusMessage" type:"string" required:"true"`
  855. }
  856. // String returns the string representation
  857. func (s ExportInfo) String() string {
  858. return awsutil.Prettify(s)
  859. }
  860. // GoString returns the string representation
  861. func (s ExportInfo) GoString() string {
  862. return s.String()
  863. }
  864. // A filter that can use conditional operators.
  865. type Filter struct {
  866. _ struct{} `type:"structure"`
  867. // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS,
  868. // CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes
  869. // all filters as though concatenated by AND. If you specify multiple values
  870. // for a particular filter, the system differentiates the values using OR. Calling
  871. // either DescribeConfigurations or ListConfigurations returns attributes of
  872. // matching configuration items.
  873. Condition *string `locationName:"condition" type:"string" required:"true"`
  874. // The name of the filter. The following filter names are allowed for SERVER
  875. // configuration items.
  876. //
  877. // Server server.hostName
  878. //
  879. // server.osName
  880. //
  881. // server.osVersion
  882. //
  883. // server.configurationid
  884. //
  885. // server.agentid
  886. //
  887. // The name of the filter. The following filter names are allowed for PROCESS
  888. // configuration items.
  889. //
  890. // Process process.configurationid
  891. //
  892. // process.name
  893. //
  894. // process.commandLine
  895. //
  896. // server.configurationid
  897. //
  898. // server.hostName
  899. //
  900. // server.osName
  901. //
  902. // server.osVersion
  903. //
  904. // server.agentId
  905. //
  906. // The name of the filter. The following filter names are allowed for CONNECTION
  907. // configuration items.
  908. //
  909. // Connection connection.sourceIp
  910. //
  911. // connection.destinationIp
  912. //
  913. // connection.destinationPort
  914. //
  915. // sourceProcess.configurationId
  916. //
  917. // sourceProcess.name
  918. //
  919. // sourceProcess.commandLine
  920. //
  921. // destinationProcess.configurationId
  922. //
  923. // destinationProcess.name
  924. //
  925. // destinationProcess.commandLine
  926. //
  927. // sourceServer.configurationId
  928. //
  929. // sourceServer.hostName
  930. //
  931. // sourceServer.osName
  932. //
  933. // sourceServer.osVersion
  934. //
  935. // sourceServer.agentId
  936. //
  937. // destinationServer.configurationId
  938. //
  939. // destinationServer.hostName
  940. //
  941. // destinationServer.osName
  942. //
  943. // destinationServer.osVersion
  944. //
  945. // destinationServer.agentId
  946. Name *string `locationName:"name" type:"string" required:"true"`
  947. // A string value that you want to filter on. For example, if you choose the
  948. // destinationServer.osVersion filter name, you could specify Ubuntu for the
  949. // value.
  950. Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"`
  951. }
  952. // String returns the string representation
  953. func (s Filter) String() string {
  954. return awsutil.Prettify(s)
  955. }
  956. // GoString returns the string representation
  957. func (s Filter) GoString() string {
  958. return s.String()
  959. }
  960. // Validate inspects the fields of the type to determine if they are valid.
  961. func (s *Filter) Validate() error {
  962. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  963. if s.Condition == nil {
  964. invalidParams.Add(request.NewErrParamRequired("Condition"))
  965. }
  966. if s.Name == nil {
  967. invalidParams.Add(request.NewErrParamRequired("Name"))
  968. }
  969. if s.Values == nil {
  970. invalidParams.Add(request.NewErrParamRequired("Values"))
  971. }
  972. if invalidParams.Len() > 0 {
  973. return invalidParams
  974. }
  975. return nil
  976. }
  977. type ListConfigurationsInput struct {
  978. _ struct{} `type:"structure"`
  979. // A valid configuration identified by the Discovery Service.
  980. ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"`
  981. // You can filter the list using a key-value format. For example:
  982. //
  983. // {"key": "serverType", "value": "webServer"}
  984. //
  985. // You can separate these items by using logical operators.
  986. Filters []*Filter `locationName:"filters" type:"list"`
  987. // The total number of items to return. The maximum value is 100.
  988. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  989. // A token to start the list. Use this token to get the next set of results.
  990. NextToken *string `locationName:"nextToken" type:"string"`
  991. }
  992. // String returns the string representation
  993. func (s ListConfigurationsInput) String() string {
  994. return awsutil.Prettify(s)
  995. }
  996. // GoString returns the string representation
  997. func (s ListConfigurationsInput) GoString() string {
  998. return s.String()
  999. }
  1000. // Validate inspects the fields of the type to determine if they are valid.
  1001. func (s *ListConfigurationsInput) Validate() error {
  1002. invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
  1003. if s.ConfigurationType == nil {
  1004. invalidParams.Add(request.NewErrParamRequired("ConfigurationType"))
  1005. }
  1006. if s.Filters != nil {
  1007. for i, v := range s.Filters {
  1008. if v == nil {
  1009. continue
  1010. }
  1011. if err := v.Validate(); err != nil {
  1012. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  1013. }
  1014. }
  1015. }
  1016. if invalidParams.Len() > 0 {
  1017. return invalidParams
  1018. }
  1019. return nil
  1020. }
  1021. type ListConfigurationsOutput struct {
  1022. _ struct{} `type:"structure"`
  1023. // Returns configuration details, including the configuration ID, attribute
  1024. // names, and attribute values.
  1025. Configurations []map[string]*string `locationName:"configurations" type:"list"`
  1026. // The call returns a token. Use this token to get the next set of results.
  1027. NextToken *string `locationName:"nextToken" type:"string"`
  1028. }
  1029. // String returns the string representation
  1030. func (s ListConfigurationsOutput) String() string {
  1031. return awsutil.Prettify(s)
  1032. }
  1033. // GoString returns the string representation
  1034. func (s ListConfigurationsOutput) GoString() string {
  1035. return s.String()
  1036. }
  1037. type StartDataCollectionByAgentIdsInput struct {
  1038. _ struct{} `type:"structure"`
  1039. // The IDs of the agents that you want to start collecting data. If you send
  1040. // a request to an AWS agent ID that you do not have permission to contact,
  1041. // according to your AWS account, the service does not throw an exception. Instead,
  1042. // it returns the error in the Description field. If you send a request to multiple
  1043. // agents and you do not have permission to contact some of those agents, the
  1044. // system does not throw an exception. Instead, the system shows Failed in the
  1045. // Description field.
  1046. AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  1047. }
  1048. // String returns the string representation
  1049. func (s StartDataCollectionByAgentIdsInput) String() string {
  1050. return awsutil.Prettify(s)
  1051. }
  1052. // GoString returns the string representation
  1053. func (s StartDataCollectionByAgentIdsInput) GoString() string {
  1054. return s.String()
  1055. }
  1056. // Validate inspects the fields of the type to determine if they are valid.
  1057. func (s *StartDataCollectionByAgentIdsInput) Validate() error {
  1058. invalidParams := request.ErrInvalidParams{Context: "StartDataCollectionByAgentIdsInput"}
  1059. if s.AgentIds == nil {
  1060. invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  1061. }
  1062. if invalidParams.Len() > 0 {
  1063. return invalidParams
  1064. }
  1065. return nil
  1066. }
  1067. type StartDataCollectionByAgentIdsOutput struct {
  1068. _ struct{} `type:"structure"`
  1069. // Information about agents that were instructed to start collecting data. Information
  1070. // includes the agent ID, a description of the operation performed, and whether
  1071. // or not the agent configuration was updated.
  1072. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  1073. }
  1074. // String returns the string representation
  1075. func (s StartDataCollectionByAgentIdsOutput) String() string {
  1076. return awsutil.Prettify(s)
  1077. }
  1078. // GoString returns the string representation
  1079. func (s StartDataCollectionByAgentIdsOutput) GoString() string {
  1080. return s.String()
  1081. }
  1082. type StopDataCollectionByAgentIdsInput struct {
  1083. _ struct{} `type:"structure"`
  1084. // The IDs of the agents that you want to stop collecting data.
  1085. AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  1086. }
  1087. // String returns the string representation
  1088. func (s StopDataCollectionByAgentIdsInput) String() string {
  1089. return awsutil.Prettify(s)
  1090. }
  1091. // GoString returns the string representation
  1092. func (s StopDataCollectionByAgentIdsInput) GoString() string {
  1093. return s.String()
  1094. }
  1095. // Validate inspects the fields of the type to determine if they are valid.
  1096. func (s *StopDataCollectionByAgentIdsInput) Validate() error {
  1097. invalidParams := request.ErrInvalidParams{Context: "StopDataCollectionByAgentIdsInput"}
  1098. if s.AgentIds == nil {
  1099. invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  1100. }
  1101. if invalidParams.Len() > 0 {
  1102. return invalidParams
  1103. }
  1104. return nil
  1105. }
  1106. type StopDataCollectionByAgentIdsOutput struct {
  1107. _ struct{} `type:"structure"`
  1108. // Information about agents that were instructed to stop collecting data. Information
  1109. // includes the agent ID, a description of the operation performed, and whether
  1110. // or not the agent configuration was updated.
  1111. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  1112. }
  1113. // String returns the string representation
  1114. func (s StopDataCollectionByAgentIdsOutput) String() string {
  1115. return awsutil.Prettify(s)
  1116. }
  1117. // GoString returns the string representation
  1118. func (s StopDataCollectionByAgentIdsOutput) GoString() string {
  1119. return s.String()
  1120. }
  1121. // Metadata that help you categorize IT assets.
  1122. type Tag struct {
  1123. _ struct{} `type:"structure"`
  1124. // A type of tag to filter on.
  1125. Key *string `locationName:"key" type:"string" required:"true"`
  1126. // A value for a tag key to filter on.
  1127. Value *string `locationName:"value" type:"string" required:"true"`
  1128. }
  1129. // String returns the string representation
  1130. func (s Tag) String() string {
  1131. return awsutil.Prettify(s)
  1132. }
  1133. // GoString returns the string representation
  1134. func (s Tag) GoString() string {
  1135. return s.String()
  1136. }
  1137. // Validate inspects the fields of the type to determine if they are valid.
  1138. func (s *Tag) Validate() error {
  1139. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  1140. if s.Key == nil {
  1141. invalidParams.Add(request.NewErrParamRequired("Key"))
  1142. }
  1143. if s.Value == nil {
  1144. invalidParams.Add(request.NewErrParamRequired("Value"))
  1145. }
  1146. if invalidParams.Len() > 0 {
  1147. return invalidParams
  1148. }
  1149. return nil
  1150. }
  1151. // The name of a tag filter. Valid names are: tagKey, tagValue, configurationId.
  1152. type TagFilter struct {
  1153. _ struct{} `type:"structure"`
  1154. // A name of a tag filter.
  1155. Name *string `locationName:"name" type:"string" required:"true"`
  1156. // Values of a tag filter.
  1157. Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"`
  1158. }
  1159. // String returns the string representation
  1160. func (s TagFilter) String() string {
  1161. return awsutil.Prettify(s)
  1162. }
  1163. // GoString returns the string representation
  1164. func (s TagFilter) GoString() string {
  1165. return s.String()
  1166. }
  1167. // Validate inspects the fields of the type to determine if they are valid.
  1168. func (s *TagFilter) Validate() error {
  1169. invalidParams := request.ErrInvalidParams{Context: "TagFilter"}
  1170. if s.Name == nil {
  1171. invalidParams.Add(request.NewErrParamRequired("Name"))
  1172. }
  1173. if s.Values == nil {
  1174. invalidParams.Add(request.NewErrParamRequired("Values"))
  1175. }
  1176. if invalidParams.Len() > 0 {
  1177. return invalidParams
  1178. }
  1179. return nil
  1180. }
  1181. const (
  1182. // @enum AgentStatus
  1183. AgentStatusHealthy = "HEALTHY"
  1184. // @enum AgentStatus
  1185. AgentStatusUnhealthy = "UNHEALTHY"
  1186. // @enum AgentStatus
  1187. AgentStatusRunning = "RUNNING"
  1188. // @enum AgentStatus
  1189. AgentStatusUnknown = "UNKNOWN"
  1190. // @enum AgentStatus
  1191. AgentStatusBlacklisted = "BLACKLISTED"
  1192. // @enum AgentStatus
  1193. AgentStatusShutdown = "SHUTDOWN"
  1194. )
  1195. const (
  1196. // @enum ConfigurationItemType
  1197. ConfigurationItemTypeServer = "SERVER"
  1198. // @enum ConfigurationItemType
  1199. ConfigurationItemTypeProcess = "PROCESS"
  1200. // @enum ConfigurationItemType
  1201. ConfigurationItemTypeConnection = "CONNECTION"
  1202. )
  1203. const (
  1204. // @enum ExportStatus
  1205. ExportStatusFailed = "FAILED"
  1206. // @enum ExportStatus
  1207. ExportStatusSucceeded = "SUCCEEDED"
  1208. // @enum ExportStatus
  1209. ExportStatusInProgress = "IN_PROGRESS"
  1210. )