UNPKG

14.8 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Macie extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Macie.Types.ClientConfiguration)
13 config: Config & Macie.Types.ClientConfiguration;
14 /**
15 * Associates a specified AWS account with Amazon Macie as a member account.
16 */
17 associateMemberAccount(params: Macie.Types.AssociateMemberAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
18 /**
19 * Associates a specified AWS account with Amazon Macie as a member account.
20 */
21 associateMemberAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
22 /**
23 * Associates specified S3 resources with Amazon Macie for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie for the specified member account.
24 */
25 associateS3Resources(params: Macie.Types.AssociateS3ResourcesRequest, callback?: (err: AWSError, data: Macie.Types.AssociateS3ResourcesResult) => void): Request<Macie.Types.AssociateS3ResourcesResult, AWSError>;
26 /**
27 * Associates specified S3 resources with Amazon Macie for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie for the specified member account.
28 */
29 associateS3Resources(callback?: (err: AWSError, data: Macie.Types.AssociateS3ResourcesResult) => void): Request<Macie.Types.AssociateS3ResourcesResult, AWSError>;
30 /**
31 * Removes the specified member account from Amazon Macie.
32 */
33 disassociateMemberAccount(params: Macie.Types.DisassociateMemberAccountRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
34 /**
35 * Removes the specified member account from Amazon Macie.
36 */
37 disassociateMemberAccount(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
38 /**
39 * Removes specified S3 resources from being monitored by Amazon Macie. If memberAccountId isn't specified, the action removes specified S3 resources from Macie for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie for the specified member account.
40 */
41 disassociateS3Resources(params: Macie.Types.DisassociateS3ResourcesRequest, callback?: (err: AWSError, data: Macie.Types.DisassociateS3ResourcesResult) => void): Request<Macie.Types.DisassociateS3ResourcesResult, AWSError>;
42 /**
43 * Removes specified S3 resources from being monitored by Amazon Macie. If memberAccountId isn't specified, the action removes specified S3 resources from Macie for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie for the specified member account.
44 */
45 disassociateS3Resources(callback?: (err: AWSError, data: Macie.Types.DisassociateS3ResourcesResult) => void): Request<Macie.Types.DisassociateS3ResourcesResult, AWSError>;
46 /**
47 * Lists all Amazon Macie member accounts for the current Amazon Macie master account.
48 */
49 listMemberAccounts(params: Macie.Types.ListMemberAccountsRequest, callback?: (err: AWSError, data: Macie.Types.ListMemberAccountsResult) => void): Request<Macie.Types.ListMemberAccountsResult, AWSError>;
50 /**
51 * Lists all Amazon Macie member accounts for the current Amazon Macie master account.
52 */
53 listMemberAccounts(callback?: (err: AWSError, data: Macie.Types.ListMemberAccountsResult) => void): Request<Macie.Types.ListMemberAccountsResult, AWSError>;
54 /**
55 * Lists all the S3 resources associated with Amazon Macie. If memberAccountId isn't specified, the action lists the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie for the specified member account.
56 */
57 listS3Resources(params: Macie.Types.ListS3ResourcesRequest, callback?: (err: AWSError, data: Macie.Types.ListS3ResourcesResult) => void): Request<Macie.Types.ListS3ResourcesResult, AWSError>;
58 /**
59 * Lists all the S3 resources associated with Amazon Macie. If memberAccountId isn't specified, the action lists the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie for the specified member account.
60 */
61 listS3Resources(callback?: (err: AWSError, data: Macie.Types.ListS3ResourcesResult) => void): Request<Macie.Types.ListS3ResourcesResult, AWSError>;
62 /**
63 * Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the specified member account.
64 */
65 updateS3Resources(params: Macie.Types.UpdateS3ResourcesRequest, callback?: (err: AWSError, data: Macie.Types.UpdateS3ResourcesResult) => void): Request<Macie.Types.UpdateS3ResourcesResult, AWSError>;
66 /**
67 * Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the specified member account.
68 */
69 updateS3Resources(callback?: (err: AWSError, data: Macie.Types.UpdateS3ResourcesResult) => void): Request<Macie.Types.UpdateS3ResourcesResult, AWSError>;
70}
71declare namespace Macie {
72 export type AWSAccountId = string;
73 export interface AssociateMemberAccountRequest {
74 /**
75 * The ID of the AWS account that you want to associate with Amazon Macie as a member account.
76 */
77 memberAccountId: AWSAccountId;
78 }
79 export interface AssociateS3ResourcesRequest {
80 /**
81 * The ID of the Amazon Macie member account whose resources you want to associate with Macie.
82 */
83 memberAccountId?: AWSAccountId;
84 /**
85 * The S3 resources that you want to associate with Amazon Macie for monitoring and data classification.
86 */
87 s3Resources: S3ResourcesClassification;
88 }
89 export interface AssociateS3ResourcesResult {
90 /**
91 * S3 resources that couldn't be associated with Amazon Macie. An error code and an error message are provided for each failed item.
92 */
93 failedS3Resources?: FailedS3Resources;
94 }
95 export type BucketName = string;
96 export interface ClassificationType {
97 /**
98 * A one-time classification of all of the existing objects in a specified S3 bucket.
99 */
100 oneTime: S3OneTimeClassificationType;
101 /**
102 * A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie.
103 */
104 continuous: S3ContinuousClassificationType;
105 }
106 export interface ClassificationTypeUpdate {
107 /**
108 * A one-time classification of all of the existing objects in a specified S3 bucket.
109 */
110 oneTime?: S3OneTimeClassificationType;
111 /**
112 * A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie.
113 */
114 continuous?: S3ContinuousClassificationType;
115 }
116 export interface DisassociateMemberAccountRequest {
117 /**
118 * The ID of the member account that you want to remove from Amazon Macie.
119 */
120 memberAccountId: AWSAccountId;
121 }
122 export interface DisassociateS3ResourcesRequest {
123 /**
124 * The ID of the Amazon Macie member account whose resources you want to remove from being monitored by Amazon Macie.
125 */
126 memberAccountId?: AWSAccountId;
127 /**
128 * The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie.
129 */
130 associatedS3Resources: S3Resources;
131 }
132 export interface DisassociateS3ResourcesResult {
133 /**
134 * S3 resources that couldn't be removed from being monitored and classified by Amazon Macie. An error code and an error message are provided for each failed item.
135 */
136 failedS3Resources?: FailedS3Resources;
137 }
138 export type ErrorCode = string;
139 export type ExceptionMessage = string;
140 export interface FailedS3Resource {
141 /**
142 * The failed S3 resources.
143 */
144 failedItem?: S3Resource;
145 /**
146 * The status code of a failed item.
147 */
148 errorCode?: ErrorCode;
149 /**
150 * The error message of a failed item.
151 */
152 errorMessage?: ExceptionMessage;
153 }
154 export type FailedS3Resources = FailedS3Resource[];
155 export interface ListMemberAccountsRequest {
156 /**
157 * Use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListMemberAccounts action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
158 */
159 nextToken?: NextToken;
160 /**
161 * Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
162 */
163 maxResults?: MaxResults;
164 }
165 export interface ListMemberAccountsResult {
166 /**
167 * A list of the Amazon Macie member accounts returned by the action. The current master account is also included in this list.
168 */
169 memberAccounts?: MemberAccounts;
170 /**
171 * When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
172 */
173 nextToken?: NextToken;
174 }
175 export interface ListS3ResourcesRequest {
176 /**
177 * The Amazon Macie member account ID whose associated S3 resources you want to list.
178 */
179 memberAccountId?: AWSAccountId;
180 /**
181 * Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
182 */
183 nextToken?: NextToken;
184 /**
185 * Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
186 */
187 maxResults?: MaxResults;
188 }
189 export interface ListS3ResourcesResult {
190 /**
191 * A list of the associated S3 resources returned by the action.
192 */
193 s3Resources?: S3ResourcesClassification;
194 /**
195 * When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
196 */
197 nextToken?: NextToken;
198 }
199 export type MaxResults = number;
200 export interface MemberAccount {
201 /**
202 * The AWS account ID of the Amazon Macie member account.
203 */
204 accountId?: AWSAccountId;
205 }
206 export type MemberAccounts = MemberAccount[];
207 export type NextToken = string;
208 export type Prefix = string;
209 export type S3ContinuousClassificationType = "FULL"|string;
210 export type S3OneTimeClassificationType = "FULL"|"NONE"|string;
211 export interface S3Resource {
212 /**
213 * The name of the S3 bucket.
214 */
215 bucketName: BucketName;
216 /**
217 * The prefix of the S3 bucket.
218 */
219 prefix?: Prefix;
220 }
221 export interface S3ResourceClassification {
222 /**
223 * The name of the S3 bucket that you want to associate with Amazon Macie.
224 */
225 bucketName: BucketName;
226 /**
227 * The prefix of the S3 bucket that you want to associate with Amazon Macie.
228 */
229 prefix?: Prefix;
230 /**
231 * The classification type that you want to specify for the resource associated with Amazon Macie.
232 */
233 classificationType: ClassificationType;
234 }
235 export interface S3ResourceClassificationUpdate {
236 /**
237 * The name of the S3 bucket whose classification types you want to update.
238 */
239 bucketName: BucketName;
240 /**
241 * The prefix of the S3 bucket whose classification types you want to update.
242 */
243 prefix?: Prefix;
244 /**
245 * The classification type that you want to update for the resource associated with Amazon Macie.
246 */
247 classificationTypeUpdate: ClassificationTypeUpdate;
248 }
249 export type S3Resources = S3Resource[];
250 export type S3ResourcesClassification = S3ResourceClassification[];
251 export type S3ResourcesClassificationUpdate = S3ResourceClassificationUpdate[];
252 export interface UpdateS3ResourcesRequest {
253 /**
254 * The AWS ID of the Amazon Macie member account whose S3 resources' classification types you want to update.
255 */
256 memberAccountId?: AWSAccountId;
257 /**
258 * The S3 resources whose classification types you want to update.
259 */
260 s3ResourcesUpdate: S3ResourcesClassificationUpdate;
261 }
262 export interface UpdateS3ResourcesResult {
263 /**
264 * The S3 resources whose classification types can't be updated. An error code and an error message are provided for each failed item.
265 */
266 failedS3Resources?: FailedS3Resources;
267 }
268 /**
269 * 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.
270 */
271 export type apiVersion = "2017-12-19"|"latest"|string;
272 export interface ClientApiVersions {
273 /**
274 * 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.
275 */
276 apiVersion?: apiVersion;
277 }
278 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
279 /**
280 * Contains interfaces for use with the Macie client.
281 */
282 export import Types = Macie;
283}
284export = Macie;