opensearchserverless.d.ts 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class OpenSearchServerless extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: OpenSearchServerless.Types.ClientConfiguration)
  13. config: Config & OpenSearchServerless.Types.ClientConfiguration;
  14. /**
  15. * Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  16. */
  17. batchGetCollection(params: OpenSearchServerless.Types.BatchGetCollectionRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetCollectionResponse) => void): Request<OpenSearchServerless.Types.BatchGetCollectionResponse, AWSError>;
  18. /**
  19. * Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  20. */
  21. batchGetCollection(callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetCollectionResponse) => void): Request<OpenSearchServerless.Types.BatchGetCollectionResponse, AWSError>;
  22. /**
  23. * Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
  24. */
  25. batchGetEffectiveLifecyclePolicy(params: OpenSearchServerless.Types.BatchGetEffectiveLifecyclePolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetEffectiveLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.BatchGetEffectiveLifecyclePolicyResponse, AWSError>;
  26. /**
  27. * Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
  28. */
  29. batchGetEffectiveLifecyclePolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetEffectiveLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.BatchGetEffectiveLifecyclePolicyResponse, AWSError>;
  30. /**
  31. * Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
  32. */
  33. batchGetLifecyclePolicy(params: OpenSearchServerless.Types.BatchGetLifecyclePolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.BatchGetLifecyclePolicyResponse, AWSError>;
  34. /**
  35. * Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
  36. */
  37. batchGetLifecyclePolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.BatchGetLifecyclePolicyResponse, AWSError>;
  38. /**
  39. * Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  40. */
  41. batchGetVpcEndpoint(params: OpenSearchServerless.Types.BatchGetVpcEndpointRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.BatchGetVpcEndpointResponse, AWSError>;
  42. /**
  43. * Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  44. */
  45. batchGetVpcEndpoint(callback?: (err: AWSError, data: OpenSearchServerless.Types.BatchGetVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.BatchGetVpcEndpointResponse, AWSError>;
  46. /**
  47. * Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
  48. */
  49. createAccessPolicy(params: OpenSearchServerless.Types.CreateAccessPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.CreateAccessPolicyResponse, AWSError>;
  50. /**
  51. * Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
  52. */
  53. createAccessPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.CreateAccessPolicyResponse, AWSError>;
  54. /**
  55. * Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  56. */
  57. createCollection(params: OpenSearchServerless.Types.CreateCollectionRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateCollectionResponse) => void): Request<OpenSearchServerless.Types.CreateCollectionResponse, AWSError>;
  58. /**
  59. * Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  60. */
  61. createCollection(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateCollectionResponse) => void): Request<OpenSearchServerless.Types.CreateCollectionResponse, AWSError>;
  62. /**
  63. * Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
  64. */
  65. createLifecyclePolicy(params: OpenSearchServerless.Types.CreateLifecyclePolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.CreateLifecyclePolicyResponse, AWSError>;
  66. /**
  67. * Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
  68. */
  69. createLifecyclePolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.CreateLifecyclePolicyResponse, AWSError>;
  70. /**
  71. * Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  72. */
  73. createSecurityConfig(params: OpenSearchServerless.Types.CreateSecurityConfigRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.CreateSecurityConfigResponse, AWSError>;
  74. /**
  75. * Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  76. */
  77. createSecurityConfig(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.CreateSecurityConfigResponse, AWSError>;
  78. /**
  79. * Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  80. */
  81. createSecurityPolicy(params: OpenSearchServerless.Types.CreateSecurityPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.CreateSecurityPolicyResponse, AWSError>;
  82. /**
  83. * Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  84. */
  85. createSecurityPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.CreateSecurityPolicyResponse, AWSError>;
  86. /**
  87. * Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  88. */
  89. createVpcEndpoint(params: OpenSearchServerless.Types.CreateVpcEndpointRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.CreateVpcEndpointResponse, AWSError>;
  90. /**
  91. * Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  92. */
  93. createVpcEndpoint(callback?: (err: AWSError, data: OpenSearchServerless.Types.CreateVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.CreateVpcEndpointResponse, AWSError>;
  94. /**
  95. * Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  96. */
  97. deleteAccessPolicy(params: OpenSearchServerless.Types.DeleteAccessPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteAccessPolicyResponse, AWSError>;
  98. /**
  99. * Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  100. */
  101. deleteAccessPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteAccessPolicyResponse, AWSError>;
  102. /**
  103. * Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  104. */
  105. deleteCollection(params: OpenSearchServerless.Types.DeleteCollectionRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteCollectionResponse) => void): Request<OpenSearchServerless.Types.DeleteCollectionResponse, AWSError>;
  106. /**
  107. * Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
  108. */
  109. deleteCollection(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteCollectionResponse) => void): Request<OpenSearchServerless.Types.DeleteCollectionResponse, AWSError>;
  110. /**
  111. * Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
  112. */
  113. deleteLifecyclePolicy(params: OpenSearchServerless.Types.DeleteLifecyclePolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteLifecyclePolicyResponse, AWSError>;
  114. /**
  115. * Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
  116. */
  117. deleteLifecyclePolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteLifecyclePolicyResponse, AWSError>;
  118. /**
  119. * Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  120. */
  121. deleteSecurityConfig(params: OpenSearchServerless.Types.DeleteSecurityConfigRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.DeleteSecurityConfigResponse, AWSError>;
  122. /**
  123. * Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  124. */
  125. deleteSecurityConfig(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.DeleteSecurityConfigResponse, AWSError>;
  126. /**
  127. * Deletes an OpenSearch Serverless security policy.
  128. */
  129. deleteSecurityPolicy(params: OpenSearchServerless.Types.DeleteSecurityPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteSecurityPolicyResponse, AWSError>;
  130. /**
  131. * Deletes an OpenSearch Serverless security policy.
  132. */
  133. deleteSecurityPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.DeleteSecurityPolicyResponse, AWSError>;
  134. /**
  135. * Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  136. */
  137. deleteVpcEndpoint(params: OpenSearchServerless.Types.DeleteVpcEndpointRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.DeleteVpcEndpointResponse, AWSError>;
  138. /**
  139. * Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  140. */
  141. deleteVpcEndpoint(callback?: (err: AWSError, data: OpenSearchServerless.Types.DeleteVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.DeleteVpcEndpointResponse, AWSError>;
  142. /**
  143. * Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  144. */
  145. getAccessPolicy(params: OpenSearchServerless.Types.GetAccessPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.GetAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.GetAccessPolicyResponse, AWSError>;
  146. /**
  147. * Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  148. */
  149. getAccessPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.GetAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.GetAccessPolicyResponse, AWSError>;
  150. /**
  151. * Returns account-level settings related to OpenSearch Serverless.
  152. */
  153. getAccountSettings(params: OpenSearchServerless.Types.GetAccountSettingsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.GetAccountSettingsResponse) => void): Request<OpenSearchServerless.Types.GetAccountSettingsResponse, AWSError>;
  154. /**
  155. * Returns account-level settings related to OpenSearch Serverless.
  156. */
  157. getAccountSettings(callback?: (err: AWSError, data: OpenSearchServerless.Types.GetAccountSettingsResponse) => void): Request<OpenSearchServerless.Types.GetAccountSettingsResponse, AWSError>;
  158. /**
  159. * Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
  160. */
  161. getPoliciesStats(params: OpenSearchServerless.Types.GetPoliciesStatsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.GetPoliciesStatsResponse) => void): Request<OpenSearchServerless.Types.GetPoliciesStatsResponse, AWSError>;
  162. /**
  163. * Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
  164. */
  165. getPoliciesStats(callback?: (err: AWSError, data: OpenSearchServerless.Types.GetPoliciesStatsResponse) => void): Request<OpenSearchServerless.Types.GetPoliciesStatsResponse, AWSError>;
  166. /**
  167. * Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  168. */
  169. getSecurityConfig(params: OpenSearchServerless.Types.GetSecurityConfigRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.GetSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.GetSecurityConfigResponse, AWSError>;
  170. /**
  171. * Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  172. */
  173. getSecurityConfig(callback?: (err: AWSError, data: OpenSearchServerless.Types.GetSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.GetSecurityConfigResponse, AWSError>;
  174. /**
  175. * Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  176. */
  177. getSecurityPolicy(params: OpenSearchServerless.Types.GetSecurityPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.GetSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.GetSecurityPolicyResponse, AWSError>;
  178. /**
  179. * Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  180. */
  181. getSecurityPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.GetSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.GetSecurityPolicyResponse, AWSError>;
  182. /**
  183. * Returns information about a list of OpenSearch Serverless access policies.
  184. */
  185. listAccessPolicies(params: OpenSearchServerless.Types.ListAccessPoliciesRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListAccessPoliciesResponse) => void): Request<OpenSearchServerless.Types.ListAccessPoliciesResponse, AWSError>;
  186. /**
  187. * Returns information about a list of OpenSearch Serverless access policies.
  188. */
  189. listAccessPolicies(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListAccessPoliciesResponse) => void): Request<OpenSearchServerless.Types.ListAccessPoliciesResponse, AWSError>;
  190. /**
  191. * Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections. Make sure to include an empty request body {} if you don't include any collection filters in the request.
  192. */
  193. listCollections(params: OpenSearchServerless.Types.ListCollectionsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListCollectionsResponse) => void): Request<OpenSearchServerless.Types.ListCollectionsResponse, AWSError>;
  194. /**
  195. * Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections. Make sure to include an empty request body {} if you don't include any collection filters in the request.
  196. */
  197. listCollections(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListCollectionsResponse) => void): Request<OpenSearchServerless.Types.ListCollectionsResponse, AWSError>;
  198. /**
  199. * Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
  200. */
  201. listLifecyclePolicies(params: OpenSearchServerless.Types.ListLifecyclePoliciesRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListLifecyclePoliciesResponse) => void): Request<OpenSearchServerless.Types.ListLifecyclePoliciesResponse, AWSError>;
  202. /**
  203. * Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
  204. */
  205. listLifecyclePolicies(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListLifecyclePoliciesResponse) => void): Request<OpenSearchServerless.Types.ListLifecyclePoliciesResponse, AWSError>;
  206. /**
  207. * Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  208. */
  209. listSecurityConfigs(params: OpenSearchServerless.Types.ListSecurityConfigsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListSecurityConfigsResponse) => void): Request<OpenSearchServerless.Types.ListSecurityConfigsResponse, AWSError>;
  210. /**
  211. * Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  212. */
  213. listSecurityConfigs(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListSecurityConfigsResponse) => void): Request<OpenSearchServerless.Types.ListSecurityConfigsResponse, AWSError>;
  214. /**
  215. * Returns information about configured OpenSearch Serverless security policies.
  216. */
  217. listSecurityPolicies(params: OpenSearchServerless.Types.ListSecurityPoliciesRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListSecurityPoliciesResponse) => void): Request<OpenSearchServerless.Types.ListSecurityPoliciesResponse, AWSError>;
  218. /**
  219. * Returns information about configured OpenSearch Serverless security policies.
  220. */
  221. listSecurityPolicies(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListSecurityPoliciesResponse) => void): Request<OpenSearchServerless.Types.ListSecurityPoliciesResponse, AWSError>;
  222. /**
  223. * Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  224. */
  225. listTagsForResource(params: OpenSearchServerless.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListTagsForResourceResponse) => void): Request<OpenSearchServerless.Types.ListTagsForResourceResponse, AWSError>;
  226. /**
  227. * Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  228. */
  229. listTagsForResource(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListTagsForResourceResponse) => void): Request<OpenSearchServerless.Types.ListTagsForResourceResponse, AWSError>;
  230. /**
  231. * Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  232. */
  233. listVpcEndpoints(params: OpenSearchServerless.Types.ListVpcEndpointsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.ListVpcEndpointsResponse) => void): Request<OpenSearchServerless.Types.ListVpcEndpointsResponse, AWSError>;
  234. /**
  235. * Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  236. */
  237. listVpcEndpoints(callback?: (err: AWSError, data: OpenSearchServerless.Types.ListVpcEndpointsResponse) => void): Request<OpenSearchServerless.Types.ListVpcEndpointsResponse, AWSError>;
  238. /**
  239. * Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  240. */
  241. tagResource(params: OpenSearchServerless.Types.TagResourceRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.TagResourceResponse) => void): Request<OpenSearchServerless.Types.TagResourceResponse, AWSError>;
  242. /**
  243. * Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  244. */
  245. tagResource(callback?: (err: AWSError, data: OpenSearchServerless.Types.TagResourceResponse) => void): Request<OpenSearchServerless.Types.TagResourceResponse, AWSError>;
  246. /**
  247. * Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  248. */
  249. untagResource(params: OpenSearchServerless.Types.UntagResourceRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UntagResourceResponse) => void): Request<OpenSearchServerless.Types.UntagResourceResponse, AWSError>;
  250. /**
  251. * Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.
  252. */
  253. untagResource(callback?: (err: AWSError, data: OpenSearchServerless.Types.UntagResourceResponse) => void): Request<OpenSearchServerless.Types.UntagResourceResponse, AWSError>;
  254. /**
  255. * Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  256. */
  257. updateAccessPolicy(params: OpenSearchServerless.Types.UpdateAccessPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateAccessPolicyResponse, AWSError>;
  258. /**
  259. * Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
  260. */
  261. updateAccessPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateAccessPolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateAccessPolicyResponse, AWSError>;
  262. /**
  263. * Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.
  264. */
  265. updateAccountSettings(params: OpenSearchServerless.Types.UpdateAccountSettingsRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateAccountSettingsResponse) => void): Request<OpenSearchServerless.Types.UpdateAccountSettingsResponse, AWSError>;
  266. /**
  267. * Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.
  268. */
  269. updateAccountSettings(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateAccountSettingsResponse) => void): Request<OpenSearchServerless.Types.UpdateAccountSettingsResponse, AWSError>;
  270. /**
  271. * Updates an OpenSearch Serverless collection.
  272. */
  273. updateCollection(params: OpenSearchServerless.Types.UpdateCollectionRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateCollectionResponse) => void): Request<OpenSearchServerless.Types.UpdateCollectionResponse, AWSError>;
  274. /**
  275. * Updates an OpenSearch Serverless collection.
  276. */
  277. updateCollection(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateCollectionResponse) => void): Request<OpenSearchServerless.Types.UpdateCollectionResponse, AWSError>;
  278. /**
  279. * Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
  280. */
  281. updateLifecyclePolicy(params: OpenSearchServerless.Types.UpdateLifecyclePolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateLifecyclePolicyResponse, AWSError>;
  282. /**
  283. * Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
  284. */
  285. updateLifecyclePolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateLifecyclePolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateLifecyclePolicyResponse, AWSError>;
  286. /**
  287. * Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  288. */
  289. updateSecurityConfig(params: OpenSearchServerless.Types.UpdateSecurityConfigRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.UpdateSecurityConfigResponse, AWSError>;
  290. /**
  291. * Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
  292. */
  293. updateSecurityConfig(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateSecurityConfigResponse) => void): Request<OpenSearchServerless.Types.UpdateSecurityConfigResponse, AWSError>;
  294. /**
  295. * Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  296. */
  297. updateSecurityPolicy(params: OpenSearchServerless.Types.UpdateSecurityPolicyRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateSecurityPolicyResponse, AWSError>;
  298. /**
  299. * Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
  300. */
  301. updateSecurityPolicy(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateSecurityPolicyResponse) => void): Request<OpenSearchServerless.Types.UpdateSecurityPolicyResponse, AWSError>;
  302. /**
  303. * Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  304. */
  305. updateVpcEndpoint(params: OpenSearchServerless.Types.UpdateVpcEndpointRequest, callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.UpdateVpcEndpointResponse, AWSError>;
  306. /**
  307. * Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
  308. */
  309. updateVpcEndpoint(callback?: (err: AWSError, data: OpenSearchServerless.Types.UpdateVpcEndpointResponse) => void): Request<OpenSearchServerless.Types.UpdateVpcEndpointResponse, AWSError>;
  310. }
  311. declare namespace OpenSearchServerless {
  312. export interface AccessPolicyDetail {
  313. /**
  314. * The date the policy was created.
  315. */
  316. createdDate?: Long;
  317. /**
  318. * The description of the policy.
  319. */
  320. description?: PolicyDescription;
  321. /**
  322. * The timestamp of when the policy was last modified.
  323. */
  324. lastModifiedDate?: Long;
  325. /**
  326. * The name of the policy.
  327. */
  328. name?: PolicyName;
  329. /**
  330. * The JSON policy document without any whitespaces.
  331. */
  332. policy?: Document;
  333. /**
  334. * The version of the policy.
  335. */
  336. policyVersion?: PolicyVersion;
  337. /**
  338. * The type of access policy.
  339. */
  340. type?: AccessPolicyType;
  341. }
  342. export interface AccessPolicyStats {
  343. /**
  344. * The number of data access policies in the current account.
  345. */
  346. DataPolicyCount?: Long;
  347. }
  348. export type AccessPolicySummaries = AccessPolicySummary[];
  349. export interface AccessPolicySummary {
  350. /**
  351. * The Epoch time when the access policy was created.
  352. */
  353. createdDate?: Long;
  354. /**
  355. * The description of the access policy.
  356. */
  357. description?: PolicyDescription;
  358. /**
  359. * The date and time when the collection was last modified.
  360. */
  361. lastModifiedDate?: Long;
  362. /**
  363. * The name of the access policy.
  364. */
  365. name?: PolicyName;
  366. /**
  367. * The version of the policy.
  368. */
  369. policyVersion?: PolicyVersion;
  370. /**
  371. * The type of access policy. Currently, the only available type is data.
  372. */
  373. type?: AccessPolicyType;
  374. }
  375. export type AccessPolicyType = "data"|string;
  376. export interface AccountSettingsDetail {
  377. capacityLimits?: CapacityLimits;
  378. }
  379. export type Arn = string;
  380. export interface BatchGetCollectionRequest {
  381. /**
  382. * A list of collection IDs. You can't provide names and IDs in the same request. The ID is part of the collection endpoint. You can also retrieve it using the ListCollections API.
  383. */
  384. ids?: CollectionIds;
  385. /**
  386. * A list of collection names. You can't provide names and IDs in the same request.
  387. */
  388. names?: CollectionNames;
  389. }
  390. export interface BatchGetCollectionResponse {
  391. /**
  392. * Details about each collection.
  393. */
  394. collectionDetails?: CollectionDetails;
  395. /**
  396. * Error information for the request.
  397. */
  398. collectionErrorDetails?: CollectionErrorDetails;
  399. }
  400. export interface BatchGetEffectiveLifecyclePolicyRequest {
  401. /**
  402. * The unique identifiers of policy types and resource names.
  403. */
  404. resourceIdentifiers: LifecyclePolicyResourceIdentifiers;
  405. }
  406. export interface BatchGetEffectiveLifecyclePolicyResponse {
  407. /**
  408. * A list of lifecycle policies applied to the OpenSearch Serverless indexes.
  409. */
  410. effectiveLifecyclePolicyDetails?: EffectiveLifecyclePolicyDetails;
  411. /**
  412. * A list of resources for which retrieval failed.
  413. */
  414. effectiveLifecyclePolicyErrorDetails?: EffectiveLifecyclePolicyErrorDetails;
  415. }
  416. export interface BatchGetLifecyclePolicyRequest {
  417. /**
  418. * The unique identifiers of policy types and policy names.
  419. */
  420. identifiers: LifecyclePolicyIdentifiers;
  421. }
  422. export interface BatchGetLifecyclePolicyResponse {
  423. /**
  424. * A list of lifecycle policies matched to the input policy name and policy type.
  425. */
  426. lifecyclePolicyDetails?: LifecyclePolicyDetails;
  427. /**
  428. * A list of lifecycle policy names and policy types for which retrieval failed.
  429. */
  430. lifecyclePolicyErrorDetails?: LifecyclePolicyErrorDetails;
  431. }
  432. export interface BatchGetVpcEndpointRequest {
  433. /**
  434. * A list of VPC endpoint identifiers.
  435. */
  436. ids: VpcEndpointIds;
  437. }
  438. export interface BatchGetVpcEndpointResponse {
  439. /**
  440. * Details about the specified VPC endpoint.
  441. */
  442. vpcEndpointDetails?: VpcEndpointDetails;
  443. /**
  444. * Error information for a failed request.
  445. */
  446. vpcEndpointErrorDetails?: VpcEndpointErrorDetails;
  447. }
  448. export type Boolean = boolean;
  449. export interface CapacityLimits {
  450. /**
  451. * The maximum indexing capacity for collections.
  452. */
  453. maxIndexingCapacityInOCU?: IndexingCapacityValue;
  454. /**
  455. * The maximum search capacity for collections.
  456. */
  457. maxSearchCapacityInOCU?: SearchCapacityValue;
  458. }
  459. export type ClientToken = string;
  460. export interface CollectionDetail {
  461. /**
  462. * The Amazon Resource Name (ARN) of the collection.
  463. */
  464. arn?: String;
  465. /**
  466. * Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
  467. */
  468. collectionEndpoint?: String;
  469. /**
  470. * The Epoch time when the collection was created.
  471. */
  472. createdDate?: Long;
  473. /**
  474. * Collection-specific endpoint used to access OpenSearch Dashboards.
  475. */
  476. dashboardEndpoint?: String;
  477. /**
  478. * A description of the collection.
  479. */
  480. description?: String;
  481. /**
  482. * A unique identifier for the collection.
  483. */
  484. id?: CollectionId;
  485. /**
  486. * The ARN of the Amazon Web Services KMS key used to encrypt the collection.
  487. */
  488. kmsKeyArn?: String;
  489. /**
  490. * The date and time when the collection was last modified.
  491. */
  492. lastModifiedDate?: Long;
  493. /**
  494. * The name of the collection.
  495. */
  496. name?: CollectionName;
  497. /**
  498. * Details about an OpenSearch Serverless collection.
  499. */
  500. standbyReplicas?: StandbyReplicas;
  501. /**
  502. * The current status of the collection.
  503. */
  504. status?: CollectionStatus;
  505. /**
  506. * The type of collection.
  507. */
  508. type?: CollectionType;
  509. }
  510. export type CollectionDetails = CollectionDetail[];
  511. export interface CollectionErrorDetail {
  512. /**
  513. * The error code for the request. For example, NOT_FOUND.
  514. */
  515. errorCode?: String;
  516. /**
  517. * A description of the error. For example, The specified Collection is not found.
  518. */
  519. errorMessage?: String;
  520. /**
  521. * If the request contains collection IDs, the response includes the IDs provided in the request.
  522. */
  523. id?: CollectionId;
  524. /**
  525. * If the request contains collection names, the response includes the names provided in the request.
  526. */
  527. name?: CollectionName;
  528. }
  529. export type CollectionErrorDetails = CollectionErrorDetail[];
  530. export interface CollectionFilters {
  531. /**
  532. * The name of the collection.
  533. */
  534. name?: CollectionName;
  535. /**
  536. * The current status of the collection.
  537. */
  538. status?: CollectionStatus;
  539. }
  540. export type CollectionId = string;
  541. export type CollectionIds = CollectionId[];
  542. export type CollectionName = string;
  543. export type CollectionNames = CollectionName[];
  544. export type CollectionStatus = "CREATING"|"DELETING"|"ACTIVE"|"FAILED"|string;
  545. export type CollectionSummaries = CollectionSummary[];
  546. export interface CollectionSummary {
  547. /**
  548. * The Amazon Resource Name (ARN) of the collection.
  549. */
  550. arn?: String;
  551. /**
  552. * The unique identifier of the collection.
  553. */
  554. id?: CollectionId;
  555. /**
  556. * The name of the collection.
  557. */
  558. name?: CollectionName;
  559. /**
  560. * The current status of the collection.
  561. */
  562. status?: CollectionStatus;
  563. }
  564. export type CollectionType = "SEARCH"|"TIMESERIES"|"VECTORSEARCH"|string;
  565. export type ConfigDescription = string;
  566. export type ConfigName = string;
  567. export interface CreateAccessPolicyRequest {
  568. /**
  569. * Unique, case-sensitive identifier to ensure idempotency of the request.
  570. */
  571. clientToken?: ClientToken;
  572. /**
  573. * A description of the policy. Typically used to store information about the permissions defined in the policy.
  574. */
  575. description?: PolicyDescription;
  576. /**
  577. * The name of the policy.
  578. */
  579. name: PolicyName;
  580. /**
  581. * The JSON policy document to use as the content for the policy.
  582. */
  583. policy: PolicyDocument;
  584. /**
  585. * The type of policy.
  586. */
  587. type: AccessPolicyType;
  588. }
  589. export interface CreateAccessPolicyResponse {
  590. /**
  591. * Details about the created access policy.
  592. */
  593. accessPolicyDetail?: AccessPolicyDetail;
  594. }
  595. export interface CreateCollectionDetail {
  596. /**
  597. * The Amazon Resource Name (ARN) of the collection.
  598. */
  599. arn?: String;
  600. /**
  601. * The Epoch time when the collection was created.
  602. */
  603. createdDate?: Long;
  604. /**
  605. * A description of the collection.
  606. */
  607. description?: String;
  608. /**
  609. * The unique identifier of the collection.
  610. */
  611. id?: CollectionId;
  612. /**
  613. * The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.
  614. */
  615. kmsKeyArn?: String;
  616. /**
  617. * The date and time when the collection was last modified.
  618. */
  619. lastModifiedDate?: Long;
  620. /**
  621. * The name of the collection.
  622. */
  623. name?: CollectionName;
  624. /**
  625. * Creates details about an OpenSearch Serverless collection.
  626. */
  627. standbyReplicas?: StandbyReplicas;
  628. /**
  629. * The current status of the collection.
  630. */
  631. status?: CollectionStatus;
  632. /**
  633. * The type of collection.
  634. */
  635. type?: CollectionType;
  636. }
  637. export interface CreateCollectionRequest {
  638. /**
  639. * Unique, case-sensitive identifier to ensure idempotency of the request.
  640. */
  641. clientToken?: ClientToken;
  642. /**
  643. * Description of the collection.
  644. */
  645. description?: CreateCollectionRequestDescriptionString;
  646. /**
  647. * Name of the collection.
  648. */
  649. name: CollectionName;
  650. /**
  651. * Indicates whether standby replicas should be used for a collection.
  652. */
  653. standbyReplicas?: StandbyReplicas;
  654. /**
  655. * An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
  656. */
  657. tags?: Tags;
  658. /**
  659. * The type of collection.
  660. */
  661. type?: CollectionType;
  662. }
  663. export type CreateCollectionRequestDescriptionString = string;
  664. export interface CreateCollectionResponse {
  665. /**
  666. * Details about the collection.
  667. */
  668. createCollectionDetail?: CreateCollectionDetail;
  669. }
  670. export interface CreateLifecyclePolicyRequest {
  671. /**
  672. * A unique, case-sensitive identifier to ensure idempotency of the request.
  673. */
  674. clientToken?: ClientToken;
  675. /**
  676. * A description of the lifecycle policy.
  677. */
  678. description?: PolicyDescription;
  679. /**
  680. * The name of the lifecycle policy.
  681. */
  682. name: PolicyName;
  683. /**
  684. * The JSON policy document to use as the content for the lifecycle policy.
  685. */
  686. policy: PolicyDocument;
  687. /**
  688. * The type of lifecycle policy.
  689. */
  690. type: LifecyclePolicyType;
  691. }
  692. export interface CreateLifecyclePolicyResponse {
  693. /**
  694. * Details about the created lifecycle policy.
  695. */
  696. lifecyclePolicyDetail?: LifecyclePolicyDetail;
  697. }
  698. export interface CreateSecurityConfigRequest {
  699. /**
  700. * Unique, case-sensitive identifier to ensure idempotency of the request.
  701. */
  702. clientToken?: ClientToken;
  703. /**
  704. * A description of the security configuration.
  705. */
  706. description?: ConfigDescription;
  707. /**
  708. * The name of the security configuration.
  709. */
  710. name: ConfigName;
  711. /**
  712. * Describes SAML options in in the form of a key-value map. This field is required if you specify saml for the type parameter.
  713. */
  714. samlOptions?: SamlConfigOptions;
  715. /**
  716. * The type of security configuration.
  717. */
  718. type: SecurityConfigType;
  719. }
  720. export interface CreateSecurityConfigResponse {
  721. /**
  722. * Details about the created security configuration.
  723. */
  724. securityConfigDetail?: SecurityConfigDetail;
  725. }
  726. export interface CreateSecurityPolicyRequest {
  727. /**
  728. * Unique, case-sensitive identifier to ensure idempotency of the request.
  729. */
  730. clientToken?: ClientToken;
  731. /**
  732. * A description of the policy. Typically used to store information about the permissions defined in the policy.
  733. */
  734. description?: PolicyDescription;
  735. /**
  736. * The name of the policy.
  737. */
  738. name: PolicyName;
  739. /**
  740. * The JSON policy document to use as the content for the new policy.
  741. */
  742. policy: PolicyDocument;
  743. /**
  744. * The type of security policy.
  745. */
  746. type: SecurityPolicyType;
  747. }
  748. export interface CreateSecurityPolicyResponse {
  749. /**
  750. * Details about the created security policy.
  751. */
  752. securityPolicyDetail?: SecurityPolicyDetail;
  753. }
  754. export interface CreateVpcEndpointDetail {
  755. /**
  756. * The unique identifier of the endpoint.
  757. */
  758. id?: VpcEndpointId;
  759. /**
  760. * The name of the endpoint.
  761. */
  762. name?: VpcEndpointName;
  763. /**
  764. * The current status in the endpoint creation process.
  765. */
  766. status?: VpcEndpointStatus;
  767. }
  768. export interface CreateVpcEndpointRequest {
  769. /**
  770. * Unique, case-sensitive identifier to ensure idempotency of the request.
  771. */
  772. clientToken?: ClientToken;
  773. /**
  774. * The name of the interface endpoint.
  775. */
  776. name: VpcEndpointName;
  777. /**
  778. * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
  779. */
  780. securityGroupIds?: SecurityGroupIds;
  781. /**
  782. * The ID of one or more subnets from which you'll access OpenSearch Serverless.
  783. */
  784. subnetIds: SubnetIds;
  785. /**
  786. * The ID of the VPC from which you'll access OpenSearch Serverless.
  787. */
  788. vpcId: VpcId;
  789. }
  790. export interface CreateVpcEndpointResponse {
  791. /**
  792. * Details about the created interface VPC endpoint.
  793. */
  794. createVpcEndpointDetail?: CreateVpcEndpointDetail;
  795. }
  796. export interface DeleteAccessPolicyRequest {
  797. /**
  798. * Unique, case-sensitive identifier to ensure idempotency of the request.
  799. */
  800. clientToken?: ClientToken;
  801. /**
  802. * The name of the policy to delete.
  803. */
  804. name: PolicyName;
  805. /**
  806. * The type of policy.
  807. */
  808. type: AccessPolicyType;
  809. }
  810. export interface DeleteAccessPolicyResponse {
  811. }
  812. export interface DeleteCollectionDetail {
  813. /**
  814. * The unique identifier of the collection.
  815. */
  816. id?: CollectionId;
  817. /**
  818. * The name of the collection.
  819. */
  820. name?: CollectionName;
  821. /**
  822. * The current status of the collection.
  823. */
  824. status?: CollectionStatus;
  825. }
  826. export interface DeleteCollectionRequest {
  827. /**
  828. * A unique, case-sensitive identifier to ensure idempotency of the request.
  829. */
  830. clientToken?: ClientToken;
  831. /**
  832. * The unique identifier of the collection. For example, 1iu5usc406kd. The ID is part of the collection endpoint. You can also retrieve it using the ListCollections API.
  833. */
  834. id: CollectionId;
  835. }
  836. export interface DeleteCollectionResponse {
  837. /**
  838. * Details of the deleted collection.
  839. */
  840. deleteCollectionDetail?: DeleteCollectionDetail;
  841. }
  842. export interface DeleteLifecyclePolicyRequest {
  843. /**
  844. * Unique, case-sensitive identifier to ensure idempotency of the request.
  845. */
  846. clientToken?: ClientToken;
  847. /**
  848. * The name of the policy to delete.
  849. */
  850. name: PolicyName;
  851. /**
  852. * The type of lifecycle policy.
  853. */
  854. type: LifecyclePolicyType;
  855. }
  856. export interface DeleteLifecyclePolicyResponse {
  857. }
  858. export interface DeleteSecurityConfigRequest {
  859. /**
  860. * Unique, case-sensitive identifier to ensure idempotency of the request.
  861. */
  862. clientToken?: ClientToken;
  863. /**
  864. * The security configuration identifier. For SAML the ID will be saml/&lt;accountId&gt;/&lt;idpProviderName&gt;. For example, saml/123456789123/OKTADev.
  865. */
  866. id: SecurityConfigId;
  867. }
  868. export interface DeleteSecurityConfigResponse {
  869. }
  870. export interface DeleteSecurityPolicyRequest {
  871. /**
  872. * Unique, case-sensitive identifier to ensure idempotency of the request.
  873. */
  874. clientToken?: ClientToken;
  875. /**
  876. * The name of the policy to delete.
  877. */
  878. name: PolicyName;
  879. /**
  880. * The type of policy.
  881. */
  882. type: SecurityPolicyType;
  883. }
  884. export interface DeleteSecurityPolicyResponse {
  885. }
  886. export interface DeleteVpcEndpointDetail {
  887. /**
  888. * The unique identifier of the endpoint.
  889. */
  890. id?: VpcEndpointId;
  891. /**
  892. * The name of the endpoint.
  893. */
  894. name?: VpcEndpointName;
  895. /**
  896. * The current status of the endpoint deletion process.
  897. */
  898. status?: VpcEndpointStatus;
  899. }
  900. export interface DeleteVpcEndpointRequest {
  901. /**
  902. * Unique, case-sensitive identifier to ensure idempotency of the request.
  903. */
  904. clientToken?: ClientToken;
  905. /**
  906. * The VPC endpoint identifier.
  907. */
  908. id: VpcEndpointId;
  909. }
  910. export interface DeleteVpcEndpointResponse {
  911. /**
  912. * Details about the deleted endpoint.
  913. */
  914. deleteVpcEndpointDetail?: DeleteVpcEndpointDetail;
  915. }
  916. export interface Document {
  917. }
  918. export interface EffectiveLifecyclePolicyDetail {
  919. /**
  920. * The minimum number of index retention days set. That is an optional param that will return as true if the minimum number of days or hours is not set to a index resource.
  921. */
  922. noMinRetentionPeriod?: Boolean;
  923. /**
  924. * The name of the lifecycle policy.
  925. */
  926. policyName?: PolicyName;
  927. /**
  928. * The name of the OpenSearch Serverless index resource.
  929. */
  930. resource?: Resource;
  931. /**
  932. * The type of OpenSearch Serverless resource. Currently, the only supported resource is index.
  933. */
  934. resourceType?: ResourceType;
  935. /**
  936. * The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
  937. */
  938. retentionPeriod?: String;
  939. /**
  940. * The type of lifecycle policy.
  941. */
  942. type?: LifecyclePolicyType;
  943. }
  944. export type EffectiveLifecyclePolicyDetails = EffectiveLifecyclePolicyDetail[];
  945. export interface EffectiveLifecyclePolicyErrorDetail {
  946. /**
  947. * The error code for the request.
  948. */
  949. errorCode?: String;
  950. /**
  951. * A description of the error. For example, The specified Index resource is not found.
  952. */
  953. errorMessage?: String;
  954. /**
  955. * The name of OpenSearch Serverless index resource.
  956. */
  957. resource?: Resource;
  958. /**
  959. * The type of lifecycle policy.
  960. */
  961. type?: LifecyclePolicyType;
  962. }
  963. export type EffectiveLifecyclePolicyErrorDetails = EffectiveLifecyclePolicyErrorDetail[];
  964. export interface GetAccessPolicyRequest {
  965. /**
  966. * The name of the access policy.
  967. */
  968. name: PolicyName;
  969. /**
  970. * Tye type of policy. Currently, the only supported value is data.
  971. */
  972. type: AccessPolicyType;
  973. }
  974. export interface GetAccessPolicyResponse {
  975. /**
  976. * Details about the requested access policy.
  977. */
  978. accessPolicyDetail?: AccessPolicyDetail;
  979. }
  980. export interface GetAccountSettingsRequest {
  981. }
  982. export interface GetAccountSettingsResponse {
  983. /**
  984. * OpenSearch Serverless-related details for the current account.
  985. */
  986. accountSettingsDetail?: AccountSettingsDetail;
  987. }
  988. export interface GetPoliciesStatsRequest {
  989. }
  990. export interface GetPoliciesStatsResponse {
  991. /**
  992. * Information about the data access policies in your account.
  993. */
  994. AccessPolicyStats?: AccessPolicyStats;
  995. /**
  996. * Information about the lifecycle policies in your account.
  997. */
  998. LifecyclePolicyStats?: LifecyclePolicyStats;
  999. /**
  1000. * Information about the security configurations in your account.
  1001. */
  1002. SecurityConfigStats?: SecurityConfigStats;
  1003. /**
  1004. * Information about the security policies in your account.
  1005. */
  1006. SecurityPolicyStats?: SecurityPolicyStats;
  1007. /**
  1008. * The total number of OpenSearch Serverless security policies and configurations in your account.
  1009. */
  1010. TotalPolicyCount?: Long;
  1011. }
  1012. export interface GetSecurityConfigRequest {
  1013. /**
  1014. * The unique identifier of the security configuration.
  1015. */
  1016. id: SecurityConfigId;
  1017. }
  1018. export interface GetSecurityConfigResponse {
  1019. /**
  1020. * Details of the requested security configuration.
  1021. */
  1022. securityConfigDetail?: SecurityConfigDetail;
  1023. }
  1024. export interface GetSecurityPolicyRequest {
  1025. /**
  1026. * The name of the security policy.
  1027. */
  1028. name: PolicyName;
  1029. /**
  1030. * The type of security policy.
  1031. */
  1032. type: SecurityPolicyType;
  1033. }
  1034. export interface GetSecurityPolicyResponse {
  1035. /**
  1036. * Details about the requested security policy.
  1037. */
  1038. securityPolicyDetail?: SecurityPolicyDetail;
  1039. }
  1040. export type IndexingCapacityValue = number;
  1041. export interface LifecyclePolicyDetail {
  1042. /**
  1043. * The date the lifecycle policy was created.
  1044. */
  1045. createdDate?: Long;
  1046. /**
  1047. * The description of the lifecycle policy.
  1048. */
  1049. description?: PolicyDescription;
  1050. /**
  1051. * The timestamp of when the lifecycle policy was last modified.
  1052. */
  1053. lastModifiedDate?: Long;
  1054. /**
  1055. * The name of the lifecycle policy.
  1056. */
  1057. name?: PolicyName;
  1058. /**
  1059. * The JSON policy document without any whitespaces.
  1060. */
  1061. policy?: Document;
  1062. /**
  1063. * The version of the lifecycle policy.
  1064. */
  1065. policyVersion?: PolicyVersion;
  1066. /**
  1067. * The type of lifecycle policy.
  1068. */
  1069. type?: LifecyclePolicyType;
  1070. }
  1071. export type LifecyclePolicyDetails = LifecyclePolicyDetail[];
  1072. export interface LifecyclePolicyErrorDetail {
  1073. /**
  1074. * The error code for the request. For example, NOT_FOUND.
  1075. */
  1076. errorCode?: String;
  1077. /**
  1078. * A description of the error. For example, The specified Lifecycle Policy is not found.
  1079. */
  1080. errorMessage?: String;
  1081. /**
  1082. * The name of the lifecycle policy.
  1083. */
  1084. name?: PolicyName;
  1085. /**
  1086. * The type of lifecycle policy.
  1087. */
  1088. type?: LifecyclePolicyType;
  1089. }
  1090. export type LifecyclePolicyErrorDetails = LifecyclePolicyErrorDetail[];
  1091. export interface LifecyclePolicyIdentifier {
  1092. /**
  1093. * The name of the lifecycle policy.
  1094. */
  1095. name: PolicyName;
  1096. /**
  1097. * The type of lifecycle policy.
  1098. */
  1099. type: LifecyclePolicyType;
  1100. }
  1101. export type LifecyclePolicyIdentifiers = LifecyclePolicyIdentifier[];
  1102. export interface LifecyclePolicyResourceIdentifier {
  1103. /**
  1104. * The name of the OpenSearch Serverless ilndex resource.
  1105. */
  1106. resource: ResourceName;
  1107. /**
  1108. * The type of lifecycle policy.
  1109. */
  1110. type: LifecyclePolicyType;
  1111. }
  1112. export type LifecyclePolicyResourceIdentifiers = LifecyclePolicyResourceIdentifier[];
  1113. export interface LifecyclePolicyStats {
  1114. /**
  1115. * The number of retention lifecycle policies in the current account.
  1116. */
  1117. RetentionPolicyCount?: Long;
  1118. }
  1119. export type LifecyclePolicySummaries = LifecyclePolicySummary[];
  1120. export interface LifecyclePolicySummary {
  1121. /**
  1122. * The Epoch time when the lifecycle policy was created.
  1123. */
  1124. createdDate?: Long;
  1125. /**
  1126. * The description of the lifecycle policy.
  1127. */
  1128. description?: PolicyDescription;
  1129. /**
  1130. * The date and time when the lifecycle policy was last modified.
  1131. */
  1132. lastModifiedDate?: Long;
  1133. /**
  1134. * The name of the lifecycle policy.
  1135. */
  1136. name?: PolicyName;
  1137. /**
  1138. * The version of the lifecycle policy.
  1139. */
  1140. policyVersion?: PolicyVersion;
  1141. /**
  1142. * The type of lifecycle policy.
  1143. */
  1144. type?: LifecyclePolicyType;
  1145. }
  1146. export type LifecyclePolicyType = "retention"|string;
  1147. export type LifecycleResource = string;
  1148. export interface ListAccessPoliciesRequest {
  1149. /**
  1150. * An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.
  1151. */
  1152. maxResults?: ListAccessPoliciesRequestMaxResultsInteger;
  1153. /**
  1154. * If your initial ListAccessPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListAccessPolicies operations, which returns results in the next page.
  1155. */
  1156. nextToken?: String;
  1157. /**
  1158. * Resource filters (can be collections or indexes) that policies can apply to.
  1159. */
  1160. resource?: ListAccessPoliciesRequestResourceList;
  1161. /**
  1162. * The type of access policy.
  1163. */
  1164. type: AccessPolicyType;
  1165. }
  1166. export type ListAccessPoliciesRequestMaxResultsInteger = number;
  1167. export type ListAccessPoliciesRequestResourceList = Resource[];
  1168. export interface ListAccessPoliciesResponse {
  1169. /**
  1170. * Details about the requested access policies.
  1171. */
  1172. accessPolicySummaries?: AccessPolicySummaries;
  1173. /**
  1174. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1175. */
  1176. nextToken?: String;
  1177. }
  1178. export interface ListCollectionsRequest {
  1179. /**
  1180. * A list of filter names and values that you can use for requests.
  1181. */
  1182. collectionFilters?: CollectionFilters;
  1183. /**
  1184. * The maximum number of results to return. Default is 20. You can use nextToken to get the next page of results.
  1185. */
  1186. maxResults?: ListCollectionsRequestMaxResultsInteger;
  1187. /**
  1188. * If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.
  1189. */
  1190. nextToken?: String;
  1191. }
  1192. export type ListCollectionsRequestMaxResultsInteger = number;
  1193. export interface ListCollectionsResponse {
  1194. /**
  1195. * Details about each collection.
  1196. */
  1197. collectionSummaries?: CollectionSummaries;
  1198. /**
  1199. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1200. */
  1201. nextToken?: String;
  1202. }
  1203. export interface ListLifecyclePoliciesRequest {
  1204. /**
  1205. * An optional parameter that specifies the maximum number of results to return. You can use use nextToken to get the next page of results. The default is 10.
  1206. */
  1207. maxResults?: ListLifecyclePoliciesRequestMaxResultsInteger;
  1208. /**
  1209. * If your initial ListLifecyclePolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListLifecyclePolicies operations, which returns results in the next page.
  1210. */
  1211. nextToken?: String;
  1212. /**
  1213. * Resource filters that policies can apply to. Currently, the only supported resource type is index.
  1214. */
  1215. resources?: ListLifecyclePoliciesRequestResourcesList;
  1216. /**
  1217. * The type of lifecycle policy.
  1218. */
  1219. type: LifecyclePolicyType;
  1220. }
  1221. export type ListLifecyclePoliciesRequestMaxResultsInteger = number;
  1222. export type ListLifecyclePoliciesRequestResourcesList = LifecycleResource[];
  1223. export interface ListLifecyclePoliciesResponse {
  1224. /**
  1225. * Details about the requested lifecycle policies.
  1226. */
  1227. lifecyclePolicySummaries?: LifecyclePolicySummaries;
  1228. /**
  1229. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1230. */
  1231. nextToken?: String;
  1232. }
  1233. export interface ListSecurityConfigsRequest {
  1234. /**
  1235. * An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.
  1236. */
  1237. maxResults?: ListSecurityConfigsRequestMaxResultsInteger;
  1238. /**
  1239. * If your initial ListSecurityConfigs operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityConfigs operations, which returns results in the next page.
  1240. */
  1241. nextToken?: String;
  1242. /**
  1243. * The type of security configuration.
  1244. */
  1245. type: SecurityConfigType;
  1246. }
  1247. export type ListSecurityConfigsRequestMaxResultsInteger = number;
  1248. export interface ListSecurityConfigsResponse {
  1249. /**
  1250. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1251. */
  1252. nextToken?: String;
  1253. /**
  1254. * Details about the security configurations in your account.
  1255. */
  1256. securityConfigSummaries?: SecurityConfigSummaries;
  1257. }
  1258. export interface ListSecurityPoliciesRequest {
  1259. /**
  1260. * An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.
  1261. */
  1262. maxResults?: ListSecurityPoliciesRequestMaxResultsInteger;
  1263. /**
  1264. * If your initial ListSecurityPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityPolicies operations, which returns results in the next page.
  1265. */
  1266. nextToken?: String;
  1267. /**
  1268. * Resource filters (can be collection or indexes) that policies can apply to.
  1269. */
  1270. resource?: ListSecurityPoliciesRequestResourceList;
  1271. /**
  1272. * The type of policy.
  1273. */
  1274. type: SecurityPolicyType;
  1275. }
  1276. export type ListSecurityPoliciesRequestMaxResultsInteger = number;
  1277. export type ListSecurityPoliciesRequestResourceList = Resource[];
  1278. export interface ListSecurityPoliciesResponse {
  1279. /**
  1280. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1281. */
  1282. nextToken?: String;
  1283. /**
  1284. * Details about the security policies in your account.
  1285. */
  1286. securityPolicySummaries?: SecurityPolicySummaries;
  1287. }
  1288. export interface ListTagsForResourceRequest {
  1289. /**
  1290. * The Amazon Resource Name (ARN) of the resource. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.
  1291. */
  1292. resourceArn: Arn;
  1293. }
  1294. export interface ListTagsForResourceResponse {
  1295. /**
  1296. * The tags associated with the resource.
  1297. */
  1298. tags?: Tags;
  1299. }
  1300. export interface ListVpcEndpointsRequest {
  1301. /**
  1302. * An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.
  1303. */
  1304. maxResults?: ListVpcEndpointsRequestMaxResultsInteger;
  1305. /**
  1306. * If your initial ListVpcEndpoints operation returns a nextToken, you can include the returned nextToken in subsequent ListVpcEndpoints operations, which returns results in the next page.
  1307. */
  1308. nextToken?: String;
  1309. /**
  1310. * Filter the results according to the current status of the VPC endpoint. Possible statuses are CREATING, DELETING, UPDATING, ACTIVE, and FAILED.
  1311. */
  1312. vpcEndpointFilters?: VpcEndpointFilters;
  1313. }
  1314. export type ListVpcEndpointsRequestMaxResultsInteger = number;
  1315. export interface ListVpcEndpointsResponse {
  1316. /**
  1317. * When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
  1318. */
  1319. nextToken?: String;
  1320. /**
  1321. * Details about each VPC endpoint, including the name and current status.
  1322. */
  1323. vpcEndpointSummaries?: VpcEndpointSummaries;
  1324. }
  1325. export type Long = number;
  1326. export type PolicyDescription = string;
  1327. export type PolicyDocument = string;
  1328. export type PolicyName = string;
  1329. export type PolicyVersion = string;
  1330. export type Resource = string;
  1331. export type ResourceName = string;
  1332. export type ResourceType = "index"|string;
  1333. export interface SamlConfigOptions {
  1334. /**
  1335. * The group attribute for this SAML integration.
  1336. */
  1337. groupAttribute?: samlGroupAttribute;
  1338. /**
  1339. * The XML IdP metadata file generated from your identity provider.
  1340. */
  1341. metadata: samlMetadata;
  1342. /**
  1343. * The session timeout, in minutes. Default is 60 minutes (12 hours).
  1344. */
  1345. sessionTimeout?: SamlConfigOptionsSessionTimeoutInteger;
  1346. /**
  1347. * A user attribute for this SAML integration.
  1348. */
  1349. userAttribute?: samlUserAttribute;
  1350. }
  1351. export type SamlConfigOptionsSessionTimeoutInteger = number;
  1352. export type SearchCapacityValue = number;
  1353. export interface SecurityConfigDetail {
  1354. /**
  1355. * The version of the security configuration.
  1356. */
  1357. configVersion?: PolicyVersion;
  1358. /**
  1359. * The date the configuration was created.
  1360. */
  1361. createdDate?: Long;
  1362. /**
  1363. * The description of the security configuration.
  1364. */
  1365. description?: ConfigDescription;
  1366. /**
  1367. * The unique identifier of the security configuration.
  1368. */
  1369. id?: SecurityConfigId;
  1370. /**
  1371. * The timestamp of when the configuration was last modified.
  1372. */
  1373. lastModifiedDate?: Long;
  1374. /**
  1375. * SAML options for the security configuration in the form of a key-value map.
  1376. */
  1377. samlOptions?: SamlConfigOptions;
  1378. /**
  1379. * The type of security configuration.
  1380. */
  1381. type?: SecurityConfigType;
  1382. }
  1383. export type SecurityConfigId = string;
  1384. export interface SecurityConfigStats {
  1385. /**
  1386. * The number of security configurations in the current account.
  1387. */
  1388. SamlConfigCount?: Long;
  1389. }
  1390. export type SecurityConfigSummaries = SecurityConfigSummary[];
  1391. export interface SecurityConfigSummary {
  1392. /**
  1393. * The version of the security configuration.
  1394. */
  1395. configVersion?: PolicyVersion;
  1396. /**
  1397. * The Epoch time when the security configuration was created.
  1398. */
  1399. createdDate?: Long;
  1400. /**
  1401. * The description of the security configuration.
  1402. */
  1403. description?: ConfigDescription;
  1404. /**
  1405. * The unique identifier of the security configuration.
  1406. */
  1407. id?: SecurityConfigId;
  1408. /**
  1409. * The timestamp of when the configuration was last modified.
  1410. */
  1411. lastModifiedDate?: Long;
  1412. /**
  1413. * The type of security configuration.
  1414. */
  1415. type?: SecurityConfigType;
  1416. }
  1417. export type SecurityConfigType = "saml"|string;
  1418. export type SecurityGroupId = string;
  1419. export type SecurityGroupIds = SecurityGroupId[];
  1420. export interface SecurityPolicyDetail {
  1421. /**
  1422. * The date the policy was created.
  1423. */
  1424. createdDate?: Long;
  1425. /**
  1426. * The description of the security policy.
  1427. */
  1428. description?: PolicyDescription;
  1429. /**
  1430. * The timestamp of when the policy was last modified.
  1431. */
  1432. lastModifiedDate?: Long;
  1433. /**
  1434. * The name of the policy.
  1435. */
  1436. name?: PolicyName;
  1437. /**
  1438. * The JSON policy document without any whitespaces.
  1439. */
  1440. policy?: Document;
  1441. /**
  1442. * The version of the policy.
  1443. */
  1444. policyVersion?: PolicyVersion;
  1445. /**
  1446. * The type of security policy.
  1447. */
  1448. type?: SecurityPolicyType;
  1449. }
  1450. export interface SecurityPolicyStats {
  1451. /**
  1452. * The number of encryption policies in the current account.
  1453. */
  1454. EncryptionPolicyCount?: Long;
  1455. /**
  1456. * The number of network policies in the current account.
  1457. */
  1458. NetworkPolicyCount?: Long;
  1459. }
  1460. export type SecurityPolicySummaries = SecurityPolicySummary[];
  1461. export interface SecurityPolicySummary {
  1462. /**
  1463. * The date the policy was created.
  1464. */
  1465. createdDate?: Long;
  1466. /**
  1467. * The description of the security policy.
  1468. */
  1469. description?: PolicyDescription;
  1470. /**
  1471. * The timestamp of when the policy was last modified.
  1472. */
  1473. lastModifiedDate?: Long;
  1474. /**
  1475. * The name of the policy.
  1476. */
  1477. name?: PolicyName;
  1478. /**
  1479. * The version of the policy.
  1480. */
  1481. policyVersion?: PolicyVersion;
  1482. /**
  1483. * The type of security policy.
  1484. */
  1485. type?: SecurityPolicyType;
  1486. }
  1487. export type SecurityPolicyType = "encryption"|"network"|string;
  1488. export type StandbyReplicas = "ENABLED"|"DISABLED"|string;
  1489. export type String = string;
  1490. export type SubnetId = string;
  1491. export type SubnetIds = SubnetId[];
  1492. export interface Tag {
  1493. /**
  1494. * The key to use in the tag.
  1495. */
  1496. key: TagKey;
  1497. /**
  1498. * The value of the tag.
  1499. */
  1500. value: TagValue;
  1501. }
  1502. export type TagKey = string;
  1503. export type TagKeys = TagKey[];
  1504. export interface TagResourceRequest {
  1505. /**
  1506. * The Amazon Resource Name (ARN) of the resource. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.
  1507. */
  1508. resourceArn: Arn;
  1509. /**
  1510. * A list of tags (key-value pairs) to add to the resource. All tag keys in the request must be unique.
  1511. */
  1512. tags: Tags;
  1513. }
  1514. export interface TagResourceResponse {
  1515. }
  1516. export type TagValue = string;
  1517. export type Tags = Tag[];
  1518. export interface UntagResourceRequest {
  1519. /**
  1520. * The Amazon Resource Name (ARN) of the resource to remove tags from. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.
  1521. */
  1522. resourceArn: Arn;
  1523. /**
  1524. * The tag or set of tags to remove from the resource. All tag keys in the request must be unique.
  1525. */
  1526. tagKeys: TagKeys;
  1527. }
  1528. export interface UntagResourceResponse {
  1529. }
  1530. export interface UpdateAccessPolicyRequest {
  1531. /**
  1532. * Unique, case-sensitive identifier to ensure idempotency of the request.
  1533. */
  1534. clientToken?: ClientToken;
  1535. /**
  1536. * A description of the policy. Typically used to store information about the permissions defined in the policy.
  1537. */
  1538. description?: PolicyDescription;
  1539. /**
  1540. * The name of the policy.
  1541. */
  1542. name: PolicyName;
  1543. /**
  1544. * The JSON policy document to use as the content for the policy.
  1545. */
  1546. policy?: PolicyDocument;
  1547. /**
  1548. * The version of the policy being updated.
  1549. */
  1550. policyVersion: PolicyVersion;
  1551. /**
  1552. * The type of policy.
  1553. */
  1554. type: AccessPolicyType;
  1555. }
  1556. export interface UpdateAccessPolicyResponse {
  1557. /**
  1558. * Details about the updated access policy.
  1559. */
  1560. accessPolicyDetail?: AccessPolicyDetail;
  1561. }
  1562. export interface UpdateAccountSettingsRequest {
  1563. capacityLimits?: CapacityLimits;
  1564. }
  1565. export interface UpdateAccountSettingsResponse {
  1566. /**
  1567. * OpenSearch Serverless-related settings for the current Amazon Web Services account.
  1568. */
  1569. accountSettingsDetail?: AccountSettingsDetail;
  1570. }
  1571. export interface UpdateCollectionDetail {
  1572. /**
  1573. * The Amazon Resource Name (ARN) of the collection.
  1574. */
  1575. arn?: String;
  1576. /**
  1577. * The date and time when the collection was created.
  1578. */
  1579. createdDate?: Long;
  1580. /**
  1581. * The description of the collection.
  1582. */
  1583. description?: String;
  1584. /**
  1585. * The unique identifier of the collection.
  1586. */
  1587. id?: CollectionId;
  1588. /**
  1589. * The date and time when the collection was last modified.
  1590. */
  1591. lastModifiedDate?: Long;
  1592. /**
  1593. * The name of the collection.
  1594. */
  1595. name?: CollectionName;
  1596. /**
  1597. * The current status of the collection.
  1598. */
  1599. status?: CollectionStatus;
  1600. /**
  1601. * The collection type.
  1602. */
  1603. type?: CollectionType;
  1604. }
  1605. export interface UpdateCollectionRequest {
  1606. /**
  1607. * Unique, case-sensitive identifier to ensure idempotency of the request.
  1608. */
  1609. clientToken?: ClientToken;
  1610. /**
  1611. * A description of the collection.
  1612. */
  1613. description?: UpdateCollectionRequestDescriptionString;
  1614. /**
  1615. * The unique identifier of the collection.
  1616. */
  1617. id: CollectionId;
  1618. }
  1619. export type UpdateCollectionRequestDescriptionString = string;
  1620. export interface UpdateCollectionResponse {
  1621. /**
  1622. * Details about the updated collection.
  1623. */
  1624. updateCollectionDetail?: UpdateCollectionDetail;
  1625. }
  1626. export interface UpdateLifecyclePolicyRequest {
  1627. /**
  1628. * A unique, case-sensitive identifier to ensure idempotency of the request.
  1629. */
  1630. clientToken?: ClientToken;
  1631. /**
  1632. * A description of the lifecycle policy.
  1633. */
  1634. description?: PolicyDescription;
  1635. /**
  1636. * The name of the policy.
  1637. */
  1638. name: PolicyName;
  1639. /**
  1640. * The JSON policy document to use as the content for the lifecycle policy.
  1641. */
  1642. policy?: PolicyDocument;
  1643. /**
  1644. * The version of the policy being updated.
  1645. */
  1646. policyVersion: PolicyVersion;
  1647. /**
  1648. * The type of lifecycle policy.
  1649. */
  1650. type: LifecyclePolicyType;
  1651. }
  1652. export interface UpdateLifecyclePolicyResponse {
  1653. /**
  1654. * Details about the updated lifecycle policy.
  1655. */
  1656. lifecyclePolicyDetail?: LifecyclePolicyDetail;
  1657. }
  1658. export interface UpdateSecurityConfigRequest {
  1659. /**
  1660. * Unique, case-sensitive identifier to ensure idempotency of the request.
  1661. */
  1662. clientToken?: ClientToken;
  1663. /**
  1664. * The version of the security configuration to be updated. You can find the most recent version of a security configuration using the GetSecurityPolicy command.
  1665. */
  1666. configVersion: PolicyVersion;
  1667. /**
  1668. * A description of the security configuration.
  1669. */
  1670. description?: ConfigDescription;
  1671. /**
  1672. * The security configuration identifier. For SAML the ID will be saml/&lt;accountId&gt;/&lt;idpProviderName&gt;. For example, saml/123456789123/OKTADev.
  1673. */
  1674. id: SecurityConfigId;
  1675. /**
  1676. * SAML options in in the form of a key-value map.
  1677. */
  1678. samlOptions?: SamlConfigOptions;
  1679. }
  1680. export interface UpdateSecurityConfigResponse {
  1681. /**
  1682. * Details about the updated security configuration.
  1683. */
  1684. securityConfigDetail?: SecurityConfigDetail;
  1685. }
  1686. export interface UpdateSecurityPolicyRequest {
  1687. /**
  1688. * Unique, case-sensitive identifier to ensure idempotency of the request.
  1689. */
  1690. clientToken?: ClientToken;
  1691. /**
  1692. * A description of the policy. Typically used to store information about the permissions defined in the policy.
  1693. */
  1694. description?: PolicyDescription;
  1695. /**
  1696. * The name of the policy.
  1697. */
  1698. name: PolicyName;
  1699. /**
  1700. * The JSON policy document to use as the content for the new policy.
  1701. */
  1702. policy?: PolicyDocument;
  1703. /**
  1704. * The version of the policy being updated.
  1705. */
  1706. policyVersion: PolicyVersion;
  1707. /**
  1708. * The type of access policy.
  1709. */
  1710. type: SecurityPolicyType;
  1711. }
  1712. export interface UpdateSecurityPolicyResponse {
  1713. /**
  1714. * Details about the updated security policy.
  1715. */
  1716. securityPolicyDetail?: SecurityPolicyDetail;
  1717. }
  1718. export interface UpdateVpcEndpointDetail {
  1719. /**
  1720. * The unique identifier of the endpoint.
  1721. */
  1722. id?: VpcEndpointId;
  1723. /**
  1724. * The timestamp of when the endpoint was last modified.
  1725. */
  1726. lastModifiedDate?: Long;
  1727. /**
  1728. * The name of the endpoint.
  1729. */
  1730. name?: VpcEndpointName;
  1731. /**
  1732. * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
  1733. */
  1734. securityGroupIds?: SecurityGroupIds;
  1735. /**
  1736. * The current status of the endpoint update process.
  1737. */
  1738. status?: VpcEndpointStatus;
  1739. /**
  1740. * The ID of the subnets from which you access OpenSearch Serverless.
  1741. */
  1742. subnetIds?: SubnetIds;
  1743. }
  1744. export interface UpdateVpcEndpointRequest {
  1745. /**
  1746. * The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
  1747. */
  1748. addSecurityGroupIds?: SecurityGroupIds;
  1749. /**
  1750. * The ID of one or more subnets to add to the endpoint.
  1751. */
  1752. addSubnetIds?: SubnetIds;
  1753. /**
  1754. * Unique, case-sensitive identifier to ensure idempotency of the request.
  1755. */
  1756. clientToken?: ClientToken;
  1757. /**
  1758. * The unique identifier of the interface endpoint to update.
  1759. */
  1760. id: VpcEndpointId;
  1761. /**
  1762. * The unique identifiers of the security groups to remove from the endpoint.
  1763. */
  1764. removeSecurityGroupIds?: SecurityGroupIds;
  1765. /**
  1766. * The unique identifiers of the subnets to remove from the endpoint.
  1767. */
  1768. removeSubnetIds?: SubnetIds;
  1769. }
  1770. export interface UpdateVpcEndpointResponse {
  1771. /**
  1772. * Details about the updated VPC endpoint.
  1773. */
  1774. UpdateVpcEndpointDetail?: UpdateVpcEndpointDetail;
  1775. }
  1776. export interface VpcEndpointDetail {
  1777. /**
  1778. * The date the endpoint was created.
  1779. */
  1780. createdDate?: Long;
  1781. /**
  1782. * The unique identifier of the endpoint.
  1783. */
  1784. id?: VpcEndpointId;
  1785. /**
  1786. * The name of the endpoint.
  1787. */
  1788. name?: VpcEndpointName;
  1789. /**
  1790. * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
  1791. */
  1792. securityGroupIds?: SecurityGroupIds;
  1793. /**
  1794. * The current status of the endpoint.
  1795. */
  1796. status?: VpcEndpointStatus;
  1797. /**
  1798. * The ID of the subnets from which you access OpenSearch Serverless.
  1799. */
  1800. subnetIds?: SubnetIds;
  1801. /**
  1802. * The ID of the VPC from which you access OpenSearch Serverless.
  1803. */
  1804. vpcId?: VpcId;
  1805. }
  1806. export type VpcEndpointDetails = VpcEndpointDetail[];
  1807. export interface VpcEndpointErrorDetail {
  1808. /**
  1809. * The error code for the failed request.
  1810. */
  1811. errorCode?: String;
  1812. /**
  1813. * An error message describing the reason for the failure.
  1814. */
  1815. errorMessage?: String;
  1816. /**
  1817. * The unique identifier of the VPC endpoint.
  1818. */
  1819. id?: VpcEndpointId;
  1820. }
  1821. export type VpcEndpointErrorDetails = VpcEndpointErrorDetail[];
  1822. export interface VpcEndpointFilters {
  1823. /**
  1824. * The current status of the endpoint.
  1825. */
  1826. status?: VpcEndpointStatus;
  1827. }
  1828. export type VpcEndpointId = string;
  1829. export type VpcEndpointIds = VpcEndpointId[];
  1830. export type VpcEndpointName = string;
  1831. export type VpcEndpointStatus = "PENDING"|"DELETING"|"ACTIVE"|"FAILED"|string;
  1832. export type VpcEndpointSummaries = VpcEndpointSummary[];
  1833. export interface VpcEndpointSummary {
  1834. /**
  1835. * The unique identifier of the endpoint.
  1836. */
  1837. id?: VpcEndpointId;
  1838. /**
  1839. * The name of the endpoint.
  1840. */
  1841. name?: VpcEndpointName;
  1842. /**
  1843. * The current status of the endpoint.
  1844. */
  1845. status?: VpcEndpointStatus;
  1846. }
  1847. export type VpcId = string;
  1848. export type samlGroupAttribute = string;
  1849. export type samlMetadata = string;
  1850. export type samlUserAttribute = string;
  1851. /**
  1852. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1853. */
  1854. export type apiVersion = "2021-11-01"|"latest"|string;
  1855. export interface ClientApiVersions {
  1856. /**
  1857. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1858. */
  1859. apiVersion?: apiVersion;
  1860. }
  1861. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  1862. /**
  1863. * Contains interfaces for use with the OpenSearchServerless client.
  1864. */
  1865. export import Types = OpenSearchServerless;
  1866. }
  1867. export = OpenSearchServerless;