api.go 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package cognitosync provides a client for Amazon Cognito Sync.
  3. package cognitosync
  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 opBulkPublish = "BulkPublish"
  10. // BulkPublishRequest generates a request for the BulkPublish operation.
  11. func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request.Request, output *BulkPublishOutput) {
  12. op := &request.Operation{
  13. Name: opBulkPublish,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/identitypools/{IdentityPoolId}/bulkpublish",
  16. }
  17. if input == nil {
  18. input = &BulkPublishInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &BulkPublishOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Initiates a bulk publish of all existing datasets for an Identity Pool to
  26. // the configured stream. Customers are limited to one successful bulk publish
  27. // per 24 hours. Bulk publish is an asynchronous request, customers can see
  28. // the status of the request via the GetBulkPublishDetails operation.
  29. //
  30. // This API can only be called with developer credentials. You cannot call
  31. // this API with the temporary user credentials provided by Cognito Identity.
  32. func (c *CognitoSync) BulkPublish(input *BulkPublishInput) (*BulkPublishOutput, error) {
  33. req, out := c.BulkPublishRequest(input)
  34. err := req.Send()
  35. return out, err
  36. }
  37. const opDeleteDataset = "DeleteDataset"
  38. // DeleteDatasetRequest generates a request for the DeleteDataset operation.
  39. func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) {
  40. op := &request.Operation{
  41. Name: opDeleteDataset,
  42. HTTPMethod: "DELETE",
  43. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  44. }
  45. if input == nil {
  46. input = &DeleteDatasetInput{}
  47. }
  48. req = c.newRequest(op, input, output)
  49. output = &DeleteDatasetOutput{}
  50. req.Data = output
  51. return
  52. }
  53. // Deletes the specific dataset. The dataset will be deleted permanently, and
  54. // the action can't be undone. Datasets that this dataset was merged with will
  55. // no longer report the merge. Any subsequent operation on this dataset will
  56. // result in a ResourceNotFoundException.
  57. //
  58. // This API can be called with temporary user credentials provided by Cognito
  59. // Identity or with developer credentials.
  60. func (c *CognitoSync) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) {
  61. req, out := c.DeleteDatasetRequest(input)
  62. err := req.Send()
  63. return out, err
  64. }
  65. const opDescribeDataset = "DescribeDataset"
  66. // DescribeDatasetRequest generates a request for the DescribeDataset operation.
  67. func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) {
  68. op := &request.Operation{
  69. Name: opDescribeDataset,
  70. HTTPMethod: "GET",
  71. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  72. }
  73. if input == nil {
  74. input = &DescribeDatasetInput{}
  75. }
  76. req = c.newRequest(op, input, output)
  77. output = &DescribeDatasetOutput{}
  78. req.Data = output
  79. return
  80. }
  81. // Gets meta data about a dataset by identity and dataset name. With Amazon
  82. // Cognito Sync, each identity has access only to its own data. Thus, the credentials
  83. // used to make this API call need to have access to the identity data.
  84. //
  85. // This API can be called with temporary user credentials provided by Cognito
  86. // Identity or with developer credentials. You should use Cognito Identity credentials
  87. // to make this API call.
  88. func (c *CognitoSync) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) {
  89. req, out := c.DescribeDatasetRequest(input)
  90. err := req.Send()
  91. return out, err
  92. }
  93. const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage"
  94. // DescribeIdentityPoolUsageRequest generates a request for the DescribeIdentityPoolUsage operation.
  95. func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPoolUsageInput) (req *request.Request, output *DescribeIdentityPoolUsageOutput) {
  96. op := &request.Operation{
  97. Name: opDescribeIdentityPoolUsage,
  98. HTTPMethod: "GET",
  99. HTTPPath: "/identitypools/{IdentityPoolId}",
  100. }
  101. if input == nil {
  102. input = &DescribeIdentityPoolUsageInput{}
  103. }
  104. req = c.newRequest(op, input, output)
  105. output = &DescribeIdentityPoolUsageOutput{}
  106. req.Data = output
  107. return
  108. }
  109. // Gets usage details (for example, data storage) about a particular identity
  110. // pool.
  111. //
  112. // This API can only be called with developer credentials. You cannot call
  113. // this API with the temporary user credentials provided by Cognito Identity.
  114. func (c *CognitoSync) DescribeIdentityPoolUsage(input *DescribeIdentityPoolUsageInput) (*DescribeIdentityPoolUsageOutput, error) {
  115. req, out := c.DescribeIdentityPoolUsageRequest(input)
  116. err := req.Send()
  117. return out, err
  118. }
  119. const opDescribeIdentityUsage = "DescribeIdentityUsage"
  120. // DescribeIdentityUsageRequest generates a request for the DescribeIdentityUsage operation.
  121. func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageInput) (req *request.Request, output *DescribeIdentityUsageOutput) {
  122. op := &request.Operation{
  123. Name: opDescribeIdentityUsage,
  124. HTTPMethod: "GET",
  125. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}",
  126. }
  127. if input == nil {
  128. input = &DescribeIdentityUsageInput{}
  129. }
  130. req = c.newRequest(op, input, output)
  131. output = &DescribeIdentityUsageOutput{}
  132. req.Data = output
  133. return
  134. }
  135. // Gets usage information for an identity, including number of datasets and
  136. // data usage.
  137. //
  138. // This API can be called with temporary user credentials provided by Cognito
  139. // Identity or with developer credentials.
  140. func (c *CognitoSync) DescribeIdentityUsage(input *DescribeIdentityUsageInput) (*DescribeIdentityUsageOutput, error) {
  141. req, out := c.DescribeIdentityUsageRequest(input)
  142. err := req.Send()
  143. return out, err
  144. }
  145. const opGetBulkPublishDetails = "GetBulkPublishDetails"
  146. // GetBulkPublishDetailsRequest generates a request for the GetBulkPublishDetails operation.
  147. func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsInput) (req *request.Request, output *GetBulkPublishDetailsOutput) {
  148. op := &request.Operation{
  149. Name: opGetBulkPublishDetails,
  150. HTTPMethod: "POST",
  151. HTTPPath: "/identitypools/{IdentityPoolId}/getBulkPublishDetails",
  152. }
  153. if input == nil {
  154. input = &GetBulkPublishDetailsInput{}
  155. }
  156. req = c.newRequest(op, input, output)
  157. output = &GetBulkPublishDetailsOutput{}
  158. req.Data = output
  159. return
  160. }
  161. // Get the status of the last BulkPublish operation for an identity pool.
  162. //
  163. // This API can only be called with developer credentials. You cannot call
  164. // this API with the temporary user credentials provided by Cognito Identity.
  165. func (c *CognitoSync) GetBulkPublishDetails(input *GetBulkPublishDetailsInput) (*GetBulkPublishDetailsOutput, error) {
  166. req, out := c.GetBulkPublishDetailsRequest(input)
  167. err := req.Send()
  168. return out, err
  169. }
  170. const opGetCognitoEvents = "GetCognitoEvents"
  171. // GetCognitoEventsRequest generates a request for the GetCognitoEvents operation.
  172. func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req *request.Request, output *GetCognitoEventsOutput) {
  173. op := &request.Operation{
  174. Name: opGetCognitoEvents,
  175. HTTPMethod: "GET",
  176. HTTPPath: "/identitypools/{IdentityPoolId}/events",
  177. }
  178. if input == nil {
  179. input = &GetCognitoEventsInput{}
  180. }
  181. req = c.newRequest(op, input, output)
  182. output = &GetCognitoEventsOutput{}
  183. req.Data = output
  184. return
  185. }
  186. // Gets the events and the corresponding Lambda functions associated with an
  187. // identity pool.
  188. //
  189. // This API can only be called with developer credentials. You cannot call
  190. // this API with the temporary user credentials provided by Cognito Identity.
  191. func (c *CognitoSync) GetCognitoEvents(input *GetCognitoEventsInput) (*GetCognitoEventsOutput, error) {
  192. req, out := c.GetCognitoEventsRequest(input)
  193. err := req.Send()
  194. return out, err
  195. }
  196. const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration"
  197. // GetIdentityPoolConfigurationRequest generates a request for the GetIdentityPoolConfiguration operation.
  198. func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPoolConfigurationInput) (req *request.Request, output *GetIdentityPoolConfigurationOutput) {
  199. op := &request.Operation{
  200. Name: opGetIdentityPoolConfiguration,
  201. HTTPMethod: "GET",
  202. HTTPPath: "/identitypools/{IdentityPoolId}/configuration",
  203. }
  204. if input == nil {
  205. input = &GetIdentityPoolConfigurationInput{}
  206. }
  207. req = c.newRequest(op, input, output)
  208. output = &GetIdentityPoolConfigurationOutput{}
  209. req.Data = output
  210. return
  211. }
  212. // Gets the configuration settings of an identity pool.
  213. //
  214. // This API can only be called with developer credentials. You cannot call
  215. // this API with the temporary user credentials provided by Cognito Identity.
  216. func (c *CognitoSync) GetIdentityPoolConfiguration(input *GetIdentityPoolConfigurationInput) (*GetIdentityPoolConfigurationOutput, error) {
  217. req, out := c.GetIdentityPoolConfigurationRequest(input)
  218. err := req.Send()
  219. return out, err
  220. }
  221. const opListDatasets = "ListDatasets"
  222. // ListDatasetsRequest generates a request for the ListDatasets operation.
  223. func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) {
  224. op := &request.Operation{
  225. Name: opListDatasets,
  226. HTTPMethod: "GET",
  227. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets",
  228. }
  229. if input == nil {
  230. input = &ListDatasetsInput{}
  231. }
  232. req = c.newRequest(op, input, output)
  233. output = &ListDatasetsOutput{}
  234. req.Data = output
  235. return
  236. }
  237. // Lists datasets for an identity. With Amazon Cognito Sync, each identity has
  238. // access only to its own data. Thus, the credentials used to make this API
  239. // call need to have access to the identity data.
  240. //
  241. // ListDatasets can be called with temporary user credentials provided by Cognito
  242. // Identity or with developer credentials. You should use the Cognito Identity
  243. // credentials to make this API call.
  244. func (c *CognitoSync) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) {
  245. req, out := c.ListDatasetsRequest(input)
  246. err := req.Send()
  247. return out, err
  248. }
  249. const opListIdentityPoolUsage = "ListIdentityPoolUsage"
  250. // ListIdentityPoolUsageRequest generates a request for the ListIdentityPoolUsage operation.
  251. func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageInput) (req *request.Request, output *ListIdentityPoolUsageOutput) {
  252. op := &request.Operation{
  253. Name: opListIdentityPoolUsage,
  254. HTTPMethod: "GET",
  255. HTTPPath: "/identitypools",
  256. }
  257. if input == nil {
  258. input = &ListIdentityPoolUsageInput{}
  259. }
  260. req = c.newRequest(op, input, output)
  261. output = &ListIdentityPoolUsageOutput{}
  262. req.Data = output
  263. return
  264. }
  265. // Gets a list of identity pools registered with Cognito.
  266. //
  267. // ListIdentityPoolUsage can only be called with developer credentials. You
  268. // cannot make this API call with the temporary user credentials provided by
  269. // Cognito Identity.
  270. func (c *CognitoSync) ListIdentityPoolUsage(input *ListIdentityPoolUsageInput) (*ListIdentityPoolUsageOutput, error) {
  271. req, out := c.ListIdentityPoolUsageRequest(input)
  272. err := req.Send()
  273. return out, err
  274. }
  275. const opListRecords = "ListRecords"
  276. // ListRecordsRequest generates a request for the ListRecords operation.
  277. func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request.Request, output *ListRecordsOutput) {
  278. op := &request.Operation{
  279. Name: opListRecords,
  280. HTTPMethod: "GET",
  281. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records",
  282. }
  283. if input == nil {
  284. input = &ListRecordsInput{}
  285. }
  286. req = c.newRequest(op, input, output)
  287. output = &ListRecordsOutput{}
  288. req.Data = output
  289. return
  290. }
  291. // Gets paginated records, optionally changed after a particular sync count
  292. // for a dataset and identity. With Amazon Cognito Sync, each identity has access
  293. // only to its own data. Thus, the credentials used to make this API call need
  294. // to have access to the identity data.
  295. //
  296. // ListRecords can be called with temporary user credentials provided by Cognito
  297. // Identity or with developer credentials. You should use Cognito Identity credentials
  298. // to make this API call.
  299. func (c *CognitoSync) ListRecords(input *ListRecordsInput) (*ListRecordsOutput, error) {
  300. req, out := c.ListRecordsRequest(input)
  301. err := req.Send()
  302. return out, err
  303. }
  304. const opRegisterDevice = "RegisterDevice"
  305. // RegisterDeviceRequest generates a request for the RegisterDevice operation.
  306. func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *request.Request, output *RegisterDeviceOutput) {
  307. op := &request.Operation{
  308. Name: opRegisterDevice,
  309. HTTPMethod: "POST",
  310. HTTPPath: "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device",
  311. }
  312. if input == nil {
  313. input = &RegisterDeviceInput{}
  314. }
  315. req = c.newRequest(op, input, output)
  316. output = &RegisterDeviceOutput{}
  317. req.Data = output
  318. return
  319. }
  320. // Registers a device to receive push sync notifications.
  321. //
  322. // This API can only be called with temporary credentials provided by Cognito
  323. // Identity. You cannot call this API with developer credentials.
  324. func (c *CognitoSync) RegisterDevice(input *RegisterDeviceInput) (*RegisterDeviceOutput, error) {
  325. req, out := c.RegisterDeviceRequest(input)
  326. err := req.Send()
  327. return out, err
  328. }
  329. const opSetCognitoEvents = "SetCognitoEvents"
  330. // SetCognitoEventsRequest generates a request for the SetCognitoEvents operation.
  331. func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req *request.Request, output *SetCognitoEventsOutput) {
  332. op := &request.Operation{
  333. Name: opSetCognitoEvents,
  334. HTTPMethod: "POST",
  335. HTTPPath: "/identitypools/{IdentityPoolId}/events",
  336. }
  337. if input == nil {
  338. input = &SetCognitoEventsInput{}
  339. }
  340. req = c.newRequest(op, input, output)
  341. output = &SetCognitoEventsOutput{}
  342. req.Data = output
  343. return
  344. }
  345. // Sets the AWS Lambda function for a given event type for an identity pool.
  346. // This request only updates the key/value pair specified. Other key/values
  347. // pairs are not updated. To remove a key value pair, pass a empty value for
  348. // the particular key.
  349. //
  350. // This API can only be called with developer credentials. You cannot call
  351. // this API with the temporary user credentials provided by Cognito Identity.
  352. func (c *CognitoSync) SetCognitoEvents(input *SetCognitoEventsInput) (*SetCognitoEventsOutput, error) {
  353. req, out := c.SetCognitoEventsRequest(input)
  354. err := req.Send()
  355. return out, err
  356. }
  357. const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration"
  358. // SetIdentityPoolConfigurationRequest generates a request for the SetIdentityPoolConfiguration operation.
  359. func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPoolConfigurationInput) (req *request.Request, output *SetIdentityPoolConfigurationOutput) {
  360. op := &request.Operation{
  361. Name: opSetIdentityPoolConfiguration,
  362. HTTPMethod: "POST",
  363. HTTPPath: "/identitypools/{IdentityPoolId}/configuration",
  364. }
  365. if input == nil {
  366. input = &SetIdentityPoolConfigurationInput{}
  367. }
  368. req = c.newRequest(op, input, output)
  369. output = &SetIdentityPoolConfigurationOutput{}
  370. req.Data = output
  371. return
  372. }
  373. // Sets the necessary configuration for push sync.
  374. //
  375. // This API can only be called with developer credentials. You cannot call
  376. // this API with the temporary user credentials provided by Cognito Identity.
  377. func (c *CognitoSync) SetIdentityPoolConfiguration(input *SetIdentityPoolConfigurationInput) (*SetIdentityPoolConfigurationOutput, error) {
  378. req, out := c.SetIdentityPoolConfigurationRequest(input)
  379. err := req.Send()
  380. return out, err
  381. }
  382. const opSubscribeToDataset = "SubscribeToDataset"
  383. // SubscribeToDatasetRequest generates a request for the SubscribeToDataset operation.
  384. func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) (req *request.Request, output *SubscribeToDatasetOutput) {
  385. op := &request.Operation{
  386. Name: opSubscribeToDataset,
  387. HTTPMethod: "POST",
  388. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",
  389. }
  390. if input == nil {
  391. input = &SubscribeToDatasetInput{}
  392. }
  393. req = c.newRequest(op, input, output)
  394. output = &SubscribeToDatasetOutput{}
  395. req.Data = output
  396. return
  397. }
  398. // Subscribes to receive notifications when a dataset is modified by another
  399. // device.
  400. //
  401. // This API can only be called with temporary credentials provided by Cognito
  402. // Identity. You cannot call this API with developer credentials.
  403. func (c *CognitoSync) SubscribeToDataset(input *SubscribeToDatasetInput) (*SubscribeToDatasetOutput, error) {
  404. req, out := c.SubscribeToDatasetRequest(input)
  405. err := req.Send()
  406. return out, err
  407. }
  408. const opUnsubscribeFromDataset = "UnsubscribeFromDataset"
  409. // UnsubscribeFromDatasetRequest generates a request for the UnsubscribeFromDataset operation.
  410. func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatasetInput) (req *request.Request, output *UnsubscribeFromDatasetOutput) {
  411. op := &request.Operation{
  412. Name: opUnsubscribeFromDataset,
  413. HTTPMethod: "DELETE",
  414. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",
  415. }
  416. if input == nil {
  417. input = &UnsubscribeFromDatasetInput{}
  418. }
  419. req = c.newRequest(op, input, output)
  420. output = &UnsubscribeFromDatasetOutput{}
  421. req.Data = output
  422. return
  423. }
  424. // Unsubscribes from receiving notifications when a dataset is modified by another
  425. // device.
  426. //
  427. // This API can only be called with temporary credentials provided by Cognito
  428. // Identity. You cannot call this API with developer credentials.
  429. func (c *CognitoSync) UnsubscribeFromDataset(input *UnsubscribeFromDatasetInput) (*UnsubscribeFromDatasetOutput, error) {
  430. req, out := c.UnsubscribeFromDatasetRequest(input)
  431. err := req.Send()
  432. return out, err
  433. }
  434. const opUpdateRecords = "UpdateRecords"
  435. // UpdateRecordsRequest generates a request for the UpdateRecords operation.
  436. func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *request.Request, output *UpdateRecordsOutput) {
  437. op := &request.Operation{
  438. Name: opUpdateRecords,
  439. HTTPMethod: "POST",
  440. HTTPPath: "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  441. }
  442. if input == nil {
  443. input = &UpdateRecordsInput{}
  444. }
  445. req = c.newRequest(op, input, output)
  446. output = &UpdateRecordsOutput{}
  447. req.Data = output
  448. return
  449. }
  450. // Posts updates to records and adds and deletes records for a dataset and user.
  451. //
  452. // The sync count in the record patch is your last known sync count for that
  453. // record. The server will reject an UpdateRecords request with a ResourceConflictException
  454. // if you try to patch a record with a new value but a stale sync count.
  455. //
  456. // For example, if the sync count on the server is 5 for a key called highScore
  457. // and you try and submit a new highScore with sync count of 4, the request
  458. // will be rejected. To obtain the current sync count for a record, call ListRecords.
  459. // On a successful update of the record, the response returns the new sync count
  460. // for that record. You should present that sync count the next time you try
  461. // to update that same record. When the record does not exist, specify the sync
  462. // count as 0.
  463. //
  464. // This API can be called with temporary user credentials provided by Cognito
  465. // Identity or with developer credentials.
  466. func (c *CognitoSync) UpdateRecords(input *UpdateRecordsInput) (*UpdateRecordsOutput, error) {
  467. req, out := c.UpdateRecordsRequest(input)
  468. err := req.Send()
  469. return out, err
  470. }
  471. // The input for the BulkPublish operation.
  472. type BulkPublishInput struct {
  473. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  474. // created by Amazon Cognito. GUID generation is unique within a region.
  475. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  476. metadataBulkPublishInput `json:"-" xml:"-"`
  477. }
  478. type metadataBulkPublishInput struct {
  479. SDKShapeTraits bool `type:"structure"`
  480. }
  481. // String returns the string representation
  482. func (s BulkPublishInput) String() string {
  483. return awsutil.Prettify(s)
  484. }
  485. // GoString returns the string representation
  486. func (s BulkPublishInput) GoString() string {
  487. return s.String()
  488. }
  489. // The output for the BulkPublish operation.
  490. type BulkPublishOutput struct {
  491. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  492. // created by Amazon Cognito. GUID generation is unique within a region.
  493. IdentityPoolId *string `type:"string"`
  494. metadataBulkPublishOutput `json:"-" xml:"-"`
  495. }
  496. type metadataBulkPublishOutput struct {
  497. SDKShapeTraits bool `type:"structure"`
  498. }
  499. // String returns the string representation
  500. func (s BulkPublishOutput) String() string {
  501. return awsutil.Prettify(s)
  502. }
  503. // GoString returns the string representation
  504. func (s BulkPublishOutput) GoString() string {
  505. return s.String()
  506. }
  507. // Configuration options for configure Cognito streams.
  508. type CognitoStreams struct {
  509. // The ARN of the role Amazon Cognito can assume in order to publish to the
  510. // stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke
  511. // PutRecord on your Cognito stream.
  512. RoleArn *string `type:"string"`
  513. // The name of the Cognito stream to receive updates. This stream must be in
  514. // the developers account and in the same region as the identity pool.
  515. StreamName *string `type:"string"`
  516. // Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates
  517. // to identity pool is enabled.
  518. //
  519. // DISABLED - Streaming of updates to identity pool is disabled. Bulk publish
  520. // will also fail if StreamingStatus is DISABLED.
  521. StreamingStatus *string `type:"string" enum:"StreamingStatus"`
  522. metadataCognitoStreams `json:"-" xml:"-"`
  523. }
  524. type metadataCognitoStreams struct {
  525. SDKShapeTraits bool `type:"structure"`
  526. }
  527. // String returns the string representation
  528. func (s CognitoStreams) String() string {
  529. return awsutil.Prettify(s)
  530. }
  531. // GoString returns the string representation
  532. func (s CognitoStreams) GoString() string {
  533. return s.String()
  534. }
  535. // A collection of data for an identity pool. An identity pool can have multiple
  536. // datasets. A dataset is per identity and can be general or associated with
  537. // a particular entity in an application (like a saved game). Datasets are automatically
  538. // created if they don't exist. Data is synced by dataset, and a dataset can
  539. // hold up to 1MB of key-value pairs.
  540. type Dataset struct {
  541. // Date on which the dataset was created.
  542. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  543. // Total size in bytes of the records in this dataset.
  544. DataStorage *int64 `type:"long"`
  545. // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
  546. // (underscore), '-' (dash), and '.' (dot).
  547. DatasetName *string `type:"string"`
  548. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  549. // created by Amazon Cognito. GUID generation is unique within a region.
  550. IdentityId *string `type:"string"`
  551. // The device that made the last change to this dataset.
  552. LastModifiedBy *string `type:"string"`
  553. // Date when the dataset was last modified.
  554. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  555. // Number of records in this dataset.
  556. NumRecords *int64 `type:"long"`
  557. metadataDataset `json:"-" xml:"-"`
  558. }
  559. type metadataDataset struct {
  560. SDKShapeTraits bool `type:"structure"`
  561. }
  562. // String returns the string representation
  563. func (s Dataset) String() string {
  564. return awsutil.Prettify(s)
  565. }
  566. // GoString returns the string representation
  567. func (s Dataset) GoString() string {
  568. return s.String()
  569. }
  570. // A request to delete the specific dataset.
  571. type DeleteDatasetInput struct {
  572. // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
  573. // (underscore), '-' (dash), and '.' (dot).
  574. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  575. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  576. // created by Amazon Cognito. GUID generation is unique within a region.
  577. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  578. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  579. // created by Amazon Cognito. GUID generation is unique within a region.
  580. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  581. metadataDeleteDatasetInput `json:"-" xml:"-"`
  582. }
  583. type metadataDeleteDatasetInput struct {
  584. SDKShapeTraits bool `type:"structure"`
  585. }
  586. // String returns the string representation
  587. func (s DeleteDatasetInput) String() string {
  588. return awsutil.Prettify(s)
  589. }
  590. // GoString returns the string representation
  591. func (s DeleteDatasetInput) GoString() string {
  592. return s.String()
  593. }
  594. // Response to a successful DeleteDataset request.
  595. type DeleteDatasetOutput struct {
  596. // A collection of data for an identity pool. An identity pool can have multiple
  597. // datasets. A dataset is per identity and can be general or associated with
  598. // a particular entity in an application (like a saved game). Datasets are automatically
  599. // created if they don't exist. Data is synced by dataset, and a dataset can
  600. // hold up to 1MB of key-value pairs.
  601. Dataset *Dataset `type:"structure"`
  602. metadataDeleteDatasetOutput `json:"-" xml:"-"`
  603. }
  604. type metadataDeleteDatasetOutput struct {
  605. SDKShapeTraits bool `type:"structure"`
  606. }
  607. // String returns the string representation
  608. func (s DeleteDatasetOutput) String() string {
  609. return awsutil.Prettify(s)
  610. }
  611. // GoString returns the string representation
  612. func (s DeleteDatasetOutput) GoString() string {
  613. return s.String()
  614. }
  615. // A request for meta data about a dataset (creation date, number of records,
  616. // size) by owner and dataset name.
  617. type DescribeDatasetInput struct {
  618. // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
  619. // (underscore), '-' (dash), and '.' (dot).
  620. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  621. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  622. // created by Amazon Cognito. GUID generation is unique within a region.
  623. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  624. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  625. // created by Amazon Cognito. GUID generation is unique within a region.
  626. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  627. metadataDescribeDatasetInput `json:"-" xml:"-"`
  628. }
  629. type metadataDescribeDatasetInput struct {
  630. SDKShapeTraits bool `type:"structure"`
  631. }
  632. // String returns the string representation
  633. func (s DescribeDatasetInput) String() string {
  634. return awsutil.Prettify(s)
  635. }
  636. // GoString returns the string representation
  637. func (s DescribeDatasetInput) GoString() string {
  638. return s.String()
  639. }
  640. // Response to a successful DescribeDataset request.
  641. type DescribeDatasetOutput struct {
  642. // Meta data for a collection of data for an identity. An identity can have
  643. // multiple datasets. A dataset can be general or associated with a particular
  644. // entity in an application (like a saved game). Datasets are automatically
  645. // created if they don't exist. Data is synced by dataset, and a dataset can
  646. // hold up to 1MB of key-value pairs.
  647. Dataset *Dataset `type:"structure"`
  648. metadataDescribeDatasetOutput `json:"-" xml:"-"`
  649. }
  650. type metadataDescribeDatasetOutput struct {
  651. SDKShapeTraits bool `type:"structure"`
  652. }
  653. // String returns the string representation
  654. func (s DescribeDatasetOutput) String() string {
  655. return awsutil.Prettify(s)
  656. }
  657. // GoString returns the string representation
  658. func (s DescribeDatasetOutput) GoString() string {
  659. return s.String()
  660. }
  661. // A request for usage information about the identity pool.
  662. type DescribeIdentityPoolUsageInput struct {
  663. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  664. // created by Amazon Cognito. GUID generation is unique within a region.
  665. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  666. metadataDescribeIdentityPoolUsageInput `json:"-" xml:"-"`
  667. }
  668. type metadataDescribeIdentityPoolUsageInput struct {
  669. SDKShapeTraits bool `type:"structure"`
  670. }
  671. // String returns the string representation
  672. func (s DescribeIdentityPoolUsageInput) String() string {
  673. return awsutil.Prettify(s)
  674. }
  675. // GoString returns the string representation
  676. func (s DescribeIdentityPoolUsageInput) GoString() string {
  677. return s.String()
  678. }
  679. // Response to a successful DescribeIdentityPoolUsage request.
  680. type DescribeIdentityPoolUsageOutput struct {
  681. // Information about the usage of the identity pool.
  682. IdentityPoolUsage *IdentityPoolUsage `type:"structure"`
  683. metadataDescribeIdentityPoolUsageOutput `json:"-" xml:"-"`
  684. }
  685. type metadataDescribeIdentityPoolUsageOutput struct {
  686. SDKShapeTraits bool `type:"structure"`
  687. }
  688. // String returns the string representation
  689. func (s DescribeIdentityPoolUsageOutput) String() string {
  690. return awsutil.Prettify(s)
  691. }
  692. // GoString returns the string representation
  693. func (s DescribeIdentityPoolUsageOutput) GoString() string {
  694. return s.String()
  695. }
  696. // A request for information about the usage of an identity pool.
  697. type DescribeIdentityUsageInput struct {
  698. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  699. // created by Amazon Cognito. GUID generation is unique within a region.
  700. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  701. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  702. // created by Amazon Cognito. GUID generation is unique within a region.
  703. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  704. metadataDescribeIdentityUsageInput `json:"-" xml:"-"`
  705. }
  706. type metadataDescribeIdentityUsageInput struct {
  707. SDKShapeTraits bool `type:"structure"`
  708. }
  709. // String returns the string representation
  710. func (s DescribeIdentityUsageInput) String() string {
  711. return awsutil.Prettify(s)
  712. }
  713. // GoString returns the string representation
  714. func (s DescribeIdentityUsageInput) GoString() string {
  715. return s.String()
  716. }
  717. // The response to a successful DescribeIdentityUsage request.
  718. type DescribeIdentityUsageOutput struct {
  719. // Usage information for the identity.
  720. IdentityUsage *IdentityUsage `type:"structure"`
  721. metadataDescribeIdentityUsageOutput `json:"-" xml:"-"`
  722. }
  723. type metadataDescribeIdentityUsageOutput struct {
  724. SDKShapeTraits bool `type:"structure"`
  725. }
  726. // String returns the string representation
  727. func (s DescribeIdentityUsageOutput) String() string {
  728. return awsutil.Prettify(s)
  729. }
  730. // GoString returns the string representation
  731. func (s DescribeIdentityUsageOutput) GoString() string {
  732. return s.String()
  733. }
  734. // The input for the GetBulkPublishDetails operation.
  735. type GetBulkPublishDetailsInput struct {
  736. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  737. // created by Amazon Cognito. GUID generation is unique within a region.
  738. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  739. metadataGetBulkPublishDetailsInput `json:"-" xml:"-"`
  740. }
  741. type metadataGetBulkPublishDetailsInput struct {
  742. SDKShapeTraits bool `type:"structure"`
  743. }
  744. // String returns the string representation
  745. func (s GetBulkPublishDetailsInput) String() string {
  746. return awsutil.Prettify(s)
  747. }
  748. // GoString returns the string representation
  749. func (s GetBulkPublishDetailsInput) GoString() string {
  750. return s.String()
  751. }
  752. // The output for the GetBulkPublishDetails operation.
  753. type GetBulkPublishDetailsOutput struct {
  754. // If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation
  755. // completed.
  756. BulkPublishCompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  757. // The date/time at which the last bulk publish was initiated.
  758. BulkPublishStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  759. // Status of the last bulk publish operation, valid values are: NOT_STARTED
  760. // - No bulk publish has been requested for this identity pool
  761. //
  762. // IN_PROGRESS - Data is being published to the configured stream
  763. //
  764. // SUCCEEDED - All data for the identity pool has been published to the configured
  765. // stream
  766. //
  767. // FAILED - Some portion of the data has failed to publish, check FailureMessage
  768. // for the cause.
  769. BulkPublishStatus *string `type:"string" enum:"BulkPublishStatus"`
  770. // If BulkPublishStatus is FAILED this field will contain the error message
  771. // that caused the bulk publish to fail.
  772. FailureMessage *string `type:"string"`
  773. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  774. // created by Amazon Cognito. GUID generation is unique within a region.
  775. IdentityPoolId *string `type:"string"`
  776. metadataGetBulkPublishDetailsOutput `json:"-" xml:"-"`
  777. }
  778. type metadataGetBulkPublishDetailsOutput struct {
  779. SDKShapeTraits bool `type:"structure"`
  780. }
  781. // String returns the string representation
  782. func (s GetBulkPublishDetailsOutput) String() string {
  783. return awsutil.Prettify(s)
  784. }
  785. // GoString returns the string representation
  786. func (s GetBulkPublishDetailsOutput) GoString() string {
  787. return s.String()
  788. }
  789. // A request for a list of the configured Cognito Events
  790. type GetCognitoEventsInput struct {
  791. // The Cognito Identity Pool ID for the request
  792. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  793. metadataGetCognitoEventsInput `json:"-" xml:"-"`
  794. }
  795. type metadataGetCognitoEventsInput struct {
  796. SDKShapeTraits bool `type:"structure"`
  797. }
  798. // String returns the string representation
  799. func (s GetCognitoEventsInput) String() string {
  800. return awsutil.Prettify(s)
  801. }
  802. // GoString returns the string representation
  803. func (s GetCognitoEventsInput) GoString() string {
  804. return s.String()
  805. }
  806. // The response from the GetCognitoEvents request
  807. type GetCognitoEventsOutput struct {
  808. // The Cognito Events returned from the GetCognitoEvents request
  809. Events map[string]*string `type:"map"`
  810. metadataGetCognitoEventsOutput `json:"-" xml:"-"`
  811. }
  812. type metadataGetCognitoEventsOutput struct {
  813. SDKShapeTraits bool `type:"structure"`
  814. }
  815. // String returns the string representation
  816. func (s GetCognitoEventsOutput) String() string {
  817. return awsutil.Prettify(s)
  818. }
  819. // GoString returns the string representation
  820. func (s GetCognitoEventsOutput) GoString() string {
  821. return s.String()
  822. }
  823. // The input for the GetIdentityPoolConfiguration operation.
  824. type GetIdentityPoolConfigurationInput struct {
  825. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  826. // created by Amazon Cognito. This is the ID of the pool for which to return
  827. // a configuration.
  828. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  829. metadataGetIdentityPoolConfigurationInput `json:"-" xml:"-"`
  830. }
  831. type metadataGetIdentityPoolConfigurationInput struct {
  832. SDKShapeTraits bool `type:"structure"`
  833. }
  834. // String returns the string representation
  835. func (s GetIdentityPoolConfigurationInput) String() string {
  836. return awsutil.Prettify(s)
  837. }
  838. // GoString returns the string representation
  839. func (s GetIdentityPoolConfigurationInput) GoString() string {
  840. return s.String()
  841. }
  842. // The output for the GetIdentityPoolConfiguration operation.
  843. type GetIdentityPoolConfigurationOutput struct {
  844. // Options to apply to this identity pool for Amazon Cognito streams.
  845. CognitoStreams *CognitoStreams `type:"structure"`
  846. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  847. // created by Amazon Cognito.
  848. IdentityPoolId *string `type:"string"`
  849. // Options to apply to this identity pool for push synchronization.
  850. PushSync *PushSync `type:"structure"`
  851. metadataGetIdentityPoolConfigurationOutput `json:"-" xml:"-"`
  852. }
  853. type metadataGetIdentityPoolConfigurationOutput struct {
  854. SDKShapeTraits bool `type:"structure"`
  855. }
  856. // String returns the string representation
  857. func (s GetIdentityPoolConfigurationOutput) String() string {
  858. return awsutil.Prettify(s)
  859. }
  860. // GoString returns the string representation
  861. func (s GetIdentityPoolConfigurationOutput) GoString() string {
  862. return s.String()
  863. }
  864. // Usage information for the identity pool.
  865. type IdentityPoolUsage struct {
  866. // Data storage information for the identity pool.
  867. DataStorage *int64 `type:"long"`
  868. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  869. // created by Amazon Cognito. GUID generation is unique within a region.
  870. IdentityPoolId *string `type:"string"`
  871. // Date on which the identity pool was last modified.
  872. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  873. // Number of sync sessions for the identity pool.
  874. SyncSessionsCount *int64 `type:"long"`
  875. metadataIdentityPoolUsage `json:"-" xml:"-"`
  876. }
  877. type metadataIdentityPoolUsage struct {
  878. SDKShapeTraits bool `type:"structure"`
  879. }
  880. // String returns the string representation
  881. func (s IdentityPoolUsage) String() string {
  882. return awsutil.Prettify(s)
  883. }
  884. // GoString returns the string representation
  885. func (s IdentityPoolUsage) GoString() string {
  886. return s.String()
  887. }
  888. // Usage information for the identity.
  889. type IdentityUsage struct {
  890. // Total data storage for this identity.
  891. DataStorage *int64 `type:"long"`
  892. // Number of datasets for the identity.
  893. DatasetCount *int64 `type:"integer"`
  894. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  895. // created by Amazon Cognito. GUID generation is unique within a region.
  896. IdentityId *string `type:"string"`
  897. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  898. // created by Amazon Cognito. GUID generation is unique within a region.
  899. IdentityPoolId *string `type:"string"`
  900. // Date on which the identity was last modified.
  901. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  902. metadataIdentityUsage `json:"-" xml:"-"`
  903. }
  904. type metadataIdentityUsage struct {
  905. SDKShapeTraits bool `type:"structure"`
  906. }
  907. // String returns the string representation
  908. func (s IdentityUsage) String() string {
  909. return awsutil.Prettify(s)
  910. }
  911. // GoString returns the string representation
  912. func (s IdentityUsage) GoString() string {
  913. return s.String()
  914. }
  915. // Request for a list of datasets for an identity.
  916. type ListDatasetsInput struct {
  917. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  918. // created by Amazon Cognito. GUID generation is unique within a region.
  919. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  920. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  921. // created by Amazon Cognito. GUID generation is unique within a region.
  922. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  923. // The maximum number of results to be returned.
  924. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  925. // A pagination token for obtaining the next page of results.
  926. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  927. metadataListDatasetsInput `json:"-" xml:"-"`
  928. }
  929. type metadataListDatasetsInput struct {
  930. SDKShapeTraits bool `type:"structure"`
  931. }
  932. // String returns the string representation
  933. func (s ListDatasetsInput) String() string {
  934. return awsutil.Prettify(s)
  935. }
  936. // GoString returns the string representation
  937. func (s ListDatasetsInput) GoString() string {
  938. return s.String()
  939. }
  940. // Returned for a successful ListDatasets request.
  941. type ListDatasetsOutput struct {
  942. // Number of datasets returned.
  943. Count *int64 `type:"integer"`
  944. // A set of datasets.
  945. Datasets []*Dataset `type:"list"`
  946. // A pagination token for obtaining the next page of results.
  947. NextToken *string `type:"string"`
  948. metadataListDatasetsOutput `json:"-" xml:"-"`
  949. }
  950. type metadataListDatasetsOutput struct {
  951. SDKShapeTraits bool `type:"structure"`
  952. }
  953. // String returns the string representation
  954. func (s ListDatasetsOutput) String() string {
  955. return awsutil.Prettify(s)
  956. }
  957. // GoString returns the string representation
  958. func (s ListDatasetsOutput) GoString() string {
  959. return s.String()
  960. }
  961. // A request for usage information on an identity pool.
  962. type ListIdentityPoolUsageInput struct {
  963. // The maximum number of results to be returned.
  964. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  965. // A pagination token for obtaining the next page of results.
  966. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  967. metadataListIdentityPoolUsageInput `json:"-" xml:"-"`
  968. }
  969. type metadataListIdentityPoolUsageInput struct {
  970. SDKShapeTraits bool `type:"structure"`
  971. }
  972. // String returns the string representation
  973. func (s ListIdentityPoolUsageInput) String() string {
  974. return awsutil.Prettify(s)
  975. }
  976. // GoString returns the string representation
  977. func (s ListIdentityPoolUsageInput) GoString() string {
  978. return s.String()
  979. }
  980. // Returned for a successful ListIdentityPoolUsage request.
  981. type ListIdentityPoolUsageOutput struct {
  982. // Total number of identities for the identity pool.
  983. Count *int64 `type:"integer"`
  984. // Usage information for the identity pools.
  985. IdentityPoolUsages []*IdentityPoolUsage `type:"list"`
  986. // The maximum number of results to be returned.
  987. MaxResults *int64 `type:"integer"`
  988. // A pagination token for obtaining the next page of results.
  989. NextToken *string `type:"string"`
  990. metadataListIdentityPoolUsageOutput `json:"-" xml:"-"`
  991. }
  992. type metadataListIdentityPoolUsageOutput struct {
  993. SDKShapeTraits bool `type:"structure"`
  994. }
  995. // String returns the string representation
  996. func (s ListIdentityPoolUsageOutput) String() string {
  997. return awsutil.Prettify(s)
  998. }
  999. // GoString returns the string representation
  1000. func (s ListIdentityPoolUsageOutput) GoString() string {
  1001. return s.String()
  1002. }
  1003. // A request for a list of records.
  1004. type ListRecordsInput struct {
  1005. // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
  1006. // (underscore), '-' (dash), and '.' (dot).
  1007. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  1008. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1009. // created by Amazon Cognito. GUID generation is unique within a region.
  1010. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  1011. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1012. // created by Amazon Cognito. GUID generation is unique within a region.
  1013. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1014. // The last server sync count for this record.
  1015. LastSyncCount *int64 `location:"querystring" locationName:"lastSyncCount" type:"long"`
  1016. // The maximum number of results to be returned.
  1017. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  1018. // A pagination token for obtaining the next page of results.
  1019. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  1020. // A token containing a session ID, identity ID, and expiration.
  1021. SyncSessionToken *string `location:"querystring" locationName:"syncSessionToken" type:"string"`
  1022. metadataListRecordsInput `json:"-" xml:"-"`
  1023. }
  1024. type metadataListRecordsInput struct {
  1025. SDKShapeTraits bool `type:"structure"`
  1026. }
  1027. // String returns the string representation
  1028. func (s ListRecordsInput) String() string {
  1029. return awsutil.Prettify(s)
  1030. }
  1031. // GoString returns the string representation
  1032. func (s ListRecordsInput) GoString() string {
  1033. return s.String()
  1034. }
  1035. // Returned for a successful ListRecordsRequest.
  1036. type ListRecordsOutput struct {
  1037. // Total number of records.
  1038. Count *int64 `type:"integer"`
  1039. // A boolean value specifying whether to delete the dataset locally.
  1040. DatasetDeletedAfterRequestedSyncCount *bool `type:"boolean"`
  1041. // Indicates whether the dataset exists.
  1042. DatasetExists *bool `type:"boolean"`
  1043. // Server sync count for this dataset.
  1044. DatasetSyncCount *int64 `type:"long"`
  1045. // The user/device that made the last change to this record.
  1046. LastModifiedBy *string `type:"string"`
  1047. // Names of merged datasets.
  1048. MergedDatasetNames []*string `type:"list"`
  1049. // A pagination token for obtaining the next page of results.
  1050. NextToken *string `type:"string"`
  1051. // A list of all records.
  1052. Records []*Record `type:"list"`
  1053. // A token containing a session ID, identity ID, and expiration.
  1054. SyncSessionToken *string `type:"string"`
  1055. metadataListRecordsOutput `json:"-" xml:"-"`
  1056. }
  1057. type metadataListRecordsOutput struct {
  1058. SDKShapeTraits bool `type:"structure"`
  1059. }
  1060. // String returns the string representation
  1061. func (s ListRecordsOutput) String() string {
  1062. return awsutil.Prettify(s)
  1063. }
  1064. // GoString returns the string representation
  1065. func (s ListRecordsOutput) GoString() string {
  1066. return s.String()
  1067. }
  1068. // Configuration options to be applied to the identity pool.
  1069. type PushSync struct {
  1070. // List of SNS platform application ARNs that could be used by clients.
  1071. ApplicationArns []*string `type:"list"`
  1072. // A role configured to allow Cognito to call SNS on behalf of the developer.
  1073. RoleArn *string `type:"string"`
  1074. metadataPushSync `json:"-" xml:"-"`
  1075. }
  1076. type metadataPushSync struct {
  1077. SDKShapeTraits bool `type:"structure"`
  1078. }
  1079. // String returns the string representation
  1080. func (s PushSync) String() string {
  1081. return awsutil.Prettify(s)
  1082. }
  1083. // GoString returns the string representation
  1084. func (s PushSync) GoString() string {
  1085. return s.String()
  1086. }
  1087. // The basic data structure of a dataset.
  1088. type Record struct {
  1089. // The last modified date of the client device.
  1090. DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1091. // The key for the record.
  1092. Key *string `type:"string"`
  1093. // The user/device that made the last change to this record.
  1094. LastModifiedBy *string `type:"string"`
  1095. // The date on which the record was last modified.
  1096. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1097. // The server sync count for this record.
  1098. SyncCount *int64 `type:"long"`
  1099. // The value for the record.
  1100. Value *string `type:"string"`
  1101. metadataRecord `json:"-" xml:"-"`
  1102. }
  1103. type metadataRecord struct {
  1104. SDKShapeTraits bool `type:"structure"`
  1105. }
  1106. // String returns the string representation
  1107. func (s Record) String() string {
  1108. return awsutil.Prettify(s)
  1109. }
  1110. // GoString returns the string representation
  1111. func (s Record) GoString() string {
  1112. return s.String()
  1113. }
  1114. // An update operation for a record.
  1115. type RecordPatch struct {
  1116. // The last modified date of the client device.
  1117. DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1118. // The key associated with the record patch.
  1119. Key *string `type:"string" required:"true"`
  1120. // An operation, either replace or remove.
  1121. Op *string `type:"string" required:"true" enum:"Operation"`
  1122. // Last known server sync count for this record. Set to 0 if unknown.
  1123. SyncCount *int64 `type:"long" required:"true"`
  1124. // The value associated with the record patch.
  1125. Value *string `type:"string"`
  1126. metadataRecordPatch `json:"-" xml:"-"`
  1127. }
  1128. type metadataRecordPatch struct {
  1129. SDKShapeTraits bool `type:"structure"`
  1130. }
  1131. // String returns the string representation
  1132. func (s RecordPatch) String() string {
  1133. return awsutil.Prettify(s)
  1134. }
  1135. // GoString returns the string representation
  1136. func (s RecordPatch) GoString() string {
  1137. return s.String()
  1138. }
  1139. // A request to RegisterDevice.
  1140. type RegisterDeviceInput struct {
  1141. // The unique ID for this identity.
  1142. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  1143. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1144. // created by Amazon Cognito. Here, the ID of the pool that the identity belongs
  1145. // to.
  1146. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1147. // The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
  1148. Platform *string `type:"string" required:"true" enum:"Platform"`
  1149. // The push token.
  1150. Token *string `type:"string" required:"true"`
  1151. metadataRegisterDeviceInput `json:"-" xml:"-"`
  1152. }
  1153. type metadataRegisterDeviceInput struct {
  1154. SDKShapeTraits bool `type:"structure"`
  1155. }
  1156. // String returns the string representation
  1157. func (s RegisterDeviceInput) String() string {
  1158. return awsutil.Prettify(s)
  1159. }
  1160. // GoString returns the string representation
  1161. func (s RegisterDeviceInput) GoString() string {
  1162. return s.String()
  1163. }
  1164. // Response to a RegisterDevice request.
  1165. type RegisterDeviceOutput struct {
  1166. // The unique ID generated for this device by Cognito.
  1167. DeviceId *string `type:"string"`
  1168. metadataRegisterDeviceOutput `json:"-" xml:"-"`
  1169. }
  1170. type metadataRegisterDeviceOutput struct {
  1171. SDKShapeTraits bool `type:"structure"`
  1172. }
  1173. // String returns the string representation
  1174. func (s RegisterDeviceOutput) String() string {
  1175. return awsutil.Prettify(s)
  1176. }
  1177. // GoString returns the string representation
  1178. func (s RegisterDeviceOutput) GoString() string {
  1179. return s.String()
  1180. }
  1181. // A request to configure Cognito Events"
  1182. //
  1183. // "
  1184. type SetCognitoEventsInput struct {
  1185. // The events to configure
  1186. Events map[string]*string `type:"map" required:"true"`
  1187. // The Cognito Identity Pool to use when configuring Cognito Events
  1188. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1189. metadataSetCognitoEventsInput `json:"-" xml:"-"`
  1190. }
  1191. type metadataSetCognitoEventsInput struct {
  1192. SDKShapeTraits bool `type:"structure"`
  1193. }
  1194. // String returns the string representation
  1195. func (s SetCognitoEventsInput) String() string {
  1196. return awsutil.Prettify(s)
  1197. }
  1198. // GoString returns the string representation
  1199. func (s SetCognitoEventsInput) GoString() string {
  1200. return s.String()
  1201. }
  1202. type SetCognitoEventsOutput struct {
  1203. metadataSetCognitoEventsOutput `json:"-" xml:"-"`
  1204. }
  1205. type metadataSetCognitoEventsOutput struct {
  1206. SDKShapeTraits bool `type:"structure"`
  1207. }
  1208. // String returns the string representation
  1209. func (s SetCognitoEventsOutput) String() string {
  1210. return awsutil.Prettify(s)
  1211. }
  1212. // GoString returns the string representation
  1213. func (s SetCognitoEventsOutput) GoString() string {
  1214. return s.String()
  1215. }
  1216. // The input for the SetIdentityPoolConfiguration operation.
  1217. type SetIdentityPoolConfigurationInput struct {
  1218. // Options to apply to this identity pool for Amazon Cognito streams.
  1219. CognitoStreams *CognitoStreams `type:"structure"`
  1220. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1221. // created by Amazon Cognito. This is the ID of the pool to modify.
  1222. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1223. // Options to apply to this identity pool for push synchronization.
  1224. PushSync *PushSync `type:"structure"`
  1225. metadataSetIdentityPoolConfigurationInput `json:"-" xml:"-"`
  1226. }
  1227. type metadataSetIdentityPoolConfigurationInput struct {
  1228. SDKShapeTraits bool `type:"structure"`
  1229. }
  1230. // String returns the string representation
  1231. func (s SetIdentityPoolConfigurationInput) String() string {
  1232. return awsutil.Prettify(s)
  1233. }
  1234. // GoString returns the string representation
  1235. func (s SetIdentityPoolConfigurationInput) GoString() string {
  1236. return s.String()
  1237. }
  1238. // The output for the SetIdentityPoolConfiguration operation
  1239. type SetIdentityPoolConfigurationOutput struct {
  1240. // Options to apply to this identity pool for Amazon Cognito streams.
  1241. CognitoStreams *CognitoStreams `type:"structure"`
  1242. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1243. // created by Amazon Cognito.
  1244. IdentityPoolId *string `type:"string"`
  1245. // Options to apply to this identity pool for push synchronization.
  1246. PushSync *PushSync `type:"structure"`
  1247. metadataSetIdentityPoolConfigurationOutput `json:"-" xml:"-"`
  1248. }
  1249. type metadataSetIdentityPoolConfigurationOutput struct {
  1250. SDKShapeTraits bool `type:"structure"`
  1251. }
  1252. // String returns the string representation
  1253. func (s SetIdentityPoolConfigurationOutput) String() string {
  1254. return awsutil.Prettify(s)
  1255. }
  1256. // GoString returns the string representation
  1257. func (s SetIdentityPoolConfigurationOutput) GoString() string {
  1258. return s.String()
  1259. }
  1260. // A request to SubscribeToDatasetRequest.
  1261. type SubscribeToDatasetInput struct {
  1262. // The name of the dataset to subcribe to.
  1263. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  1264. // The unique ID generated for this device by Cognito.
  1265. DeviceId *string `location:"uri" locationName:"DeviceId" type:"string" required:"true"`
  1266. // Unique ID for this identity.
  1267. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  1268. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1269. // created by Amazon Cognito. The ID of the pool to which the identity belongs.
  1270. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1271. metadataSubscribeToDatasetInput `json:"-" xml:"-"`
  1272. }
  1273. type metadataSubscribeToDatasetInput struct {
  1274. SDKShapeTraits bool `type:"structure"`
  1275. }
  1276. // String returns the string representation
  1277. func (s SubscribeToDatasetInput) String() string {
  1278. return awsutil.Prettify(s)
  1279. }
  1280. // GoString returns the string representation
  1281. func (s SubscribeToDatasetInput) GoString() string {
  1282. return s.String()
  1283. }
  1284. // Response to a SubscribeToDataset request.
  1285. type SubscribeToDatasetOutput struct {
  1286. metadataSubscribeToDatasetOutput `json:"-" xml:"-"`
  1287. }
  1288. type metadataSubscribeToDatasetOutput struct {
  1289. SDKShapeTraits bool `type:"structure"`
  1290. }
  1291. // String returns the string representation
  1292. func (s SubscribeToDatasetOutput) String() string {
  1293. return awsutil.Prettify(s)
  1294. }
  1295. // GoString returns the string representation
  1296. func (s SubscribeToDatasetOutput) GoString() string {
  1297. return s.String()
  1298. }
  1299. // A request to UnsubscribeFromDataset.
  1300. type UnsubscribeFromDatasetInput struct {
  1301. // The name of the dataset from which to unsubcribe.
  1302. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  1303. // The unique ID generated for this device by Cognito.
  1304. DeviceId *string `location:"uri" locationName:"DeviceId" type:"string" required:"true"`
  1305. // Unique ID for this identity.
  1306. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  1307. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1308. // created by Amazon Cognito. The ID of the pool to which this identity belongs.
  1309. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1310. metadataUnsubscribeFromDatasetInput `json:"-" xml:"-"`
  1311. }
  1312. type metadataUnsubscribeFromDatasetInput struct {
  1313. SDKShapeTraits bool `type:"structure"`
  1314. }
  1315. // String returns the string representation
  1316. func (s UnsubscribeFromDatasetInput) String() string {
  1317. return awsutil.Prettify(s)
  1318. }
  1319. // GoString returns the string representation
  1320. func (s UnsubscribeFromDatasetInput) GoString() string {
  1321. return s.String()
  1322. }
  1323. // Response to an UnsubscribeFromDataset request.
  1324. type UnsubscribeFromDatasetOutput struct {
  1325. metadataUnsubscribeFromDatasetOutput `json:"-" xml:"-"`
  1326. }
  1327. type metadataUnsubscribeFromDatasetOutput struct {
  1328. SDKShapeTraits bool `type:"structure"`
  1329. }
  1330. // String returns the string representation
  1331. func (s UnsubscribeFromDatasetOutput) String() string {
  1332. return awsutil.Prettify(s)
  1333. }
  1334. // GoString returns the string representation
  1335. func (s UnsubscribeFromDatasetOutput) GoString() string {
  1336. return s.String()
  1337. }
  1338. // A request to post updates to records or add and delete records for a dataset
  1339. // and user.
  1340. type UpdateRecordsInput struct {
  1341. // Intended to supply a device ID that will populate the lastModifiedBy field
  1342. // referenced in other methods. The ClientContext field is not yet implemented.
  1343. ClientContext *string `location:"header" locationName:"x-amz-Client-Context" type:"string"`
  1344. // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
  1345. // (underscore), '-' (dash), and '.' (dot).
  1346. DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"`
  1347. // The unique ID generated for this device by Cognito.
  1348. DeviceId *string `type:"string"`
  1349. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1350. // created by Amazon Cognito. GUID generation is unique within a region.
  1351. IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"`
  1352. // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
  1353. // created by Amazon Cognito. GUID generation is unique within a region.
  1354. IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"`
  1355. // A list of patch operations.
  1356. RecordPatches []*RecordPatch `type:"list"`
  1357. // The SyncSessionToken returned by a previous call to ListRecords for this
  1358. // dataset and identity.
  1359. SyncSessionToken *string `type:"string" required:"true"`
  1360. metadataUpdateRecordsInput `json:"-" xml:"-"`
  1361. }
  1362. type metadataUpdateRecordsInput struct {
  1363. SDKShapeTraits bool `type:"structure"`
  1364. }
  1365. // String returns the string representation
  1366. func (s UpdateRecordsInput) String() string {
  1367. return awsutil.Prettify(s)
  1368. }
  1369. // GoString returns the string representation
  1370. func (s UpdateRecordsInput) GoString() string {
  1371. return s.String()
  1372. }
  1373. // Returned for a successful UpdateRecordsRequest.
  1374. type UpdateRecordsOutput struct {
  1375. // A list of records that have been updated.
  1376. Records []*Record `type:"list"`
  1377. metadataUpdateRecordsOutput `json:"-" xml:"-"`
  1378. }
  1379. type metadataUpdateRecordsOutput struct {
  1380. SDKShapeTraits bool `type:"structure"`
  1381. }
  1382. // String returns the string representation
  1383. func (s UpdateRecordsOutput) String() string {
  1384. return awsutil.Prettify(s)
  1385. }
  1386. // GoString returns the string representation
  1387. func (s UpdateRecordsOutput) GoString() string {
  1388. return s.String()
  1389. }
  1390. const (
  1391. // @enum BulkPublishStatus
  1392. BulkPublishStatusNotStarted = "NOT_STARTED"
  1393. // @enum BulkPublishStatus
  1394. BulkPublishStatusInProgress = "IN_PROGRESS"
  1395. // @enum BulkPublishStatus
  1396. BulkPublishStatusFailed = "FAILED"
  1397. // @enum BulkPublishStatus
  1398. BulkPublishStatusSucceeded = "SUCCEEDED"
  1399. )
  1400. const (
  1401. // @enum Operation
  1402. OperationReplace = "replace"
  1403. // @enum Operation
  1404. OperationRemove = "remove"
  1405. )
  1406. const (
  1407. // @enum Platform
  1408. PlatformApns = "APNS"
  1409. // @enum Platform
  1410. PlatformApnsSandbox = "APNS_SANDBOX"
  1411. // @enum Platform
  1412. PlatformGcm = "GCM"
  1413. // @enum Platform
  1414. PlatformAdm = "ADM"
  1415. )
  1416. const (
  1417. // @enum StreamingStatus
  1418. StreamingStatusEnabled = "ENABLED"
  1419. // @enum StreamingStatus
  1420. StreamingStatusDisabled = "DISABLED"
  1421. )