controlcatalog.d.ts 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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 ControlCatalog extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: ControlCatalog.Types.ClientConfiguration)
  13. config: Config & ControlCatalog.Types.ClientConfiguration;
  14. /**
  15. * Returns a paginated list of common controls from the Amazon Web Services Control Catalog. You can apply an optional filter to see common controls that have a specific objective. If you don’t provide a filter, the operation returns all common controls.
  16. */
  17. listCommonControls(params: ControlCatalog.Types.ListCommonControlsRequest, callback?: (err: AWSError, data: ControlCatalog.Types.ListCommonControlsResponse) => void): Request<ControlCatalog.Types.ListCommonControlsResponse, AWSError>;
  18. /**
  19. * Returns a paginated list of common controls from the Amazon Web Services Control Catalog. You can apply an optional filter to see common controls that have a specific objective. If you don’t provide a filter, the operation returns all common controls.
  20. */
  21. listCommonControls(callback?: (err: AWSError, data: ControlCatalog.Types.ListCommonControlsResponse) => void): Request<ControlCatalog.Types.ListCommonControlsResponse, AWSError>;
  22. /**
  23. * Returns a paginated list of domains from the Amazon Web Services Control Catalog.
  24. */
  25. listDomains(params: ControlCatalog.Types.ListDomainsRequest, callback?: (err: AWSError, data: ControlCatalog.Types.ListDomainsResponse) => void): Request<ControlCatalog.Types.ListDomainsResponse, AWSError>;
  26. /**
  27. * Returns a paginated list of domains from the Amazon Web Services Control Catalog.
  28. */
  29. listDomains(callback?: (err: AWSError, data: ControlCatalog.Types.ListDomainsResponse) => void): Request<ControlCatalog.Types.ListDomainsResponse, AWSError>;
  30. /**
  31. * Returns a paginated list of objectives from the Amazon Web Services Control Catalog. You can apply an optional filter to see the objectives that belong to a specific domain. If you don’t provide a filter, the operation returns all objectives.
  32. */
  33. listObjectives(params: ControlCatalog.Types.ListObjectivesRequest, callback?: (err: AWSError, data: ControlCatalog.Types.ListObjectivesResponse) => void): Request<ControlCatalog.Types.ListObjectivesResponse, AWSError>;
  34. /**
  35. * Returns a paginated list of objectives from the Amazon Web Services Control Catalog. You can apply an optional filter to see the objectives that belong to a specific domain. If you don’t provide a filter, the operation returns all objectives.
  36. */
  37. listObjectives(callback?: (err: AWSError, data: ControlCatalog.Types.ListObjectivesResponse) => void): Request<ControlCatalog.Types.ListObjectivesResponse, AWSError>;
  38. }
  39. declare namespace ControlCatalog {
  40. export interface AssociatedDomainSummary {
  41. /**
  42. * The Amazon Resource Name (ARN) of the related domain.
  43. */
  44. Arn?: DomainArn;
  45. /**
  46. * The name of the related domain.
  47. */
  48. Name?: String;
  49. }
  50. export interface AssociatedObjectiveSummary {
  51. /**
  52. * The Amazon Resource Name (ARN) of the related objective.
  53. */
  54. Arn?: ObjectiveArn;
  55. /**
  56. * The name of the related objective.
  57. */
  58. Name?: String;
  59. }
  60. export type CommonControlArn = string;
  61. export interface CommonControlFilter {
  62. /**
  63. * The objective that's used as filter criteria. You can use this parameter to specify one objective ARN at a time. Passing multiple ARNs in the CommonControlFilter isn’t currently supported.
  64. */
  65. Objectives?: ObjectiveResourceFilterList;
  66. }
  67. export interface CommonControlSummary {
  68. /**
  69. * The Amazon Resource Name (ARN) that identifies the common control.
  70. */
  71. Arn: CommonControlArn;
  72. /**
  73. * The time when the common control was created.
  74. */
  75. CreateTime: Timestamp;
  76. /**
  77. * The description of the common control.
  78. */
  79. Description: String;
  80. /**
  81. * The domain that the common control belongs to.
  82. */
  83. Domain: AssociatedDomainSummary;
  84. /**
  85. * The time when the common control was most recently updated.
  86. */
  87. LastUpdateTime: Timestamp;
  88. /**
  89. * The name of the common control.
  90. */
  91. Name: String;
  92. /**
  93. * The objective that the common control belongs to.
  94. */
  95. Objective: AssociatedObjectiveSummary;
  96. }
  97. export type CommonControlSummaryList = CommonControlSummary[];
  98. export type DomainArn = string;
  99. export interface DomainResourceFilter {
  100. /**
  101. * The Amazon Resource Name (ARN) of the domain.
  102. */
  103. Arn?: DomainArn;
  104. }
  105. export type DomainResourceFilterList = DomainResourceFilter[];
  106. export interface DomainSummary {
  107. /**
  108. * The Amazon Resource Name (ARN) that identifies the domain.
  109. */
  110. Arn: DomainArn;
  111. /**
  112. * The time when the domain was created.
  113. */
  114. CreateTime: Timestamp;
  115. /**
  116. * The description of the domain.
  117. */
  118. Description: String;
  119. /**
  120. * The time when the domain was most recently updated.
  121. */
  122. LastUpdateTime: Timestamp;
  123. /**
  124. * The name of the domain.
  125. */
  126. Name: String;
  127. }
  128. export type DomainSummaryList = DomainSummary[];
  129. export interface ListCommonControlsRequest {
  130. /**
  131. * An optional filter that narrows the results to a specific objective. This filter allows you to specify one objective ARN at a time. Passing multiple ARNs in the CommonControlFilter isn’t currently supported.
  132. */
  133. CommonControlFilter?: CommonControlFilter;
  134. /**
  135. * The maximum number of results on a page or for an API request call.
  136. */
  137. MaxResults?: MaxListCommonControlsResults;
  138. /**
  139. * The pagination token that's used to fetch the next set of results.
  140. */
  141. NextToken?: PaginationToken;
  142. }
  143. export interface ListCommonControlsResponse {
  144. /**
  145. * The list of common controls that the ListCommonControls API returns.
  146. */
  147. CommonControls: CommonControlSummaryList;
  148. /**
  149. * The pagination token that's used to fetch the next set of results.
  150. */
  151. NextToken?: PaginationToken;
  152. }
  153. export interface ListDomainsRequest {
  154. /**
  155. * The maximum number of results on a page or for an API request call.
  156. */
  157. MaxResults?: MaxListDomainsResults;
  158. /**
  159. * The pagination token that's used to fetch the next set of results.
  160. */
  161. NextToken?: PaginationToken;
  162. }
  163. export interface ListDomainsResponse {
  164. /**
  165. * The list of domains that the ListDomains API returns.
  166. */
  167. Domains: DomainSummaryList;
  168. /**
  169. * The pagination token that's used to fetch the next set of results.
  170. */
  171. NextToken?: PaginationToken;
  172. }
  173. export interface ListObjectivesRequest {
  174. /**
  175. * The maximum number of results on a page or for an API request call.
  176. */
  177. MaxResults?: MaxListObjectivesResults;
  178. /**
  179. * The pagination token that's used to fetch the next set of results.
  180. */
  181. NextToken?: PaginationToken;
  182. /**
  183. * An optional filter that narrows the results to a specific domain. This filter allows you to specify one domain ARN at a time. Passing multiple ARNs in the ObjectiveFilter isn’t currently supported.
  184. */
  185. ObjectiveFilter?: ObjectiveFilter;
  186. }
  187. export interface ListObjectivesResponse {
  188. /**
  189. * The pagination token that's used to fetch the next set of results.
  190. */
  191. NextToken?: PaginationToken;
  192. /**
  193. * The list of objectives that the ListObjectives API returns.
  194. */
  195. Objectives: ObjectiveSummaryList;
  196. }
  197. export type MaxListCommonControlsResults = number;
  198. export type MaxListDomainsResults = number;
  199. export type MaxListObjectivesResults = number;
  200. export type ObjectiveArn = string;
  201. export interface ObjectiveFilter {
  202. /**
  203. * The domain that's used as filter criteria. You can use this parameter to specify one domain ARN at a time. Passing multiple ARNs in the ObjectiveFilter isn’t currently supported.
  204. */
  205. Domains?: DomainResourceFilterList;
  206. }
  207. export interface ObjectiveResourceFilter {
  208. /**
  209. * The Amazon Resource Name (ARN) of the objective.
  210. */
  211. Arn?: ObjectiveArn;
  212. }
  213. export type ObjectiveResourceFilterList = ObjectiveResourceFilter[];
  214. export interface ObjectiveSummary {
  215. /**
  216. * The Amazon Resource Name (ARN) that identifies the objective.
  217. */
  218. Arn: ObjectiveArn;
  219. /**
  220. * The time when the objective was created.
  221. */
  222. CreateTime: Timestamp;
  223. /**
  224. * The description of the objective.
  225. */
  226. Description: String;
  227. /**
  228. * The domain that the objective belongs to.
  229. */
  230. Domain: AssociatedDomainSummary;
  231. /**
  232. * The time when the objective was most recently updated.
  233. */
  234. LastUpdateTime: Timestamp;
  235. /**
  236. * The name of the objective.
  237. */
  238. Name: String;
  239. }
  240. export type ObjectiveSummaryList = ObjectiveSummary[];
  241. export type PaginationToken = string;
  242. export type String = string;
  243. export type Timestamp = Date;
  244. /**
  245. * 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.
  246. */
  247. export type apiVersion = "2018-05-10"|"latest"|string;
  248. export interface ClientApiVersions {
  249. /**
  250. * 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.
  251. */
  252. apiVersion?: apiVersion;
  253. }
  254. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  255. /**
  256. * Contains interfaces for use with the ControlCatalog client.
  257. */
  258. export import Types = ControlCatalog;
  259. }
  260. export = ControlCatalog;