api.go 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package directoryservice provides a client for AWS Directory Service.
  3. package directoryservice
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opConnectDirectory = "ConnectDirectory"
  10. // ConnectDirectoryRequest generates a request for the ConnectDirectory operation.
  11. func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) (req *request.Request, output *ConnectDirectoryOutput) {
  12. op := &request.Operation{
  13. Name: opConnectDirectory,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &ConnectDirectoryInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &ConnectDirectoryOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Creates an AD Connector to connect an on-premises directory.
  26. func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error) {
  27. req, out := c.ConnectDirectoryRequest(input)
  28. err := req.Send()
  29. return out, err
  30. }
  31. const opCreateAlias = "CreateAlias"
  32. // CreateAliasRequest generates a request for the CreateAlias operation.
  33. func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) {
  34. op := &request.Operation{
  35. Name: opCreateAlias,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &CreateAliasInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &CreateAliasOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Creates an alias for a directory and assigns the alias to the directory.
  48. // The alias is used to construct the access URL for the directory, such as
  49. // http://<alias>.awsapps.com.
  50. //
  51. // After an alias has been created, it cannot be deleted or reused, so this
  52. // operation should only be used when absolutely necessary.
  53. func (c *DirectoryService) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) {
  54. req, out := c.CreateAliasRequest(input)
  55. err := req.Send()
  56. return out, err
  57. }
  58. const opCreateComputer = "CreateComputer"
  59. // CreateComputerRequest generates a request for the CreateComputer operation.
  60. func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (req *request.Request, output *CreateComputerOutput) {
  61. op := &request.Operation{
  62. Name: opCreateComputer,
  63. HTTPMethod: "POST",
  64. HTTPPath: "/",
  65. }
  66. if input == nil {
  67. input = &CreateComputerInput{}
  68. }
  69. req = c.newRequest(op, input, output)
  70. output = &CreateComputerOutput{}
  71. req.Data = output
  72. return
  73. }
  74. // Creates a computer account in the specified directory, and joins the computer
  75. // to the directory.
  76. func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateComputerOutput, error) {
  77. req, out := c.CreateComputerRequest(input)
  78. err := req.Send()
  79. return out, err
  80. }
  81. const opCreateDirectory = "CreateDirectory"
  82. // CreateDirectoryRequest generates a request for the CreateDirectory operation.
  83. func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) (req *request.Request, output *CreateDirectoryOutput) {
  84. op := &request.Operation{
  85. Name: opCreateDirectory,
  86. HTTPMethod: "POST",
  87. HTTPPath: "/",
  88. }
  89. if input == nil {
  90. input = &CreateDirectoryInput{}
  91. }
  92. req = c.newRequest(op, input, output)
  93. output = &CreateDirectoryOutput{}
  94. req.Data = output
  95. return
  96. }
  97. // Creates a Simple AD directory.
  98. func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) {
  99. req, out := c.CreateDirectoryRequest(input)
  100. err := req.Send()
  101. return out, err
  102. }
  103. const opCreateSnapshot = "CreateSnapshot"
  104. // CreateSnapshotRequest generates a request for the CreateSnapshot operation.
  105. func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) {
  106. op := &request.Operation{
  107. Name: opCreateSnapshot,
  108. HTTPMethod: "POST",
  109. HTTPPath: "/",
  110. }
  111. if input == nil {
  112. input = &CreateSnapshotInput{}
  113. }
  114. req = c.newRequest(op, input, output)
  115. output = &CreateSnapshotOutput{}
  116. req.Data = output
  117. return
  118. }
  119. // Creates a snapshot of an existing directory.
  120. //
  121. // You cannot take snapshots of extended or connected directories.
  122. func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) {
  123. req, out := c.CreateSnapshotRequest(input)
  124. err := req.Send()
  125. return out, err
  126. }
  127. const opDeleteDirectory = "DeleteDirectory"
  128. // DeleteDirectoryRequest generates a request for the DeleteDirectory operation.
  129. func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) (req *request.Request, output *DeleteDirectoryOutput) {
  130. op := &request.Operation{
  131. Name: opDeleteDirectory,
  132. HTTPMethod: "POST",
  133. HTTPPath: "/",
  134. }
  135. if input == nil {
  136. input = &DeleteDirectoryInput{}
  137. }
  138. req = c.newRequest(op, input, output)
  139. output = &DeleteDirectoryOutput{}
  140. req.Data = output
  141. return
  142. }
  143. // Deletes an AWS Directory Service directory.
  144. func (c *DirectoryService) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) {
  145. req, out := c.DeleteDirectoryRequest(input)
  146. err := req.Send()
  147. return out, err
  148. }
  149. const opDeleteSnapshot = "DeleteSnapshot"
  150. // DeleteSnapshotRequest generates a request for the DeleteSnapshot operation.
  151. func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  152. op := &request.Operation{
  153. Name: opDeleteSnapshot,
  154. HTTPMethod: "POST",
  155. HTTPPath: "/",
  156. }
  157. if input == nil {
  158. input = &DeleteSnapshotInput{}
  159. }
  160. req = c.newRequest(op, input, output)
  161. output = &DeleteSnapshotOutput{}
  162. req.Data = output
  163. return
  164. }
  165. // Deletes a directory snapshot.
  166. func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  167. req, out := c.DeleteSnapshotRequest(input)
  168. err := req.Send()
  169. return out, err
  170. }
  171. const opDescribeDirectories = "DescribeDirectories"
  172. // DescribeDirectoriesRequest generates a request for the DescribeDirectories operation.
  173. func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectoriesInput) (req *request.Request, output *DescribeDirectoriesOutput) {
  174. op := &request.Operation{
  175. Name: opDescribeDirectories,
  176. HTTPMethod: "POST",
  177. HTTPPath: "/",
  178. }
  179. if input == nil {
  180. input = &DescribeDirectoriesInput{}
  181. }
  182. req = c.newRequest(op, input, output)
  183. output = &DescribeDirectoriesOutput{}
  184. req.Data = output
  185. return
  186. }
  187. // Obtains information about the directories that belong to this account.
  188. //
  189. // You can retrieve information about specific directories by passing the directory
  190. // identifiers in the DirectoryIds parameter. Otherwise, all directories that
  191. // belong to the current account are returned.
  192. //
  193. // This operation supports pagination with the use of the NextToken request
  194. // and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken
  195. // member contains a token that you pass in the next call to DescribeDirectories
  196. // to retrieve the next set of items.
  197. //
  198. // You can also specify a maximum number of return results with the Limit parameter.
  199. func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) (*DescribeDirectoriesOutput, error) {
  200. req, out := c.DescribeDirectoriesRequest(input)
  201. err := req.Send()
  202. return out, err
  203. }
  204. const opDescribeSnapshots = "DescribeSnapshots"
  205. // DescribeSnapshotsRequest generates a request for the DescribeSnapshots operation.
  206. func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  207. op := &request.Operation{
  208. Name: opDescribeSnapshots,
  209. HTTPMethod: "POST",
  210. HTTPPath: "/",
  211. }
  212. if input == nil {
  213. input = &DescribeSnapshotsInput{}
  214. }
  215. req = c.newRequest(op, input, output)
  216. output = &DescribeSnapshotsOutput{}
  217. req.Data = output
  218. return
  219. }
  220. // Obtains information about the directory snapshots that belong to this account.
  221. //
  222. // This operation supports pagination with the use of the NextToken request
  223. // and response parameters. If more results are available, the DescribeSnapshots.NextToken
  224. // member contains a token that you pass in the next call to DescribeSnapshots
  225. // to retrieve the next set of items.
  226. //
  227. // You can also specify a maximum number of return results with the Limit parameter.
  228. func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  229. req, out := c.DescribeSnapshotsRequest(input)
  230. err := req.Send()
  231. return out, err
  232. }
  233. const opDisableRadius = "DisableRadius"
  234. // DisableRadiusRequest generates a request for the DisableRadius operation.
  235. func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req *request.Request, output *DisableRadiusOutput) {
  236. op := &request.Operation{
  237. Name: opDisableRadius,
  238. HTTPMethod: "POST",
  239. HTTPPath: "/",
  240. }
  241. if input == nil {
  242. input = &DisableRadiusInput{}
  243. }
  244. req = c.newRequest(op, input, output)
  245. output = &DisableRadiusOutput{}
  246. req.Data = output
  247. return
  248. }
  249. // Disables multi-factor authentication (MFA) with Remote Authentication Dial
  250. // In User Service (RADIUS) for an AD Connector directory.
  251. func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error) {
  252. req, out := c.DisableRadiusRequest(input)
  253. err := req.Send()
  254. return out, err
  255. }
  256. const opDisableSso = "DisableSso"
  257. // DisableSsoRequest generates a request for the DisableSso operation.
  258. func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *request.Request, output *DisableSsoOutput) {
  259. op := &request.Operation{
  260. Name: opDisableSso,
  261. HTTPMethod: "POST",
  262. HTTPPath: "/",
  263. }
  264. if input == nil {
  265. input = &DisableSsoInput{}
  266. }
  267. req = c.newRequest(op, input, output)
  268. output = &DisableSsoOutput{}
  269. req.Data = output
  270. return
  271. }
  272. // Disables single-sign on for a directory.
  273. func (c *DirectoryService) DisableSso(input *DisableSsoInput) (*DisableSsoOutput, error) {
  274. req, out := c.DisableSsoRequest(input)
  275. err := req.Send()
  276. return out, err
  277. }
  278. const opEnableRadius = "EnableRadius"
  279. // EnableRadiusRequest generates a request for the EnableRadius operation.
  280. func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *request.Request, output *EnableRadiusOutput) {
  281. op := &request.Operation{
  282. Name: opEnableRadius,
  283. HTTPMethod: "POST",
  284. HTTPPath: "/",
  285. }
  286. if input == nil {
  287. input = &EnableRadiusInput{}
  288. }
  289. req = c.newRequest(op, input, output)
  290. output = &EnableRadiusOutput{}
  291. req.Data = output
  292. return
  293. }
  294. // Enables multi-factor authentication (MFA) with Remote Authentication Dial
  295. // In User Service (RADIUS) for an AD Connector directory.
  296. func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error) {
  297. req, out := c.EnableRadiusRequest(input)
  298. err := req.Send()
  299. return out, err
  300. }
  301. const opEnableSso = "EnableSso"
  302. // EnableSsoRequest generates a request for the EnableSso operation.
  303. func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request.Request, output *EnableSsoOutput) {
  304. op := &request.Operation{
  305. Name: opEnableSso,
  306. HTTPMethod: "POST",
  307. HTTPPath: "/",
  308. }
  309. if input == nil {
  310. input = &EnableSsoInput{}
  311. }
  312. req = c.newRequest(op, input, output)
  313. output = &EnableSsoOutput{}
  314. req.Data = output
  315. return
  316. }
  317. // Enables single-sign on for a directory.
  318. func (c *DirectoryService) EnableSso(input *EnableSsoInput) (*EnableSsoOutput, error) {
  319. req, out := c.EnableSsoRequest(input)
  320. err := req.Send()
  321. return out, err
  322. }
  323. const opGetDirectoryLimits = "GetDirectoryLimits"
  324. // GetDirectoryLimitsRequest generates a request for the GetDirectoryLimits operation.
  325. func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsInput) (req *request.Request, output *GetDirectoryLimitsOutput) {
  326. op := &request.Operation{
  327. Name: opGetDirectoryLimits,
  328. HTTPMethod: "POST",
  329. HTTPPath: "/",
  330. }
  331. if input == nil {
  332. input = &GetDirectoryLimitsInput{}
  333. }
  334. req = c.newRequest(op, input, output)
  335. output = &GetDirectoryLimitsOutput{}
  336. req.Data = output
  337. return
  338. }
  339. // Obtains directory limit information for the current region.
  340. func (c *DirectoryService) GetDirectoryLimits(input *GetDirectoryLimitsInput) (*GetDirectoryLimitsOutput, error) {
  341. req, out := c.GetDirectoryLimitsRequest(input)
  342. err := req.Send()
  343. return out, err
  344. }
  345. const opGetSnapshotLimits = "GetSnapshotLimits"
  346. // GetSnapshotLimitsRequest generates a request for the GetSnapshotLimits operation.
  347. func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInput) (req *request.Request, output *GetSnapshotLimitsOutput) {
  348. op := &request.Operation{
  349. Name: opGetSnapshotLimits,
  350. HTTPMethod: "POST",
  351. HTTPPath: "/",
  352. }
  353. if input == nil {
  354. input = &GetSnapshotLimitsInput{}
  355. }
  356. req = c.newRequest(op, input, output)
  357. output = &GetSnapshotLimitsOutput{}
  358. req.Data = output
  359. return
  360. }
  361. // Obtains the manual snapshot limits for a directory.
  362. func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*GetSnapshotLimitsOutput, error) {
  363. req, out := c.GetSnapshotLimitsRequest(input)
  364. err := req.Send()
  365. return out, err
  366. }
  367. const opRestoreFromSnapshot = "RestoreFromSnapshot"
  368. // RestoreFromSnapshotRequest generates a request for the RestoreFromSnapshot operation.
  369. func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) (req *request.Request, output *RestoreFromSnapshotOutput) {
  370. op := &request.Operation{
  371. Name: opRestoreFromSnapshot,
  372. HTTPMethod: "POST",
  373. HTTPPath: "/",
  374. }
  375. if input == nil {
  376. input = &RestoreFromSnapshotInput{}
  377. }
  378. req = c.newRequest(op, input, output)
  379. output = &RestoreFromSnapshotOutput{}
  380. req.Data = output
  381. return
  382. }
  383. // Restores a directory using an existing directory snapshot.
  384. //
  385. // When you restore a directory from a snapshot, any changes made to the directory
  386. // after the snapshot date are overwritten.
  387. //
  388. // This action returns as soon as the restore operation is initiated. You can
  389. // monitor the progress of the restore operation by calling the DescribeDirectories
  390. // operation with the directory identifier. When the DirectoryDescription.Stage
  391. // value changes to Active, the restore operation is complete.
  392. func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) {
  393. req, out := c.RestoreFromSnapshotRequest(input)
  394. err := req.Send()
  395. return out, err
  396. }
  397. const opUpdateRadius = "UpdateRadius"
  398. // UpdateRadiusRequest generates a request for the UpdateRadius operation.
  399. func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *request.Request, output *UpdateRadiusOutput) {
  400. op := &request.Operation{
  401. Name: opUpdateRadius,
  402. HTTPMethod: "POST",
  403. HTTPPath: "/",
  404. }
  405. if input == nil {
  406. input = &UpdateRadiusInput{}
  407. }
  408. req = c.newRequest(op, input, output)
  409. output = &UpdateRadiusOutput{}
  410. req.Data = output
  411. return
  412. }
  413. // Updates the Remote Authentication Dial In User Service (RADIUS) server information
  414. // for an AD Connector directory.
  415. func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadiusOutput, error) {
  416. req, out := c.UpdateRadiusRequest(input)
  417. err := req.Send()
  418. return out, err
  419. }
  420. // Represents a named directory attribute.
  421. type Attribute struct {
  422. // The name of the attribute.
  423. Name *string `type:"string"`
  424. // The value of the attribute.
  425. Value *string `type:"string"`
  426. metadataAttribute `json:"-" xml:"-"`
  427. }
  428. type metadataAttribute struct {
  429. SDKShapeTraits bool `type:"structure"`
  430. }
  431. // String returns the string representation
  432. func (s Attribute) String() string {
  433. return awsutil.Prettify(s)
  434. }
  435. // GoString returns the string representation
  436. func (s Attribute) GoString() string {
  437. return s.String()
  438. }
  439. // Contains information about a computer account in a directory.
  440. type Computer struct {
  441. // An array of Attribute objects that contain the LDAP attributes that belong
  442. // to the computer account.
  443. ComputerAttributes []*Attribute `type:"list"`
  444. // The identifier of the computer.
  445. ComputerId *string `type:"string"`
  446. // The computer name.
  447. ComputerName *string `type:"string"`
  448. metadataComputer `json:"-" xml:"-"`
  449. }
  450. type metadataComputer struct {
  451. SDKShapeTraits bool `type:"structure"`
  452. }
  453. // String returns the string representation
  454. func (s Computer) String() string {
  455. return awsutil.Prettify(s)
  456. }
  457. // GoString returns the string representation
  458. func (s Computer) GoString() string {
  459. return s.String()
  460. }
  461. // Contains the inputs for the ConnectDirectory operation.
  462. type ConnectDirectoryInput struct {
  463. // A DirectoryConnectSettings object that contains additional information for
  464. // the operation.
  465. ConnectSettings *DirectoryConnectSettings `type:"structure" required:"true"`
  466. // A textual description for the directory.
  467. Description *string `type:"string"`
  468. // The fully-qualified name of the on-premises directory, such as corp.example.com.
  469. Name *string `type:"string" required:"true"`
  470. // The password for the on-premises user account.
  471. Password *string `type:"string" required:"true"`
  472. // The NetBIOS name of the on-premises directory, such as CORP.
  473. ShortName *string `type:"string"`
  474. // The size of the directory.
  475. Size *string `type:"string" required:"true" enum:"DirectorySize"`
  476. metadataConnectDirectoryInput `json:"-" xml:"-"`
  477. }
  478. type metadataConnectDirectoryInput struct {
  479. SDKShapeTraits bool `type:"structure"`
  480. }
  481. // String returns the string representation
  482. func (s ConnectDirectoryInput) String() string {
  483. return awsutil.Prettify(s)
  484. }
  485. // GoString returns the string representation
  486. func (s ConnectDirectoryInput) GoString() string {
  487. return s.String()
  488. }
  489. // Contains the results of the ConnectDirectory operation.
  490. type ConnectDirectoryOutput struct {
  491. // The identifier of the new directory.
  492. DirectoryId *string `type:"string"`
  493. metadataConnectDirectoryOutput `json:"-" xml:"-"`
  494. }
  495. type metadataConnectDirectoryOutput struct {
  496. SDKShapeTraits bool `type:"structure"`
  497. }
  498. // String returns the string representation
  499. func (s ConnectDirectoryOutput) String() string {
  500. return awsutil.Prettify(s)
  501. }
  502. // GoString returns the string representation
  503. func (s ConnectDirectoryOutput) GoString() string {
  504. return s.String()
  505. }
  506. // Contains the inputs for the CreateAlias operation.
  507. type CreateAliasInput struct {
  508. // The requested alias.
  509. //
  510. // The alias must be unique amongst all aliases in AWS. This operation will
  511. // throw an EntityAlreadyExistsException if this alias already exists.
  512. Alias *string `type:"string" required:"true"`
  513. // The identifier of the directory to create the alias for.
  514. DirectoryId *string `type:"string" required:"true"`
  515. metadataCreateAliasInput `json:"-" xml:"-"`
  516. }
  517. type metadataCreateAliasInput struct {
  518. SDKShapeTraits bool `type:"structure"`
  519. }
  520. // String returns the string representation
  521. func (s CreateAliasInput) String() string {
  522. return awsutil.Prettify(s)
  523. }
  524. // GoString returns the string representation
  525. func (s CreateAliasInput) GoString() string {
  526. return s.String()
  527. }
  528. // Contains the results of the CreateAlias operation.
  529. type CreateAliasOutput struct {
  530. // The alias for the directory.
  531. Alias *string `type:"string"`
  532. // The identifier of the directory.
  533. DirectoryId *string `type:"string"`
  534. metadataCreateAliasOutput `json:"-" xml:"-"`
  535. }
  536. type metadataCreateAliasOutput struct {
  537. SDKShapeTraits bool `type:"structure"`
  538. }
  539. // String returns the string representation
  540. func (s CreateAliasOutput) String() string {
  541. return awsutil.Prettify(s)
  542. }
  543. // GoString returns the string representation
  544. func (s CreateAliasOutput) GoString() string {
  545. return s.String()
  546. }
  547. // Contains the inputs for the CreateComputer operation.
  548. type CreateComputerInput struct {
  549. // An array of Attribute objects that contain any LDAP attributes to apply to
  550. // the computer account.
  551. ComputerAttributes []*Attribute `type:"list"`
  552. // The name of the computer account.
  553. ComputerName *string `type:"string" required:"true"`
  554. // The identifier of the directory to create the computer account in.
  555. DirectoryId *string `type:"string" required:"true"`
  556. // The fully-qualified distinguished name of the organizational unit to place
  557. // the computer account in.
  558. OrganizationalUnitDistinguishedName *string `type:"string"`
  559. // A one-time password that is used to join the computer to the directory. You
  560. // should generate a random, strong password to use for this parameter.
  561. Password *string `type:"string" required:"true"`
  562. metadataCreateComputerInput `json:"-" xml:"-"`
  563. }
  564. type metadataCreateComputerInput struct {
  565. SDKShapeTraits bool `type:"structure"`
  566. }
  567. // String returns the string representation
  568. func (s CreateComputerInput) String() string {
  569. return awsutil.Prettify(s)
  570. }
  571. // GoString returns the string representation
  572. func (s CreateComputerInput) GoString() string {
  573. return s.String()
  574. }
  575. // Contains the results for the CreateComputer operation.
  576. type CreateComputerOutput struct {
  577. // A Computer object the represents the computer account.
  578. Computer *Computer `type:"structure"`
  579. metadataCreateComputerOutput `json:"-" xml:"-"`
  580. }
  581. type metadataCreateComputerOutput struct {
  582. SDKShapeTraits bool `type:"structure"`
  583. }
  584. // String returns the string representation
  585. func (s CreateComputerOutput) String() string {
  586. return awsutil.Prettify(s)
  587. }
  588. // GoString returns the string representation
  589. func (s CreateComputerOutput) GoString() string {
  590. return s.String()
  591. }
  592. // Contains the inputs for the CreateDirectory operation.
  593. type CreateDirectoryInput struct {
  594. // A textual description for the directory.
  595. Description *string `type:"string"`
  596. // The fully qualified name for the directory, such as corp.example.com.
  597. Name *string `type:"string" required:"true"`
  598. // The password for the directory administrator. The directory creation process
  599. // creates a directory administrator account with the username Administrator
  600. // and this password.
  601. Password *string `type:"string" required:"true"`
  602. // The short name of the directory, such as CORP.
  603. ShortName *string `type:"string"`
  604. // The size of the directory.
  605. Size *string `type:"string" required:"true" enum:"DirectorySize"`
  606. // A DirectoryVpcSettings object that contains additional information for the
  607. // operation.
  608. VpcSettings *DirectoryVpcSettings `type:"structure"`
  609. metadataCreateDirectoryInput `json:"-" xml:"-"`
  610. }
  611. type metadataCreateDirectoryInput struct {
  612. SDKShapeTraits bool `type:"structure"`
  613. }
  614. // String returns the string representation
  615. func (s CreateDirectoryInput) String() string {
  616. return awsutil.Prettify(s)
  617. }
  618. // GoString returns the string representation
  619. func (s CreateDirectoryInput) GoString() string {
  620. return s.String()
  621. }
  622. // Contains the results of the CreateDirectory operation.
  623. type CreateDirectoryOutput struct {
  624. // The identifier of the directory that was created.
  625. DirectoryId *string `type:"string"`
  626. metadataCreateDirectoryOutput `json:"-" xml:"-"`
  627. }
  628. type metadataCreateDirectoryOutput struct {
  629. SDKShapeTraits bool `type:"structure"`
  630. }
  631. // String returns the string representation
  632. func (s CreateDirectoryOutput) String() string {
  633. return awsutil.Prettify(s)
  634. }
  635. // GoString returns the string representation
  636. func (s CreateDirectoryOutput) GoString() string {
  637. return s.String()
  638. }
  639. // Contains the inputs for the CreateSnapshot operation.
  640. type CreateSnapshotInput struct {
  641. // The identifier of the directory to take a snapshot of.
  642. DirectoryId *string `type:"string" required:"true"`
  643. // The descriptive name to apply to the snapshot.
  644. Name *string `type:"string"`
  645. metadataCreateSnapshotInput `json:"-" xml:"-"`
  646. }
  647. type metadataCreateSnapshotInput struct {
  648. SDKShapeTraits bool `type:"structure"`
  649. }
  650. // String returns the string representation
  651. func (s CreateSnapshotInput) String() string {
  652. return awsutil.Prettify(s)
  653. }
  654. // GoString returns the string representation
  655. func (s CreateSnapshotInput) GoString() string {
  656. return s.String()
  657. }
  658. // Contains the results of the CreateSnapshot operation.
  659. type CreateSnapshotOutput struct {
  660. // The identifier of the snapshot that was created.
  661. SnapshotId *string `type:"string"`
  662. metadataCreateSnapshotOutput `json:"-" xml:"-"`
  663. }
  664. type metadataCreateSnapshotOutput struct {
  665. SDKShapeTraits bool `type:"structure"`
  666. }
  667. // String returns the string representation
  668. func (s CreateSnapshotOutput) String() string {
  669. return awsutil.Prettify(s)
  670. }
  671. // GoString returns the string representation
  672. func (s CreateSnapshotOutput) GoString() string {
  673. return s.String()
  674. }
  675. // Contains the inputs for the DeleteDirectory operation.
  676. type DeleteDirectoryInput struct {
  677. // The identifier of the directory to delete.
  678. DirectoryId *string `type:"string" required:"true"`
  679. metadataDeleteDirectoryInput `json:"-" xml:"-"`
  680. }
  681. type metadataDeleteDirectoryInput struct {
  682. SDKShapeTraits bool `type:"structure"`
  683. }
  684. // String returns the string representation
  685. func (s DeleteDirectoryInput) String() string {
  686. return awsutil.Prettify(s)
  687. }
  688. // GoString returns the string representation
  689. func (s DeleteDirectoryInput) GoString() string {
  690. return s.String()
  691. }
  692. // Contains the results of the DeleteDirectory operation.
  693. type DeleteDirectoryOutput struct {
  694. // The directory identifier.
  695. DirectoryId *string `type:"string"`
  696. metadataDeleteDirectoryOutput `json:"-" xml:"-"`
  697. }
  698. type metadataDeleteDirectoryOutput struct {
  699. SDKShapeTraits bool `type:"structure"`
  700. }
  701. // String returns the string representation
  702. func (s DeleteDirectoryOutput) String() string {
  703. return awsutil.Prettify(s)
  704. }
  705. // GoString returns the string representation
  706. func (s DeleteDirectoryOutput) GoString() string {
  707. return s.String()
  708. }
  709. // Contains the inputs for the DeleteSnapshot operation.
  710. type DeleteSnapshotInput struct {
  711. // The identifier of the directory snapshot to be deleted.
  712. SnapshotId *string `type:"string" required:"true"`
  713. metadataDeleteSnapshotInput `json:"-" xml:"-"`
  714. }
  715. type metadataDeleteSnapshotInput struct {
  716. SDKShapeTraits bool `type:"structure"`
  717. }
  718. // String returns the string representation
  719. func (s DeleteSnapshotInput) String() string {
  720. return awsutil.Prettify(s)
  721. }
  722. // GoString returns the string representation
  723. func (s DeleteSnapshotInput) GoString() string {
  724. return s.String()
  725. }
  726. // Contains the results of the DeleteSnapshot operation.
  727. type DeleteSnapshotOutput struct {
  728. // The identifier of the directory snapshot that was deleted.
  729. SnapshotId *string `type:"string"`
  730. metadataDeleteSnapshotOutput `json:"-" xml:"-"`
  731. }
  732. type metadataDeleteSnapshotOutput struct {
  733. SDKShapeTraits bool `type:"structure"`
  734. }
  735. // String returns the string representation
  736. func (s DeleteSnapshotOutput) String() string {
  737. return awsutil.Prettify(s)
  738. }
  739. // GoString returns the string representation
  740. func (s DeleteSnapshotOutput) GoString() string {
  741. return s.String()
  742. }
  743. // Contains the inputs for the DescribeDirectories operation.
  744. type DescribeDirectoriesInput struct {
  745. // A list of identifiers of the directories to obtain the information for. If
  746. // this member is null, all directories that belong to the current account are
  747. // returned.
  748. //
  749. // An empty list results in an InvalidParameterException being thrown.
  750. DirectoryIds []*string `type:"list"`
  751. // The maximum number of items to return. If this value is zero, the maximum
  752. // number of items is specified by the limitations of the operation.
  753. Limit *int64 `type:"integer"`
  754. // The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories.
  755. // Pass null if this is the first call.
  756. NextToken *string `type:"string"`
  757. metadataDescribeDirectoriesInput `json:"-" xml:"-"`
  758. }
  759. type metadataDescribeDirectoriesInput struct {
  760. SDKShapeTraits bool `type:"structure"`
  761. }
  762. // String returns the string representation
  763. func (s DescribeDirectoriesInput) String() string {
  764. return awsutil.Prettify(s)
  765. }
  766. // GoString returns the string representation
  767. func (s DescribeDirectoriesInput) GoString() string {
  768. return s.String()
  769. }
  770. // Contains the results of the DescribeDirectories operation.
  771. type DescribeDirectoriesOutput struct {
  772. // The list of DirectoryDescription objects that were retrieved.
  773. //
  774. // It is possible that this list contains less than the number of items specified
  775. // in the Limit member of the request. This occurs if there are less than the
  776. // requested number of items left to retrieve, or if the limitations of the
  777. // operation have been exceeded.
  778. DirectoryDescriptions []*DirectoryDescription `type:"list"`
  779. // If not null, more results are available. Pass this value for the NextToken
  780. // parameter in a subsequent call to DescribeDirectories to retrieve the next
  781. // set of items.
  782. NextToken *string `type:"string"`
  783. metadataDescribeDirectoriesOutput `json:"-" xml:"-"`
  784. }
  785. type metadataDescribeDirectoriesOutput struct {
  786. SDKShapeTraits bool `type:"structure"`
  787. }
  788. // String returns the string representation
  789. func (s DescribeDirectoriesOutput) String() string {
  790. return awsutil.Prettify(s)
  791. }
  792. // GoString returns the string representation
  793. func (s DescribeDirectoriesOutput) GoString() string {
  794. return s.String()
  795. }
  796. // Contains the inputs for the DescribeSnapshots operation.
  797. type DescribeSnapshotsInput struct {
  798. // The identifier of the directory to retrieve snapshot information for.
  799. DirectoryId *string `type:"string"`
  800. // The maximum number of objects to return.
  801. Limit *int64 `type:"integer"`
  802. // The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots.
  803. // Pass null if this is the first call.
  804. NextToken *string `type:"string"`
  805. // A list of identifiers of the snapshots to obtain the information for. If
  806. // this member is null or empty, all snapshots are returned using the Limit
  807. // and NextToken members.
  808. SnapshotIds []*string `type:"list"`
  809. metadataDescribeSnapshotsInput `json:"-" xml:"-"`
  810. }
  811. type metadataDescribeSnapshotsInput struct {
  812. SDKShapeTraits bool `type:"structure"`
  813. }
  814. // String returns the string representation
  815. func (s DescribeSnapshotsInput) String() string {
  816. return awsutil.Prettify(s)
  817. }
  818. // GoString returns the string representation
  819. func (s DescribeSnapshotsInput) GoString() string {
  820. return s.String()
  821. }
  822. // Contains the results of the DescribeSnapshots operation.
  823. type DescribeSnapshotsOutput struct {
  824. // If not null, more results are available. Pass this value in the NextToken
  825. // member of a subsequent call to DescribeSnapshots.
  826. NextToken *string `type:"string"`
  827. // The list of Snapshot objects that were retrieved.
  828. //
  829. // It is possible that this list contains less than the number of items specified
  830. // in the Limit member of the request. This occurs if there are less than the
  831. // requested number of items left to retrieve, or if the limitations of the
  832. // operation have been exceeded.
  833. Snapshots []*Snapshot `type:"list"`
  834. metadataDescribeSnapshotsOutput `json:"-" xml:"-"`
  835. }
  836. type metadataDescribeSnapshotsOutput struct {
  837. SDKShapeTraits bool `type:"structure"`
  838. }
  839. // String returns the string representation
  840. func (s DescribeSnapshotsOutput) String() string {
  841. return awsutil.Prettify(s)
  842. }
  843. // GoString returns the string representation
  844. func (s DescribeSnapshotsOutput) GoString() string {
  845. return s.String()
  846. }
  847. // Contains information for the ConnectDirectory operation when an AD Connector
  848. // directory is being created.
  849. type DirectoryConnectSettings struct {
  850. // A list of one or more IP addresses of DNS servers or domain controllers in
  851. // the on-premises directory.
  852. CustomerDnsIps []*string `type:"list" required:"true"`
  853. // The username of an account in the on-premises directory that is used to connect
  854. // to the directory. This account must have the following privileges:
  855. //
  856. // Read users and groups Create computer objects Join computers to the domain
  857. CustomerUserName *string `type:"string" required:"true"`
  858. // A list of subnet identifiers in the VPC that the AD Connector is created
  859. // in.
  860. SubnetIds []*string `type:"list" required:"true"`
  861. // The identifier of the VPC that the AD Connector is created in.
  862. VpcId *string `type:"string" required:"true"`
  863. metadataDirectoryConnectSettings `json:"-" xml:"-"`
  864. }
  865. type metadataDirectoryConnectSettings struct {
  866. SDKShapeTraits bool `type:"structure"`
  867. }
  868. // String returns the string representation
  869. func (s DirectoryConnectSettings) String() string {
  870. return awsutil.Prettify(s)
  871. }
  872. // GoString returns the string representation
  873. func (s DirectoryConnectSettings) GoString() string {
  874. return s.String()
  875. }
  876. // Contains information about an AD Connector directory.
  877. type DirectoryConnectSettingsDescription struct {
  878. // A list of the Availability Zones that the directory is in.
  879. AvailabilityZones []*string `type:"list"`
  880. // The IP addresses of the AD Connector servers.
  881. ConnectIps []*string `type:"list"`
  882. // The username of the service account in the on-premises directory.
  883. CustomerUserName *string `type:"string"`
  884. // The security group identifier for the AD Connector directory.
  885. SecurityGroupId *string `type:"string"`
  886. // A list of subnet identifiers in the VPC that the AD connector is in.
  887. SubnetIds []*string `type:"list"`
  888. // The identifier of the VPC that the AD Connector is in.
  889. VpcId *string `type:"string"`
  890. metadataDirectoryConnectSettingsDescription `json:"-" xml:"-"`
  891. }
  892. type metadataDirectoryConnectSettingsDescription struct {
  893. SDKShapeTraits bool `type:"structure"`
  894. }
  895. // String returns the string representation
  896. func (s DirectoryConnectSettingsDescription) String() string {
  897. return awsutil.Prettify(s)
  898. }
  899. // GoString returns the string representation
  900. func (s DirectoryConnectSettingsDescription) GoString() string {
  901. return s.String()
  902. }
  903. // Contains information about an AWS Directory Service directory.
  904. type DirectoryDescription struct {
  905. // The access URL for the directory, such as http://<alias>.awsapps.com.
  906. AccessUrl *string `type:"string"`
  907. // The alias for the directory.
  908. Alias *string `type:"string"`
  909. // A DirectoryConnectSettingsDescription object that contains additional information
  910. // about an AD Connector directory. This member is only present if the directory
  911. // is an AD Connector directory.
  912. ConnectSettings *DirectoryConnectSettingsDescription `type:"structure"`
  913. // The textual description for the directory.
  914. Description *string `type:"string"`
  915. // The directory identifier.
  916. DirectoryId *string `type:"string"`
  917. // The IP addresses of the DNS servers for the directory. For a Simple AD directory,
  918. // these are the IP addresses of the Simple AD directory servers. For an AD
  919. // Connector directory, these are the IP addresses of the DNS servers or domain
  920. // controllers in the on-premises directory that the AD Connector is connected
  921. // to.
  922. DnsIpAddrs []*string `type:"list"`
  923. // Specifies when the directory was created.
  924. LaunchTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  925. // The fully-qualified name of the directory.
  926. Name *string `type:"string"`
  927. // A RadiusSettings object that contains information about the RADIUS server
  928. // configured for this directory.
  929. RadiusSettings *RadiusSettings `type:"structure"`
  930. // The status of the RADIUS MFA server connection.
  931. RadiusStatus *string `type:"string" enum:"RadiusStatus"`
  932. // The short name of the directory.
  933. ShortName *string `type:"string"`
  934. // The directory size.
  935. Size *string `type:"string" enum:"DirectorySize"`
  936. // Indicates if single-sign on is enabled for the directory. For more information,
  937. // see EnableSso and DisableSso.
  938. SsoEnabled *bool `type:"boolean"`
  939. // The current stage of the directory.
  940. Stage *string `type:"string" enum:"DirectoryStage"`
  941. // The date and time that the stage was last updated.
  942. StageLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  943. // Additional information about the directory stage.
  944. StageReason *string `type:"string"`
  945. // The directory size.
  946. Type *string `type:"string" enum:"DirectoryType"`
  947. // A DirectoryVpcSettingsDescription object that contains additional information
  948. // about a Simple AD directory. This member is only present if the directory
  949. // is a Simple AD directory.
  950. VpcSettings *DirectoryVpcSettingsDescription `type:"structure"`
  951. metadataDirectoryDescription `json:"-" xml:"-"`
  952. }
  953. type metadataDirectoryDescription struct {
  954. SDKShapeTraits bool `type:"structure"`
  955. }
  956. // String returns the string representation
  957. func (s DirectoryDescription) String() string {
  958. return awsutil.Prettify(s)
  959. }
  960. // GoString returns the string representation
  961. func (s DirectoryDescription) GoString() string {
  962. return s.String()
  963. }
  964. // Contains directory limit information for a region.
  965. type DirectoryLimits struct {
  966. // The current number of cloud directories in the region.
  967. CloudOnlyDirectoriesCurrentCount *int64 `type:"integer"`
  968. // The maximum number of cloud directories allowed in the region.
  969. CloudOnlyDirectoriesLimit *int64 `type:"integer"`
  970. // Indicates if the cloud directory limit has been reached.
  971. CloudOnlyDirectoriesLimitReached *bool `type:"boolean"`
  972. // The current number of connected directories in the region.
  973. ConnectedDirectoriesCurrentCount *int64 `type:"integer"`
  974. // The maximum number of connected directories allowed in the region.
  975. ConnectedDirectoriesLimit *int64 `type:"integer"`
  976. // Indicates if the connected directory limit has been reached.
  977. ConnectedDirectoriesLimitReached *bool `type:"boolean"`
  978. metadataDirectoryLimits `json:"-" xml:"-"`
  979. }
  980. type metadataDirectoryLimits struct {
  981. SDKShapeTraits bool `type:"structure"`
  982. }
  983. // String returns the string representation
  984. func (s DirectoryLimits) String() string {
  985. return awsutil.Prettify(s)
  986. }
  987. // GoString returns the string representation
  988. func (s DirectoryLimits) GoString() string {
  989. return s.String()
  990. }
  991. // Contains information for the CreateDirectory operation when a Simple AD directory
  992. // is being created.
  993. type DirectoryVpcSettings struct {
  994. // The identifiers of the subnets for the directory servers. The two subnets
  995. // must be in different Availability Zones. AWS Directory Service creates a
  996. // directory server and a DNS server in each of these subnets.
  997. SubnetIds []*string `type:"list" required:"true"`
  998. // The identifier of the VPC to create the Simple AD directory in.
  999. VpcId *string `type:"string" required:"true"`
  1000. metadataDirectoryVpcSettings `json:"-" xml:"-"`
  1001. }
  1002. type metadataDirectoryVpcSettings struct {
  1003. SDKShapeTraits bool `type:"structure"`
  1004. }
  1005. // String returns the string representation
  1006. func (s DirectoryVpcSettings) String() string {
  1007. return awsutil.Prettify(s)
  1008. }
  1009. // GoString returns the string representation
  1010. func (s DirectoryVpcSettings) GoString() string {
  1011. return s.String()
  1012. }
  1013. // Contains information about a Simple AD directory.
  1014. type DirectoryVpcSettingsDescription struct {
  1015. // The list of Availability Zones that the directory is in.
  1016. AvailabilityZones []*string `type:"list"`
  1017. // The security group identifier for the directory.
  1018. SecurityGroupId *string `type:"string"`
  1019. // The identifiers of the subnets for the directory servers.
  1020. SubnetIds []*string `type:"list"`
  1021. // The identifier of the VPC that the directory is in.
  1022. VpcId *string `type:"string"`
  1023. metadataDirectoryVpcSettingsDescription `json:"-" xml:"-"`
  1024. }
  1025. type metadataDirectoryVpcSettingsDescription struct {
  1026. SDKShapeTraits bool `type:"structure"`
  1027. }
  1028. // String returns the string representation
  1029. func (s DirectoryVpcSettingsDescription) String() string {
  1030. return awsutil.Prettify(s)
  1031. }
  1032. // GoString returns the string representation
  1033. func (s DirectoryVpcSettingsDescription) GoString() string {
  1034. return s.String()
  1035. }
  1036. // Contains the inputs for the DisableRadius operation.
  1037. type DisableRadiusInput struct {
  1038. // The identifier of the directory to disable MFA for.
  1039. DirectoryId *string `type:"string" required:"true"`
  1040. metadataDisableRadiusInput `json:"-" xml:"-"`
  1041. }
  1042. type metadataDisableRadiusInput struct {
  1043. SDKShapeTraits bool `type:"structure"`
  1044. }
  1045. // String returns the string representation
  1046. func (s DisableRadiusInput) String() string {
  1047. return awsutil.Prettify(s)
  1048. }
  1049. // GoString returns the string representation
  1050. func (s DisableRadiusInput) GoString() string {
  1051. return s.String()
  1052. }
  1053. // Contains the results of the DisableRadius operation.
  1054. type DisableRadiusOutput struct {
  1055. metadataDisableRadiusOutput `json:"-" xml:"-"`
  1056. }
  1057. type metadataDisableRadiusOutput struct {
  1058. SDKShapeTraits bool `type:"structure"`
  1059. }
  1060. // String returns the string representation
  1061. func (s DisableRadiusOutput) String() string {
  1062. return awsutil.Prettify(s)
  1063. }
  1064. // GoString returns the string representation
  1065. func (s DisableRadiusOutput) GoString() string {
  1066. return s.String()
  1067. }
  1068. // Contains the inputs for the DisableSso operation.
  1069. type DisableSsoInput struct {
  1070. // The identifier of the directory to disable single-sign on for.
  1071. DirectoryId *string `type:"string" required:"true"`
  1072. // The password of an alternate account to use to disable single-sign on. This
  1073. // is only used for AD Connector directories. See the UserName parameter for
  1074. // more information.
  1075. Password *string `type:"string"`
  1076. // The username of an alternate account to use to disable single-sign on. This
  1077. // is only used for AD Connector directories. This account must have privileges
  1078. // to remove a service principle name.
  1079. //
  1080. // If the AD Connector service account does not have privileges to remove a
  1081. // service principle name, you can specify an alternate account with the UserName
  1082. // and Password parameters. These credentials are only used to disable single
  1083. // sign-on and are not stored by the service. The AD Connector service account
  1084. // is not changed.
  1085. UserName *string `type:"string"`
  1086. metadataDisableSsoInput `json:"-" xml:"-"`
  1087. }
  1088. type metadataDisableSsoInput struct {
  1089. SDKShapeTraits bool `type:"structure"`
  1090. }
  1091. // String returns the string representation
  1092. func (s DisableSsoInput) String() string {
  1093. return awsutil.Prettify(s)
  1094. }
  1095. // GoString returns the string representation
  1096. func (s DisableSsoInput) GoString() string {
  1097. return s.String()
  1098. }
  1099. // Contains the results of the DisableSso operation.
  1100. type DisableSsoOutput struct {
  1101. metadataDisableSsoOutput `json:"-" xml:"-"`
  1102. }
  1103. type metadataDisableSsoOutput struct {
  1104. SDKShapeTraits bool `type:"structure"`
  1105. }
  1106. // String returns the string representation
  1107. func (s DisableSsoOutput) String() string {
  1108. return awsutil.Prettify(s)
  1109. }
  1110. // GoString returns the string representation
  1111. func (s DisableSsoOutput) GoString() string {
  1112. return s.String()
  1113. }
  1114. // Contains the inputs for the EnableRadius operation.
  1115. type EnableRadiusInput struct {
  1116. // The identifier of the directory to enable MFA for.
  1117. DirectoryId *string `type:"string" required:"true"`
  1118. // A RadiusSettings object that contains information about the RADIUS server.
  1119. RadiusSettings *RadiusSettings `type:"structure" required:"true"`
  1120. metadataEnableRadiusInput `json:"-" xml:"-"`
  1121. }
  1122. type metadataEnableRadiusInput struct {
  1123. SDKShapeTraits bool `type:"structure"`
  1124. }
  1125. // String returns the string representation
  1126. func (s EnableRadiusInput) String() string {
  1127. return awsutil.Prettify(s)
  1128. }
  1129. // GoString returns the string representation
  1130. func (s EnableRadiusInput) GoString() string {
  1131. return s.String()
  1132. }
  1133. // Contains the results of the EnableRadius operation.
  1134. type EnableRadiusOutput struct {
  1135. metadataEnableRadiusOutput `json:"-" xml:"-"`
  1136. }
  1137. type metadataEnableRadiusOutput struct {
  1138. SDKShapeTraits bool `type:"structure"`
  1139. }
  1140. // String returns the string representation
  1141. func (s EnableRadiusOutput) String() string {
  1142. return awsutil.Prettify(s)
  1143. }
  1144. // GoString returns the string representation
  1145. func (s EnableRadiusOutput) GoString() string {
  1146. return s.String()
  1147. }
  1148. // Contains the inputs for the EnableSso operation.
  1149. type EnableSsoInput struct {
  1150. // The identifier of the directory to enable single-sign on for.
  1151. DirectoryId *string `type:"string" required:"true"`
  1152. // The password of an alternate account to use to enable single-sign on. This
  1153. // is only used for AD Connector directories. See the UserName parameter for
  1154. // more information.
  1155. Password *string `type:"string"`
  1156. // The username of an alternate account to use to enable single-sign on. This
  1157. // is only used for AD Connector directories. This account must have privileges
  1158. // to add a service principle name.
  1159. //
  1160. // If the AD Connector service account does not have privileges to add a service
  1161. // principle name, you can specify an alternate account with the UserName and
  1162. // Password parameters. These credentials are only used to enable single sign-on
  1163. // and are not stored by the service. The AD Connector service account is not
  1164. // changed.
  1165. UserName *string `type:"string"`
  1166. metadataEnableSsoInput `json:"-" xml:"-"`
  1167. }
  1168. type metadataEnableSsoInput struct {
  1169. SDKShapeTraits bool `type:"structure"`
  1170. }
  1171. // String returns the string representation
  1172. func (s EnableSsoInput) String() string {
  1173. return awsutil.Prettify(s)
  1174. }
  1175. // GoString returns the string representation
  1176. func (s EnableSsoInput) GoString() string {
  1177. return s.String()
  1178. }
  1179. // Contains the results of the EnableSso operation.
  1180. type EnableSsoOutput struct {
  1181. metadataEnableSsoOutput `json:"-" xml:"-"`
  1182. }
  1183. type metadataEnableSsoOutput struct {
  1184. SDKShapeTraits bool `type:"structure"`
  1185. }
  1186. // String returns the string representation
  1187. func (s EnableSsoOutput) String() string {
  1188. return awsutil.Prettify(s)
  1189. }
  1190. // GoString returns the string representation
  1191. func (s EnableSsoOutput) GoString() string {
  1192. return s.String()
  1193. }
  1194. // Contains the inputs for the GetDirectoryLimits operation.
  1195. type GetDirectoryLimitsInput struct {
  1196. metadataGetDirectoryLimitsInput `json:"-" xml:"-"`
  1197. }
  1198. type metadataGetDirectoryLimitsInput struct {
  1199. SDKShapeTraits bool `type:"structure"`
  1200. }
  1201. // String returns the string representation
  1202. func (s GetDirectoryLimitsInput) String() string {
  1203. return awsutil.Prettify(s)
  1204. }
  1205. // GoString returns the string representation
  1206. func (s GetDirectoryLimitsInput) GoString() string {
  1207. return s.String()
  1208. }
  1209. // Contains the results of the GetDirectoryLimits operation.
  1210. type GetDirectoryLimitsOutput struct {
  1211. // A DirectoryLimits object that contains the directory limits for the current
  1212. // region.
  1213. DirectoryLimits *DirectoryLimits `type:"structure"`
  1214. metadataGetDirectoryLimitsOutput `json:"-" xml:"-"`
  1215. }
  1216. type metadataGetDirectoryLimitsOutput struct {
  1217. SDKShapeTraits bool `type:"structure"`
  1218. }
  1219. // String returns the string representation
  1220. func (s GetDirectoryLimitsOutput) String() string {
  1221. return awsutil.Prettify(s)
  1222. }
  1223. // GoString returns the string representation
  1224. func (s GetDirectoryLimitsOutput) GoString() string {
  1225. return s.String()
  1226. }
  1227. // Contains the inputs for the GetSnapshotLimits operation.
  1228. type GetSnapshotLimitsInput struct {
  1229. // Contains the identifier of the directory to obtain the limits for.
  1230. DirectoryId *string `type:"string" required:"true"`
  1231. metadataGetSnapshotLimitsInput `json:"-" xml:"-"`
  1232. }
  1233. type metadataGetSnapshotLimitsInput struct {
  1234. SDKShapeTraits bool `type:"structure"`
  1235. }
  1236. // String returns the string representation
  1237. func (s GetSnapshotLimitsInput) String() string {
  1238. return awsutil.Prettify(s)
  1239. }
  1240. // GoString returns the string representation
  1241. func (s GetSnapshotLimitsInput) GoString() string {
  1242. return s.String()
  1243. }
  1244. // Contains the results of the GetSnapshotLimits operation.
  1245. type GetSnapshotLimitsOutput struct {
  1246. // A SnapshotLimits object that contains the manual snapshot limits for the
  1247. // specified directory.
  1248. SnapshotLimits *SnapshotLimits `type:"structure"`
  1249. metadataGetSnapshotLimitsOutput `json:"-" xml:"-"`
  1250. }
  1251. type metadataGetSnapshotLimitsOutput struct {
  1252. SDKShapeTraits bool `type:"structure"`
  1253. }
  1254. // String returns the string representation
  1255. func (s GetSnapshotLimitsOutput) String() string {
  1256. return awsutil.Prettify(s)
  1257. }
  1258. // GoString returns the string representation
  1259. func (s GetSnapshotLimitsOutput) GoString() string {
  1260. return s.String()
  1261. }
  1262. // Contains information about a Remote Authentication Dial In User Service (RADIUS)
  1263. // server.
  1264. type RadiusSettings struct {
  1265. // The protocol specified for your RADIUS endpoints.
  1266. AuthenticationProtocol *string `type:"string" enum:"RadiusAuthenticationProtocol"`
  1267. // Not currently used.
  1268. DisplayLabel *string `type:"string"`
  1269. // The port that your RADIUS server is using for communications. Your on-premises
  1270. // network must allow inbound traffic over this port from the AWS Directory
  1271. // Service servers.
  1272. RadiusPort *int64 `type:"integer"`
  1273. // The maximum number of times that communication with the RADIUS server is
  1274. // attempted.
  1275. RadiusRetries *int64 `type:"integer"`
  1276. // An array of strings that contains the IP addresses of the RADIUS server endpoints,
  1277. // or the IP addresses of your RADIUS server load balancer.
  1278. RadiusServers []*string `type:"list"`
  1279. // The amount of time, in seconds, to wait for the RADIUS server to respond.
  1280. RadiusTimeout *int64 `type:"integer"`
  1281. // The shared secret code that was specified when your RADIUS endpoints were
  1282. // created.
  1283. SharedSecret *string `type:"string"`
  1284. // Not currently used.
  1285. UseSameUsername *bool `type:"boolean"`
  1286. metadataRadiusSettings `json:"-" xml:"-"`
  1287. }
  1288. type metadataRadiusSettings struct {
  1289. SDKShapeTraits bool `type:"structure"`
  1290. }
  1291. // String returns the string representation
  1292. func (s RadiusSettings) String() string {
  1293. return awsutil.Prettify(s)
  1294. }
  1295. // GoString returns the string representation
  1296. func (s RadiusSettings) GoString() string {
  1297. return s.String()
  1298. }
  1299. // An object representing the inputs for the RestoreFromSnapshot operation.
  1300. type RestoreFromSnapshotInput struct {
  1301. // The identifier of the snapshot to restore from.
  1302. SnapshotId *string `type:"string" required:"true"`
  1303. metadataRestoreFromSnapshotInput `json:"-" xml:"-"`
  1304. }
  1305. type metadataRestoreFromSnapshotInput struct {
  1306. SDKShapeTraits bool `type:"structure"`
  1307. }
  1308. // String returns the string representation
  1309. func (s RestoreFromSnapshotInput) String() string {
  1310. return awsutil.Prettify(s)
  1311. }
  1312. // GoString returns the string representation
  1313. func (s RestoreFromSnapshotInput) GoString() string {
  1314. return s.String()
  1315. }
  1316. // Contains the results of the RestoreFromSnapshot operation.
  1317. type RestoreFromSnapshotOutput struct {
  1318. metadataRestoreFromSnapshotOutput `json:"-" xml:"-"`
  1319. }
  1320. type metadataRestoreFromSnapshotOutput struct {
  1321. SDKShapeTraits bool `type:"structure"`
  1322. }
  1323. // String returns the string representation
  1324. func (s RestoreFromSnapshotOutput) String() string {
  1325. return awsutil.Prettify(s)
  1326. }
  1327. // GoString returns the string representation
  1328. func (s RestoreFromSnapshotOutput) GoString() string {
  1329. return s.String()
  1330. }
  1331. // Describes a directory snapshot.
  1332. type Snapshot struct {
  1333. // The directory identifier.
  1334. DirectoryId *string `type:"string"`
  1335. // The descriptive name of the snapshot.
  1336. Name *string `type:"string"`
  1337. // The snapshot identifier.
  1338. SnapshotId *string `type:"string"`
  1339. // The date and time that the snapshot was taken.
  1340. StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1341. // The snapshot status.
  1342. Status *string `type:"string" enum:"SnapshotStatus"`
  1343. // The snapshot type.
  1344. Type *string `type:"string" enum:"SnapshotType"`
  1345. metadataSnapshot `json:"-" xml:"-"`
  1346. }
  1347. type metadataSnapshot struct {
  1348. SDKShapeTraits bool `type:"structure"`
  1349. }
  1350. // String returns the string representation
  1351. func (s Snapshot) String() string {
  1352. return awsutil.Prettify(s)
  1353. }
  1354. // GoString returns the string representation
  1355. func (s Snapshot) GoString() string {
  1356. return s.String()
  1357. }
  1358. // Contains manual snapshot limit information for a directory.
  1359. type SnapshotLimits struct {
  1360. // The current number of manual snapshots of the directory.
  1361. ManualSnapshotsCurrentCount *int64 `type:"integer"`
  1362. // The maximum number of manual snapshots allowed.
  1363. ManualSnapshotsLimit *int64 `type:"integer"`
  1364. // Indicates if the manual snapshot limit has been reached.
  1365. ManualSnapshotsLimitReached *bool `type:"boolean"`
  1366. metadataSnapshotLimits `json:"-" xml:"-"`
  1367. }
  1368. type metadataSnapshotLimits struct {
  1369. SDKShapeTraits bool `type:"structure"`
  1370. }
  1371. // String returns the string representation
  1372. func (s SnapshotLimits) String() string {
  1373. return awsutil.Prettify(s)
  1374. }
  1375. // GoString returns the string representation
  1376. func (s SnapshotLimits) GoString() string {
  1377. return s.String()
  1378. }
  1379. // Contains the inputs for the UpdateRadius operation.
  1380. type UpdateRadiusInput struct {
  1381. // The identifier of the directory to update the RADIUS server information for.
  1382. DirectoryId *string `type:"string" required:"true"`
  1383. // A RadiusSettings object that contains information about the RADIUS server.
  1384. RadiusSettings *RadiusSettings `type:"structure" required:"true"`
  1385. metadataUpdateRadiusInput `json:"-" xml:"-"`
  1386. }
  1387. type metadataUpdateRadiusInput struct {
  1388. SDKShapeTraits bool `type:"structure"`
  1389. }
  1390. // String returns the string representation
  1391. func (s UpdateRadiusInput) String() string {
  1392. return awsutil.Prettify(s)
  1393. }
  1394. // GoString returns the string representation
  1395. func (s UpdateRadiusInput) GoString() string {
  1396. return s.String()
  1397. }
  1398. // Contains the results of the UpdateRadius operation.
  1399. type UpdateRadiusOutput struct {
  1400. metadataUpdateRadiusOutput `json:"-" xml:"-"`
  1401. }
  1402. type metadataUpdateRadiusOutput struct {
  1403. SDKShapeTraits bool `type:"structure"`
  1404. }
  1405. // String returns the string representation
  1406. func (s UpdateRadiusOutput) String() string {
  1407. return awsutil.Prettify(s)
  1408. }
  1409. // GoString returns the string representation
  1410. func (s UpdateRadiusOutput) GoString() string {
  1411. return s.String()
  1412. }
  1413. const (
  1414. // @enum DirectorySize
  1415. DirectorySizeSmall = "Small"
  1416. // @enum DirectorySize
  1417. DirectorySizeLarge = "Large"
  1418. )
  1419. const (
  1420. // @enum DirectoryStage
  1421. DirectoryStageRequested = "Requested"
  1422. // @enum DirectoryStage
  1423. DirectoryStageCreating = "Creating"
  1424. // @enum DirectoryStage
  1425. DirectoryStageCreated = "Created"
  1426. // @enum DirectoryStage
  1427. DirectoryStageActive = "Active"
  1428. // @enum DirectoryStage
  1429. DirectoryStageInoperable = "Inoperable"
  1430. // @enum DirectoryStage
  1431. DirectoryStageImpaired = "Impaired"
  1432. // @enum DirectoryStage
  1433. DirectoryStageRestoring = "Restoring"
  1434. // @enum DirectoryStage
  1435. DirectoryStageRestoreFailed = "RestoreFailed"
  1436. // @enum DirectoryStage
  1437. DirectoryStageDeleting = "Deleting"
  1438. // @enum DirectoryStage
  1439. DirectoryStageDeleted = "Deleted"
  1440. // @enum DirectoryStage
  1441. DirectoryStageFailed = "Failed"
  1442. )
  1443. const (
  1444. // @enum DirectoryType
  1445. DirectoryTypeSimpleAd = "SimpleAD"
  1446. // @enum DirectoryType
  1447. DirectoryTypeAdconnector = "ADConnector"
  1448. )
  1449. const (
  1450. // @enum RadiusAuthenticationProtocol
  1451. RadiusAuthenticationProtocolPap = "PAP"
  1452. // @enum RadiusAuthenticationProtocol
  1453. RadiusAuthenticationProtocolChap = "CHAP"
  1454. // @enum RadiusAuthenticationProtocol
  1455. RadiusAuthenticationProtocolMsChapv1 = "MS-CHAPv1"
  1456. // @enum RadiusAuthenticationProtocol
  1457. RadiusAuthenticationProtocolMsChapv2 = "MS-CHAPv2"
  1458. )
  1459. const (
  1460. // @enum RadiusStatus
  1461. RadiusStatusCreating = "Creating"
  1462. // @enum RadiusStatus
  1463. RadiusStatusCompleted = "Completed"
  1464. // @enum RadiusStatus
  1465. RadiusStatusFailed = "Failed"
  1466. )
  1467. const (
  1468. // @enum SnapshotStatus
  1469. SnapshotStatusCreating = "Creating"
  1470. // @enum SnapshotStatus
  1471. SnapshotStatusCompleted = "Completed"
  1472. // @enum SnapshotStatus
  1473. SnapshotStatusFailed = "Failed"
  1474. )
  1475. const (
  1476. // @enum SnapshotType
  1477. SnapshotTypeAuto = "Auto"
  1478. // @enum SnapshotType
  1479. SnapshotTypeManual = "Manual"
  1480. )