@aws-sdk/client-cloudtrail 3.288.0 → 3.290.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-types/commands/AddTagsCommand.d.ts +82 -0
  2. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  3. package/dist-types/commands/CreateChannelCommand.d.ts +45 -0
  4. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +99 -0
  5. package/dist-types/commands/CreateTrailCommand.d.ts +137 -0
  6. package/dist-types/commands/DeleteChannelCommand.d.ts +14 -0
  7. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +46 -0
  8. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +24 -0
  9. package/dist-types/commands/DeleteTrailCommand.d.ts +71 -0
  10. package/dist-types/commands/DeregisterOrganizationDelegatedAdminCommand.d.ts +45 -0
  11. package/dist-types/commands/DescribeQueryCommand.d.ts +27 -0
  12. package/dist-types/commands/DescribeTrailsCommand.d.ts +34 -0
  13. package/dist-types/commands/GetChannelCommand.d.ts +14 -0
  14. package/dist-types/commands/GetEventDataStoreCommand.d.ts +21 -0
  15. package/dist-types/commands/GetEventSelectorsCommand.d.ts +51 -0
  16. package/dist-types/commands/GetImportCommand.d.ts +13 -0
  17. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +56 -0
  18. package/dist-types/commands/GetQueryResultsCommand.d.ts +38 -0
  19. package/dist-types/commands/GetResourcePolicyCommand.d.ts +24 -0
  20. package/dist-types/commands/GetTrailCommand.d.ts +47 -0
  21. package/dist-types/commands/GetTrailStatusCommand.d.ts +47 -0
  22. package/dist-types/commands/ListChannelsCommand.d.ts +11 -0
  23. package/dist-types/commands/ListEventDataStoresCommand.d.ts +18 -0
  24. package/dist-types/commands/ListImportFailuresCommand.d.ts +11 -0
  25. package/dist-types/commands/ListImportsCommand.d.ts +18 -0
  26. package/dist-types/commands/ListPublicKeysCommand.d.ts +14 -0
  27. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  28. package/dist-types/commands/ListTagsCommand.d.ts +63 -0
  29. package/dist-types/commands/ListTrailsCommand.d.ts +7 -0
  30. package/dist-types/commands/LookupEventsCommand.d.ts +25 -0
  31. package/dist-types/commands/PutEventSelectorsCommand.d.ts +95 -0
  32. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +80 -0
  33. package/dist-types/commands/PutResourcePolicyCommand.d.ts +42 -0
  34. package/dist-types/commands/RegisterOrganizationDelegatedAdminCommand.d.ts +54 -0
  35. package/dist-types/commands/RemoveTagsCommand.d.ts +72 -0
  36. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +50 -0
  37. package/dist-types/commands/StartImportCommand.d.ts +42 -0
  38. package/dist-types/commands/StartLoggingCommand.d.ts +71 -0
  39. package/dist-types/commands/StartQueryCommand.d.ts +49 -0
  40. package/dist-types/commands/StopImportCommand.d.ts +13 -0
  41. package/dist-types/commands/StopLoggingCommand.d.ts +71 -0
  42. package/dist-types/commands/UpdateChannelCommand.d.ts +36 -0
  43. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +97 -0
  44. package/dist-types/commands/UpdateTrailCommand.d.ts +177 -0
  45. package/package.json +29 -29
@@ -35,6 +35,45 @@ export interface ListQueriesCommandOutput extends ListQueriesResponse, __Metadat
35
35
  * @see {@link ListQueriesCommandOutput} for command's `response` shape.
36
36
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
37
37
  *
