1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2017-12-19",
5    "endpointPrefix":"macie",
6    "jsonVersion":"1.1",
7    "protocol":"json",
8    "serviceFullName":"Amazon Macie",
9    "serviceId":"Macie",
10    "signatureVersion":"v4",
11    "targetPrefix":"MacieService",
12    "uid":"macie-2017-12-19"
13  },
14  "operations":{
15    "AssociateMemberAccount":{
16      "name":"AssociateMemberAccount",
17      "http":{
18        "method":"POST",
19        "requestUri":"/"
20      },
21      "input":{"shape":"AssociateMemberAccountRequest"},
22      "errors":[
23        {"shape":"InvalidInputException"},
24        {"shape":"LimitExceededException"},
25        {"shape":"InternalException"}
26      ],
27      "documentation":"<p>Associates a specified AWS account with Amazon Macie Classic as a member account.</p>"
28    },
29    "AssociateS3Resources":{
30      "name":"AssociateS3Resources",
31      "http":{
32        "method":"POST",
33        "requestUri":"/"
34      },
35      "input":{"shape":"AssociateS3ResourcesRequest"},
36      "output":{"shape":"AssociateS3ResourcesResult"},
37      "errors":[
38        {"shape":"InvalidInputException"},
39        {"shape":"AccessDeniedException"},
40        {"shape":"LimitExceededException"},
41        {"shape":"InternalException"}
42      ],
43      "documentation":"<p>Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action associates specified S3 resources with Macie Classic for the specified member account. </p>"
44    },
45    "DisassociateMemberAccount":{
46      "name":"DisassociateMemberAccount",
47      "http":{
48        "method":"POST",
49        "requestUri":"/"
50      },
51      "input":{"shape":"DisassociateMemberAccountRequest"},
52      "errors":[
53        {"shape":"InvalidInputException"},
54        {"shape":"InternalException"}
55      ],
56      "documentation":"<p>Removes the specified member account from Amazon Macie Classic.</p>"
57    },
58    "DisassociateS3Resources":{
59      "name":"DisassociateS3Resources",
60      "http":{
61        "method":"POST",
62        "requestUri":"/"
63      },
64      "input":{"shape":"DisassociateS3ResourcesRequest"},
65      "output":{"shape":"DisassociateS3ResourcesResult"},
66      "errors":[
67        {"shape":"InvalidInputException"},
68        {"shape":"AccessDeniedException"},
69        {"shape":"InternalException"}
70      ],
71      "documentation":"<p>Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId isn't specified, the action removes specified S3 resources from Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action removes specified S3 resources from Macie Classic for the specified member account.</p>"
72    },
73    "ListMemberAccounts":{
74      "name":"ListMemberAccounts",
75      "http":{
76        "method":"POST",
77        "requestUri":"/"
78      },
79      "input":{"shape":"ListMemberAccountsRequest"},
80      "output":{"shape":"ListMemberAccountsResult"},
81      "errors":[
82        {"shape":"InternalException"},
83        {"shape":"InvalidInputException"}
84      ],
85      "documentation":"<p>Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.</p>"
86    },
87    "ListS3Resources":{
88      "name":"ListS3Resources",
89      "http":{
90        "method":"POST",
91        "requestUri":"/"
92      },
93      "input":{"shape":"ListS3ResourcesRequest"},
94      "output":{"shape":"ListS3ResourcesResult"},
95      "errors":[
96        {"shape":"InvalidInputException"},
97        {"shape":"AccessDeniedException"},
98        {"shape":"InternalException"}
99      ],
100      "documentation":"<p>Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account. </p>"
101    },
102    "UpdateS3Resources":{
103      "name":"UpdateS3Resources",
104      "http":{
105        "method":"POST",
106        "requestUri":"/"
107      },
108      "input":{"shape":"UpdateS3ResourcesRequest"},
109      "output":{"shape":"UpdateS3ResourcesResult"},
110      "errors":[
111        {"shape":"InvalidInputException"},
112        {"shape":"AccessDeniedException"},
113        {"shape":"InternalException"}
114      ],
115      "documentation":"<p>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 Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account. </p>"
116    }
117  },
118  "shapes":{
119    "AWSAccountId":{
120      "type":"string",
121      "pattern":"[0-9]{12}"
122    },
123    "AccessDeniedException":{
124      "type":"structure",
125      "members":{
126        "message":{"shape":"ExceptionMessage"},
127        "resourceType":{"shape":"ResourceType"}
128      },
129      "documentation":"<p>You do not have required permissions to access the requested resource.</p>",
130      "exception":true
131    },
132    "AssociateMemberAccountRequest":{
133      "type":"structure",
134      "required":["memberAccountId"],
135      "members":{
136        "memberAccountId":{
137          "shape":"AWSAccountId",
138          "documentation":"<p>The ID of the AWS account that you want to associate with Amazon Macie Classic as a member account.</p>"
139        }
140      }
141    },
142    "AssociateS3ResourcesRequest":{
143      "type":"structure",
144      "required":["s3Resources"],
145      "members":{
146        "memberAccountId":{
147          "shape":"AWSAccountId",
148          "documentation":"<p>The ID of the Amazon Macie Classic member account whose resources you want to associate with Macie Classic. </p>"
149        },
150        "s3Resources":{
151          "shape":"S3ResourcesClassification",
152          "documentation":"<p>The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification. </p>"
153        }
154      }
155    },
156    "AssociateS3ResourcesResult":{
157      "type":"structure",
158      "members":{
159        "failedS3Resources":{
160          "shape":"FailedS3Resources",
161          "documentation":"<p>S3 resources that couldn't be associated with Amazon Macie Classic. An error code and an error message are provided for each failed item. </p>"
162        }
163      }
164    },
165    "BucketName":{
166      "type":"string",
167      "max":500
168    },
169    "ClassificationType":{
170      "type":"structure",
171      "required":[
172        "oneTime",
173        "continuous"
174      ],
175      "members":{
176        "oneTime":{
177          "shape":"S3OneTimeClassificationType",
178          "documentation":"<p>A one-time classification of all of the existing objects in a specified S3 bucket. </p>"
179        },
180        "continuous":{
181          "shape":"S3ContinuousClassificationType",
182          "documentation":"<p>A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie Classic begins performing continuous classification after a bucket is successfully associated with Macie Classic. </p>"
183        }
184      },
185      "documentation":"<p>The classification type that Amazon Macie Classic applies to the associated S3 resources. </p>"
186    },
187    "ClassificationTypeUpdate":{
188      "type":"structure",
189      "members":{
190        "oneTime":{
191          "shape":"S3OneTimeClassificationType",
192          "documentation":"<p>A one-time classification of all of the existing objects in a specified S3 bucket. </p>"
193        },
194        "continuous":{
195          "shape":"S3ContinuousClassificationType",
196          "documentation":"<p>A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie Classic begins performing continuous classification after a bucket is successfully associated with Macie Classic. </p>"
197        }
198      },
199      "documentation":"<p>The classification type that Amazon Macie Classic applies to the associated S3 resources. At least one of the classification types (oneTime or continuous) must be specified. </p>"
200    },
201    "DisassociateMemberAccountRequest":{
202      "type":"structure",
203      "required":["memberAccountId"],
204      "members":{
205        "memberAccountId":{
206          "shape":"AWSAccountId",
207          "documentation":"<p>The ID of the member account that you want to remove from Amazon Macie Classic.</p>"
208        }
209      }
210    },
211    "DisassociateS3ResourcesRequest":{
212      "type":"structure",
213      "required":["associatedS3Resources"],
214      "members":{
215        "memberAccountId":{
216          "shape":"AWSAccountId",
217          "documentation":"<p>The ID of the Amazon Macie Classic member account whose resources you want to remove from being monitored by Macie Classic. </p>"
218        },
219        "associatedS3Resources":{
220          "shape":"S3Resources",
221          "documentation":"<p>The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie Classic. </p>"
222        }
223      }
224    },
225    "DisassociateS3ResourcesResult":{
226      "type":"structure",
227      "members":{
228        "failedS3Resources":{
229          "shape":"FailedS3Resources",
230          "documentation":"<p>S3 resources that couldn't be removed from being monitored and classified by Amazon Macie Classic. An error code and an error message are provided for each failed item. </p>"
231        }
232      }
233    },
234    "ErrorCode":{
235      "type":"string",
236      "documentation":"Error code for the exception",
237      "max":10
238    },
239    "ExceptionMessage":{
240      "type":"string",
241      "max":10000
242    },
243    "FailedS3Resource":{
244      "type":"structure",
245      "members":{
246        "failedItem":{
247          "shape":"S3Resource",
248          "documentation":"<p>The failed S3 resources.</p>"
249        },
250        "errorCode":{
251          "shape":"ErrorCode",
252          "documentation":"<p>The status code of a failed item.</p>"
253        },
254        "errorMessage":{
255          "shape":"ExceptionMessage",
256          "documentation":"<p>The error message of a failed item.</p>"
257        }
258      },
259      "documentation":"<p>Includes details about the failed S3 resources.</p>"
260    },
261    "FailedS3Resources":{
262      "type":"list",
263      "member":{"shape":"FailedS3Resource"}
264    },
265    "FieldName":{
266      "type":"string",
267      "documentation":"Field that has invalid input",
268      "max":1000
269    },
270    "InternalException":{
271      "type":"structure",
272      "members":{
273        "errorCode":{"shape":"ErrorCode"},
274        "message":{"shape":"ExceptionMessage"}
275      },
276      "documentation":"<p>Internal server error.</p>",
277      "exception":true,
278      "fault":true
279    },
280    "InvalidInputException":{
281      "type":"structure",
282      "members":{
283        "errorCode":{"shape":"ErrorCode"},
284        "message":{"shape":"ExceptionMessage"},
285        "fieldName":{"shape":"FieldName"}
286      },
287      "documentation":"<p>The request was rejected because an invalid or out-of-range value was supplied for an input parameter. </p>",
288      "exception":true
289    },
290    "LimitExceededException":{
291      "type":"structure",
292      "members":{
293        "errorCode":{"shape":"ErrorCode"},
294        "message":{"shape":"ExceptionMessage"},
295        "resourceType":{"shape":"ResourceType"}
296      },
297      "documentation":"<p>The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded. </p>",
298      "exception":true
299    },
300    "ListMemberAccountsRequest":{
301      "type":"structure",
302      "members":{
303        "nextToken":{
304          "shape":"NextToken",
305          "documentation":"<p>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. </p>"
306        },
307        "maxResults":{
308          "shape":"MaxResults",
309          "documentation":"<p>Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. </p>"
310        }
311      }
312    },
313    "ListMemberAccountsResult":{
314      "type":"structure",
315      "members":{
316        "memberAccounts":{
317          "shape":"MemberAccounts",
318          "documentation":"<p>A list of the Amazon Macie Classic member accounts returned by the action. The current Macie Classic administrator account is also included in this list. </p>"
319        },
320        "nextToken":{
321          "shape":"NextToken",
322          "documentation":"<p>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. </p>"
323        }
324      }
325    },
326    "ListS3ResourcesRequest":{
327      "type":"structure",
328      "members":{
329        "memberAccountId":{
330          "shape":"AWSAccountId",
331          "documentation":"<p>The Amazon Macie Classic member account ID whose associated S3 resources you want to list. </p>"
332        },
333        "nextToken":{
334          "shape":"NextToken",
335          "documentation":"<p>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. </p>"
336        },
337        "maxResults":{
338          "shape":"MaxResults",
339          "documentation":"<p>Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. </p>"
340        }
341      }
342    },
343    "ListS3ResourcesResult":{
344      "type":"structure",
345      "members":{
346        "s3Resources":{
347          "shape":"S3ResourcesClassification",
348          "documentation":"<p>A list of the associated S3 resources returned by the action.</p>"
349        },
350        "nextToken":{
351          "shape":"NextToken",
352          "documentation":"<p>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. </p>"
353        }
354      }
355    },
356    "MaxResults":{
357      "type":"integer",
358      "box":true,
359      "max":250
360    },
361    "MemberAccount":{
362      "type":"structure",
363      "members":{
364        "accountId":{
365          "shape":"AWSAccountId",
366          "documentation":"<p>The AWS account ID of the Amazon Macie Classic member account.</p>"
367        }
368      },
369      "documentation":"<p>Contains information about the Amazon Macie Classic member account.</p>"
370    },
371    "MemberAccounts":{
372      "type":"list",
373      "member":{"shape":"MemberAccount"}
374    },
375    "NextToken":{
376      "type":"string",
377      "max":500
378    },
379    "Prefix":{
380      "type":"string",
381      "max":10000
382    },
383    "ResourceType":{
384      "type":"string",
385      "documentation":"Resource type that caused the exception",
386      "max":1000
387    },
388    "S3ContinuousClassificationType":{
389      "type":"string",
390      "enum":["FULL"]
391    },
392    "S3OneTimeClassificationType":{
393      "type":"string",
394      "enum":[
395        "FULL",
396        "NONE"
397      ]
398    },
399    "S3Resource":{
400      "type":"structure",
401      "required":["bucketName"],
402      "members":{
403        "bucketName":{
404          "shape":"BucketName",
405          "documentation":"<p>The name of the S3 bucket.</p>"
406        },
407        "prefix":{
408          "shape":"Prefix",
409          "documentation":"<p>The prefix of the S3 bucket. </p>"
410        }
411      },
412      "documentation":"<p>Contains information about the S3 resource. This data type is used as a request parameter in the DisassociateS3Resources action and can be used as a response parameter in the AssociateS3Resources and UpdateS3Resources actions. </p>"
413    },
414    "S3ResourceClassification":{
415      "type":"structure",
416      "required":[
417        "bucketName",
418        "classificationType"
419      ],
420      "members":{
421        "bucketName":{
422          "shape":"BucketName",
423          "documentation":"<p>The name of the S3 bucket that you want to associate with Amazon Macie Classic.</p>"
424        },
425        "prefix":{
426          "shape":"Prefix",
427          "documentation":"<p>The prefix of the S3 bucket that you want to associate with Amazon Macie Classic.</p>"
428        },
429        "classificationType":{
430          "shape":"ClassificationType",
431          "documentation":"<p>The classification type that you want to specify for the resource associated with Amazon Macie Classic. </p>"
432        }
433      },
434      "documentation":"<p>The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification. This data type is used as a request parameter in the AssociateS3Resources action and a response parameter in the ListS3Resources action. </p>"
435    },
436    "S3ResourceClassificationUpdate":{
437      "type":"structure",
438      "required":[
439        "bucketName",
440        "classificationTypeUpdate"
441      ],
442      "members":{
443        "bucketName":{
444          "shape":"BucketName",
445          "documentation":"<p>The name of the S3 bucket whose classification types you want to update.</p>"
446        },
447        "prefix":{
448          "shape":"Prefix",
449          "documentation":"<p>The prefix of the S3 bucket whose classification types you want to update.</p>"
450        },
451        "classificationTypeUpdate":{
452          "shape":"ClassificationTypeUpdate",
453          "documentation":"<p>The classification type that you want to update for the resource associated with Amazon Macie Classic. </p>"
454        }
455      },
456      "documentation":"<p>The S3 resources whose classification types you want to update. This data type is used as a request parameter in the UpdateS3Resources action. </p>"
457    },
458    "S3Resources":{
459      "type":"list",
460      "member":{"shape":"S3Resource"}
461    },
462    "S3ResourcesClassification":{
463      "type":"list",
464      "member":{"shape":"S3ResourceClassification"}
465    },
466    "S3ResourcesClassificationUpdate":{
467      "type":"list",
468      "member":{"shape":"S3ResourceClassificationUpdate"}
469    },
470    "UpdateS3ResourcesRequest":{
471      "type":"structure",
472      "required":["s3ResourcesUpdate"],
473      "members":{
474        "memberAccountId":{
475          "shape":"AWSAccountId",
476          "documentation":"<p>The AWS ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update. </p>"
477        },
478        "s3ResourcesUpdate":{
479          "shape":"S3ResourcesClassificationUpdate",
480          "documentation":"<p>The S3 resources whose classification types you want to update.</p>"
481        }
482      }
483    },
484    "UpdateS3ResourcesResult":{
485      "type":"structure",
486      "members":{
487        "failedS3Resources":{
488          "shape":"FailedS3Resources",
489          "documentation":"<p>The S3 resources whose classification types can't be updated. An error code and an error message are provided for each failed item. </p>"
490        }
491      }
492    }
493  },
494  "documentation":"<fullname>Amazon Macie Classic</fullname> <p>Amazon Macie Classic is a security service that uses machine learning to automatically discover, classify, and protect sensitive data in AWS. Macie Classic recognizes sensitive data such as personally identifiable information (PII) or intellectual property, and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved. For more information, see the <a href=\"https://docs.aws.amazon.com/macie/latest/userguide/what-is-macie.html\">Amazon Macie Classic User Guide</a>. </p>"
495}
496