1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.cloudtrail#AddTags": {
33            "type": "operation",
34            "input": {
35                "target": "com.amazonaws.cloudtrail#AddTagsRequest"
36            },
37            "output": {
38                "target": "com.amazonaws.cloudtrail#AddTagsResponse"
39            },
40            "errors": [
41                {
42                    "target": "com.amazonaws.cloudtrail#CloudTrailARNInvalidException"
43                },
44                {
45                    "target": "com.amazonaws.cloudtrail#InvalidTagParameterException"
46                },
47                {
48                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
49                },
50                {
51                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
52                },
53                {
54                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
55                },
56                {
57                    "target": "com.amazonaws.cloudtrail#ResourceNotFoundException"
58                },
59                {
60                    "target": "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException"
61                },
62                {
63                    "target": "com.amazonaws.cloudtrail#TagsLimitExceededException"
64                },
65                {
66                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
67                }
68            ],
69            "traits": {
70                "smithy.api#documentation": "<p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. \n         Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. \n          If you specify a key without a value, the tag will be created with the specified key and a value of null. \n          You can tag a trail that applies to all AWS Regions only from the Region in which the trail was created (also known as its home region).</p>",
71                "smithy.api#idempotent": {}
72            }
73        },
74        "com.amazonaws.cloudtrail#AddTagsRequest": {
75            "type": "structure",
76            "members": {
77                "ResourceId": {
78                    "target": "com.amazonaws.cloudtrail#String",
79                    "traits": {
80                        "smithy.api#documentation": "<p>Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
81                        "smithy.api#required": {}
82                    }
83                },
84                "TagsList": {
85                    "target": "com.amazonaws.cloudtrail#TagsList",
86                    "traits": {
87                        "smithy.api#documentation": "<p>Contains a list of CloudTrail tags, up to a limit of 50</p>"
88                    }
89                }
90            },
91            "traits": {
92                "smithy.api#documentation": "<p>Specifies the tags to add to a trail.</p>"
93            }
94        },
95        "com.amazonaws.cloudtrail#AddTagsResponse": {
96            "type": "structure",
97            "members": {},
98            "traits": {
99                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
100            }
101        },
102        "com.amazonaws.cloudtrail#AdvancedEventSelector": {
103            "type": "structure",
104            "members": {
105                "Name": {
106                    "target": "com.amazonaws.cloudtrail#SelectorName",
107                    "traits": {
108                        "smithy.api#documentation": "<p>An optional, descriptive name for an advanced event selector, such as \"Log data events\n         for only two S3 buckets\".</p>"
109                    }
110                },
111                "FieldSelectors": {
112                    "target": "com.amazonaws.cloudtrail#AdvancedFieldSelectors",
113                    "traits": {
114                        "smithy.api#documentation": "<p>Contains all selector statements in an advanced event selector.</p>",
115                        "smithy.api#required": {}
116                    }
117                }
118            },
119            "traits": {
120                "smithy.api#documentation": "<p>Advanced event selectors let you create fine-grained selectors for the following AWS\n         CloudTrail event record fields. They help you control costs by logging only those events\n         that are important to you. For more information about advanced event selectors, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html\">Logging data events for trails</a> in the <i>AWS\n            CloudTrail User Guide</i>.</p>\n         <ul>\n            <li>\n               <p>\n                  <code>readOnly</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>eventSource</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>eventName</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>eventCategory</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>resources.type</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>resources.ARN</code>\n               </p>\n            </li>\n         </ul>\n         <p>You cannot apply both event selectors and advanced event selectors to a trail.</p>"
121            }
122        },
123        "com.amazonaws.cloudtrail#AdvancedEventSelectors": {
124            "type": "list",
125            "member": {
126                "target": "com.amazonaws.cloudtrail#AdvancedEventSelector"
127            }
128        },
129        "com.amazonaws.cloudtrail#AdvancedFieldSelector": {
130            "type": "structure",
131            "members": {
132                "Field": {
133                    "target": "com.amazonaws.cloudtrail#SelectorField",
134                    "traits": {
135                        "smithy.api#documentation": "<p>\n         A field in an event record on which to filter events to be logged. Supported fields include <code>readOnly</code>, <code>eventCategory</code>, \n         <code>eventSource</code> (for management events), <code>eventName</code>, <code>resources.type</code>, and <code>resources.ARN</code>.\n      </p>\n         <ul>\n            <li>\n               <p>\n                  <b>\n                     <code>readOnly</code>\n                  </b> - Optional. Can be set to <code>Equals</code> a value of <code>true</code>\n            or <code>false</code>. A value of <code>false</code> logs both <code>read</code> and\n            <code>write</code> events.</p>\n            </li>\n            <li>\n               <p>\n                  <b>\n                     <code>eventSource</code>\n                  </b> - For filtering management events only. \n            This can be set only to <code>NotEquals</code> \n                  <code>kms.amazonaws.com</code>.</p>\n            </li>\n            <li>\n               <p>\n                  <b>\n                     <code>eventName</code>\n                  </b> - Can use any operator. You can use it to filter in\n            or filter out any data event logged to CloudTrail, such as <code>PutBucket</code>. You can have multiple values\n            for this field, separated by commas.</p>\n            </li>\n            <li>\n               <p>\n                  <b>\n                     <code>eventCategory</code>\n                  </b> - This is required. It must be set to <code>Equals</code>, and \n            the value must be <code>Management</code> or <code>Data</code>.</p>\n            </li>\n            <li>\n               <p>\n                  <b>\n                     <code>resources.type</code>\n                  </b> - This field is required. <code>resources.type</code> \n            can only use the <code>Equals</code> operator, and the value can be one of the following: <code>AWS::S3::Object</code>, \n            <code>AWS::Lambda::Function</code>, or <code>AWS::S3Outposts::Object</code>. You can have only one <code>resources.type</code> field per selector. To log \n            data events on more than one resource type, add another selector.</p>\n            </li>\n            <li>\n               <p>\n                  <b>\n                     <code>resources.ARN</code>\n                  </b> - You can use any operator with resources.ARN, but\n            if you use <code>Equals</code> or <code>NotEquals</code>, the value must exactly match the ARN of a valid resource \n            of the type you've specified in the template as the value of resources.type. For example, if resources.type equals \n            <code>AWS::S3::Object</code>, the ARN must be in one of the following formats. The trailing slash is intentional; do not exclude it.</p>\n               <ul>\n                  <li>\n                     <p>\n                        <code>arn:partition:s3:::bucket_name/</code>\n                     </p>\n                  </li>\n                  <li>\n                     <p>\n                        <code>arn:partition:s3:::bucket_name/object_or_file_name/</code>\n                     </p>\n                  </li>\n               </ul>\n               <p>When resources.type equals <code>AWS::Lambda::Function</code>, and the operator is set\n            to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following format:</p>\n               <ul>\n                  <li>\n                     <p>\n                        <code>arn:partition:lambda:region:account_ID:function:function_name</code>\n                     </p>\n                  </li>\n               </ul>\n               <p>When <code>resources.type</code> equals <code>AWS::S3Outposts::Object</code>, and the operator \n               is set to <code>Equals</code> or <code>NotEquals</code>, the ARN must be in the following format:</p>\n               <ul>\n                  <li>\n                     <p>\n                        <code>arn:partition:s3-outposts:region:>account_ID:object_path</code>\n                     </p>\n                  </li>\n               </ul>\n            </li>\n         </ul>",
136                        "smithy.api#required": {}
137                    }
138                },
139                "Equals": {
140                    "target": "com.amazonaws.cloudtrail#Operator",
141                    "traits": {
142                        "smithy.api#documentation": "<p>\n         An operator that includes events that match the exact value of the event record field specified as the value of <code>Field</code>. This is the only valid operator \n         that you can use with the <code>readOnly</code>, <code>eventCategory</code>, and <code>resources.type</code> fields.\n      </p>"
143                    }
144                },
145                "StartsWith": {
146                    "target": "com.amazonaws.cloudtrail#Operator",
147                    "traits": {
148                        "smithy.api#documentation": "<p>\n         An operator that includes events that match the first few characters of the event record field specified as the value of <code>Field</code>.\n      </p>"
149                    }
150                },
151                "EndsWith": {
152                    "target": "com.amazonaws.cloudtrail#Operator",
153                    "traits": {
154                        "smithy.api#documentation": "<p>\n         An operator that includes events that match the last few characters of the event record field specified as the value of <code>Field</code>.\n      </p>"
155                    }
156                },
157                "NotEquals": {
158                    "target": "com.amazonaws.cloudtrail#Operator",
159                    "traits": {
160                        "smithy.api#documentation": "<p>\n         An operator that excludes events that match the exact value of the event record field specified as the value of <code>Field</code>.\n      </p>"
161                    }
162                },
163                "NotStartsWith": {
164                    "target": "com.amazonaws.cloudtrail#Operator",
165                    "traits": {
166                        "smithy.api#documentation": "<p>\n         An operator that excludes events that match the first few characters of the event record field specified as the value of <code>Field</code>.\n      </p>"
167                    }
168                },
169                "NotEndsWith": {
170                    "target": "com.amazonaws.cloudtrail#Operator",
171                    "traits": {
172                        "smithy.api#documentation": "<p>\n         An operator that excludes events that match the last few characters of the event record field specified as the value of <code>Field</code>.\n      </p>"
173                    }
174                }
175            },
176            "traits": {
177                "smithy.api#documentation": "<p>A single selector statement in an advanced event selector.</p>"
178            }
179        },
180        "com.amazonaws.cloudtrail#AdvancedFieldSelectors": {
181            "type": "list",
182            "member": {
183                "target": "com.amazonaws.cloudtrail#AdvancedFieldSelector"
184            },
185            "traits": {
186                "smithy.api#length": {
187                    "min": 1
188                }
189            }
190        },
191        "com.amazonaws.cloudtrail#Boolean": {
192            "type": "boolean",
193            "traits": {
194                "smithy.api#box": {}
195            }
196        },
197        "com.amazonaws.cloudtrail#ByteBuffer": {
198            "type": "blob"
199        },
200        "com.amazonaws.cloudtrail#CloudTrailARNInvalidException": {
201            "type": "structure",
202            "members": {
203                "Message": {
204                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
205                    "traits": {
206                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
207                    }
208                }
209            },
210            "traits": {
211                "smithy.api#documentation": "<p>This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
212                "smithy.api#error": "client",
213                "smithy.api#httpError": 400
214            }
215        },
216        "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException": {
217            "type": "structure",
218            "members": {
219                "Message": {
220                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
221                    "traits": {
222                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
223                    }
224                }
225            },
226            "traits": {
227                "smithy.api#documentation": "<p>This exception is thrown when trusted access has not been enabled between AWS CloudTrail and AWS Organizations. For more information, \n         see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html\">Enabling Trusted Access with Other AWS Services</a>\n         and <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html\">Prepare For Creating a Trail For Your Organization</a>. </p>",
228                "smithy.api#error": "client",
229                "smithy.api#httpError": 400
230            }
231        },
232        "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException": {
233            "type": "structure",
234            "members": {
235                "Message": {
236                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
237                    "traits": {
238                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
239                    }
240                }
241            },
242            "traits": {
243                "smithy.api#documentation": "<p>This exception is thrown when a call results in the <code>InvalidClientTokenId</code> error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that \n      is in a suspended AWS account.</p>",
244                "smithy.api#error": "client",
245                "smithy.api#httpError": 400
246            }
247        },
248        "com.amazonaws.cloudtrail#CloudTrail_20131101": {
249            "type": "service",
250            "version": "2013-11-01",
251            "operations": [
252                {
253                    "target": "com.amazonaws.cloudtrail#AddTags"
254                },
255                {
256                    "target": "com.amazonaws.cloudtrail#CreateTrail"
257                },
258                {
259                    "target": "com.amazonaws.cloudtrail#DeleteTrail"
260                },
261                {
262                    "target": "com.amazonaws.cloudtrail#DescribeTrails"
263                },
264                {
265                    "target": "com.amazonaws.cloudtrail#GetEventSelectors"
266                },
267                {
268                    "target": "com.amazonaws.cloudtrail#GetInsightSelectors"
269                },
270                {
271                    "target": "com.amazonaws.cloudtrail#GetTrail"
272                },
273                {
274                    "target": "com.amazonaws.cloudtrail#GetTrailStatus"
275                },
276                {
277                    "target": "com.amazonaws.cloudtrail#ListPublicKeys"
278                },
279                {
280                    "target": "com.amazonaws.cloudtrail#ListTags"
281                },
282                {
283                    "target": "com.amazonaws.cloudtrail#ListTrails"
284                },
285                {
286                    "target": "com.amazonaws.cloudtrail#LookupEvents"
287                },
288                {
289                    "target": "com.amazonaws.cloudtrail#PutEventSelectors"
290                },
291                {
292                    "target": "com.amazonaws.cloudtrail#PutInsightSelectors"
293                },
294                {
295                    "target": "com.amazonaws.cloudtrail#RemoveTags"
296                },
297                {
298                    "target": "com.amazonaws.cloudtrail#StartLogging"
299                },
300                {
301                    "target": "com.amazonaws.cloudtrail#StopLogging"
302                },
303                {
304                    "target": "com.amazonaws.cloudtrail#UpdateTrail"
305                }
306            ],
307            "traits": {
308                "aws.api#service": {
309                    "sdkId": "CloudTrail",
310                    "arnNamespace": "cloudtrail",
311                    "cloudFormationName": "CloudTrail",
312                    "cloudTrailEventSource": "cloudtrail.amazonaws.com",
313                    "endpointPrefix": "cloudtrail"
314                },
315                "aws.auth#sigv4": {
316                    "name": "cloudtrail"
317                },
318                "aws.protocols#awsJson1_1": {},
319                "smithy.api#documentation": "<fullname>AWS CloudTrail</fullname>\n         <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>\n         <p>CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.</p> \n      \n         <note>\n            <p>As an alternative to the API,\n         you can use one of the AWS SDKs, which consist of libraries and sample code for various\n         programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs\n         provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs\n         take care of cryptographically signing requests, managing errors, and retrying requests\n         automatically. For information about the AWS SDKs, including how to download and install\n         them, see the <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services\n            page</a>.</p> \n         </note> \n         <p>See the <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html\">AWS CloudTrail User Guide</a> for information about the data that is included with each AWS API call listed in the log files.</p>",
320                "smithy.api#title": "AWS CloudTrail",
321                "smithy.api#xmlNamespace": {
322                    "uri": "http://cloudtrail.amazonaws.com/doc/2013-11-01/"
323                }
324            }
325        },
326        "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException": {
327            "type": "structure",
328            "members": {
329                "Message": {
330                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
331                    "traits": {
332                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
333                    }
334                }
335            },
336            "traits": {
337                "smithy.api#documentation": "<p>Cannot set a CloudWatch Logs delivery for this region.</p>",
338                "smithy.api#error": "client",
339                "smithy.api#httpError": 400
340            }
341        },
342        "com.amazonaws.cloudtrail#ConflictException": {
343            "type": "structure",
344            "members": {
345                "Message": {
346                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
347                    "traits": {
348                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
349                    }
350                }
351            },
352            "traits": {
353                "smithy.api#documentation": "<p>This exception is thrown when the specified resource is not ready for an operation. \n         This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail. \n         If this exception occurs, wait a few minutes, and then try the operation again.</p>",
354                "smithy.api#error": "client",
355                "smithy.api#httpError": 409
356            }
357        },
358        "com.amazonaws.cloudtrail#CreateTrail": {
359            "type": "operation",
360            "input": {
361                "target": "com.amazonaws.cloudtrail#CreateTrailRequest"
362            },
363            "output": {
364                "target": "com.amazonaws.cloudtrail#CreateTrailResponse"
365            },
366            "errors": [
367                {
368                    "target": "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException"
369                },
370                {
371                    "target": "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException"
372                },
373                {
374                    "target": "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException"
375                },
376                {
377                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
378                },
379                {
380                    "target": "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException"
381                },
382                {
383                    "target": "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException"
384                },
385                {
386                    "target": "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException"
387                },
388                {
389                    "target": "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException"
390                },
391                {
392                    "target": "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException"
393                },
394                {
395                    "target": "com.amazonaws.cloudtrail#InvalidKmsKeyIdException"
396                },
397                {
398                    "target": "com.amazonaws.cloudtrail#InvalidParameterCombinationException"
399                },
400                {
401                    "target": "com.amazonaws.cloudtrail#InvalidS3BucketNameException"
402                },
403                {
404                    "target": "com.amazonaws.cloudtrail#InvalidS3PrefixException"
405                },
406                {
407                    "target": "com.amazonaws.cloudtrail#InvalidSnsTopicNameException"
408                },
409                {
410                    "target": "com.amazonaws.cloudtrail#InvalidTagParameterException"
411                },
412                {
413                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
414                },
415                {
416                    "target": "com.amazonaws.cloudtrail#KmsException"
417                },
418                {
419                    "target": "com.amazonaws.cloudtrail#KmsKeyDisabledException"
420                },
421                {
422                    "target": "com.amazonaws.cloudtrail#KmsKeyNotFoundException"
423                },
424                {
425                    "target": "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException"
426                },
427                {
428                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
429                },
430                {
431                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
432                },
433                {
434                    "target": "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException"
435                },
436                {
437                    "target": "com.amazonaws.cloudtrail#OrganizationsNotInUseException"
438                },
439                {
440                    "target": "com.amazonaws.cloudtrail#S3BucketDoesNotExistException"
441                },
442                {
443                    "target": "com.amazonaws.cloudtrail#TrailAlreadyExistsException"
444                },
445                {
446                    "target": "com.amazonaws.cloudtrail#TrailNotProvidedException"
447                },
448                {
449                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
450                }
451            ],
452            "traits": {
453                "smithy.api#documentation": "<p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. </p>",
454                "smithy.api#idempotent": {}
455            }
456        },
457        "com.amazonaws.cloudtrail#CreateTrailRequest": {
458            "type": "structure",
459            "members": {
460                "Name": {
461                    "target": "com.amazonaws.cloudtrail#String",
462                    "traits": {
463                        "smithy.api#documentation": "<p>Specifies the name of the trail. The name must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n            and <code>my--namespace</code> are invalid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>",
464                        "smithy.api#required": {}
465                    }
466                },
467                "S3BucketName": {
468                    "target": "com.amazonaws.cloudtrail#String",
469                    "traits": {
470                        "smithy.api#documentation": "<p>Specifies the name of the Amazon S3 bucket designated for publishing log files. See <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html\">Amazon S3 Bucket Naming Requirements</a>.</p>",
471                        "smithy.api#required": {}
472                    }
473                },
474                "S3KeyPrefix": {
475                    "target": "com.amazonaws.cloudtrail#String",
476                    "traits": {
477                        "smithy.api#documentation": "<p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated\n         for log file delivery. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html\">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>"
478                    }
479                },
480                "SnsTopicName": {
481                    "target": "com.amazonaws.cloudtrail#String",
482                    "traits": {
483                        "smithy.api#documentation": "<p>Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.</p>"
484                    }
485                },
486                "IncludeGlobalServiceEvents": {
487                    "target": "com.amazonaws.cloudtrail#Boolean",
488                    "traits": {
489                        "smithy.api#documentation": "<p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>"
490                    }
491                },
492                "IsMultiRegionTrail": {
493                    "target": "com.amazonaws.cloudtrail#Boolean",
494                    "traits": {
495                        "smithy.api#documentation": "<p>Specifies whether the trail is created in the current region or in all regions. The default is false, which creates a trail only in the region where you are signed in. As a best practice, consider\n      creating trails that log events in all regions.</p>"
496                    }
497                },
498                "EnableLogFileValidation": {
499                    "target": "com.amazonaws.cloudtrail#Boolean",
500                    "traits": {
501                        "smithy.api#documentation": "<p>Specifies whether log file integrity validation is enabled. The default is false.</p>\n         <note>\n            <p>When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail will not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.</p>\n         </note>"
502                    }
503                },
504                "CloudWatchLogsLogGroupArn": {
505                    "target": "com.amazonaws.cloudtrail#String",
506                    "traits": {
507                        "smithy.api#documentation": "<p>Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group \n         to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.</p>"
508                    }
509                },
510                "CloudWatchLogsRoleArn": {
511                    "target": "com.amazonaws.cloudtrail#String",
512                    "traits": {
513                        "smithy.api#documentation": "<p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>"
514                    }
515                },
516                "KmsKeyId": {
517                    "target": "com.amazonaws.cloudtrail#String",
518                    "traits": {
519                        "smithy.api#documentation": "<p>Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The\n         value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully\n         specified ARN to a key, or a globally unique identifier.</p>\n         <p>Examples:</p>\n         <ul>\n            <li>\n               <p>alias/MyAliasName</p>\n            </li>\n            <li>\n               <p>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</p>\n            </li>\n            <li>\n               <p>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</p>\n            </li>\n            <li>\n               <p>12345678-1234-1234-1234-123456789012</p>\n            </li>\n         </ul>"
520                    }
521                },
522                "IsOrganizationTrail": {
523                    "target": "com.amazonaws.cloudtrail#Boolean",
524                    "traits": {
525                        "smithy.api#documentation": "<p>Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. \n      The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in \n      AWS Organizations.</p>"
526                    }
527                },
528                "TagsList": {
529                    "target": "com.amazonaws.cloudtrail#TagsList"
530                }
531            },
532            "traits": {
533                "smithy.api#documentation": "<p>Specifies the settings for each trail.</p>"
534            }
535        },
536        "com.amazonaws.cloudtrail#CreateTrailResponse": {
537            "type": "structure",
538            "members": {
539                "Name": {
540                    "target": "com.amazonaws.cloudtrail#String",
541                    "traits": {
542                        "smithy.api#documentation": "<p>Specifies the name of the trail.</p>"
543                    }
544                },
545                "S3BucketName": {
546                    "target": "com.amazonaws.cloudtrail#String",
547                    "traits": {
548                        "smithy.api#documentation": "<p>Specifies the name of the Amazon S3 bucket designated for publishing log files.</p>"
549                    }
550                },
551                "S3KeyPrefix": {
552                    "target": "com.amazonaws.cloudtrail#String",
553                    "traits": {
554                        "smithy.api#documentation": "<p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated\n         for log file delivery. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html\">Finding Your CloudTrail Log Files</a>.</p>"
555                    }
556                },
557                "SnsTopicName": {
558                    "target": "com.amazonaws.cloudtrail#String",
559                    "traits": {
560                        "smithy.api#deprecated": {},
561                        "smithy.api#documentation": "<p>This field is no longer in use. Use SnsTopicARN.</p>"
562                    }
563                },
564                "SnsTopicARN": {
565                    "target": "com.amazonaws.cloudtrail#String",
566                    "traits": {
567                        "smithy.api#documentation": "<p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:</p>\n         <p>\n            <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>\n         </p>"
568                    }
569                },
570                "IncludeGlobalServiceEvents": {
571                    "target": "com.amazonaws.cloudtrail#Boolean",
572                    "traits": {
573                        "smithy.api#documentation": "<p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>"
574                    }
575                },
576                "IsMultiRegionTrail": {
577                    "target": "com.amazonaws.cloudtrail#Boolean",
578                    "traits": {
579                        "smithy.api#documentation": "<p>Specifies whether the trail exists in one region or in all regions.</p>"
580                    }
581                },
582                "TrailARN": {
583                    "target": "com.amazonaws.cloudtrail#String",
584                    "traits": {
585                        "smithy.api#documentation": "<p>Specifies the ARN of the trail that was created. The format of a trail ARN\n         is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>"
586                    }
587                },
588                "LogFileValidationEnabled": {
589                    "target": "com.amazonaws.cloudtrail#Boolean",
590                    "traits": {
591                        "smithy.api#documentation": "<p>Specifies whether log file integrity validation is enabled.</p>"
592                    }
593                },
594                "CloudWatchLogsLogGroupArn": {
595                    "target": "com.amazonaws.cloudtrail#String",
596                    "traits": {
597                        "smithy.api#documentation": "<p>Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.</p>"
598                    }
599                },
600                "CloudWatchLogsRoleArn": {
601                    "target": "com.amazonaws.cloudtrail#String",
602                    "traits": {
603                        "smithy.api#documentation": "<p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>"
604                    }
605                },
606                "KmsKeyId": {
607                    "target": "com.amazonaws.cloudtrail#String",
608                    "traits": {
609                        "smithy.api#documentation": "<p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:</p>\n         <p>\n            <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>\n         </p>"
610                    }
611                },
612                "IsOrganizationTrail": {
613                    "target": "com.amazonaws.cloudtrail#Boolean",
614                    "traits": {
615                        "smithy.api#documentation": "<p>Specifies whether the trail is an organization trail.</p>"
616                    }
617                }
618            },
619            "traits": {
620                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
621            }
622        },
623        "com.amazonaws.cloudtrail#DataResource": {
624            "type": "structure",
625            "members": {
626                "Type": {
627                    "target": "com.amazonaws.cloudtrail#String",
628                    "traits": {
629                        "smithy.api#documentation": "<p>The resource type in which you want to log data events. You can specify <code>AWS::S3::Object</code> or\n         <code>AWS::Lambda::Function</code> resources.</p>\n         <p>The <code>AWS::S3Outposts::Object</code> resource type is not valid in basic event selectors. To log data events on this resource type, \n         use advanced event selectors.</p>"
630                    }
631                },
632                "Values": {
633                    "target": "com.amazonaws.cloudtrail#DataResourceValues",
634                    "traits": {
635                        "smithy.api#documentation": "<p>An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.</p>\n         <ul>\n            <li>\n               <p>To log data events for all objects in all S3 buckets in your AWS account, specify the \n         prefix as <code>arn:aws:s3:::</code>. </p>\n               <note>\n                  <p>This will also enable logging of data event activity performed by any user or role in your AWS account, \n         even if that activity is performed on a bucket that belongs to another AWS account. </p>\n               </note>\n            </li>\n            <li>\n               <p>To log data events for all objects in an S3 bucket, specify the bucket and an empty\n         object prefix such as <code>arn:aws:s3:::bucket-1/</code>. The trail logs data events for\n         all objects in this S3 bucket.</p>\n            </li>\n            <li>\n               <p>To log data events for specific objects, specify the S3 bucket and object prefix such\n         as <code>arn:aws:s3:::bucket-1/example-images</code>. The trail logs data events for\n         objects in this S3 bucket that match the prefix.</p>\n            </li>\n            <li>\n               <p>To log data events for all functions in your AWS account, specify the prefix as\n      <code>arn:aws:lambda</code>.</p>\n               <note>\n                  <p>This will also enable logging of <code>Invoke</code> activity performed by any user or role in your AWS account, \n            even if that activity is performed on a function that belongs to another AWS account. </p>\n               </note>\n            </li>\n            <li>\n               <p>To log data events for a specific Lambda function, specify the function ARN.</p>\n               <note>\n                  <p>Lambda function ARNs are exact. For example, if you specify a \n            function ARN <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>, data events will\n            only be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld</i>. They will\n            not be logged for <i>arn:aws:lambda:us-west-2:111111111111:function:helloworld2</i>.</p>\n               </note> \n            </li>\n         </ul>"
636                    }
637                }
638            },
639            "traits": {
640                "smithy.api#documentation": "<p>The Amazon S3 buckets or AWS Lambda functions that you specify in your event selectors for your trail to\n         log data events. Data events provide information about the resource operations performed on or within a resource itself.\n         These are also known as data plane operations. You can specify up to 250 data resources for a trail.</p>\n         <note>\n            <p>The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, \n      but the total cannot exceed 250 across all selectors.</p>\n            <p>If you are using advanced event selectors, the maximum total number of values for\n            all conditions, across all advanced event selectors for the trail, is 500.</p>\n         </note>\n         <p>The following example demonstrates how logging works when you configure logging of all data events\n      for an S3 bucket named <code>bucket-1</code>. In this example, the CloudTrail user specified an empty prefix, \n      and the option to log both <code>Read</code> and <code>Write</code> data events.</p>\n         <ol>\n            <li>\n               <p>A user uploads an image file to <code>bucket-1</code>.</p>\n            </li>\n            <li>\n               <p>The <code>PutObject</code> API operation is an Amazon S3 object-level API. \n            It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket\n            with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the\n               event.</p>\n            </li>\n            <li>\n               <p>A user uploads an object to an Amazon S3 bucket named\n                  <code>arn:aws:s3:::bucket-2</code>.</p>\n            </li>\n            <li>\n               <p>The <code>PutObject</code> API operation occurred for an object in an S3 bucket that the CloudTrail\n            user didn't specify for the trail. The trail doesn’t log the event.</p>\n            </li>\n         </ol>\n         <p>The following example demonstrates how logging works when you configure logging of AWS Lambda data events for a \n         Lambda function named <i>MyLambdaFunction</i>, but not for all AWS Lambda functions.</p>\n         <ol>\n            <li>\n               <p>A user runs a script that includes a call to the <i>MyLambdaFunction</i> function and the\n               <i>MyOtherLambdaFunction</i> function.</p>\n            </li>\n            <li>\n               <p>The <code>Invoke</code> API operation on <i>MyLambdaFunction</i> is an AWS Lambda API. \n               It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for\n               <i>MyLambdaFunction</i>, any invocations of that function are logged. The trail processes and logs the event. </p>\n            </li>\n            <li>\n               <p>The <code>Invoke</code> API operation on <i>MyOtherLambdaFunction</i> is an AWS Lambda API. \n               Because the CloudTrail user did not specify logging data events for all Lambda functions,\n               the <code>Invoke</code> operation for <i>MyOtherLambdaFunction</i> does not match the function specified for the trail. \n               The trail doesn’t log the event. </p>\n            </li>\n         </ol>"
641            }
642        },
643        "com.amazonaws.cloudtrail#DataResourceValues": {
644            "type": "list",
645            "member": {
646                "target": "com.amazonaws.cloudtrail#String"
647            }
648        },
649        "com.amazonaws.cloudtrail#DataResources": {
650            "type": "list",
651            "member": {
652                "target": "com.amazonaws.cloudtrail#DataResource"
653            }
654        },
655        "com.amazonaws.cloudtrail#Date": {
656            "type": "timestamp"
657        },
658        "com.amazonaws.cloudtrail#DeleteTrail": {
659            "type": "operation",
660            "input": {
661                "target": "com.amazonaws.cloudtrail#DeleteTrailRequest"
662            },
663            "output": {
664                "target": "com.amazonaws.cloudtrail#DeleteTrailResponse"
665            },
666            "errors": [
667                {
668                    "target": "com.amazonaws.cloudtrail#ConflictException"
669                },
670                {
671                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
672                },
673                {
674                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
675                },
676                {
677                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
678                },
679                {
680                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
681                },
682                {
683                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
684                },
685                {
686                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
687                },
688                {
689                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
690                }
691            ],
692            "traits": {
693                "smithy.api#documentation": "<p>Deletes a trail. This operation must be called from the region in which the trail was\n         created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails\n         in other regions) of a trail that is enabled in all regions.</p>",
694                "smithy.api#idempotent": {}
695            }
696        },
697        "com.amazonaws.cloudtrail#DeleteTrailRequest": {
698            "type": "structure",
699            "members": {
700                "Name": {
701                    "target": "com.amazonaws.cloudtrail#String",
702                    "traits": {
703                        "smithy.api#documentation": "<p>Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a\n         trail ARN is:\n         <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
704                        "smithy.api#required": {}
705                    }
706                }
707            },
708            "traits": {
709                "smithy.api#documentation": "<p>The request that specifies the name of a trail to delete.</p>"
710            }
711        },
712        "com.amazonaws.cloudtrail#DeleteTrailResponse": {
713            "type": "structure",
714            "members": {},
715            "traits": {
716                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
717            }
718        },
719        "com.amazonaws.cloudtrail#DescribeTrails": {
720            "type": "operation",
721            "input": {
722                "target": "com.amazonaws.cloudtrail#DescribeTrailsRequest"
723            },
724            "output": {
725                "target": "com.amazonaws.cloudtrail#DescribeTrailsResponse"
726            },
727            "errors": [
728                {
729                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
730                },
731                {
732                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
733                },
734                {
735                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
736                }
737            ],
738            "traits": {
739                "smithy.api#documentation": "<p>Retrieves settings for one or more trails associated with the current region for your account.</p>",
740                "smithy.api#idempotent": {}
741            }
742        },
743        "com.amazonaws.cloudtrail#DescribeTrailsRequest": {
744            "type": "structure",
745            "members": {
746                "trailNameList": {
747                    "target": "com.amazonaws.cloudtrail#TrailNameList",
748                    "traits": {
749                        "smithy.api#documentation": "<p>Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p> \n      \n         <p>If an empty list is specified, information for the trail in the current region is returned.</p>\n         <ul>\n            <li>\n               <p>If an empty list is specified and <code>IncludeShadowTrails</code> is false, then\n            information for all trails in the current region is returned.</p>\n            </li>\n            <li>\n               <p>If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.</p>\n            </li>\n         </ul>\n         <note>\n            <p>If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.</p>\n         </note>"
750                    }
751                },
752                "includeShadowTrails": {
753                    "target": "com.amazonaws.cloudtrail#Boolean",
754                    "traits": {
755                        "smithy.api#documentation": "<p>Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region,\n         or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account\n         and region replication trails will not be returned. The default is true.</p>"
756                    }
757                }
758            },
759            "traits": {
760                "smithy.api#documentation": "<p>Returns information about the trail.</p>"
761            }
762        },
763        "com.amazonaws.cloudtrail#DescribeTrailsResponse": {
764            "type": "structure",
765            "members": {
766                "trailList": {
767                    "target": "com.amazonaws.cloudtrail#TrailList",
768                    "traits": {
769                        "smithy.api#documentation": "<p>The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. \n         For example, <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in results if a trail is configured to send SNS notifications. Similarly, \n      <code>KMSKeyId</code> only appears in results if a trail's log files are encrypted with AWS KMS-managed keys.</p>"
770                    }
771                }
772            },
773            "traits": {
774                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
775            }
776        },
777        "com.amazonaws.cloudtrail#ErrorMessage": {
778            "type": "string"
779        },
780        "com.amazonaws.cloudtrail#Event": {
781            "type": "structure",
782            "members": {
783                "EventId": {
784                    "target": "com.amazonaws.cloudtrail#String",
785                    "traits": {
786                        "smithy.api#documentation": "<p>The CloudTrail ID of the event returned.</p>"
787                    }
788                },
789                "EventName": {
790                    "target": "com.amazonaws.cloudtrail#String",
791                    "traits": {
792                        "smithy.api#documentation": "<p>The name of the event returned.</p>"
793                    }
794                },
795                "ReadOnly": {
796                    "target": "com.amazonaws.cloudtrail#String",
797                    "traits": {
798                        "smithy.api#documentation": "<p>Information about whether the event is a write event or a read event. </p>"
799                    }
800                },
801                "AccessKeyId": {
802                    "target": "com.amazonaws.cloudtrail#String",
803                    "traits": {
804                        "smithy.api#documentation": "<p>The AWS access key ID that was used to sign the request. If the request was made \n         with temporary security credentials, this is the access key ID of the temporary credentials.</p>"
805                    }
806                },
807                "EventTime": {
808                    "target": "com.amazonaws.cloudtrail#Date",
809                    "traits": {
810                        "smithy.api#documentation": "<p>The date and time of the event returned.</p>"
811                    }
812                },
813                "EventSource": {
814                    "target": "com.amazonaws.cloudtrail#String",
815                    "traits": {
816                        "smithy.api#documentation": "<p>The AWS service that the request was made to.</p>"
817                    }
818                },
819                "Username": {
820                    "target": "com.amazonaws.cloudtrail#String",
821                    "traits": {
822                        "smithy.api#documentation": "<p>A user name or role name of the requester that called the API in the event returned.</p>"
823                    }
824                },
825                "Resources": {
826                    "target": "com.amazonaws.cloudtrail#ResourceList",
827                    "traits": {
828                        "smithy.api#documentation": "<p>A list of resources referenced by the event returned.</p>"
829                    }
830                },
831                "CloudTrailEvent": {
832                    "target": "com.amazonaws.cloudtrail#String",
833                    "traits": {
834                        "smithy.api#documentation": "<p>A JSON string that contains a representation of the event returned.</p>"
835                    }
836                }
837            },
838            "traits": {
839                "smithy.api#documentation": "<p>Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.</p>"
840            }
841        },
842        "com.amazonaws.cloudtrail#EventCategory": {
843            "type": "string",
844            "traits": {
845                "smithy.api#enum": [
846                    {
847                        "value": "insight",
848                        "name": "Insight"
849                    }
850                ]
851            }
852        },
853        "com.amazonaws.cloudtrail#EventSelector": {
854            "type": "structure",
855            "members": {
856                "ReadWriteType": {
857                    "target": "com.amazonaws.cloudtrail#ReadWriteType",
858                    "traits": {
859                        "smithy.api#documentation": "<p>Specify if you want your trail to log read-only events, write-only events, or all. For example,\n         the EC2 <code>GetConsoleOutput</code> is a read-only API operation and\n            <code>RunInstances</code> is a write-only API operation.</p>\n         <p> By default, the value is <code>All</code>.</p>"
860                    }
861                },
862                "IncludeManagementEvents": {
863                    "target": "com.amazonaws.cloudtrail#Boolean",
864                    "traits": {
865                        "smithy.api#documentation": "<p>Specify if you want your event selector to include management events for your trail.</p>\n         <p>\n         For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events\">Management Events</a> in the <i>AWS CloudTrail User Guide</i>.</p> \n      \n         <p>By default, the value is <code>true</code>.</p>\n         <p>The first copy of management events is free. You are charged for additional copies of management \n         events that you are logging on any subsequent trail in the same region. For more information about \n         CloudTrail pricing, see <a href=\"http://aws.amazon.com/cloudtrail/pricing/\">AWS CloudTrail Pricing</a>.</p>"
866                    }
867                },
868                "DataResources": {
869                    "target": "com.amazonaws.cloudtrail#DataResources",
870                    "traits": {
871                        "smithy.api#documentation": "<p>CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda functions. You can specify \n         up to 250 resources for an individual event selector, but the total number of data resources cannot exceed \n         250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. </p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events\">Data Events</a> and <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html\">Limits in AWS CloudTrail</a> \n         in the <i>AWS CloudTrail User Guide</i>.</p>"
872                    }
873                },
874                "ExcludeManagementEventSources": {
875                    "target": "com.amazonaws.cloudtrail#ExcludeManagementEventSources",
876                    "traits": {
877                        "smithy.api#documentation": "<p>An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by \n         containing <code>\"kms.amazonaws.com\"</code>. By default, <code>ExcludeManagementEventSources</code> is empty, and AWS KMS events are included in events that are logged to your trail. </p>"
878                    }
879                }
880            },
881            "traits": {
882                "smithy.api#documentation": "<p>Use event selectors to further specify the management and data event settings for your trail. By\n         default, trails created without specific event selectors will be configured to log all read and \n         write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector\n         for all trails. For each trail, if the event matches any event selector, the trail\n         processes and logs the event. If the event doesn't match any event selector, the trail\n         doesn't log the event.</p>\n         <p>You can configure up to five event selectors for a trail.</p>\n         <p>You cannot apply both event selectors and advanced event selectors to a trail.</p>"
883            }
884        },
885        "com.amazonaws.cloudtrail#EventSelectors": {
886            "type": "list",
887            "member": {
888                "target": "com.amazonaws.cloudtrail#EventSelector"
889            }
890        },
891        "com.amazonaws.cloudtrail#EventsList": {
892            "type": "list",
893            "member": {
894                "target": "com.amazonaws.cloudtrail#Event"
895            }
896        },
897        "com.amazonaws.cloudtrail#ExcludeManagementEventSources": {
898            "type": "list",
899            "member": {
900                "target": "com.amazonaws.cloudtrail#String"
901            }
902        },
903        "com.amazonaws.cloudtrail#GetEventSelectors": {
904            "type": "operation",
905            "input": {
906                "target": "com.amazonaws.cloudtrail#GetEventSelectorsRequest"
907            },
908            "output": {
909                "target": "com.amazonaws.cloudtrail#GetEventSelectorsResponse"
910            },
911            "errors": [
912                {
913                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
914                },
915                {
916                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
917                },
918                {
919                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
920                },
921                {
922                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
923                }
924            ],
925            "traits": {
926                "smithy.api#documentation": "<p>Describes the settings for the event selectors that you configured for your trail.\n         The information returned for your event selectors includes the following:</p>\n         <ul>\n            <li>\n               <p>If your event selector includes read-only events, write-only events, or\n            all events. This applies to both management events and data events.</p>\n            </li>\n            <li>\n               <p>If your event selector includes management events.</p>\n            </li>\n            <li>\n               <p>If your event selector includes data events, the Amazon S3 objects or AWS Lambda functions\n            that you are logging for data events.</p>\n            </li>\n         </ul>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html\">Logging Data and Management Events for Trails\n      </a> in the <i>AWS CloudTrail User Guide</i>.</p>",
927                "smithy.api#idempotent": {}
928            }
929        },
930        "com.amazonaws.cloudtrail#GetEventSelectorsRequest": {
931            "type": "structure",
932            "members": {
933                "TrailName": {
934                    "target": "com.amazonaws.cloudtrail#String",
935                    "traits": {
936                        "smithy.api#documentation": "<p>Specifies the name of the trail or trail ARN. If you specify a trail name, the\n         string must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n                  and <code>my--namespace</code> are not valid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>\n         <p>If you specify a trail ARN, it must be in the format:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
937                        "smithy.api#required": {}
938                    }
939                }
940            }
941        },
942        "com.amazonaws.cloudtrail#GetEventSelectorsResponse": {
943            "type": "structure",
944            "members": {
945                "TrailARN": {
946                    "target": "com.amazonaws.cloudtrail#String",
947                    "traits": {
948                        "smithy.api#documentation": "<p>The specified trail ARN that has the event selectors.</p>"
949                    }
950                },
951                "EventSelectors": {
952                    "target": "com.amazonaws.cloudtrail#EventSelectors",
953                    "traits": {
954                        "smithy.api#documentation": "<p>The event selectors that are configured for the trail.</p>"
955                    }
956                },
957                "AdvancedEventSelectors": {
958                    "target": "com.amazonaws.cloudtrail#AdvancedEventSelectors",
959                    "traits": {
960                        "smithy.api#documentation": "<p>\n         The advanced event selectors that are configured for the trail.\n      </p>"
961                    }
962                }
963            }
964        },
965        "com.amazonaws.cloudtrail#GetInsightSelectors": {
966            "type": "operation",
967            "input": {
968                "target": "com.amazonaws.cloudtrail#GetInsightSelectorsRequest"
969            },
970            "output": {
971                "target": "com.amazonaws.cloudtrail#GetInsightSelectorsResponse"
972            },
973            "errors": [
974                {
975                    "target": "com.amazonaws.cloudtrail#InsightNotEnabledException"
976                },
977                {
978                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
979                },
980                {
981                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
982                },
983                {
984                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
985                },
986                {
987                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
988                }
989            ],
990            "traits": {
991                "smithy.api#documentation": "<p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows \n         if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled. \n         If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception\n         <code>InsightNotEnabledException</code>\n         </p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html\">Logging CloudTrail Insights Events for Trails\n      </a> in the <i>AWS CloudTrail User Guide</i>.</p>",
992                "smithy.api#idempotent": {}
993            }
994        },
995        "com.amazonaws.cloudtrail#GetInsightSelectorsRequest": {
996            "type": "structure",
997            "members": {
998                "TrailName": {
999                    "target": "com.amazonaws.cloudtrail#String",
1000                    "traits": {
1001                        "smithy.api#documentation": "<p>Specifies the name of the trail or trail ARN. If you specify a trail name, the\n         string must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n               and <code>my--namespace</code> are not valid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>\n         <p>If you specify a trail ARN, it must be in the format:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
1002                        "smithy.api#required": {}
1003                    }
1004                }
1005            }
1006        },
1007        "com.amazonaws.cloudtrail#GetInsightSelectorsResponse": {
1008            "type": "structure",
1009            "members": {
1010                "TrailARN": {
1011                    "target": "com.amazonaws.cloudtrail#String",
1012                    "traits": {
1013                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.</p>"
1014                    }
1015                },
1016                "InsightSelectors": {
1017                    "target": "com.amazonaws.cloudtrail#InsightSelectors",
1018                    "traits": {
1019                        "smithy.api#documentation": "<p>A JSON string that contains the insight types you want to log on a trail. In this release, only <code>ApiCallRateInsight</code> is supported as an insight type.</p>"
1020                    }
1021                }
1022            }
1023        },
1024        "com.amazonaws.cloudtrail#GetTrail": {
1025            "type": "operation",
1026            "input": {
1027                "target": "com.amazonaws.cloudtrail#GetTrailRequest"
1028            },
1029            "output": {
1030                "target": "com.amazonaws.cloudtrail#GetTrailResponse"
1031            },
1032            "errors": [
1033                {
1034                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
1035                },
1036                {
1037                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1038                },
1039                {
1040                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
1041                },
1042                {
1043                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1044                }
1045            ],
1046            "traits": {
1047                "smithy.api#documentation": "<p>Returns settings information for a specified trail.</p>",
1048                "smithy.api#idempotent": {}
1049            }
1050        },
1051        "com.amazonaws.cloudtrail#GetTrailRequest": {
1052            "type": "structure",
1053            "members": {
1054                "Name": {
1055                    "target": "com.amazonaws.cloudtrail#String",
1056                    "traits": {
1057                        "smithy.api#documentation": "<p>The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.</p>",
1058                        "smithy.api#required": {}
1059                    }
1060                }
1061            }
1062        },
1063        "com.amazonaws.cloudtrail#GetTrailResponse": {
1064            "type": "structure",
1065            "members": {
1066                "Trail": {
1067                    "target": "com.amazonaws.cloudtrail#Trail"
1068                }
1069            }
1070        },
1071        "com.amazonaws.cloudtrail#GetTrailStatus": {
1072            "type": "operation",
1073            "input": {
1074                "target": "com.amazonaws.cloudtrail#GetTrailStatusRequest"
1075            },
1076            "output": {
1077                "target": "com.amazonaws.cloudtrail#GetTrailStatusResponse"
1078            },
1079            "errors": [
1080                {
1081                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
1082                },
1083                {
1084                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1085                },
1086                {
1087                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
1088                },
1089                {
1090                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1091                }
1092            ],
1093            "traits": {
1094                "smithy.api#documentation": "<p>Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.</p>",
1095                "smithy.api#idempotent": {}
1096            }
1097        },
1098        "com.amazonaws.cloudtrail#GetTrailStatusRequest": {
1099            "type": "structure",
1100            "members": {
1101                "Name": {
1102                    "target": "com.amazonaws.cloudtrail#String",
1103                    "traits": {
1104                        "smithy.api#documentation": "<p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The format of a trail ARN is:</p>\n          <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
1105                        "smithy.api#required": {}
1106                    }
1107                }
1108            },
1109            "traits": {
1110                "smithy.api#documentation": "<p>The name of a trail about which you want the current status.</p>"
1111            }
1112        },
1113        "com.amazonaws.cloudtrail#GetTrailStatusResponse": {
1114            "type": "structure",
1115            "members": {
1116                "IsLogging": {
1117                    "target": "com.amazonaws.cloudtrail#Boolean",
1118                    "traits": {
1119                        "smithy.api#documentation": "<p>Whether the CloudTrail is currently logging AWS API calls.</p>"
1120                    }
1121                },
1122                "LatestDeliveryError": {
1123                    "target": "com.amazonaws.cloudtrail#String",
1124                    "traits": {
1125                        "smithy.api#documentation": "<p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files\n         to the designated bucket. For more information see the topic <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html\">Error\n            Responses</a> in the Amazon S3 API Reference. </p>\n         <note>\n            <p>This error occurs only when there is a problem with the destination S3 bucket and will\n         not occur for timeouts. To resolve the issue, create a new bucket and call\n            <code>UpdateTrail</code> to specify the new bucket, or fix the existing objects so that\n         CloudTrail can again write to the bucket.</p>\n         </note>"
1126                    }
1127                },
1128                "LatestNotificationError": {
1129                    "target": "com.amazonaws.cloudtrail#String",
1130                    "traits": {
1131                        "smithy.api#documentation": "<p>Displays any Amazon SNS error that CloudTrail encountered when attempting to send a\n         notification. For more information about Amazon SNS errors, see the <a href=\"https://docs.aws.amazon.com/sns/latest/dg/welcome.html\">Amazon SNS Developer Guide</a>.\n      </p>"
1132                    }
1133                },
1134                "LatestDeliveryTime": {
1135                    "target": "com.amazonaws.cloudtrail#Date",
1136                    "traits": {
1137                        "smithy.api#documentation": "<p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>"
1138                    }
1139                },
1140                "LatestNotificationTime": {
1141                    "target": "com.amazonaws.cloudtrail#Date",
1142                    "traits": {
1143                        "smithy.api#documentation": "<p>Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.</p>"
1144                    }
1145                },
1146                "StartLoggingTime": {
1147                    "target": "com.amazonaws.cloudtrail#Date",
1148                    "traits": {
1149                        "smithy.api#documentation": "<p>Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.</p>"
1150                    }
1151                },
1152                "StopLoggingTime": {
1153                    "target": "com.amazonaws.cloudtrail#Date",
1154                    "traits": {
1155                        "smithy.api#documentation": "<p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.</p>"
1156                    }
1157                },
1158                "LatestCloudWatchLogsDeliveryError": {
1159                    "target": "com.amazonaws.cloudtrail#String",
1160                    "traits": {
1161                        "smithy.api#documentation": "<p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>"
1162                    }
1163                },
1164                "LatestCloudWatchLogsDeliveryTime": {
1165                    "target": "com.amazonaws.cloudtrail#Date",
1166                    "traits": {
1167                        "smithy.api#documentation": "<p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>"
1168                    }
1169                },
1170                "LatestDigestDeliveryTime": {
1171                    "target": "com.amazonaws.cloudtrail#Date",
1172                    "traits": {
1173                        "smithy.api#documentation": "<p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>"
1174                    }
1175                },
1176                "LatestDigestDeliveryError": {
1177                    "target": "com.amazonaws.cloudtrail#String",
1178                    "traits": {
1179                        "smithy.api#documentation": "<p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest\n         file to the designated bucket. For more information see the topic <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html\">Error\n            Responses</a> in the Amazon S3 API Reference. </p>\n         <note>\n            <p>This error occurs only when there is a problem with the destination S3 bucket and will\n         not occur for timeouts. To resolve the issue, create a new bucket and call\n            <code>UpdateTrail</code> to specify the new bucket, or fix the existing objects so that\n         CloudTrail can again write to the bucket.</p>\n         </note>"
1180                    }
1181                },
1182                "LatestDeliveryAttemptTime": {
1183                    "target": "com.amazonaws.cloudtrail#String",
1184                    "traits": {
1185                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1186                    }
1187                },
1188                "LatestNotificationAttemptTime": {
1189                    "target": "com.amazonaws.cloudtrail#String",
1190                    "traits": {
1191                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1192                    }
1193                },
1194                "LatestNotificationAttemptSucceeded": {
1195                    "target": "com.amazonaws.cloudtrail#String",
1196                    "traits": {
1197                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1198                    }
1199                },
1200                "LatestDeliveryAttemptSucceeded": {
1201                    "target": "com.amazonaws.cloudtrail#String",
1202                    "traits": {
1203                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1204                    }
1205                },
1206                "TimeLoggingStarted": {
1207                    "target": "com.amazonaws.cloudtrail#String",
1208                    "traits": {
1209                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1210                    }
1211                },
1212                "TimeLoggingStopped": {
1213                    "target": "com.amazonaws.cloudtrail#String",
1214                    "traits": {
1215                        "smithy.api#documentation": "<p>This field is no longer in use.</p>"
1216                    }
1217                }
1218            },
1219            "traits": {
1220                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
1221            }
1222        },
1223        "com.amazonaws.cloudtrail#InsightNotEnabledException": {
1224            "type": "structure",
1225            "members": {
1226                "Message": {
1227                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1228                    "traits": {
1229                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1230                    }
1231                }
1232            },
1233            "traits": {
1234                "smithy.api#documentation": "<p>If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception <code>InsightNotEnabledException</code>.</p>",
1235                "smithy.api#error": "client",
1236                "smithy.api#httpError": 400
1237            }
1238        },
1239        "com.amazonaws.cloudtrail#InsightSelector": {
1240            "type": "structure",
1241            "members": {
1242                "InsightType": {
1243                    "target": "com.amazonaws.cloudtrail#InsightType",
1244                    "traits": {
1245                        "smithy.api#documentation": "<p>The type of insights to log on a trail. In this release, only <code>ApiCallRateInsight</code> is supported as an insight type.</p>"
1246                    }
1247                }
1248            },
1249            "traits": {
1250                "smithy.api#documentation": "<p>A JSON string that contains a list of insight types that are logged on a trail.</p>"
1251            }
1252        },
1253        "com.amazonaws.cloudtrail#InsightSelectors": {
1254            "type": "list",
1255            "member": {
1256                "target": "com.amazonaws.cloudtrail#InsightSelector"
1257            }
1258        },
1259        "com.amazonaws.cloudtrail#InsightType": {
1260            "type": "string",
1261            "traits": {
1262                "smithy.api#enum": [
1263                    {
1264                        "value": "ApiCallRateInsight",
1265                        "name": "ApiCallRateInsight"
1266                    }
1267                ]
1268            }
1269        },
1270        "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException": {
1271            "type": "structure",
1272            "members": {
1273                "Message": {
1274                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1275                    "traits": {
1276                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1277                    }
1278                }
1279            },
1280            "traits": {
1281                "smithy.api#documentation": "<p>This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for \n         creating an organization trail in a required service. For more information, see \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html\">Prepare For Creating a Trail For Your Organization</a>.</p>",
1282                "smithy.api#error": "client",
1283                "smithy.api#httpError": 400
1284            }
1285        },
1286        "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException": {
1287            "type": "structure",
1288            "members": {
1289                "Message": {
1290                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1291                    "traits": {
1292                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1293                    }
1294                }
1295            },
1296            "traits": {
1297                "smithy.api#documentation": "<p>This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.</p>",
1298                "smithy.api#error": "client",
1299                "smithy.api#httpError": 400
1300            }
1301        },
1302        "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException": {
1303            "type": "structure",
1304            "members": {
1305                "Message": {
1306                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1307                    "traits": {
1308                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1309                    }
1310                }
1311            },
1312            "traits": {
1313                "smithy.api#documentation": "<p>This exception is thrown when the policy on the S3 bucket is not sufficient.</p>",
1314                "smithy.api#error": "client",
1315                "smithy.api#httpError": 403
1316            }
1317        },
1318        "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException": {
1319            "type": "structure",
1320            "members": {
1321                "Message": {
1322                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1323                    "traits": {
1324                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1325                    }
1326                }
1327            },
1328            "traits": {
1329                "smithy.api#documentation": "<p>This exception is thrown when the policy on the SNS topic is not sufficient.</p>",
1330                "smithy.api#error": "client",
1331                "smithy.api#httpError": 403
1332            }
1333        },
1334        "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException": {
1335            "type": "structure",
1336            "members": {
1337                "Message": {
1338                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1339                    "traits": {
1340                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1341                    }
1342                }
1343            },
1344            "traits": {
1345                "smithy.api#documentation": "<p>This exception is thrown when the provided CloudWatch log group is not valid.</p>",
1346                "smithy.api#error": "client",
1347                "smithy.api#httpError": 400
1348            }
1349        },
1350        "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException": {
1351            "type": "structure",
1352            "members": {
1353                "Message": {
1354                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1355                    "traits": {
1356                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1357                    }
1358                }
1359            },
1360            "traits": {
1361                "smithy.api#documentation": "<p>This exception is thrown when the provided role is not valid.</p>",
1362                "smithy.api#error": "client",
1363                "smithy.api#httpError": 400
1364            }
1365        },
1366        "com.amazonaws.cloudtrail#InvalidEventCategoryException": {
1367            "type": "structure",
1368            "members": {
1369                "Message": {
1370                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1371                    "traits": {
1372                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1373                    }
1374                }
1375            },
1376            "traits": {
1377                "smithy.api#documentation": "<p>Occurs if an event category that is not valid is specified as a value of <code>EventCategory</code>.</p>",
1378                "smithy.api#error": "client",
1379                "smithy.api#httpError": 400
1380            }
1381        },
1382        "com.amazonaws.cloudtrail#InvalidEventSelectorsException": {
1383            "type": "structure",
1384            "members": {
1385                "Message": {
1386                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1387                    "traits": {
1388                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1389                    }
1390                }
1391            },
1392            "traits": {
1393                "smithy.api#documentation": "<p>This exception is thrown when the <code>PutEventSelectors</code> operation is called with a number of event \n         selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and \n         data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum \n         of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.</p>\n         <p>You can:</p>\n         <ul>\n            <li>\n               <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>\n            </li>\n            <li>\n               <p>Specify a valid number of data resources (1 to 250) for an event selector. \n               The limit of number of resources on an individual event selector is configurable up to 250. \n               However, this upper limit is allowed only if the total number of data resources does not \n               exceed 250 across all event selectors for a trail.</p>\n            </li>\n            <li>\n               <p>Specify up to 500 values for all conditions in all advanced event selectors for a trail.</p>\n            </li>\n            <li>\n               <p>Specify a valid value for a parameter. For example, specifying the <code>ReadWriteType</code> \n               parameter with a value of <code>read-only</code> is invalid.</p>\n            </li>\n         </ul>",
1394                "smithy.api#error": "client",
1395                "smithy.api#httpError": 400
1396            }
1397        },
1398        "com.amazonaws.cloudtrail#InvalidHomeRegionException": {
1399            "type": "structure",
1400            "members": {
1401                "Message": {
1402                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1403                    "traits": {
1404                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1405                    }
1406                }
1407            },
1408            "traits": {
1409                "smithy.api#documentation": "<p>This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.</p>",
1410                "smithy.api#error": "client",
1411                "smithy.api#httpError": 400
1412            }
1413        },
1414        "com.amazonaws.cloudtrail#InvalidInsightSelectorsException": {
1415            "type": "structure",
1416            "members": {
1417                "Message": {
1418                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1419                    "traits": {
1420                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1421                    }
1422                }
1423            },
1424            "traits": {
1425                "smithy.api#documentation": "<p>The formatting or syntax of the <code>InsightSelectors</code> JSON statement in your <code>PutInsightSelectors</code> or <code>GetInsightSelectors</code> request \n         is not valid, or the specified insight type in the <code>InsightSelectors</code> statement is not a valid insight type.</p>",
1426                "smithy.api#error": "client",
1427                "smithy.api#httpError": 400
1428            }
1429        },
1430        "com.amazonaws.cloudtrail#InvalidKmsKeyIdException": {
1431            "type": "structure",
1432            "members": {
1433                "Message": {
1434                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1435                    "traits": {
1436                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1437                    }
1438                }
1439            },
1440            "traits": {
1441                "smithy.api#documentation": "<p>This exception is thrown when the KMS key ARN is invalid.</p>",
1442                "smithy.api#error": "client",
1443                "smithy.api#httpError": 400
1444            }
1445        },
1446        "com.amazonaws.cloudtrail#InvalidLookupAttributesException": {
1447            "type": "structure",
1448            "members": {
1449                "Message": {
1450                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1451                    "traits": {
1452                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1453                    }
1454                }
1455            },
1456            "traits": {
1457                "smithy.api#documentation": "<p>Occurs when an invalid lookup attribute is specified.</p>",
1458                "smithy.api#error": "client",
1459                "smithy.api#httpError": 400
1460            }
1461        },
1462        "com.amazonaws.cloudtrail#InvalidMaxResultsException": {
1463            "type": "structure",
1464            "members": {
1465                "Message": {
1466                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1467                    "traits": {
1468                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1469                    }
1470                }
1471            },
1472            "traits": {
1473                "smithy.api#documentation": "<p>This exception is thrown if the limit specified is invalid.</p>",
1474                "smithy.api#error": "client",
1475                "smithy.api#httpError": 400
1476            }
1477        },
1478        "com.amazonaws.cloudtrail#InvalidNextTokenException": {
1479            "type": "structure",
1480            "members": {
1481                "Message": {
1482                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1483                    "traits": {
1484                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1485                    }
1486                }
1487            },
1488            "traits": {
1489                "smithy.api#documentation": "<p>Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.</p>",
1490                "smithy.api#error": "client",
1491                "smithy.api#httpError": 400
1492            }
1493        },
1494        "com.amazonaws.cloudtrail#InvalidParameterCombinationException": {
1495            "type": "structure",
1496            "members": {
1497                "Message": {
1498                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1499                    "traits": {
1500                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1501                    }
1502                }
1503            },
1504            "traits": {
1505                "smithy.api#documentation": "<p>This exception is thrown when the combination of parameters provided is not valid.</p>",
1506                "smithy.api#error": "client",
1507                "smithy.api#httpError": 400
1508            }
1509        },
1510        "com.amazonaws.cloudtrail#InvalidS3BucketNameException": {
1511            "type": "structure",
1512            "members": {
1513                "Message": {
1514                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1515                    "traits": {
1516                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1517                    }
1518                }
1519            },
1520            "traits": {
1521                "smithy.api#documentation": "<p>This exception is thrown when the provided S3 bucket name is not valid.</p>",
1522                "smithy.api#error": "client",
1523                "smithy.api#httpError": 400
1524            }
1525        },
1526        "com.amazonaws.cloudtrail#InvalidS3PrefixException": {
1527            "type": "structure",
1528            "members": {
1529                "Message": {
1530                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1531                    "traits": {
1532                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1533                    }
1534                }
1535            },
1536            "traits": {
1537                "smithy.api#documentation": "<p>This exception is thrown when the provided S3 prefix is not valid.</p>",
1538                "smithy.api#error": "client",
1539                "smithy.api#httpError": 400
1540            }
1541        },
1542        "com.amazonaws.cloudtrail#InvalidSnsTopicNameException": {
1543            "type": "structure",
1544            "members": {
1545                "Message": {
1546                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1547                    "traits": {
1548                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1549                    }
1550                }
1551            },
1552            "traits": {
1553                "smithy.api#documentation": "<p>This exception is thrown when the provided SNS topic name is not valid.</p>",
1554                "smithy.api#error": "client",
1555                "smithy.api#httpError": 400
1556            }
1557        },
1558        "com.amazonaws.cloudtrail#InvalidTagParameterException": {
1559            "type": "structure",
1560            "members": {
1561                "Message": {
1562                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1563                    "traits": {
1564                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1565                    }
1566                }
1567            },
1568            "traits": {
1569                "smithy.api#documentation": "<p>This exception is thrown when the specified tag key or values are not valid. \n         It can also occur if there are duplicate tags or too many tags on the resource.</p>",
1570                "smithy.api#error": "client",
1571                "smithy.api#httpError": 400
1572            }
1573        },
1574        "com.amazonaws.cloudtrail#InvalidTimeRangeException": {
1575            "type": "structure",
1576            "members": {
1577                "Message": {
1578                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1579                    "traits": {
1580                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1581                    }
1582                }
1583            },
1584            "traits": {
1585                "smithy.api#documentation": "<p>Occurs if the timestamp values are invalid. Either the start time occurs after the end time or the time range is outside the range of possible values.</p>",
1586                "smithy.api#error": "client",
1587                "smithy.api#httpError": 400
1588            }
1589        },
1590        "com.amazonaws.cloudtrail#InvalidTokenException": {
1591            "type": "structure",
1592            "members": {
1593                "Message": {
1594                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1595                    "traits": {
1596                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1597                    }
1598                }
1599            },
1600            "traits": {
1601                "smithy.api#documentation": "<p>Reserved for future use.</p>",
1602                "smithy.api#error": "client",
1603                "smithy.api#httpError": 400
1604            }
1605        },
1606        "com.amazonaws.cloudtrail#InvalidTrailNameException": {
1607            "type": "structure",
1608            "members": {
1609                "Message": {
1610                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1611                    "traits": {
1612                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1613                    }
1614                }
1615            },
1616            "traits": {
1617                "smithy.api#documentation": "<p>This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n            and <code>my--namespace</code> are invalid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>",
1618                "smithy.api#error": "client",
1619                "smithy.api#httpError": 400
1620            }
1621        },
1622        "com.amazonaws.cloudtrail#KmsException": {
1623            "type": "structure",
1624            "members": {
1625                "Message": {
1626                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1627                    "traits": {
1628                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1629                    }
1630                }
1631            },
1632            "traits": {
1633                "smithy.api#documentation": "<p>This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.</p>",
1634                "smithy.api#error": "client",
1635                "smithy.api#httpError": 400
1636            }
1637        },
1638        "com.amazonaws.cloudtrail#KmsKeyDisabledException": {
1639            "type": "structure",
1640            "members": {
1641                "Message": {
1642                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1643                    "traits": {
1644                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1645                    }
1646                }
1647            },
1648            "traits": {
1649                "smithy.api#deprecated": {},
1650                "smithy.api#documentation": "<p>This exception is no longer in use.</p>",
1651                "smithy.api#error": "client",
1652                "smithy.api#httpError": 400
1653            }
1654        },
1655        "com.amazonaws.cloudtrail#KmsKeyNotFoundException": {
1656            "type": "structure",
1657            "members": {
1658                "Message": {
1659                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
1660                    "traits": {
1661                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
1662                    }
1663                }
1664            },
1665            "traits": {
1666                "smithy.api#documentation": "<p>This exception is thrown when the KMS key does not exist, when the S3 bucket and the KMS key are not \n         in the same region, or when the KMS key associated with the SNS topic either does not exist or is not \n         in the same region.</p>",
1667                "smithy.api#error": "client",
1668                "smithy.api#httpError": 400
1669            }
1670        },
1671        "com.amazonaws.cloudtrail#ListPublicKeys": {
1672            "type": "operation",
1673            "input": {
1674                "target": "com.amazonaws.cloudtrail#ListPublicKeysRequest"
1675            },
1676            "output": {
1677                "target": "com.amazonaws.cloudtrail#ListPublicKeysResponse"
1678            },
1679            "errors": [
1680                {
1681                    "target": "com.amazonaws.cloudtrail#InvalidTimeRangeException"
1682                },
1683                {
1684                    "target": "com.amazonaws.cloudtrail#InvalidTokenException"
1685                },
1686                {
1687                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1688                },
1689                {
1690                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1691                }
1692            ],
1693            "traits": {
1694                "smithy.api#documentation": "<p>Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.</p>\n         <note>\n            <p>CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.</p>\n         </note>",
1695                "smithy.api#idempotent": {},
1696                "smithy.api#paginated": {
1697                    "inputToken": "NextToken",
1698                    "outputToken": "NextToken",
1699                    "items": "PublicKeyList"
1700                }
1701            }
1702        },
1703        "com.amazonaws.cloudtrail#ListPublicKeysRequest": {
1704            "type": "structure",
1705            "members": {
1706                "StartTime": {
1707                    "target": "com.amazonaws.cloudtrail#Date",
1708                    "traits": {
1709                        "smithy.api#documentation": "<p>Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.</p>"
1710                    }
1711                },
1712                "EndTime": {
1713                    "target": "com.amazonaws.cloudtrail#Date",
1714                    "traits": {
1715                        "smithy.api#documentation": "<p>Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.</p>"
1716                    }
1717                },
1718                "NextToken": {
1719                    "target": "com.amazonaws.cloudtrail#String",
1720                    "traits": {
1721                        "smithy.api#documentation": "<p>Reserved for future use.</p>"
1722                    }
1723                }
1724            },
1725            "traits": {
1726                "smithy.api#documentation": "<p>Requests the public keys for a specified time range.</p>"
1727            }
1728        },
1729        "com.amazonaws.cloudtrail#ListPublicKeysResponse": {
1730            "type": "structure",
1731            "members": {
1732                "PublicKeyList": {
1733                    "target": "com.amazonaws.cloudtrail#PublicKeyList",
1734                    "traits": {
1735                        "smithy.api#documentation": "<p>Contains an array of PublicKey objects.</p>\n         <note>\n            <p>The returned public keys may have validity time ranges that overlap.</p>\n         </note>"
1736                    }
1737                },
1738                "NextToken": {
1739                    "target": "com.amazonaws.cloudtrail#String",
1740                    "traits": {
1741                        "smithy.api#documentation": "<p>Reserved for future use.</p>"
1742                    }
1743                }
1744            },
1745            "traits": {
1746                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
1747            }
1748        },
1749        "com.amazonaws.cloudtrail#ListTags": {
1750            "type": "operation",
1751            "input": {
1752                "target": "com.amazonaws.cloudtrail#ListTagsRequest"
1753            },
1754            "output": {
1755                "target": "com.amazonaws.cloudtrail#ListTagsResponse"
1756            },
1757            "errors": [
1758                {
1759                    "target": "com.amazonaws.cloudtrail#CloudTrailARNInvalidException"
1760                },
1761                {
1762                    "target": "com.amazonaws.cloudtrail#InvalidTokenException"
1763                },
1764                {
1765                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
1766                },
1767                {
1768                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1769                },
1770                {
1771                    "target": "com.amazonaws.cloudtrail#ResourceNotFoundException"
1772                },
1773                {
1774                    "target": "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException"
1775                },
1776                {
1777                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1778                }
1779            ],
1780            "traits": {
1781                "smithy.api#documentation": "<p>Lists the tags for the trail in the current region.</p>",
1782                "smithy.api#idempotent": {},
1783                "smithy.api#paginated": {
1784                    "inputToken": "NextToken",
1785                    "outputToken": "NextToken",
1786                    "items": "ResourceTagList"
1787                }
1788            }
1789        },
1790        "com.amazonaws.cloudtrail#ListTagsRequest": {
1791            "type": "structure",
1792            "members": {
1793                "ResourceIdList": {
1794                    "target": "com.amazonaws.cloudtrail#ResourceIdList",
1795                    "traits": {
1796                        "smithy.api#documentation": "<p>Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The format of a trail ARN is:</p>\n            <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
1797                        "smithy.api#required": {}
1798                    }
1799                },
1800                "NextToken": {
1801                    "target": "com.amazonaws.cloudtrail#String",
1802                    "traits": {
1803                        "smithy.api#documentation": "<p>Reserved for future use.</p>"
1804                    }
1805                }
1806            },
1807            "traits": {
1808                "smithy.api#documentation": "<p>Specifies a list of trail tags to return.</p>"
1809            }
1810        },
1811        "com.amazonaws.cloudtrail#ListTagsResponse": {
1812            "type": "structure",
1813            "members": {
1814                "ResourceTagList": {
1815                    "target": "com.amazonaws.cloudtrail#ResourceTagList",
1816                    "traits": {
1817                        "smithy.api#documentation": "<p>A list of resource tags.</p>"
1818                    }
1819                },
1820                "NextToken": {
1821                    "target": "com.amazonaws.cloudtrail#String",
1822                    "traits": {
1823                        "smithy.api#documentation": "<p>Reserved for future use.</p>"
1824                    }
1825                }
1826            },
1827            "traits": {
1828                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
1829            }
1830        },
1831        "com.amazonaws.cloudtrail#ListTrails": {
1832            "type": "operation",
1833            "input": {
1834                "target": "com.amazonaws.cloudtrail#ListTrailsRequest"
1835            },
1836            "output": {
1837                "target": "com.amazonaws.cloudtrail#ListTrailsResponse"
1838            },
1839            "errors": [
1840                {
1841                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1842                },
1843                {
1844                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1845                }
1846            ],
1847            "traits": {
1848                "smithy.api#documentation": "<p>Lists trails that are in the current account.</p>",
1849                "smithy.api#idempotent": {},
1850                "smithy.api#paginated": {
1851                    "inputToken": "NextToken",
1852                    "outputToken": "NextToken",
1853                    "items": "Trails"
1854                }
1855            }
1856        },
1857        "com.amazonaws.cloudtrail#ListTrailsRequest": {
1858            "type": "structure",
1859            "members": {
1860                "NextToken": {
1861                    "target": "com.amazonaws.cloudtrail#String",
1862                    "traits": {
1863                        "smithy.api#documentation": "<p>The token to use to get the next page of results after a previous API call. This token must be passed \n         in with the same parameters that were specified in the the original call. For example, if the original \n         call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should \n         include those same parameters.</p>"
1864                    }
1865                }
1866            }
1867        },
1868        "com.amazonaws.cloudtrail#ListTrailsResponse": {
1869            "type": "structure",
1870            "members": {
1871                "Trails": {
1872                    "target": "com.amazonaws.cloudtrail#Trails",
1873                    "traits": {
1874                        "smithy.api#documentation": "<p>Returns the name, ARN, and home region of trails in the current account.</p>"
1875                    }
1876                },
1877                "NextToken": {
1878                    "target": "com.amazonaws.cloudtrail#String",
1879                    "traits": {
1880                        "smithy.api#documentation": "<p>The token to use to get the next page of results after a previous API call. If the token does not appear, \n         there are no more results to return. The token must be passed in with the same parameters as the previous call. \n         For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with \n         NextToken should include those same parameters.</p>"
1881                    }
1882                }
1883            }
1884        },
1885        "com.amazonaws.cloudtrail#LookupAttribute": {
1886            "type": "structure",
1887            "members": {
1888                "AttributeKey": {
1889                    "target": "com.amazonaws.cloudtrail#LookupAttributeKey",
1890                    "traits": {
1891                        "smithy.api#documentation": "<p>Specifies an attribute on which to filter the events returned.</p>",
1892                        "smithy.api#required": {}
1893                    }
1894                },
1895                "AttributeValue": {
1896                    "target": "com.amazonaws.cloudtrail#String",
1897                    "traits": {
1898                        "smithy.api#documentation": "<p>Specifies a value for the specified AttributeKey.</p>",
1899                        "smithy.api#required": {}
1900                    }
1901                }
1902            },
1903            "traits": {
1904                "smithy.api#documentation": "<p>Specifies an attribute and value that filter the events returned.</p>"
1905            }
1906        },
1907        "com.amazonaws.cloudtrail#LookupAttributeKey": {
1908            "type": "string",
1909            "traits": {
1910                "smithy.api#enum": [
1911                    {
1912                        "value": "EventId",
1913                        "name": "EVENT_ID"
1914                    },
1915                    {
1916                        "value": "EventName",
1917                        "name": "EVENT_NAME"
1918                    },
1919                    {
1920                        "value": "ReadOnly",
1921                        "name": "READ_ONLY"
1922                    },
1923                    {
1924                        "value": "Username",
1925                        "name": "USERNAME"
1926                    },
1927                    {
1928                        "value": "ResourceType",
1929                        "name": "RESOURCE_TYPE"
1930                    },
1931                    {
1932                        "value": "ResourceName",
1933                        "name": "RESOURCE_NAME"
1934                    },
1935                    {
1936                        "value": "EventSource",
1937                        "name": "EVENT_SOURCE"
1938                    },
1939                    {
1940                        "value": "AccessKeyId",
1941                        "name": "ACCESS_KEY_ID"
1942                    }
1943                ]
1944            }
1945        },
1946        "com.amazonaws.cloudtrail#LookupAttributesList": {
1947            "type": "list",
1948            "member": {
1949                "target": "com.amazonaws.cloudtrail#LookupAttribute"
1950            }
1951        },
1952        "com.amazonaws.cloudtrail#LookupEvents": {
1953            "type": "operation",
1954            "input": {
1955                "target": "com.amazonaws.cloudtrail#LookupEventsRequest"
1956            },
1957            "output": {
1958                "target": "com.amazonaws.cloudtrail#LookupEventsResponse"
1959            },
1960            "errors": [
1961                {
1962                    "target": "com.amazonaws.cloudtrail#InvalidEventCategoryException"
1963                },
1964                {
1965                    "target": "com.amazonaws.cloudtrail#InvalidLookupAttributesException"
1966                },
1967                {
1968                    "target": "com.amazonaws.cloudtrail#InvalidMaxResultsException"
1969                },
1970                {
1971                    "target": "com.amazonaws.cloudtrail#InvalidNextTokenException"
1972                },
1973                {
1974                    "target": "com.amazonaws.cloudtrail#InvalidTimeRangeException"
1975                },
1976                {
1977                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
1978                },
1979                {
1980                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
1981                }
1982            ],
1983            "traits": {
1984                "smithy.api#documentation": "<p>Looks up <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events\">management events</a> or \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events\">CloudTrail Insights events</a> that are captured by CloudTrail. \n         You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>\n         <ul>\n            <li>\n               <p>AWS access key</p>\n            </li>\n            <li>\n               <p>Event ID</p>\n            </li>\n            <li>\n               <p>Event name</p>\n            </li>\n            <li>\n               <p>Event source</p>\n            </li>\n            <li>\n               <p>Read only</p>\n            </li>\n            <li>\n               <p>Resource name</p>\n            </li>\n            <li>\n               <p>Resource type</p>\n            </li>\n            <li>\n               <p>User name</p>\n            </li>\n         </ul>\n         <p>Lookup supports the following attributes for Insights events:</p>\n         <ul>\n            <li>\n               <p>Event ID</p>\n            </li>\n            <li>\n               <p>Event name</p>\n            </li>\n            <li>\n               <p>Event source</p>\n            </li>\n         </ul>\n         <p>All attributes are optional. The default number of results returned is 50, with a\n         maximum of 50 possible. The response includes a token that you can use to get the next page\n         of results.</p>\n         <important>\n            <p>The rate of lookup requests is limited to two per second, per account, per region. If this\n            limit is exceeded, a throttling error occurs.</p>\n         </important>",
1985                "smithy.api#idempotent": {},
1986                "smithy.api#paginated": {
1987                    "inputToken": "NextToken",
1988                    "outputToken": "NextToken",
1989                    "items": "Events",
1990                    "pageSize": "MaxResults"
1991                }
1992            }
1993        },
1994        "com.amazonaws.cloudtrail#LookupEventsRequest": {
1995            "type": "structure",
1996            "members": {
1997                "LookupAttributes": {
1998                    "target": "com.amazonaws.cloudtrail#LookupAttributesList",
1999                    "traits": {
2000                        "smithy.api#documentation": "<p>Contains a list of lookup attributes. Currently the list can contain only one item.</p>"
2001                    }
2002                },
2003                "StartTime": {
2004                    "target": "com.amazonaws.cloudtrail#Date",
2005                    "traits": {
2006                        "smithy.api#documentation": "<p>Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.</p>"
2007                    }
2008                },
2009                "EndTime": {
2010                    "target": "com.amazonaws.cloudtrail#Date",
2011                    "traits": {
2012                        "smithy.api#documentation": "<p>Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.</p>"
2013                    }
2014                },
2015                "EventCategory": {
2016                    "target": "com.amazonaws.cloudtrail#EventCategory",
2017                    "traits": {
2018                        "smithy.api#documentation": "<p>Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, \n         if you do not specify <code>insight</code> as the value of <code>EventCategory</code>, no Insights events are returned.</p>"
2019                    }
2020                },
2021                "MaxResults": {
2022                    "target": "com.amazonaws.cloudtrail#MaxResults",
2023                    "traits": {
2024                        "smithy.api#documentation": "<p>The number of events to return. Possible values are 1 through 50. The default is 50.</p>"
2025                    }
2026                },
2027                "NextToken": {
2028                    "target": "com.amazonaws.cloudtrail#NextToken",
2029                    "traits": {
2030                        "smithy.api#documentation": "<p>The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. \n         For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.</p>"
2031                    }
2032                }
2033            },
2034            "traits": {
2035                "smithy.api#documentation": "<p>Contains a request for LookupEvents.</p>"
2036            }
2037        },
2038        "com.amazonaws.cloudtrail#LookupEventsResponse": {
2039            "type": "structure",
2040            "members": {
2041                "Events": {
2042                    "target": "com.amazonaws.cloudtrail#EventsList",
2043                    "traits": {
2044                        "smithy.api#documentation": "<p>A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.</p>"
2045                    }
2046                },
2047                "NextToken": {
2048                    "target": "com.amazonaws.cloudtrail#NextToken",
2049                    "traits": {
2050                        "smithy.api#documentation": "<p>The token to use to get the next page of results after a previous API call. If the token does not appear, \n         there are no more results to return. The token must be passed in with the same parameters as the previous call. \n         For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with \n         NextToken should include those same parameters.</p>"
2051                    }
2052                }
2053            },
2054            "traits": {
2055                "smithy.api#documentation": "<p>Contains a response to a LookupEvents action.</p>"
2056            }
2057        },
2058        "com.amazonaws.cloudtrail#MaxResults": {
2059            "type": "integer",
2060            "traits": {
2061                "smithy.api#box": {},
2062                "smithy.api#range": {
2063                    "min": 1,
2064                    "max": 50
2065                }
2066            }
2067        },
2068        "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException": {
2069            "type": "structure",
2070            "members": {
2071                "Message": {
2072                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2073                    "traits": {
2074                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2075                    }
2076                }
2077            },
2078            "traits": {
2079                "smithy.api#documentation": "<p>This exception is thrown when the maximum number of trails is reached.</p>",
2080                "smithy.api#error": "client",
2081                "smithy.api#httpError": 403
2082            }
2083        },
2084        "com.amazonaws.cloudtrail#NextToken": {
2085            "type": "string"
2086        },
2087        "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException": {
2088            "type": "structure",
2089            "members": {
2090                "Message": {
2091                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2092                    "traits": {
2093                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2094                    }
2095                }
2096            },
2097            "traits": {
2098                "smithy.api#documentation": "<p>This exception is thrown when the AWS account making the request to create or update an organization trail is not the master account for an \n         organization in AWS Organizations. For more information, see \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html\">Prepare For Creating a Trail For Your Organization</a>.</p>",
2099                "smithy.api#error": "client",
2100                "smithy.api#httpError": 400
2101            }
2102        },
2103        "com.amazonaws.cloudtrail#OperationNotPermittedException": {
2104            "type": "structure",
2105            "members": {
2106                "Message": {
2107                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2108                    "traits": {
2109                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2110                    }
2111                }
2112            },
2113            "traits": {
2114                "smithy.api#documentation": "<p>This exception is thrown when the requested operation is not permitted.</p>",
2115                "smithy.api#error": "client",
2116                "smithy.api#httpError": 400
2117            }
2118        },
2119        "com.amazonaws.cloudtrail#Operator": {
2120            "type": "list",
2121            "member": {
2122                "target": "com.amazonaws.cloudtrail#OperatorValue"
2123            },
2124            "traits": {
2125                "smithy.api#length": {
2126                    "min": 1
2127                }
2128            }
2129        },
2130        "com.amazonaws.cloudtrail#OperatorValue": {
2131            "type": "string",
2132            "traits": {
2133                "smithy.api#length": {
2134                    "min": 1,
2135                    "max": 2048
2136                },
2137                "smithy.api#pattern": ".+"
2138            }
2139        },
2140        "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException": {
2141            "type": "structure",
2142            "members": {
2143                "Message": {
2144                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2145                    "traits": {
2146                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2147                    }
2148                }
2149            },
2150            "traits": {
2151                "smithy.api#documentation": "<p>This exception is thrown when AWS Organizations is not configured to support all features. All features must be enabled in AWS Organization to support\n         creating an organization trail. For more information, see \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html\">Prepare For Creating a Trail For Your Organization</a>.</p>",
2152                "smithy.api#error": "client",
2153                "smithy.api#httpError": 400
2154            }
2155        },
2156        "com.amazonaws.cloudtrail#OrganizationsNotInUseException": {
2157            "type": "structure",
2158            "members": {
2159                "Message": {
2160                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2161                    "traits": {
2162                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2163                    }
2164                }
2165            },
2166            "traits": {
2167                "smithy.api#documentation": "<p>This exception is thrown when the request is made from an AWS account that is not a member of an organization. \n         To make this request, sign in using the credentials of an account that belongs to an organization.</p>",
2168                "smithy.api#error": "client",
2169                "smithy.api#httpError": 404
2170            }
2171        },
2172        "com.amazonaws.cloudtrail#PublicKey": {
2173            "type": "structure",
2174            "members": {
2175                "Value": {
2176                    "target": "com.amazonaws.cloudtrail#ByteBuffer",
2177                    "traits": {
2178                        "smithy.api#documentation": "<p>The DER encoded public key value in PKCS#1 format.</p>"
2179                    }
2180                },
2181                "ValidityStartTime": {
2182                    "target": "com.amazonaws.cloudtrail#Date",
2183                    "traits": {
2184                        "smithy.api#documentation": "<p>The starting time of validity of the public key.</p>"
2185                    }
2186                },
2187                "ValidityEndTime": {
2188                    "target": "com.amazonaws.cloudtrail#Date",
2189                    "traits": {
2190                        "smithy.api#documentation": "<p>The ending time of validity of the public key.</p>"
2191                    }
2192                },
2193                "Fingerprint": {
2194                    "target": "com.amazonaws.cloudtrail#String",
2195                    "traits": {
2196                        "smithy.api#documentation": "<p>The fingerprint of the public key.</p>"
2197                    }
2198                }
2199            },
2200            "traits": {
2201                "smithy.api#documentation": "<p>Contains information about a returned public key.</p>"
2202            }
2203        },
2204        "com.amazonaws.cloudtrail#PublicKeyList": {
2205            "type": "list",
2206            "member": {
2207                "target": "com.amazonaws.cloudtrail#PublicKey"
2208            }
2209        },
2210        "com.amazonaws.cloudtrail#PutEventSelectors": {
2211            "type": "operation",
2212            "input": {
2213                "target": "com.amazonaws.cloudtrail#PutEventSelectorsRequest"
2214            },
2215            "output": {
2216                "target": "com.amazonaws.cloudtrail#PutEventSelectorsResponse"
2217            },
2218            "errors": [
2219                {
2220                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
2221                },
2222                {
2223                    "target": "com.amazonaws.cloudtrail#InvalidEventSelectorsException"
2224                },
2225                {
2226                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
2227                },
2228                {
2229                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
2230                },
2231                {
2232                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
2233                },
2234                {
2235                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
2236                },
2237                {
2238                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
2239                },
2240                {
2241                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
2242                }
2243            ],
2244            "traits": {
2245                "smithy.api#documentation": "<p>Configures an event selector or advanced event selectors for your trail. \n         Use event selectors or advanced event selectors to specify management and data event settings for your trail. By\n         default, trails created without specific event selectors are configured to log all read and \n         write management events, and no data events.</p>\n         <p>When an event occurs in your account, CloudTrail\n         evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches \n         any event selector, the trail processes and logs the event. If the event doesn't match any event\n         selector, the trail doesn't log the event. </p>\n         <p>Example</p>\n         <ol>\n            <li>\n               <p>You create an event selector for a trail and specify that you want\n               write-only events.</p>\n            </li>\n            <li>\n               <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API\n               operations occur in your account.</p>\n            </li>\n            <li>\n               <p>CloudTrail evaluates whether the events match your event\n               selectors.</p>\n            </li>\n            <li>\n               <p>The <code>RunInstances</code> is a write-only event and it matches your\n               event selector. The trail logs the event.</p>\n            </li>\n            <li>\n               <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't\n               match your event selector. The trail doesn't log the event.\n         </p>\n            </li>\n         </ol>\n         <p>The <code>PutEventSelectors</code> operation must be called from the region in which\n         the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is\n         thrown.</p>\n         <p>You can configure up to five event selectors for each trail. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html\">Logging data and management events for trails\n      </a> and <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html\">Quotas in AWS CloudTrail</a> \n         in the <i>AWS CloudTrail User Guide</i>.</p>\n         <p>You can add advanced event selectors, and conditions for your advanced \n         event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. \n         You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code> \n         to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about \n         advanced event selectors, see \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html\">Logging \n            data events for trails</a> in the <i>AWS CloudTrail User Guide</i>.</p>",
2246                "smithy.api#idempotent": {}
2247            }
2248        },
2249        "com.amazonaws.cloudtrail#PutEventSelectorsRequest": {
2250            "type": "structure",
2251            "members": {
2252                "TrailName": {
2253                    "target": "com.amazonaws.cloudtrail#String",
2254                    "traits": {
2255                        "smithy.api#documentation": "<p>Specifies the name of the trail or trail ARN. If you specify a trail name, the\n         string must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n               and <code>my--namespace</code> are invalid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>\n         <p>If you specify a trail ARN, it must be in the format:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
2256                        "smithy.api#required": {}
2257                    }
2258                },
2259                "EventSelectors": {
2260                    "target": "com.amazonaws.cloudtrail#EventSelectors",
2261                    "traits": {
2262                        "smithy.api#documentation": "<p>Specifies the settings for your event selectors. You can configure up to five event selectors for a trail. \n         You can use either <code>EventSelectors</code> or <code>AdvancedEventSelectors</code> in a <code>PutEventSelectors</code> request, but not both. \n         If you apply <code>EventSelectors</code> to a trail, any existing <code>AdvancedEventSelectors</code> are overwritten.</p>"
2263                    }
2264                },
2265                "AdvancedEventSelectors": {
2266                    "target": "com.amazonaws.cloudtrail#AdvancedEventSelectors",
2267                    "traits": {
2268                        "smithy.api#documentation": "<p>\n         Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced \n         event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. \n         You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code> \n         to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about \n         advanced event selectors, see \n         <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html\">Logging \n            data events for trails</a> in the <i>AWS CloudTrail User Guide</i>.\n      </p>"
2269                    }
2270                }
2271            }
2272        },
2273        "com.amazonaws.cloudtrail#PutEventSelectorsResponse": {
2274            "type": "structure",
2275            "members": {
2276                "TrailARN": {
2277                    "target": "com.amazonaws.cloudtrail#String",
2278                    "traits": {
2279                        "smithy.api#documentation": "<p>Specifies the ARN of the trail that was updated with event selectors. The format of a trail ARN\n         is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>"
2280                    }
2281                },
2282                "EventSelectors": {
2283                    "target": "com.amazonaws.cloudtrail#EventSelectors",
2284                    "traits": {
2285                        "smithy.api#documentation": "<p>Specifies the event selectors configured for your trail.</p>"
2286                    }
2287                },
2288                "AdvancedEventSelectors": {
2289                    "target": "com.amazonaws.cloudtrail#AdvancedEventSelectors",
2290                    "traits": {
2291                        "smithy.api#documentation": "<p>Specifies the advanced event selectors configured for your trail.</p>"
2292                    }
2293                }
2294            }
2295        },
2296        "com.amazonaws.cloudtrail#PutInsightSelectors": {
2297            "type": "operation",
2298            "input": {
2299                "target": "com.amazonaws.cloudtrail#PutInsightSelectorsRequest"
2300            },
2301            "output": {
2302                "target": "com.amazonaws.cloudtrail#PutInsightSelectorsResponse"
2303            },
2304            "errors": [
2305                {
2306                    "target": "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException"
2307                },
2308                {
2309                    "target": "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException"
2310                },
2311                {
2312                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
2313                },
2314                {
2315                    "target": "com.amazonaws.cloudtrail#InvalidInsightSelectorsException"
2316                },
2317                {
2318                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
2319                },
2320                {
2321                    "target": "com.amazonaws.cloudtrail#KmsException"
2322                },
2323                {
2324                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
2325                },
2326                {
2327                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
2328                },
2329                {
2330                    "target": "com.amazonaws.cloudtrail#S3BucketDoesNotExistException"
2331                },
2332                {
2333                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
2334                },
2335                {
2336                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
2337                }
2338            ],
2339            "traits": {
2340                "smithy.api#documentation": "<p>Lets you enable Insights event logging by specifying the Insights\n         selectors that you want to enable on an existing trail. You also use\n         <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types. \n         In this release, only <code>ApiCallRateInsight</code> is supported as an Insights selector.</p>",
2341                "smithy.api#idempotent": {}
2342            }
2343        },
2344        "com.amazonaws.cloudtrail#PutInsightSelectorsRequest": {
2345            "type": "structure",
2346            "members": {
2347                "TrailName": {
2348                    "target": "com.amazonaws.cloudtrail#String",
2349                    "traits": {
2350                        "smithy.api#documentation": "<p>The name of the CloudTrail trail for which you want to change or add Insights selectors.</p>",
2351                        "smithy.api#required": {}
2352                    }
2353                },
2354                "InsightSelectors": {
2355                    "target": "com.amazonaws.cloudtrail#InsightSelectors",
2356                    "traits": {
2357                        "smithy.api#documentation": "<p>A JSON string that contains the insight types you want to log on a trail. In this release, only <code>ApiCallRateInsight</code> is supported as an insight type.</p>",
2358                        "smithy.api#required": {}
2359                    }
2360                }
2361            }
2362        },
2363        "com.amazonaws.cloudtrail#PutInsightSelectorsResponse": {
2364            "type": "structure",
2365            "members": {
2366                "TrailARN": {
2367                    "target": "com.amazonaws.cloudtrail#String",
2368                    "traits": {
2369                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.</p>"
2370                    }
2371                },
2372                "InsightSelectors": {
2373                    "target": "com.amazonaws.cloudtrail#InsightSelectors",
2374                    "traits": {
2375                        "smithy.api#documentation": "<p>A JSON string that contains the insight types you want to log on a trail. In this release, only <code>ApiCallRateInsight</code> is supported as an insight type.</p>"
2376                    }
2377                }
2378            }
2379        },
2380        "com.amazonaws.cloudtrail#ReadWriteType": {
2381            "type": "string",
2382            "traits": {
2383                "smithy.api#enum": [
2384                    {
2385                        "value": "ReadOnly",
2386                        "name": "ReadOnly"
2387                    },
2388                    {
2389                        "value": "WriteOnly",
2390                        "name": "WriteOnly"
2391                    },
2392                    {
2393                        "value": "All",
2394                        "name": "All"
2395                    }
2396                ]
2397            }
2398        },
2399        "com.amazonaws.cloudtrail#RemoveTags": {
2400            "type": "operation",
2401            "input": {
2402                "target": "com.amazonaws.cloudtrail#RemoveTagsRequest"
2403            },
2404            "output": {
2405                "target": "com.amazonaws.cloudtrail#RemoveTagsResponse"
2406            },
2407            "errors": [
2408                {
2409                    "target": "com.amazonaws.cloudtrail#CloudTrailARNInvalidException"
2410                },
2411                {
2412                    "target": "com.amazonaws.cloudtrail#InvalidTagParameterException"
2413                },
2414                {
2415                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
2416                },
2417                {
2418                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
2419                },
2420                {
2421                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
2422                },
2423                {
2424                    "target": "com.amazonaws.cloudtrail#ResourceNotFoundException"
2425                },
2426                {
2427                    "target": "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException"
2428                },
2429                {
2430                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
2431                }
2432            ],
2433            "traits": {
2434                "smithy.api#documentation": "<p>Removes the specified tags from a trail.</p>",
2435                "smithy.api#idempotent": {}
2436            }
2437        },
2438        "com.amazonaws.cloudtrail#RemoveTagsRequest": {
2439            "type": "structure",
2440            "members": {
2441                "ResourceId": {
2442                    "target": "com.amazonaws.cloudtrail#String",
2443                    "traits": {
2444                        "smithy.api#documentation": "<p>Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
2445                        "smithy.api#required": {}
2446                    }
2447                },
2448                "TagsList": {
2449                    "target": "com.amazonaws.cloudtrail#TagsList",
2450                    "traits": {
2451                        "smithy.api#documentation": "<p>Specifies a list of tags to be removed.</p>"
2452                    }
2453                }
2454            },
2455            "traits": {
2456                "smithy.api#documentation": "<p>Specifies the tags to remove from a trail.</p>"
2457            }
2458        },
2459        "com.amazonaws.cloudtrail#RemoveTagsResponse": {
2460            "type": "structure",
2461            "members": {},
2462            "traits": {
2463                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
2464            }
2465        },
2466        "com.amazonaws.cloudtrail#Resource": {
2467            "type": "structure",
2468            "members": {
2469                "ResourceType": {
2470                    "target": "com.amazonaws.cloudtrail#String",
2471                    "traits": {
2472                        "smithy.api#documentation": "<p>The type of a resource referenced by the event returned. When the resource type cannot be\n         determined, null is returned. Some examples of resource types are: <b>Instance</b> for EC2,\n            <b>Trail</b> for CloudTrail, <b>DBInstance</b> for RDS, and <b>AccessKey</b> for IAM.\n         To learn more about how to look up and filter events by the resource types supported for a service, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events\">Filtering CloudTrail Events</a>.</p>"
2473                    }
2474                },
2475                "ResourceName": {
2476                    "target": "com.amazonaws.cloudtrail#String",
2477                    "traits": {
2478                        "smithy.api#documentation": "<p>The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.</p>"
2479                    }
2480                }
2481            },
2482            "traits": {
2483                "smithy.api#documentation": "<p>Specifies the type and name of a resource referenced by an event.</p>"
2484            }
2485        },
2486        "com.amazonaws.cloudtrail#ResourceIdList": {
2487            "type": "list",
2488            "member": {
2489                "target": "com.amazonaws.cloudtrail#String"
2490            }
2491        },
2492        "com.amazonaws.cloudtrail#ResourceList": {
2493            "type": "list",
2494            "member": {
2495                "target": "com.amazonaws.cloudtrail#Resource"
2496            },
2497            "traits": {
2498                "smithy.api#documentation": "<p>A list of resources referenced by the event returned.</p>"
2499            }
2500        },
2501        "com.amazonaws.cloudtrail#ResourceNotFoundException": {
2502            "type": "structure",
2503            "members": {
2504                "Message": {
2505                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2506                    "traits": {
2507                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2508                    }
2509                }
2510            },
2511            "traits": {
2512                "smithy.api#documentation": "<p>This exception is thrown when the specified resource is not found.</p>",
2513                "smithy.api#error": "client",
2514                "smithy.api#httpError": 400
2515            }
2516        },
2517        "com.amazonaws.cloudtrail#ResourceTag": {
2518            "type": "structure",
2519            "members": {
2520                "ResourceId": {
2521                    "target": "com.amazonaws.cloudtrail#String",
2522                    "traits": {
2523                        "smithy.api#documentation": "<p>Specifies the ARN of the resource.</p>"
2524                    }
2525                },
2526                "TagsList": {
2527                    "target": "com.amazonaws.cloudtrail#TagsList",
2528                    "traits": {
2529                        "smithy.api#documentation": "<p>A list of tags.</p>"
2530                    }
2531                }
2532            },
2533            "traits": {
2534                "smithy.api#documentation": "<p>A resource tag.</p>"
2535            }
2536        },
2537        "com.amazonaws.cloudtrail#ResourceTagList": {
2538            "type": "list",
2539            "member": {
2540                "target": "com.amazonaws.cloudtrail#ResourceTag"
2541            }
2542        },
2543        "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException": {
2544            "type": "structure",
2545            "members": {
2546                "Message": {
2547                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2548                    "traits": {
2549                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2550                    }
2551                }
2552            },
2553            "traits": {
2554                "smithy.api#documentation": "<p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>",
2555                "smithy.api#error": "client",
2556                "smithy.api#httpError": 400
2557            }
2558        },
2559        "com.amazonaws.cloudtrail#S3BucketDoesNotExistException": {
2560            "type": "structure",
2561            "members": {
2562                "Message": {
2563                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2564                    "traits": {
2565                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2566                    }
2567                }
2568            },
2569            "traits": {
2570                "smithy.api#documentation": "<p>This exception is thrown when the specified S3 bucket does not exist.</p>",
2571                "smithy.api#error": "client",
2572                "smithy.api#httpError": 404
2573            }
2574        },
2575        "com.amazonaws.cloudtrail#SelectorField": {
2576            "type": "string",
2577            "traits": {
2578                "smithy.api#length": {
2579                    "min": 1,
2580                    "max": 1000
2581                },
2582                "smithy.api#pattern": "[\\w|\\d|\\.|_]+"
2583            }
2584        },
2585        "com.amazonaws.cloudtrail#SelectorName": {
2586            "type": "string",
2587            "traits": {
2588                "smithy.api#length": {
2589                    "min": 0,
2590                    "max": 1000
2591                },
2592                "smithy.api#pattern": ".*"
2593            }
2594        },
2595        "com.amazonaws.cloudtrail#StartLogging": {
2596            "type": "operation",
2597            "input": {
2598                "target": "com.amazonaws.cloudtrail#StartLoggingRequest"
2599            },
2600            "output": {
2601                "target": "com.amazonaws.cloudtrail#StartLoggingResponse"
2602            },
2603            "errors": [
2604                {
2605                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
2606                },
2607                {
2608                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
2609                },
2610                {
2611                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
2612                },
2613                {
2614                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
2615                },
2616                {
2617                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
2618                },
2619                {
2620                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
2621                },
2622                {
2623                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
2624                }
2625            ],
2626            "traits": {
2627                "smithy.api#documentation": "<p>Starts the recording of AWS API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.</p>",
2628                "smithy.api#idempotent": {}
2629            }
2630        },
2631        "com.amazonaws.cloudtrail#StartLoggingRequest": {
2632            "type": "structure",
2633            "members": {
2634                "Name": {
2635                    "target": "com.amazonaws.cloudtrail#String",
2636                    "traits": {
2637                        "smithy.api#documentation": "<p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is:</p>\n            <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
2638                        "smithy.api#required": {}
2639                    }
2640                }
2641            },
2642            "traits": {
2643                "smithy.api#documentation": "<p>The request to CloudTrail to start logging AWS API calls for an account.</p>"
2644            }
2645        },
2646        "com.amazonaws.cloudtrail#StartLoggingResponse": {
2647            "type": "structure",
2648            "members": {},
2649            "traits": {
2650                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
2651            }
2652        },
2653        "com.amazonaws.cloudtrail#StopLogging": {
2654            "type": "operation",
2655            "input": {
2656                "target": "com.amazonaws.cloudtrail#StopLoggingRequest"
2657            },
2658            "output": {
2659                "target": "com.amazonaws.cloudtrail#StopLoggingResponse"
2660            },
2661            "errors": [
2662                {
2663                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
2664                },
2665                {
2666                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
2667                },
2668                {
2669                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
2670                },
2671                {
2672                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
2673                },
2674                {
2675                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
2676                },
2677                {
2678                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
2679                },
2680                {
2681                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
2682                }
2683            ],
2684            "traits": {
2685                "smithy.api#documentation": "<p>Suspends the recording of AWS API calls and log file delivery for the specified trail.\n         Under most circumstances, there is no need to use this action. You can update a trail\n         without stopping it first. This action is the only way to stop recording. For a trail\n         enabled in all regions, this operation must be called from the region in which the trail\n         was created, or an <code>InvalidHomeRegionException</code> will occur. This operation\n         cannot be called on the shadow trails (replicated trails in other regions) of a trail\n         enabled in all regions.</p>",
2686                "smithy.api#idempotent": {}
2687            }
2688        },
2689        "com.amazonaws.cloudtrail#StopLoggingRequest": {
2690            "type": "structure",
2691            "members": {
2692                "Name": {
2693                    "target": "com.amazonaws.cloudtrail#String",
2694                    "traits": {
2695                        "smithy.api#documentation": "<p>Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging AWS API calls. The format of a trail ARN is:</p>\n            <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
2696                        "smithy.api#required": {}
2697                    }
2698                }
2699            },
2700            "traits": {
2701                "smithy.api#documentation": "<p>Passes the request to CloudTrail to stop logging AWS API calls for the specified account.</p>"
2702            }
2703        },
2704        "com.amazonaws.cloudtrail#StopLoggingResponse": {
2705            "type": "structure",
2706            "members": {},
2707            "traits": {
2708                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
2709            }
2710        },
2711        "com.amazonaws.cloudtrail#String": {
2712            "type": "string"
2713        },
2714        "com.amazonaws.cloudtrail#Tag": {
2715            "type": "structure",
2716            "members": {
2717                "Key": {
2718                    "target": "com.amazonaws.cloudtrail#String",
2719                    "traits": {
2720                        "smithy.api#documentation": "<p>The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.</p>",
2721                        "smithy.api#required": {}
2722                    }
2723                },
2724                "Value": {
2725                    "target": "com.amazonaws.cloudtrail#String",
2726                    "traits": {
2727                        "smithy.api#documentation": "<p>The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.</p>"
2728                    }
2729                }
2730            },
2731            "traits": {
2732                "smithy.api#documentation": "<p>A custom key-value pair associated with a resource such as a CloudTrail trail.</p>"
2733            }
2734        },
2735        "com.amazonaws.cloudtrail#TagsLimitExceededException": {
2736            "type": "structure",
2737            "members": {
2738                "Message": {
2739                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2740                    "traits": {
2741                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2742                    }
2743                }
2744            },
2745            "traits": {
2746                "smithy.api#documentation": "<p>The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.</p>",
2747                "smithy.api#error": "client",
2748                "smithy.api#httpError": 400
2749            }
2750        },
2751        "com.amazonaws.cloudtrail#TagsList": {
2752            "type": "list",
2753            "member": {
2754                "target": "com.amazonaws.cloudtrail#Tag"
2755            },
2756            "traits": {
2757                "smithy.api#documentation": "<p>A list of tags.</p>"
2758            }
2759        },
2760        "com.amazonaws.cloudtrail#Trail": {
2761            "type": "structure",
2762            "members": {
2763                "Name": {
2764                    "target": "com.amazonaws.cloudtrail#String",
2765                    "traits": {
2766                        "smithy.api#documentation": "<p>Name of the trail set by calling <a>CreateTrail</a>. The maximum length is 128\n         characters.</p>"
2767                    }
2768                },
2769                "S3BucketName": {
2770                    "target": "com.amazonaws.cloudtrail#String",
2771                    "traits": {
2772                        "smithy.api#documentation": "<p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html\">Amazon S3 Bucket Naming Requirements</a>.</p>"
2773                    }
2774                },
2775                "S3KeyPrefix": {
2776                    "target": "com.amazonaws.cloudtrail#String",
2777                    "traits": {
2778                        "smithy.api#documentation": "<p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated\n         for log file delivery. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html\">Finding Your CloudTrail Log Files</a>.The maximum length is 200 characters.</p>"
2779                    }
2780                },
2781                "SnsTopicName": {
2782                    "target": "com.amazonaws.cloudtrail#String",
2783                    "traits": {
2784                        "smithy.api#deprecated": {},
2785                        "smithy.api#documentation": "<p>This field is no longer in use. Use SnsTopicARN.</p>"
2786                    }
2787                },
2788                "SnsTopicARN": {
2789                    "target": "com.amazonaws.cloudtrail#String",
2790                    "traits": {
2791                        "smithy.api#documentation": "<p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications\n         when log files are delivered. The format of a topic ARN is:</p> \n         <p>\n            <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>\n         </p>"
2792                    }
2793                },
2794                "IncludeGlobalServiceEvents": {
2795                    "target": "com.amazonaws.cloudtrail#Boolean",
2796                    "traits": {
2797                        "smithy.api#documentation": "<p>Set to <b>True</b> to include AWS API calls from AWS global services such as IAM.\n         Otherwise, <b>False</b>.</p>"
2798                    }
2799                },
2800                "IsMultiRegionTrail": {
2801                    "target": "com.amazonaws.cloudtrail#Boolean",
2802                    "traits": {
2803                        "smithy.api#documentation": "<p>Specifies whether the trail exists only in one region or exists in all regions.</p>"
2804                    }
2805                },
2806                "HomeRegion": {
2807                    "target": "com.amazonaws.cloudtrail#String",
2808                    "traits": {
2809                        "smithy.api#documentation": "<p>The region in which the trail was created.</p>"
2810                    }
2811                },
2812                "TrailARN": {
2813                    "target": "com.amazonaws.cloudtrail#String",
2814                    "traits": {
2815                        "smithy.api#documentation": "<p>Specifies the ARN of the trail. The format of a trail ARN is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>"
2816                    }
2817                },
2818                "LogFileValidationEnabled": {
2819                    "target": "com.amazonaws.cloudtrail#Boolean",
2820                    "traits": {
2821                        "smithy.api#documentation": "<p>Specifies whether log file validation is enabled.</p>"
2822                    }
2823                },
2824                "CloudWatchLogsLogGroupArn": {
2825                    "target": "com.amazonaws.cloudtrail#String",
2826                    "traits": {
2827                        "smithy.api#documentation": "<p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>"
2828                    }
2829                },
2830                "CloudWatchLogsRoleArn": {
2831                    "target": "com.amazonaws.cloudtrail#String",
2832                    "traits": {
2833                        "smithy.api#documentation": "<p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>"
2834                    }
2835                },
2836                "KmsKeyId": {
2837                    "target": "com.amazonaws.cloudtrail#String",
2838                    "traits": {
2839                        "smithy.api#documentation": "<p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:</p>\n         <p>\n            <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>\n         </p>"
2840                    }
2841                },
2842                "HasCustomEventSelectors": {
2843                    "target": "com.amazonaws.cloudtrail#Boolean",
2844                    "traits": {
2845                        "smithy.api#documentation": "<p>Specifies if the trail has custom event selectors.</p>"
2846                    }
2847                },
2848                "HasInsightSelectors": {
2849                    "target": "com.amazonaws.cloudtrail#Boolean",
2850                    "traits": {
2851                        "smithy.api#documentation": "<p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>"
2852                    }
2853                },
2854                "IsOrganizationTrail": {
2855                    "target": "com.amazonaws.cloudtrail#Boolean",
2856                    "traits": {
2857                        "smithy.api#documentation": "<p>Specifies whether the trail is an organization trail.</p>"
2858                    }
2859                }
2860            },
2861            "traits": {
2862                "smithy.api#documentation": "<p>The settings for a trail.</p>"
2863            }
2864        },
2865        "com.amazonaws.cloudtrail#TrailAlreadyExistsException": {
2866            "type": "structure",
2867            "members": {
2868                "Message": {
2869                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2870                    "traits": {
2871                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2872                    }
2873                }
2874            },
2875            "traits": {
2876                "smithy.api#documentation": "<p>This exception is thrown when the specified trail already exists.</p>",
2877                "smithy.api#error": "client",
2878                "smithy.api#httpError": 400
2879            }
2880        },
2881        "com.amazonaws.cloudtrail#TrailInfo": {
2882            "type": "structure",
2883            "members": {
2884                "TrailARN": {
2885                    "target": "com.amazonaws.cloudtrail#String",
2886                    "traits": {
2887                        "smithy.api#documentation": "<p>The ARN of a trail.</p>"
2888                    }
2889                },
2890                "Name": {
2891                    "target": "com.amazonaws.cloudtrail#String",
2892                    "traits": {
2893                        "smithy.api#documentation": "<p>The name of a trail.</p>"
2894                    }
2895                },
2896                "HomeRegion": {
2897                    "target": "com.amazonaws.cloudtrail#String",
2898                    "traits": {
2899                        "smithy.api#documentation": "<p>The AWS region in which a trail was created.</p>"
2900                    }
2901                }
2902            },
2903            "traits": {
2904                "smithy.api#documentation": "<p>Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).</p>"
2905            }
2906        },
2907        "com.amazonaws.cloudtrail#TrailList": {
2908            "type": "list",
2909            "member": {
2910                "target": "com.amazonaws.cloudtrail#Trail"
2911            }
2912        },
2913        "com.amazonaws.cloudtrail#TrailNameList": {
2914            "type": "list",
2915            "member": {
2916                "target": "com.amazonaws.cloudtrail#String"
2917            }
2918        },
2919        "com.amazonaws.cloudtrail#TrailNotFoundException": {
2920            "type": "structure",
2921            "members": {
2922                "Message": {
2923                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2924                    "traits": {
2925                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2926                    }
2927                }
2928            },
2929            "traits": {
2930                "smithy.api#documentation": "<p>This exception is thrown when the trail with the given name is not found.</p>",
2931                "smithy.api#error": "client",
2932                "smithy.api#httpError": 404
2933            }
2934        },
2935        "com.amazonaws.cloudtrail#TrailNotProvidedException": {
2936            "type": "structure",
2937            "members": {
2938                "Message": {
2939                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2940                    "traits": {
2941                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2942                    }
2943                }
2944            },
2945            "traits": {
2946                "smithy.api#documentation": "<p>This exception is no longer in use.</p>",
2947                "smithy.api#error": "client",
2948                "smithy.api#httpError": 404
2949            }
2950        },
2951        "com.amazonaws.cloudtrail#Trails": {
2952            "type": "list",
2953            "member": {
2954                "target": "com.amazonaws.cloudtrail#TrailInfo"
2955            }
2956        },
2957        "com.amazonaws.cloudtrail#UnsupportedOperationException": {
2958            "type": "structure",
2959            "members": {
2960                "Message": {
2961                    "target": "com.amazonaws.cloudtrail#ErrorMessage",
2962                    "traits": {
2963                        "smithy.api#documentation": "<p>Brief description of the exception returned by the request.</p>"
2964                    }
2965                }
2966            },
2967            "traits": {
2968                "smithy.api#documentation": "<p>This exception is thrown when the requested operation is not supported.</p>",
2969                "smithy.api#error": "client",
2970                "smithy.api#httpError": 400
2971            }
2972        },
2973        "com.amazonaws.cloudtrail#UpdateTrail": {
2974            "type": "operation",
2975            "input": {
2976                "target": "com.amazonaws.cloudtrail#UpdateTrailRequest"
2977            },
2978            "output": {
2979                "target": "com.amazonaws.cloudtrail#UpdateTrailResponse"
2980            },
2981            "errors": [
2982                {
2983                    "target": "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException"
2984                },
2985                {
2986                    "target": "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException"
2987                },
2988                {
2989                    "target": "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException"
2990                },
2991                {
2992                    "target": "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException"
2993                },
2994                {
2995                    "target": "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException"
2996                },
2997                {
2998                    "target": "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException"
2999                },
3000                {
3001                    "target": "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException"
3002                },
3003                {
3004                    "target": "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException"
3005                },
3006                {
3007                    "target": "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException"
3008                },
3009                {
3010                    "target": "com.amazonaws.cloudtrail#InvalidEventSelectorsException"
3011                },
3012                {
3013                    "target": "com.amazonaws.cloudtrail#InvalidHomeRegionException"
3014                },
3015                {
3016                    "target": "com.amazonaws.cloudtrail#InvalidKmsKeyIdException"
3017                },
3018                {
3019                    "target": "com.amazonaws.cloudtrail#InvalidParameterCombinationException"
3020                },
3021                {
3022                    "target": "com.amazonaws.cloudtrail#InvalidS3BucketNameException"
3023                },
3024                {
3025                    "target": "com.amazonaws.cloudtrail#InvalidS3PrefixException"
3026                },
3027                {
3028                    "target": "com.amazonaws.cloudtrail#InvalidSnsTopicNameException"
3029                },
3030                {
3031                    "target": "com.amazonaws.cloudtrail#InvalidTrailNameException"
3032                },
3033                {
3034                    "target": "com.amazonaws.cloudtrail#KmsException"
3035                },
3036                {
3037                    "target": "com.amazonaws.cloudtrail#KmsKeyDisabledException"
3038                },
3039                {
3040                    "target": "com.amazonaws.cloudtrail#KmsKeyNotFoundException"
3041                },
3042                {
3043                    "target": "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException"
3044                },
3045                {
3046                    "target": "com.amazonaws.cloudtrail#OperationNotPermittedException"
3047                },
3048                {
3049                    "target": "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException"
3050                },
3051                {
3052                    "target": "com.amazonaws.cloudtrail#OrganizationsNotInUseException"
3053                },
3054                {
3055                    "target": "com.amazonaws.cloudtrail#S3BucketDoesNotExistException"
3056                },
3057                {
3058                    "target": "com.amazonaws.cloudtrail#TrailNotFoundException"
3059                },
3060                {
3061                    "target": "com.amazonaws.cloudtrail#TrailNotProvidedException"
3062                },
3063                {
3064                    "target": "com.amazonaws.cloudtrail#UnsupportedOperationException"
3065                }
3066            ],
3067            "traits": {
3068                "smithy.api#documentation": "<p>Updates the settings that specify delivery of log files. Changes to a trail do not require\n         stopping the CloudTrail service. Use this action to designate an existing bucket for log\n         delivery. If the existing bucket has previously been a target for CloudTrail log files,\n         an IAM policy exists for the bucket. <code>UpdateTrail</code> must be called from the\n         region in which the trail was created; otherwise, an\n            <code>InvalidHomeRegionException</code> is thrown.</p>",
3069                "smithy.api#idempotent": {}
3070            }
3071        },
3072        "com.amazonaws.cloudtrail#UpdateTrailRequest": {
3073            "type": "structure",
3074            "members": {
3075                "Name": {
3076                    "target": "com.amazonaws.cloudtrail#String",
3077                    "traits": {
3078                        "smithy.api#documentation": "<p>Specifies the name of the trail or trail ARN. If <code>Name</code> is a trail name, the\n         string must meet the following requirements:</p>\n         <ul>\n            <li>\n               <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p>\n            </li>\n            <li>\n               <p>Start with a letter or number, and end with a letter or number</p>\n            </li>\n            <li>\n               <p>Be between 3 and 128 characters</p>\n            </li>\n            <li>\n               <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code>\n            and <code>my--namespace</code> are invalid.</p>\n            </li>\n            <li>\n               <p>Not be in IP address format (for example, 192.168.5.4)</p>\n            </li>\n         </ul>\n         <p>If <code>Name</code> is a trail ARN, it must be in the format:</p>\n            <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>",
3079                        "smithy.api#required": {}
3080                    }
3081                },
3082                "S3BucketName": {
3083                    "target": "com.amazonaws.cloudtrail#String",
3084                    "traits": {
3085                        "smithy.api#documentation": "<p>Specifies the name of the Amazon S3 bucket designated for publishing log files. See <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html\">Amazon S3 Bucket Naming Requirements</a>.</p>"
3086                    }
3087                },
3088                "S3KeyPrefix": {
3089                    "target": "com.amazonaws.cloudtrail#String",
3090                    "traits": {
3091                        "smithy.api#documentation": "<p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated\n         for log file delivery. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html\">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>"
3092                    }
3093                },
3094                "SnsTopicName": {
3095                    "target": "com.amazonaws.cloudtrail#String",
3096                    "traits": {
3097                        "smithy.api#documentation": "<p>Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.</p>"
3098                    }
3099                },
3100                "IncludeGlobalServiceEvents": {
3101                    "target": "com.amazonaws.cloudtrail#Boolean",
3102                    "traits": {
3103                        "smithy.api#documentation": "<p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>"
3104                    }
3105                },
3106                "IsMultiRegionTrail": {
3107                    "target": "com.amazonaws.cloudtrail#Boolean",
3108                    "traits": {
3109                        "smithy.api#documentation": "<p>Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, \n         shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region \n         where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider\n         using trails that log events in all regions.</p>"
3110                    }
3111                },
3112                "EnableLogFileValidation": {
3113                    "target": "com.amazonaws.cloudtrail#Boolean",
3114                    "traits": {
3115                        "smithy.api#documentation": "<p>Specifies whether log file validation is enabled. The default is false.</p>\n         <note>\n            <p>When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail will not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.</p>\n         </note>"
3116                    }
3117                },
3118                "CloudWatchLogsLogGroupArn": {
3119                    "target": "com.amazonaws.cloudtrail#String",
3120                    "traits": {
3121                        "smithy.api#documentation": "<p>Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.</p>"
3122                    }
3123                },
3124                "CloudWatchLogsRoleArn": {
3125                    "target": "com.amazonaws.cloudtrail#String",
3126                    "traits": {
3127                        "smithy.api#documentation": "<p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>"
3128                    }
3129                },
3130                "KmsKeyId": {
3131                    "target": "com.amazonaws.cloudtrail#String",
3132                    "traits": {
3133                        "smithy.api#documentation": "<p>Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The\n         value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully\n         specified ARN to a key, or a globally unique identifier.</p>\n         <p>Examples:</p>\n         <ul>\n            <li>\n               <p>alias/MyAliasName</p>\n            </li>\n            <li>\n               <p>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</p>\n            </li>\n            <li>\n               <p>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</p>\n            </li>\n            <li>\n               <p>12345678-1234-1234-1234-123456789012</p>\n            </li>\n         </ul>"
3134                    }
3135                },
3136                "IsOrganizationTrail": {
3137                    "target": "com.amazonaws.cloudtrail#Boolean",
3138                    "traits": {
3139                        "smithy.api#documentation": "<p>Specifies whether the trail is applied to all accounts in an organization in AWS Organizations, or only for the current AWS account. \n         The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in \n         AWS Organizations. If the trail is not an organization trail and this is set to true, the trail will be created in all AWS accounts that belong\n         to the organization. If the trail is an organization trail and this is set to false, the trail will remain in the current AWS account but be \n         deleted from all member accounts in the organization.</p>"
3140                    }
3141                }
3142            },
3143            "traits": {
3144                "smithy.api#documentation": "<p>Specifies settings to update for the trail.</p>"
3145            }
3146        },
3147        "com.amazonaws.cloudtrail#UpdateTrailResponse": {
3148            "type": "structure",
3149            "members": {
3150                "Name": {
3151                    "target": "com.amazonaws.cloudtrail#String",
3152                    "traits": {
3153                        "smithy.api#documentation": "<p>Specifies the name of the trail.</p>"
3154                    }
3155                },
3156                "S3BucketName": {
3157                    "target": "com.amazonaws.cloudtrail#String",
3158                    "traits": {
3159                        "smithy.api#documentation": "<p>Specifies the name of the Amazon S3 bucket designated for publishing log files.</p>"
3160                    }
3161                },
3162                "S3KeyPrefix": {
3163                    "target": "com.amazonaws.cloudtrail#String",
3164                    "traits": {
3165                        "smithy.api#documentation": "<p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated\n         for log file delivery. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html\">Finding Your CloudTrail Log Files</a>.</p>"
3166                    }
3167                },
3168                "SnsTopicName": {
3169                    "target": "com.amazonaws.cloudtrail#String",
3170                    "traits": {
3171                        "smithy.api#deprecated": {},
3172                        "smithy.api#documentation": "<p>This field is no longer in use. Use SnsTopicARN.</p>"
3173                    }
3174                },
3175                "SnsTopicARN": {
3176                    "target": "com.amazonaws.cloudtrail#String",
3177                    "traits": {
3178                        "smithy.api#documentation": "<p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications\n         when log files are delivered. The format of a topic ARN is:</p>\n         <p>\n            <code>arn:aws:sns:us-east-2:123456789012:MyTopic</code>\n         </p>"
3179                    }
3180                },
3181                "IncludeGlobalServiceEvents": {
3182                    "target": "com.amazonaws.cloudtrail#Boolean",
3183                    "traits": {
3184                        "smithy.api#documentation": "<p>Specifies whether the trail is publishing events from global services such as IAM to the log files.</p>"
3185                    }
3186                },
3187                "IsMultiRegionTrail": {
3188                    "target": "com.amazonaws.cloudtrail#Boolean",
3189                    "traits": {
3190                        "smithy.api#documentation": "<p>Specifies whether the trail exists in one region or in all regions.</p>"
3191                    }
3192                },
3193                "TrailARN": {
3194                    "target": "com.amazonaws.cloudtrail#String",
3195                    "traits": {
3196                        "smithy.api#documentation": "<p>Specifies the ARN of the trail that was updated. The format of a trail ARN\n         is:</p>\n         <p>\n            <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>\n         </p>"
3197                    }
3198                },
3199                "LogFileValidationEnabled": {
3200                    "target": "com.amazonaws.cloudtrail#Boolean",
3201                    "traits": {
3202                        "smithy.api#documentation": "<p>Specifies whether log file integrity validation is enabled.</p>"
3203                    }
3204                },
3205                "CloudWatchLogsLogGroupArn": {
3206                    "target": "com.amazonaws.cloudtrail#String",
3207                    "traits": {
3208                        "smithy.api#documentation": "<p>Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.</p>"
3209                    }
3210                },
3211                "CloudWatchLogsRoleArn": {
3212                    "target": "com.amazonaws.cloudtrail#String",
3213                    "traits": {
3214                        "smithy.api#documentation": "<p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>"
3215                    }
3216                },
3217                "KmsKeyId": {
3218                    "target": "com.amazonaws.cloudtrail#String",
3219                    "traits": {
3220                        "smithy.api#documentation": "<p>Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:</p>\n      \n         <p>\n            <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>\n         </p>"
3221                    }
3222                },
3223                "IsOrganizationTrail": {
3224                    "target": "com.amazonaws.cloudtrail#Boolean",
3225                    "traits": {
3226                        "smithy.api#documentation": "<p>Specifies whether the trail is an organization trail.</p>"
3227                    }
3228                }
3229            },
3230            "traits": {
3231                "smithy.api#documentation": "<p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>"
3232            }
3233        }
3234    }
3235}
3236