38
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
39
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
40
+ * in your account.</p>
41
+ *
42
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
43
+ * <p>The specified event data store was not found.</p>
44
+ *
45
+ * @throws {@link InactiveEventDataStoreException} (client fault)
46
+ * <p>The event data store is inactive.</p>
47
+ *
48
+ * @throws {@link InvalidDateRangeException} (client fault)
49
+ * <p>A date range for the query was specified that is not valid. Be sure that the start time
50
+ * is chronologically before the end time. For more information about writing a query, see
51
+ * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html">Create or edit a query</a> in the <i>CloudTrail User Guide</i>.</p>
52
+ *
53
+ * @throws {@link InvalidMaxResultsException} (client fault)
54
+ * <p>This exception is thrown if the limit specified is not valid.</p>
55
+ *
56
+ * @throws {@link InvalidNextTokenException} (client fault)
57
+ * <p>A token that is not valid, or a token that was previously used in a request with
58
+ * different parameters. This exception is thrown if the token is not valid.</p>
59
+ *
60
+ * @throws {@link InvalidParameterException} (client fault)
61
+ * <p>The request includes a parameter that is not valid.</p>
62
+ *
63
+ * @throws {@link InvalidQueryStatusException} (client fault)
64
+ * <p>The query status is not valid for the operation.</p>
65
+ *
66
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
67
+ * <p> This exception is thrown when the management account does not have a service-linked
68
+ * role. </p>
69
+ *
70
+ * @throws {@link OperationNotPermittedException} (client fault)
71
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
72
+ *
73
+ * @throws {@link UnsupportedOperationException} (client fault)
74
+ * <p>This exception is thrown when the requested operation is not supported.</p>
75
+ *
76
+ *
38
77
  */
