repostspace.d.ts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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 Repostspace extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: Repostspace.Types.ClientConfiguration)
  13. config: Config & Repostspace.Types.ClientConfiguration;
  14. /**
  15. * Creates an AWS re:Post Private private re:Post.
  16. */
  17. createSpace(params: Repostspace.Types.CreateSpaceInput, callback?: (err: AWSError, data: Repostspace.Types.CreateSpaceOutput) => void): Request<Repostspace.Types.CreateSpaceOutput, AWSError>;
  18. /**
  19. * Creates an AWS re:Post Private private re:Post.
  20. */
  21. createSpace(callback?: (err: AWSError, data: Repostspace.Types.CreateSpaceOutput) => void): Request<Repostspace.Types.CreateSpaceOutput, AWSError>;
  22. /**
  23. * Deletes an AWS re:Post Private private re:Post.
  24. */
  25. deleteSpace(params: Repostspace.Types.DeleteSpaceInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  26. /**
  27. * Deletes an AWS re:Post Private private re:Post.
  28. */
  29. deleteSpace(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  30. /**
  31. * Removes the user or group from the list of administrators of the private re:Post.
  32. */
  33. deregisterAdmin(params: Repostspace.Types.DeregisterAdminInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  34. /**
  35. * Removes the user or group from the list of administrators of the private re:Post.
  36. */
  37. deregisterAdmin(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  38. /**
  39. * Displays information about the AWS re:Post Private private re:Post.
  40. */
  41. getSpace(params: Repostspace.Types.GetSpaceInput, callback?: (err: AWSError, data: Repostspace.Types.GetSpaceOutput) => void): Request<Repostspace.Types.GetSpaceOutput, AWSError>;
  42. /**
  43. * Displays information about the AWS re:Post Private private re:Post.
  44. */
  45. getSpace(callback?: (err: AWSError, data: Repostspace.Types.GetSpaceOutput) => void): Request<Repostspace.Types.GetSpaceOutput, AWSError>;
  46. /**
  47. * Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.
  48. */
  49. listSpaces(params: Repostspace.Types.ListSpacesInput, callback?: (err: AWSError, data: Repostspace.Types.ListSpacesOutput) => void): Request<Repostspace.Types.ListSpacesOutput, AWSError>;
  50. /**
  51. * Returns a list of AWS re:Post Private private re:Posts in the account with some information about each private re:Post.
  52. */
  53. listSpaces(callback?: (err: AWSError, data: Repostspace.Types.ListSpacesOutput) => void): Request<Repostspace.Types.ListSpacesOutput, AWSError>;
  54. /**
  55. * Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post.
  56. */
  57. listTagsForResource(params: Repostspace.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Repostspace.Types.ListTagsForResourceResponse) => void): Request<Repostspace.Types.ListTagsForResourceResponse, AWSError>;
  58. /**
  59. * Returns the tags that are associated with the AWS re:Post Private resource specified by the resourceArn. The only resource that can be tagged is a private re:Post.
  60. */
  61. listTagsForResource(callback?: (err: AWSError, data: Repostspace.Types.ListTagsForResourceResponse) => void): Request<Repostspace.Types.ListTagsForResourceResponse, AWSError>;
  62. /**
  63. * Adds a user or group to the list of administrators of the private re:Post.
  64. */
  65. registerAdmin(params: Repostspace.Types.RegisterAdminInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  66. /**
  67. * Adds a user or group to the list of administrators of the private re:Post.
  68. */
  69. registerAdmin(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  70. /**
  71. * Sends an invitation email to selected users and groups.
  72. */
  73. sendInvites(params: Repostspace.Types.SendInvitesInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  74. /**
  75. * Sends an invitation email to selected users and groups.
  76. */
  77. sendInvites(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  78. /**
  79. * Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
  80. */
  81. tagResource(params: Repostspace.Types.TagResourceRequest, callback?: (err: AWSError, data: Repostspace.Types.TagResourceResponse) => void): Request<Repostspace.Types.TagResourceResponse, AWSError>;
  82. /**
  83. * Associates tags with an AWS re:Post Private resource. Currently, the only resource that can be tagged is the private re:Post. If you specify a new tag key for the resource, the tag is appended to the list of tags that are associated with the resource. If you specify a tag key that’s already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
  84. */
  85. tagResource(callback?: (err: AWSError, data: Repostspace.Types.TagResourceResponse) => void): Request<Repostspace.Types.TagResourceResponse, AWSError>;
  86. /**
  87. * Removes the association of the tag with the AWS re:Post Private resource.
  88. */
  89. untagResource(params: Repostspace.Types.UntagResourceRequest, callback?: (err: AWSError, data: Repostspace.Types.UntagResourceResponse) => void): Request<Repostspace.Types.UntagResourceResponse, AWSError>;
  90. /**
  91. * Removes the association of the tag with the AWS re:Post Private resource.
  92. */
  93. untagResource(callback?: (err: AWSError, data: Repostspace.Types.UntagResourceResponse) => void): Request<Repostspace.Types.UntagResourceResponse, AWSError>;
  94. /**
  95. * Modifies an existing AWS re:Post Private private re:Post.
  96. */
  97. updateSpace(params: Repostspace.Types.UpdateSpaceInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  98. /**
  99. * Modifies an existing AWS re:Post Private private re:Post.
  100. */
  101. updateSpace(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  102. }
  103. declare namespace Repostspace {
  104. export type AccessorId = string;
  105. export type AccessorIdList = AccessorId[];
  106. export type AdminId = string;
  107. export type Arn = string;
  108. export type ClientId = string;
  109. export type ConfigurationStatus = "CONFIGURED"|"UNCONFIGURED"|string;
  110. export type ContentSize = number;
  111. export interface CreateSpaceInput {
  112. /**
  113. * A description for the private re:Post. This is used only to help you identify this private re:Post.
  114. */
  115. description?: SpaceDescription;
  116. /**
  117. * The name for the private re:Post. This must be unique in your account.
  118. */
  119. name: SpaceName;
  120. /**
  121. * The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
  122. */
  123. roleArn?: Arn;
  124. /**
  125. * The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.
  126. */
  127. subdomain: SpaceSubdomain;
  128. /**
  129. * The list of tags associated with the private re:Post.
  130. */
  131. tags?: Tags;
  132. /**
  133. * The pricing tier for the private re:Post.
  134. */
  135. tier: TierLevel;
  136. /**
  137. * The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.
  138. */
  139. userKMSKey?: KMSKey;
  140. }
  141. export interface CreateSpaceOutput {
  142. /**
  143. * The unique ID of the private re:Post.
  144. */
  145. spaceId: SpaceId;
  146. }
  147. export interface DeleteSpaceInput {
  148. /**
  149. * The unique ID of the private re:Post.
  150. */
  151. spaceId: SpaceId;
  152. }
  153. export interface DeregisterAdminInput {
  154. /**
  155. * The ID of the admin to remove.
  156. */
  157. adminId: AdminId;
  158. /**
  159. * The ID of the private re:Post to remove the admin from.
  160. */
  161. spaceId: SpaceId;
  162. }
  163. export interface GetSpaceInput {
  164. /**
  165. * The ID of the private re:Post.
  166. */
  167. spaceId: SpaceId;
  168. }
  169. export interface GetSpaceOutput {
  170. /**
  171. * The ARN of the private re:Post.
  172. */
  173. arn: Arn;
  174. /**
  175. * The Identity Center identifier for the Application Instance.
  176. */
  177. clientId: ClientId;
  178. /**
  179. * The configuration status of the private re:Post.
  180. */
  181. configurationStatus: ConfigurationStatus;
  182. /**
  183. * The content size of the private re:Post.
  184. */
  185. contentSize?: ContentSize;
  186. /**
  187. * The date when the private re:Post was created.
  188. */
  189. createDateTime: SyntheticTimestamp_date_time;
  190. /**
  191. * The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
  192. */
  193. customerRoleArn?: Arn;
  194. /**
  195. * The date when the private re:Post was deleted.
  196. */
  197. deleteDateTime?: SyntheticTimestamp_date_time;
  198. /**
  199. * The description of the private re:Post.
  200. */
  201. description?: SpaceDescription;
  202. /**
  203. * The list of groups that are administrators of the private re:Post.
  204. */
  205. groupAdmins?: GroupAdmins;
  206. /**
  207. * The name of the private re:Post.
  208. */
  209. name: SpaceName;
  210. /**
  211. * The AWS generated subdomain of the private re:Post
  212. */
  213. randomDomain: Url;
  214. /**
  215. * The unique ID of the private re:Post.
  216. */
  217. spaceId: SpaceId;
  218. /**
  219. * The creation or deletion status of the private re:Post.
  220. */
  221. status: ProvisioningStatus;
  222. /**
  223. * The storage limit of the private re:Post.
  224. */
  225. storageLimit: StorageLimit;
  226. /**
  227. * The pricing tier of the private re:Post.
  228. */
  229. tier: TierLevel;
  230. /**
  231. * The list of users that are administrators of the private re:Post.
  232. */
  233. userAdmins?: UserAdmins;
  234. /**
  235. * The number of users that have onboarded to the private re:Post.
  236. */
  237. userCount?: UserCount;
  238. /**
  239. * The custom AWS KMS key ARN that’s used for the AWS KMS encryption.
  240. */
  241. userKMSKey?: KMSKey;
  242. /**
  243. * The custom subdomain that you use to access your private re:Post. All custom subdomains must be approved by AWS before use.
  244. */
  245. vanityDomain: Url;
  246. /**
  247. * The approval status of the custom subdomain.
  248. */
  249. vanityDomainStatus: VanityDomainStatus;
  250. }
  251. export type GroupAdmins = AdminId[];
  252. export type InviteBody = string;
  253. export type InviteTitle = string;
  254. export type KMSKey = string;
  255. export interface ListSpacesInput {
  256. /**
  257. * The maximum number of private re:Posts to include in the results.
  258. */
  259. maxResults?: ListSpacesLimit;
  260. /**
  261. * The token for the next set of private re:Posts to return. You receive this token from a previous ListSpaces operation.
  262. */
  263. nextToken?: String;
  264. }
  265. export type ListSpacesLimit = number;
  266. export interface ListSpacesOutput {
  267. /**
  268. * The token that you use when you request the next set of private re:Posts.
  269. */
  270. nextToken?: String;
  271. /**
  272. * An array of structures that contain some information about the private re:Posts in the account.
  273. */
  274. spaces: SpacesList;
  275. }
  276. export interface ListTagsForResourceRequest {
  277. /**
  278. * The ARN of the resource that the tags are associated with.
  279. */
  280. resourceArn: Arn;
  281. }
  282. export interface ListTagsForResourceResponse {
  283. /**
  284. * The list of tags that are associated with the resource.
  285. */
  286. tags?: Tags;
  287. }
  288. export type ProvisioningStatus = string;
  289. export interface RegisterAdminInput {
  290. /**
  291. * The ID of the administrator.
  292. */
  293. adminId: AdminId;
  294. /**
  295. * The ID of the private re:Post.
  296. */
  297. spaceId: SpaceId;
  298. }
  299. export interface SendInvitesInput {
  300. /**
  301. * The array of identifiers for the users and groups.
  302. */
  303. accessorIds: AccessorIdList;
  304. /**
  305. * The body of the invite.
  306. */
  307. body: InviteBody;
  308. /**
  309. * The ID of the private re:Post.
  310. */
  311. spaceId: SpaceId;
  312. /**
  313. * The title of the invite.
  314. */
  315. title: InviteTitle;
  316. }
  317. export interface SpaceData {
  318. /**
  319. * The ARN of the private re:Post.
  320. */
  321. arn: Arn;
  322. /**
  323. * The configuration status of the private re:Post.
  324. */
  325. configurationStatus: ConfigurationStatus;
  326. /**
  327. * The content size of the private re:Post.
  328. */
  329. contentSize?: ContentSize;
  330. /**
  331. * The date when the private re:Post was created.
  332. */
  333. createDateTime: SyntheticTimestamp_date_time;
  334. /**
  335. * The date when the private re:Post was deleted.
  336. */
  337. deleteDateTime?: SyntheticTimestamp_date_time;
  338. /**
  339. * The description for the private re:Post. This is used only to help you identify this private re:Post.
  340. */
  341. description?: SpaceDescription;
  342. /**
  343. * The name for the private re:Post.
  344. */
  345. name: SpaceName;
  346. /**
  347. * The AWS generated subdomain of the private re:Post.
  348. */
  349. randomDomain: Url;
  350. /**
  351. * The unique ID of the private re:Post.
  352. */
  353. spaceId: SpaceId;
  354. /**
  355. * The creation/deletion status of the private re:Post.
  356. */
  357. status: ProvisioningStatus;
  358. /**
  359. * The storage limit of the private re:Post.
  360. */
  361. storageLimit: StorageLimit;
  362. /**
  363. * The pricing tier of the private re:Post.
  364. */
  365. tier: TierLevel;
  366. /**
  367. * The number of onboarded users to the private re:Post.
  368. */
  369. userCount?: UserCount;
  370. /**
  371. * The custom AWS KMS key ARN that’s used for the AWS KMS encryption.
  372. */
  373. userKMSKey?: KMSKey;
  374. /**
  375. * This custom subdomain that you use to access your private re:Post. All custom subdomains must be approved by AWS before use.
  376. */
  377. vanityDomain: Url;
  378. /**
  379. * This approval status of the custom subdomain.
  380. */
  381. vanityDomainStatus: VanityDomainStatus;
  382. }
  383. export type SpaceDescription = string;
  384. export type SpaceId = string;
  385. export type SpaceName = string;
  386. export type SpaceSubdomain = string;
  387. export type SpacesList = SpaceData[];
  388. export type StorageLimit = number;
  389. export type String = string;
  390. export type SyntheticTimestamp_date_time = Date;
  391. export type TagKey = string;
  392. export type TagKeyList = TagKey[];
  393. export interface TagResourceRequest {
  394. /**
  395. * The ARN of the resource that the tag is associated with.
  396. */
  397. resourceArn: Arn;
  398. /**
  399. * The list of tag keys and values that must be associated with the resource. You can associate tag keys only, tags (key and values) only, or a combination of tag keys and tags.
  400. */
  401. tags: Tags;
  402. }
  403. export interface TagResourceResponse {
  404. }
  405. export type TagValue = string;
  406. export type Tags = {[key: string]: TagValue};
  407. export type TierLevel = "BASIC"|"STANDARD"|string;
  408. export interface UntagResourceRequest {
  409. /**
  410. * The ARN of the resource.
  411. */
  412. resourceArn: Arn;
  413. /**
  414. * The key values of the tag.
  415. */
  416. tagKeys: TagKeyList;
  417. }
  418. export interface UntagResourceResponse {
  419. }
  420. export interface UpdateSpaceInput {
  421. /**
  422. * A description for the private re:Post. This is used only to help you identify this private re:Post.
  423. */
  424. description?: SpaceDescription;
  425. /**
  426. * The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.
  427. */
  428. roleArn?: Arn;
  429. /**
  430. * The unique ID of this private re:Post.
  431. */
  432. spaceId: SpaceId;
  433. /**
  434. * The pricing tier of this private re:Post.
  435. */
  436. tier?: TierLevel;
  437. }
  438. export type Url = string;
  439. export type UserAdmins = AdminId[];
  440. export type UserCount = number;
  441. export type VanityDomainStatus = "PENDING"|"APPROVED"|"UNAPPROVED"|string;
  442. /**
  443. * 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.
  444. */
  445. export type apiVersion = "2022-05-13"|"latest"|string;
  446. export interface ClientApiVersions {
  447. /**
  448. * 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.
  449. */
  450. apiVersion?: apiVersion;
  451. }
  452. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  453. /**
  454. * Contains interfaces for use with the Repostspace client.
  455. */
  456. export import Types = Repostspace;
  457. }
  458. export = Repostspace;