39
78
  export declare class ListQueriesCommand extends $Command<ListQueriesCommandInput, ListQueriesCommandOutput, CloudTrailClientResolvedConfig> {
40
79
  readonly input: ListQueriesCommandInput;
@@ -29,6 +29,69 @@ export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBeare
29
29
  * @see {@link ListTagsCommandOutput} for command's `response` shape.
30
30
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
31
31
  *
32
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
33
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
34
+ * The following is the format of a trail ARN.</p>
35
+ * <p>
36
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
37
+ * </p>
38
+ * <p>This exception is also thrown when you call <code>AddTags</code> or <code>RemoveTags</code> on a trail, event data store, or channel with a resource ARN that is not valid.</p>
39
+ * <p>The following is the format of an event data store ARN:
40
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
41
+ * </p>
42
+ * <p>The following is the format of a channel ARN:
43
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
44
+ * </p>
45
+ *
46
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
47
+ * <p>The specified event data store was not found.</p>
48
+ *
49
+ * @throws {@link InactiveEventDataStoreException} (client fault)
50
+ * <p>The event data store is inactive.</p>
51
+ *
52
+ * @throws {@link InvalidTokenException} (client fault)
53
+ * <p>Reserved for future use.</p>
54
+ *
55
+ * @throws {@link InvalidTrailNameException} (client fault)
56
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
57
+ * meet the following requirements:</p>
58
+ * <ul>
59
+ * <li>
60
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
61
+ * (_), or dashes (-)</p>
62
+ * </li>
63
+ * <li>
64
+ * <p>Start with a letter or number, and end with a letter or number</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>Be between 3 and 128 characters</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>Have no adjacent periods, underscores or dashes. Names like
71
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
75
+ * </li>
76
+ * </ul>
77
+ *
78
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
79
+ * <p> This exception is thrown when the management account does not have a service-linked
80
+ * role. </p>
81
+ *
82
+ * @throws {@link OperationNotPermittedException} (client fault)
83
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
84
+ *
85
+ * @throws {@link ResourceNotFoundException} (client fault)
86
+ * <p>This exception is thrown when the specified resource is not found.</p>
87
+ *
88
+ * @throws {@link ResourceTypeNotSupportedException} (client fault)
89
+ * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
90
+ *
91
+ * @throws {@link UnsupportedOperationException} (client fault)
92
+ * <p>This exception is thrown when the requested operation is not supported.</p>
93
+ *
94
+ *
32
95
  */
33
96
  export declare class ListTagsCommand extends $Command<ListTagsCommandInput, ListTagsCommandOutput, CloudTrailClientResolvedConfig> {
34
97
  readonly input: ListTagsCommandInput;
@@ -29,6 +29,13 @@ export interface ListTrailsCommandOutput extends ListTrailsResponse, __MetadataB
29
29
  * @see {@link ListTrailsCommandOutput} for command's `response` shape.
30
30
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
31
31
  *
32
+ * @throws {@link OperationNotPermittedException} (client fault)
33
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
34
+ *
35
+ * @throws {@link UnsupportedOperationException} (client fault)
36
+ * <p>This exception is thrown when the requested operation is not supported.</p>
37
+ *
38
+ *
32
39
  */
33
40
  export declare class ListTrailsCommand extends $Command<ListTrailsCommandInput, ListTrailsCommandOutput, CloudTrailClientResolvedConfig> {
34
41
  readonly input: ListTrailsCommandInput;
@@ -76,6 +76,31 @@ export interface LookupEventsCommandOutput extends LookupEventsResponse, __Metad
76
76
  * @see {@link LookupEventsCommandOutput} for command's `response` shape.
77
77
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
78
78
  *
79
+ * @throws {@link InvalidEventCategoryException} (client fault)
80
+ * <p>Occurs if an event category that is not valid is specified as a value of
81
+ * <code>EventCategory</code>.</p>
82
+ *
83
+ * @throws {@link InvalidLookupAttributesException} (client fault)
84
+ * <p>Occurs when a lookup attribute is specified that is not valid.</p>
85
+ *
86
+ * @throws {@link InvalidMaxResultsException} (client fault)
87
+ * <p>This exception is thrown if the limit specified is not valid.</p>
88
+ *
89
+ * @throws {@link InvalidNextTokenException} (client fault)
90
+ * <p>A token that is not valid, or a token that was previously used in a request with
91
+ * different parameters. This exception is thrown if the token is not valid.</p>
92
+ *
93
+ * @throws {@link InvalidTimeRangeException} (client fault)
94
+ * <p>Occurs if the timestamp values are not valid. Either the start time occurs after the end
95
+ * time, or the time range is outside the range of possible values.</p>
96
+ *
97
+ * @throws {@link OperationNotPermittedException} (client fault)
98
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
99
+ *
100
+ * @throws {@link UnsupportedOperationException} (client fault)
101
+ * <p>This exception is thrown when the requested operation is not supported.</p>
102
+ *
103
+ *
79
104
  */
80
105
  export declare class LookupEventsCommand extends $Command<LookupEventsCommandInput, LookupEventsCommandOutput, CloudTrailClientResolvedConfig> {
81
106
  readonly input: LookupEventsCommandInput;
@@ -71,6 +71,101 @@ export interface PutEventSelectorsCommandOutput extends PutEventSelectorsRespons
71
71
  * @see {@link PutEventSelectorsCommandOutput} for command's `response` shape.
72
72
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
73
73
  *
74
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
75
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
76
+ * The following is the format of a trail ARN.</p>
77
+ * <p>
78
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
79
+ * </p>
80
+ * <p>This exception is also thrown when you call <code>AddTags</code> or <code>RemoveTags</code> on a trail, event data store, or channel with a resource ARN that is not valid.</p>
81
+ * <p>The following is the format of an event data store ARN:
82
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
83
+ * </p>
84
+ * <p>The following is the format of a channel ARN:
85
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
86
+ * </p>
87
+ *
88
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
89
+ * <p>This exception is thrown when the IAM user or role that is used to create
90
+ * the organization resource lacks one or more required permissions for creating an
91
+ * organization resource in a required service.</p>
92
+ *
93
+ * @throws {@link InvalidEventSelectorsException} (client fault)
94
+ * <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called
95
+ * with a number of event selectors, advanced event selectors, or data resources that is not
96
+ * valid. The combination of event selectors or advanced event selectors and data resources is
97
+ * not valid. A trail can have up to 5 event selectors. If a trail uses advanced event
98
+ * selectors, a maximum of 500 total values for all conditions in all advanced event selectors
99
+ * is allowed. A trail is limited to 250 data resources. These data resources can be
100
+ * distributed across event selectors, but the overall total cannot exceed 250.</p>
101
+ * <p>You can:</p>
102
+ * <ul>
103
+ * <li>
104
+ * <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
105
+ * </li>
106
+ * <li>
107
+ * <p>Specify a valid number of data resources (1 to 250) for an event selector. The
108
+ * limit of number of resources on an individual event selector is configurable up to
109
+ * 250. However, this upper limit is allowed only if the total number of data resources
110
+ * does not exceed 250 across all event selectors for a trail.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>Specify up to 500 values for all conditions in all advanced event selectors for a
114
+ * trail.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>Specify a valid value for a parameter. For example, specifying the
118
+ * <code>ReadWriteType</code> parameter with a value of <code>read-only</code> is not
119
+ * valid.</p>
120
+ * </li>
121
+ * </ul>
122
+ *
123
+ * @throws {@link InvalidHomeRegionException} (client fault)
124
+ * <p>This exception is thrown when an operation is called on a trail from a region other than
125
+ * the region in which the trail was created.</p>
126
+ *
127
+ * @throws {@link InvalidTrailNameException} (client fault)
128
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
129
+ * meet the following requirements:</p>
130
+ * <ul>
131
+ * <li>
132
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
133
+ * (_), or dashes (-)</p>
134
+ * </li>
135
+ * <li>
136
+ * <p>Start with a letter or number, and end with a letter or number</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>Be between 3 and 128 characters</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>Have no adjacent periods, underscores or dashes. Names like
143
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
144
+ * </li>
145
+ * <li>
146
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
147
+ * </li>
148
+ * </ul>
149
+ *
150
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
151
+ * <p> This exception is thrown when the management account does not have a service-linked
152
+ * role. </p>
153
+ *
154
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
155
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
156
+ * create or update an organization trail or event data store is not the management account
157
+ * for an organization in Organizations. For more information, see <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> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create an event data store</a>.</p>
158
+ *
159
+ * @throws {@link OperationNotPermittedException} (client fault)
160
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
161
+ *
162
+ * @throws {@link TrailNotFoundException} (client fault)
163
+ * <p>This exception is thrown when the trail with the given name is not found.</p>
164
+ *
165
+ * @throws {@link UnsupportedOperationException} (client fault)
166
+ * <p>This exception is thrown when the requested operation is not supported.</p>
167
+ *
168
+ *
74
169
  */
75
170
  export declare class PutEventSelectorsCommand extends $Command<PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
76
171
  readonly input: PutEventSelectorsCommandInput;
@@ -33,6 +33,86 @@ export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsRes
33
33
  * @see {@link PutInsightSelectorsCommandOutput} for command's `response` shape.
34
34
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
35
35
  *
36
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
37
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
38
+ * The following is the format of a trail ARN.</p>
39
+ * <p>
40
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
41
+ * </p>
42
+ * <p>This exception is also thrown when you call <code>AddTags</code> or <code>RemoveTags</code> on a trail, event data store, or channel with a resource ARN that is not valid.</p>
43
+ * <p>The following is the format of an event data store ARN:
44
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
45
+ * </p>
46
+ * <p>The following is the format of a channel ARN:
47
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
48
+ * </p>
49
+ *
50
+ * @throws {@link InsufficientEncryptionPolicyException} (client fault)
51
+ * <p>This exception is thrown when the policy on the S3 bucket or KMS key does
52
+ * not have sufficient permissions for the operation.</p>
53
+ *
54
+ * @throws {@link InsufficientS3BucketPolicyException} (client fault)
55
+ * <p>This exception is thrown when the policy on the S3 bucket is not sufficient.</p>
56
+ *
57
+ * @throws {@link InvalidHomeRegionException} (client fault)
58
+ * <p>This exception is thrown when an operation is called on a trail from a region other than
59
+ * the region in which the trail was created.</p>
60
+ *
61
+ * @throws {@link InvalidInsightSelectorsException} (client fault)
62
+ * <p>The formatting or syntax of the <code>InsightSelectors</code> JSON statement in your
63
+ * <code>PutInsightSelectors</code> or <code>GetInsightSelectors</code> request is not
64
+ * valid, or the specified insight type in the <code>InsightSelectors</code> statement is not
65
+ * a valid insight type.</p>
66
+ *
67
+ * @throws {@link InvalidTrailNameException} (client fault)
68
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
69
+ * meet the following requirements:</p>
70
+ * <ul>
71
+ * <li>
72
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
73
+ * (_), or dashes (-)</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>Start with a letter or number, and end with a letter or number</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>Be between 3 and 128 characters</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>Have no adjacent periods, underscores or dashes. Names like
83
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
87
+ * </li>
88
+ * </ul>
89
+ *
90
+ * @throws {@link KmsException} (client fault)
91
+ * <p>This exception is thrown when there is an issue with the specified KMS
92
+ * key and the trail or event data store can't be updated.</p>
93
+ *
94
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
95
+ * <p> This exception is thrown when the management account does not have a service-linked
96
+ * role. </p>
97
+ *
98
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
99
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
100
+ * create or update an organization trail or event data store is not the management account
101
+ * for an organization in Organizations. For more information, see <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> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create an event data store</a>.</p>
102
+ *
103
+ * @throws {@link OperationNotPermittedException} (client fault)
104
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
105
+ *
106
+ * @throws {@link S3BucketDoesNotExistException} (client fault)
107
+ * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
108
+ *
109
+ * @throws {@link TrailNotFoundException} (client fault)
110
+ * <p>This exception is thrown when the trail with the given name is not found.</p>
111
+ *
112
+ * @throws {@link UnsupportedOperationException} (client fault)
113
+ * <p>This exception is thrown when the requested operation is not supported.</p>
114
+ *
115
+ *
36
116
  */
37
117
  export declare class PutInsightSelectorsCommand extends $Command<PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
38
118
  readonly input: PutInsightSelectorsCommandInput;
@@ -33,6 +33,48 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyRespons
33
33
  * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
34
34
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
35
35
  *
36
+ * @throws {@link OperationNotPermittedException} (client fault)
37
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
38
+ *
39
+ * @throws {@link ResourceARNNotValidException} (client fault)
40
+ * <p>
41
+ * This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid. The following is the valid format for a resource ARN:
42
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>.
43
+ * </p>
44
+ *
45
+ * @throws {@link ResourceNotFoundException} (client fault)
46
+ * <p>This exception is thrown when the specified resource is not found.</p>
47
+ *
48
+ * @throws {@link ResourcePolicyNotValidException} (client fault)
49
+ * <p>
50
+ * This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.
51
+ * </p>
52
+ * <p>The following are requirements for the resource policy:</p>
53
+ * <ul>
54
+ * <li>
55
+ * <p>
56
+ * Contains only one action: cloudtrail-data:PutAuditEvents
57
+ * </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * Contains at least one statement. The policy can have a maximum of 20 statements.
62
+ * </p>
63
+ * </li>
64
+ * <li>
65
+ * <p>
66
+ * Each statement contains at least one principal. A statement can have a maximum of 50 principals.
67
+ * </p>
68
+ * </li>
69
+ * </ul>
70
+ *
71
+ * @throws {@link ResourceTypeNotSupportedException} (client fault)
72
+ * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
73
+ *
74
+ * @throws {@link UnsupportedOperationException} (client fault)
75
+ * <p>This exception is thrown when the requested operation is not supported.</p>
76
+ *
77
+ *
36
78
  */
37
79
  export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, CloudTrailClientResolvedConfig> {
38
80
  readonly input: PutResourcePolicyCommandInput;
@@ -30,6 +30,60 @@ export interface RegisterOrganizationDelegatedAdminCommandOutput extends Registe
30
30
  * @see {@link RegisterOrganizationDelegatedAdminCommandOutput} for command's `response` shape.
31
31
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
32
32
  *
33
+ * @throws {@link AccountNotFoundException} (client fault)
34
+ * <p>This exception is thrown when the specified account is not found or not part of an
35
+ * organization.</p>
36
+ *
37
+ * @throws {@link AccountRegisteredException} (client fault)
38
+ * <p>This exception is thrown when the account is already registered as the CloudTrail
39
+ * delegated administrator.</p>
40
+ *
41
+ * @throws {@link CannotDelegateManagementAccountException} (client fault)
42
+ * <p>This exception is thrown when the management account of an organization is registered as
43
+ * the CloudTrail delegated administrator.</p>
44
+ *
45
+ * @throws {@link CloudTrailAccessNotEnabledException} (client fault)
46
+ * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling Trusted Access with Other Amazon Web Services Services</a> 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>
47
+ *
48
+ * @throws {@link ConflictException} (client fault)
49
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
50
+ * can occur when you try to run an operation on a resource before CloudTrail has time
51
+ * to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the
52
+ * operation again.</p>
53
+ *
54
+ * @throws {@link DelegatedAdminAccountLimitExceededException} (client fault)
55
+ * <p>This exception is thrown when the maximum number of CloudTrail delegated
56
+ * administrators is reached.</p>
57
+ *
58
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
59
+ * <p>This exception is thrown when the IAM user or role that is used to create
60
+ * the organization resource lacks one or more required permissions for creating an
61
+ * organization resource in a required service.</p>
62
+ *
63
+ * @throws {@link InvalidParameterException} (client fault)
64
+ * <p>The request includes a parameter that is not valid.</p>
65
+ *
66
+ * @throws {@link NotOrganizationManagementAccountException} (client fault)
67
+ * <p> This exception is thrown when the account making the request is not the organization's
68
+ * management account. </p>
69
+ *
70
+ * @throws {@link OperationNotPermittedException} (client fault)
71
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
72
+ *
73
+ * @throws {@link OrganizationNotInAllFeaturesModeException} (client fault)
74
+ * <p>This exception is thrown when Organizations is not configured to support all
75
+ * features. All features must be enabled in Organizations to support creating an
76
+ * organization trail or event data store.</p>
77
+ *
78
+ * @throws {@link OrganizationsNotInUseException} (client fault)
79
+ * <p>This exception is thrown when the request is made from an Amazon Web Services account
80
+ * that is not a member of an organization. To make this request, sign in using the
81
+ * credentials of an account that belongs to an organization.</p>
82
+ *
83
+ * @throws {@link UnsupportedOperationException} (client fault)
84
+ * <p>This exception is thrown when the requested operation is not supported.</p>
85
+ *
86
+ *
33
87
  */
34
88
  export declare class RegisterOrganizationDelegatedAdminCommand extends $Command<RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput, CloudTrailClientResolvedConfig> {
35
89
  readonly input: RegisterOrganizationDelegatedAdminCommandInput;
@@ -29,6 +29,78 @@ export interface RemoveTagsCommandOutput extends RemoveTagsResponse, __MetadataB
29
29
  * @see {@link RemoveTagsCommandOutput} for command's `response` shape.
30
30
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
31
31
  *
32
+ * @throws {@link ChannelNotFoundException} (client fault)
33
+ * <p>This exception is thrown when CloudTrail cannot find the specified channel.</p>
34
+ *
35
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
36
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
37
+ * The following is the format of a trail ARN.</p>
38
+ * <p>
39
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
40
+ * </p>
41
+ * <p>This exception is also thrown when you call <code>AddTags</code> or <code>RemoveTags</code> on a trail, event data store, or channel with a resource ARN that is not valid.</p>
42
+ * <p>The following is the format of an event data store ARN:
43
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
44
+ * </p>
45
+ * <p>The following is the format of a channel ARN:
46
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
47
+ * </p>
48
+ *
49
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
50
+ * <p>The specified event data store was not found.</p>
51
+ *
52
+ * @throws {@link InactiveEventDataStoreException} (client fault)
53
+ * <p>The event data store is inactive.</p>
54
+ *
55
+ * @throws {@link InvalidTagParameterException} (client fault)
56
+ * <p>This exception is thrown when the specified tag key or values are not valid. It can also
57
+ * occur if there are duplicate tags or too many tags on the resource.</p>
58
+ *
59
+ * @throws {@link InvalidTrailNameException} (client fault)
60
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
61
+ * meet the following requirements:</p>
62
+ * <ul>
63
+ * <li>
64
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
65
+ * (_), or dashes (-)</p>
66
+ * </li>
67
+ * <li>
68
+ * <p>Start with a letter or number, and end with a letter or number</p>
69
+ * </li>
70
+ * <li>
71
+ * <p>Be between 3 and 128 characters</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>Have no adjacent periods, underscores or dashes. Names like
75
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
79
+ * </li>
80
+ * </ul>
81
+ *
82
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
83
+ * <p> This exception is thrown when the management account does not have a service-linked
84
+ * role. </p>
85
+ *
86
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
87
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
88
+ * create or update an organization trail or event data store is not the management account
89
+ * for an organization in Organizations. For more information, see <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> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create an event data store</a>.</p>
90
+ *
91
+ * @throws {@link OperationNotPermittedException} (client fault)
92
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
93
+ *
94
+ * @throws {@link ResourceNotFoundException} (client fault)
95
+ * <p>This exception is thrown when the specified resource is not found.</p>
96
+ *
97
+ * @throws {@link ResourceTypeNotSupportedException} (client fault)
98
+ * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
99
+ *
100
+ * @throws {@link UnsupportedOperationException} (client fault)
101
+ * <p>This exception is thrown when the requested operation is not supported.</p>
102
+ *
103
+ *
32
104
  */
33
105
  export declare class RemoveTagsCommand extends $Command<RemoveTagsCommandInput, RemoveTagsCommandOutput, CloudTrailClientResolvedConfig> {
34
106
  readonly input: RemoveTagsCommandInput;
@@ -32,6 +32,56 @@ export interface RestoreEventDataStoreCommandOutput extends RestoreEventDataStor
32
32
  * @see {@link RestoreEventDataStoreCommandOutput} for command's `response` shape.
33
33
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
34
34
  *
35
+ * @throws {@link CloudTrailAccessNotEnabledException} (client fault)
36
+ * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html">Enabling Trusted Access with Other Amazon Web Services Services</a> 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>
37
+ *
38
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
39
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
40
+ * in your account.</p>
41
+ *
42
+ * @throws {@link EventDataStoreMaxLimitExceededException} (client fault)
43
+ * <p>Your account has used the maximum number of event data stores.</p>
44
+ *
45
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
46
+ * <p>The specified event data store was not found.</p>
47
+ *
48
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
49
+ * <p>This exception is thrown when the IAM user or role that is used to create
50
+ * the organization resource lacks one or more required permissions for creating an
51
+ * organization resource in a required service.</p>
52
+ *
53
+ * @throws {@link InvalidEventDataStoreStatusException} (client fault)
54
+ * <p>The event data store is not in a status that supports the operation.</p>
55
+ *
56
+ * @throws {@link InvalidParameterException} (client fault)
57
+ * <p>The request includes a parameter that is not valid.</p>
58
+ *
59
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
60
+ * <p> This exception is thrown when the management account does not have a service-linked
61
+ * role. </p>
62
+ *
63
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
64
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
65
+ * create or update an organization trail or event data store is not the management account
66
+ * for an organization in Organizations. For more information, see <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> or <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html">Create an event data store</a>.</p>
67
+ *
68
+ * @throws {@link OperationNotPermittedException} (client fault)
69
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
70
+ *
71
+ * @throws {@link OrganizationNotInAllFeaturesModeException} (client fault)
72
+ * <p>This exception is thrown when Organizations is not configured to support all
73
+ * features. All features must be enabled in Organizations to support creating an
74
+ * organization trail or event data store.</p>
75
+ *
76
+ * @throws {@link OrganizationsNotInUseException} (client fault)
77
+ * <p>This exception is thrown when the request is made from an Amazon Web Services account
78
+ * that is not a member of an organization. To make this request, sign in using the
79
+ * credentials of an account that belongs to an organization.</p>
80
+ *
81
+ * @throws {@link UnsupportedOperationException} (client fault)
82
+ * <p>This exception is thrown when the requested operation is not supported.</p>
83
+ *
84
+ *
35
85
  */
36
86
  export declare class RestoreEventDataStoreCommand extends $Command<RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
37
87
  readonly input: RestoreEventDataStoreCommandInput;
@@ -45,6 +45,48 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
45
45
  * @see {@link StartImportCommandOutput} for command's `response` shape.
46
46
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
47
47
  *
48
+ * @throws {@link AccountHasOngoingImportException} (client fault)
49
+ * <p> This exception is thrown when you start a new import and a previous import is still in
50
+ * progress. </p>
51
+ *
52
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
53
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
54
+ * in your account.</p>
55
+ *
56
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
57
+ * <p>The specified event data store was not found.</p>
58
+ *
59
+ * @throws {@link ImportNotFoundException} (client fault)
60
+ * <p> The specified import was not found. </p>
61
+ *
62
+ * @throws {@link InactiveEventDataStoreException} (client fault)
63
+ * <p>The event data store is inactive.</p>
64
+ *
65
+ * @throws {@link InsufficientEncryptionPolicyException} (client fault)
66
+ * <p>This exception is thrown when the policy on the S3 bucket or KMS key does
67
+ * not have sufficient permissions for the operation.</p>
68
+ *
69
+ * @throws {@link InvalidEventDataStoreCategoryException} (client fault)
70
+ * <p>This exception is thrown when event categories of specified event data stores are not
71
+ * valid.</p>
72
+ *
73
+ * @throws {@link InvalidEventDataStoreStatusException} (client fault)
74
+ * <p>The event data store is not in a status that supports the operation.</p>
75
+ *
76
+ * @throws {@link InvalidImportSourceException} (client fault)
77
+ * <p> This exception is thrown when the provided source S3 bucket is not valid for import.
78
+ * </p>
79
+ *
80
+ * @throws {@link InvalidParameterException} (client fault)
81
+ * <p>The request includes a parameter that is not valid.</p>
82
+ *
83
+ * @throws {@link OperationNotPermittedException} (client fault)
84
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
85
+ *
86
+ * @throws {@link UnsupportedOperationException} (client fault)
87
+ * <p>This exception is thrown when the requested operation is not supported.</p>
88
+ *
89
+ *
48
90
  */
49
91
  export declare class StartImportCommand extends $Command<StartImportCommandInput, StartImportCommandOutput, CloudTrailClientResolvedConfig> {
50
92
  readonly input: StartImportCommandInput;