@aws-sdk/client-cloudtrail 3.289.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,88 @@ export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer
35
35
  * @see {@link AddTagsCommandOutput} for command's `response` shape.
36
36
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
37
37
  *
38
+ * @throws {@link ChannelNotFoundException} (client fault)
39
+ * <p>This exception is thrown when CloudTrail cannot find the specified channel.</p>
40
+ *
41
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
42
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
43
+ * The following is the format of a trail ARN.</p>
44
+ * <p>
45
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
46
+ * </p>
47
+ * <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>
48
+ * <p>The following is the format of an event data store ARN:
49
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
50
+ * </p>
51
+ * <p>The following is the format of a channel ARN:
52
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
53
+ * </p>
54
+ *
55
+ * @throws {@link ConflictException} (client fault)
56
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
57
+ * can occur when you try to run an operation on a resource before CloudTrail has time
58
+ * 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
59
+ * operation again.</p>
60
+ *
61
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
62
+ * <p>The specified event data store was not found.</p>
63
+ *
64
+ * @throws {@link InactiveEventDataStoreException} (client fault)
65
+ * <p>The event data store is inactive.</p>
66
+ *
67
+ * @throws {@link InvalidTagParameterException} (client fault)
68
+ * <p>This exception is thrown when the specified tag key or values are not valid. It can also
69
+ * occur if there are duplicate tags or too many tags on the resource.</p>
70
+ *
71
+ * @throws {@link InvalidTrailNameException} (client fault)
72
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
73
+ * meet the following requirements:</p>
74
+ * <ul>
75
+ * <li>
76
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
77
+ * (_), or dashes (-)</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>Start with a letter or number, and end with a letter or number</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>Be between 3 and 128 characters</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>Have no adjacent periods, underscores or dashes. Names like
87
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
91
+ * </li>
92
+ * </ul>
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 ResourceNotFoundException} (client fault)
107
+ * <p>This exception is thrown when the specified resource is not found.</p>
108
+ *
109
+ * @throws {@link ResourceTypeNotSupportedException} (client fault)
110
+ * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
111
+ *
112
+ * @throws {@link TagsLimitExceededException} (client fault)
113
+ * <p>The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is
114
+ * 50.</p>
115
+ *
116
+ * @throws {@link UnsupportedOperationException} (client fault)
117
+ * <p>This exception is thrown when the requested operation is not supported.</p>
118
+ *
119
+ *
38
120
  */
39
121
  export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, CloudTrailClientResolvedConfig> {
40
122
  readonly input: AddTagsCommandInput;
@@ -34,6 +34,43 @@ export interface CancelQueryCommandOutput extends CancelQueryResponse, __Metadat
34
34
  * @see {@link CancelQueryCommandOutput} for command's `response` shape.
35
35
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
36
36
  *
37
+ * @throws {@link ConflictException} (client fault)
38
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
39
+ * can occur when you try to run an operation on a resource before CloudTrail has time
40
+ * 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
41
+ * operation again.</p>
42
+ *
43
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
44
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
45
+ * in your account.</p>
46
+ *
47
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
48
+ * <p>The specified event data store was not found.</p>
49
+ *
50
+ * @throws {@link InactiveEventDataStoreException} (client fault)
51
+ * <p>The event data store is inactive.</p>
52
+ *
53
+ * @throws {@link InactiveQueryException} (client fault)
54
+ * <p>The specified query cannot be canceled because it is in the <code>FINISHED</code>,
55
+ * <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code> state.</p>
56
+ *
57
+ * @throws {@link InvalidParameterException} (client fault)
58
+ * <p>The request includes a parameter that is not valid.</p>
59
+ *
60
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
61
+ * <p> This exception is thrown when the management account does not have a service-linked
62
+ * role. </p>
63
+ *
64
+ * @throws {@link OperationNotPermittedException} (client fault)
65
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
66
+ *
67
+ * @throws {@link QueryIdNotFoundException} (client fault)
68
+ * <p>The query ID does not exist or does not map to a query.</p>
69
+ *
70
+ * @throws {@link UnsupportedOperationException} (client fault)
71
+ * <p>This exception is thrown when the requested operation is not supported.</p>
72
+ *
73
+ *
37
74
  */
38
75
  export declare class CancelQueryCommand extends $Command<CancelQueryCommandInput, CancelQueryCommandOutput, CloudTrailClientResolvedConfig> {
39
76
  readonly input: CancelQueryCommandInput;
@@ -31,6 +31,51 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
31
31
  * @see {@link CreateChannelCommandOutput} for command's `response` shape.
32
32
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
33
33
  *
34
+ * @throws {@link ChannelAlreadyExistsException} (client fault)
35
+ * <p>
36
+ * This exception is thrown when the provided channel already exists.
37
+ * </p>
38
+ *
39
+ * @throws {@link ChannelMaxLimitExceededException} (client fault)
40
+ * <p>
41
+ * This exception is thrown when the maximum number of channels limit is exceeded.
42
+ * </p>
43
+ *
44
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
45
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
46
+ * in your account.</p>
47
+ *
48
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
49
+ * <p>The specified event data store was not found.</p>
50
+ *
51
+ * @throws {@link InactiveEventDataStoreException} (client fault)
52
+ * <p>The event data store is inactive.</p>
53
+ *
54
+ * @throws {@link InvalidEventDataStoreCategoryException} (client fault)
55
+ * <p>This exception is thrown when event categories of specified event data stores are not
56
+ * valid.</p>
57
+ *
58
+ * @throws {@link InvalidParameterException} (client fault)
59
+ * <p>The request includes a parameter that is not valid.</p>
60
+ *
61
+ * @throws {@link InvalidSourceException} (client fault)
62
+ * <p>This exception is thrown when the specified value of <code>Source</code> is not valid.</p>
63
+ *
64
+ * @throws {@link InvalidTagParameterException} (client fault)
65
+ * <p>This exception is thrown when the specified tag key or values are not valid. It can also
66
+ * occur if there are duplicate tags or too many tags on the resource.</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 TagsLimitExceededException} (client fault)
72
+ * <p>The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is
73
+ * 50.</p>
74
+ *
75
+ * @throws {@link UnsupportedOperationException} (client fault)
76
+ * <p>This exception is thrown when the requested operation is not supported.</p>
77
+ *
78
+ *
34
79
  */
35
80
  export declare class CreateChannelCommand extends $Command<CreateChannelCommandInput, CreateChannelCommandOutput, CloudTrailClientResolvedConfig> {
36
81
  readonly input: CreateChannelCommandInput;
@@ -29,6 +29,105 @@ export interface CreateEventDataStoreCommandOutput extends CreateEventDataStoreR
29
29
  * @see {@link CreateEventDataStoreCommandOutput} for command's `response` shape.
30
30
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
31
31
  *
32
+ * @throws {@link CloudTrailAccessNotEnabledException} (client fault)
33
+ * <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>
34
+ *
35
+ * @throws {@link ConflictException} (client fault)
36
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
37
+ * can occur when you try to run an operation on a resource before CloudTrail has time
38
+ * 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
39
+ * operation again.</p>
40
+ *
41
+ * @throws {@link EventDataStoreAlreadyExistsException} (client fault)
42
+ * <p>An event data store with that name already exists.</p>
43
+ *
44
+ * @throws {@link EventDataStoreMaxLimitExceededException} (client fault)
45
+ * <p>Your account has used the maximum number of event data stores.</p>
46
+ *
47
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
48
+ * <p>This exception is thrown when the IAM user or role that is used to create
49
+ * the organization resource lacks one or more required permissions for creating an
50
+ * organization resource in a required service.</p>
51
+ *
52
+ * @throws {@link InsufficientEncryptionPolicyException} (client fault)
53
+ * <p>This exception is thrown when the policy on the S3 bucket or KMS key does
54
+ * not have sufficient permissions for the operation.</p>
55
+ *
56
+ * @throws {@link InvalidEventSelectorsException} (client fault)
57
+ * <p>This exception is thrown when the <code>PutEventSelectors</code> operation is called
58
+ * with a number of event selectors, advanced event selectors, or data resources that is not
59
+ * valid. The combination of event selectors or advanced event selectors and data resources is
60
+ * not valid. A trail can have up to 5 event selectors. If a trail uses advanced event
61
+ * selectors, a maximum of 500 total values for all conditions in all advanced event selectors
62
+ * is allowed. A trail is limited to 250 data resources. These data resources can be
63
+ * distributed across event selectors, but the overall total cannot exceed 250.</p>
64
+ * <p>You can:</p>
65
+ * <ul>
66
+ * <li>
67
+ * <p>Specify a valid number of event selectors (1 to 5) for a trail.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>Specify a valid number of data resources (1 to 250) for an event selector. The
71
+ * limit of number of resources on an individual event selector is configurable up to
72
+ * 250. However, this upper limit is allowed only if the total number of data resources
73
+ * does not exceed 250 across all event selectors for a trail.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>Specify up to 500 values for all conditions in all advanced event selectors for a
77
+ * trail.</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>Specify a valid value for a parameter. For example, specifying the
81
+ * <code>ReadWriteType</code> parameter with a value of <code>read-only</code> is not
82
+ * valid.</p>
83
+ * </li>
84
+ * </ul>
85
+ *
86
+ * @throws {@link InvalidKmsKeyIdException} (client fault)
87
+ * <p>This exception is thrown when the KMS key ARN is not valid.</p>
88
+ *
89
+ * @throws {@link InvalidParameterException} (client fault)
90
+ * <p>The request includes a parameter that is not valid.</p>
91
+ *
92
+ * @throws {@link InvalidTagParameterException} (client fault)
93
+ * <p>This exception is thrown when the specified tag key or values are not valid. It can also
94
+ * occur if there are duplicate tags or too many tags on the resource.</p>
95
+ *
96
+ * @throws {@link KmsException} (client fault)
97
+ * <p>This exception is thrown when there is an issue with the specified KMS
98
+ * key and the trail or event data store can't be updated.</p>
99
+ *
100
+ * @throws {@link KmsKeyNotFoundException} (client fault)
101
+ * <p>This exception is thrown when the KMS key does not exist, when the S3
102
+ * bucket and the KMS key are not in the same region, or when the KMS key associated with the Amazon SNS topic either does not exist or is
103
+ * not in the same region.</p>
104
+ *
105
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
106
+ * <p> This exception is thrown when the management account does not have a service-linked
107
+ * role. </p>
108
+ *
109
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
110
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
111
+ * create or update an organization trail or event data store is not the management account
112
+ * 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>
113
+ *
114
+ * @throws {@link OperationNotPermittedException} (client fault)
115
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
116
+ *
117
+ * @throws {@link OrganizationNotInAllFeaturesModeException} (client fault)
118
+ * <p>This exception is thrown when Organizations is not configured to support all
119
+ * features. All features must be enabled in Organizations to support creating an
120
+ * organization trail or event data store.</p>
121
+ *
122
+ * @throws {@link OrganizationsNotInUseException} (client fault)
123
+ * <p>This exception is thrown when the request is made from an Amazon Web Services account
124
+ * that is not a member of an organization. To make this request, sign in using the
125
+ * credentials of an account that belongs to an organization.</p>
126
+ *
127
+ * @throws {@link UnsupportedOperationException} (client fault)
128
+ * <p>This exception is thrown when the requested operation is not supported.</p>
129
+ *
130
+ *
32
131
  */
33
132
  export declare class CreateEventDataStoreCommand extends $Command<CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
34
133
  readonly input: CreateEventDataStoreCommandInput;
@@ -30,6 +30,143 @@ export interface CreateTrailCommandOutput extends CreateTrailResponse, __Metadat
30
30
  * @see {@link CreateTrailCommandOutput} for command's `response` shape.
31
31
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
32
32
  *
33
+ * @throws {@link CloudTrailAccessNotEnabledException} (client fault)
34
+ * <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>
35
+ *
36
+ * @throws {@link CloudTrailInvalidClientTokenIdException} (client fault)
37
+ * <p>This exception is thrown when a call results in the <code>InvalidClientTokenId</code>
38
+ * error code. This can occur when you are creating or updating a trail to send notifications
39
+ * to an Amazon SNS topic that is in a suspended Amazon Web Services account.</p>
40
+ *
41
+ * @throws {@link CloudWatchLogsDeliveryUnavailableException} (client fault)
42
+ * <p>Cannot set a CloudWatch Logs delivery for this region.</p>
43
+ *
44
+ * @throws {@link ConflictException} (client fault)
45
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
46
+ * can occur when you try to run an operation on a resource before CloudTrail has time
47
+ * 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
48
+ * operation again.</p>
49
+ *
50
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
51
+ * <p>This exception is thrown when the IAM user or role that is used to create
52
+ * the organization resource lacks one or more required permissions for creating an
53
+ * organization resource in a required service.</p>
54
+ *
55
+ * @throws {@link InsufficientEncryptionPolicyException} (client fault)
56
+ * <p>This exception is thrown when the policy on the S3 bucket or KMS key does
57
+ * not have sufficient permissions for the operation.</p>
58
+ *
59
+ * @throws {@link InsufficientS3BucketPolicyException} (client fault)
60
+ * <p>This exception is thrown when the policy on the S3 bucket is not sufficient.</p>
61
+ *
62
+ * @throws {@link InsufficientSnsTopicPolicyException} (client fault)
63
+ * <p>This exception is thrown when the policy on the Amazon SNS topic is not
64
+ * sufficient.</p>
65
+ *
66
+ * @throws {@link InvalidCloudWatchLogsLogGroupArnException} (client fault)
67
+ * <p>This exception is thrown when the provided CloudWatch Logs log group is not
68
+ * valid.</p>
69
+ *
70
+ * @throws {@link InvalidCloudWatchLogsRoleArnException} (client fault)
71
+ * <p>This exception is thrown when the provided role is not valid.</p>
72
+ *
73
+ * @throws {@link InvalidKmsKeyIdException} (client fault)
74
+ * <p>This exception is thrown when the KMS key ARN is not valid.</p>
75
+ *
76
+ * @throws {@link InvalidParameterCombinationException} (client fault)
77
+ * <p>This exception is thrown when the combination of parameters provided is not
78
+ * valid.</p>
79
+ *
80
+ * @throws {@link InvalidS3BucketNameException} (client fault)
81
+ * <p>This exception is thrown when the provided S3 bucket name is not valid.</p>
82
+ *
83
+ * @throws {@link InvalidS3PrefixException} (client fault)
84
+ * <p>This exception is thrown when the provided S3 prefix is not valid.</p>
85
+ *
86
+ * @throws {@link InvalidSnsTopicNameException} (client fault)
87
+ * <p>This exception is thrown when the provided SNS topic name is not valid.</p>
88
+ *
89
+ * @throws {@link InvalidTagParameterException} (client fault)
90
+ * <p>This exception is thrown when the specified tag key or values are not valid. It can also
91
+ * occur if there are duplicate tags or too many tags on the resource.</p>
92
+ *
93
+ * @throws {@link InvalidTrailNameException} (client fault)
94
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
95
+ * meet the following requirements:</p>
96
+ * <ul>
97
+ * <li>
98
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
99
+ * (_), or dashes (-)</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>Start with a letter or number, and end with a letter or number</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>Be between 3 and 128 characters</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>Have no adjacent periods, underscores or dashes. Names like
109
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
113
+ * </li>
114
+ * </ul>
115
+ *
116
+ * @throws {@link KmsException} (client fault)
117
+ * <p>This exception is thrown when there is an issue with the specified KMS
118
+ * key and the trail or event data store can't be updated.</p>
119
+ *
120
+ * @throws {@link KmsKeyDisabledException} (client fault)
121
+ * <p>This exception is no longer in use.</p>
122
+ *
123
+ * @throws {@link KmsKeyNotFoundException} (client fault)
124
+ * <p>This exception is thrown when the KMS key does not exist, when the S3
125
+ * bucket and the KMS key are not in the same region, or when the KMS key associated with the Amazon SNS topic either does not exist or is
126
+ * not in the same region.</p>
127
+ *
128
+ * @throws {@link MaximumNumberOfTrailsExceededException} (client fault)
129
+ * <p>This exception is thrown when the maximum number of trails is reached.</p>
130
+ *
131
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
132
+ * <p> This exception is thrown when the management account does not have a service-linked
133
+ * role. </p>
134
+ *
135
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
136
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
137
+ * create or update an organization trail or event data store is not the management account
138
+ * 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>
139
+ *
140
+ * @throws {@link OperationNotPermittedException} (client fault)
141
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
142
+ *
143
+ * @throws {@link OrganizationNotInAllFeaturesModeException} (client fault)
144
+ * <p>This exception is thrown when Organizations is not configured to support all
145
+ * features. All features must be enabled in Organizations to support creating an
146
+ * organization trail or event data store.</p>
147
+ *
148
+ * @throws {@link OrganizationsNotInUseException} (client fault)
149
+ * <p>This exception is thrown when the request is made from an Amazon Web Services account
150
+ * that is not a member of an organization. To make this request, sign in using the
151
+ * credentials of an account that belongs to an organization.</p>
152
+ *
153
+ * @throws {@link S3BucketDoesNotExistException} (client fault)
154
+ * <p>This exception is thrown when the specified S3 bucket does not exist.</p>
155
+ *
156
+ * @throws {@link TagsLimitExceededException} (client fault)
157
+ * <p>The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is
158
+ * 50.</p>
159
+ *
160
+ * @throws {@link TrailAlreadyExistsException} (client fault)
161
+ * <p>This exception is thrown when the specified trail already exists.</p>
162
+ *
163
+ * @throws {@link TrailNotProvidedException} (client fault)
164
+ * <p>This exception is no longer in use.</p>
165
+ *
166
+ * @throws {@link UnsupportedOperationException} (client fault)
167
+ * <p>This exception is thrown when the requested operation is not supported.</p>
168
+ *
169
+ *
33
170
  */
34
171
  export declare class CreateTrailCommand extends $Command<CreateTrailCommandInput, CreateTrailCommandOutput, CloudTrailClientResolvedConfig> {
35
172
  readonly input: CreateTrailCommandInput;
@@ -29,6 +29,20 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
29
29
  * @see {@link DeleteChannelCommandOutput} for command's `response` shape.
30
30
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
31
31
  *
32
+ * @throws {@link ChannelARNInvalidException} (client fault)
33
+ * <p>This exception is thrown when the specified value of <code>ChannelARN</code> is not
34
+ * valid.</p>
35
+ *
36
+ * @throws {@link ChannelNotFoundException} (client fault)
37
+ * <p>This exception is thrown when CloudTrail cannot find the specified channel.</p>
38
+ *
39
+ * @throws {@link OperationNotPermittedException} (client fault)
40
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
41
+ *
42
+ * @throws {@link UnsupportedOperationException} (client fault)
43
+ * <p>This exception is thrown when the requested operation is not supported.</p>
44
+ *
45
+ *
32
46
  */
33
47
  export declare class DeleteChannelCommand extends $Command<DeleteChannelCommandInput, DeleteChannelCommandOutput, CloudTrailClientResolvedConfig> {
34
48
  readonly input: DeleteChannelCommandInput;
@@ -38,6 +38,52 @@ export interface DeleteEventDataStoreCommandOutput extends DeleteEventDataStoreR
38
38
  * @see {@link DeleteEventDataStoreCommandOutput} for command's `response` shape.
39
39
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
40
40
  *
41
+ * @throws {@link ChannelExistsForEDSException} (client fault)
42
+ * <p>This exception is thrown when the specified event data store cannot yet be deleted because it
43
+ * is in use by a channel.</p>
44
+ *
45
+ * @throws {@link EventDataStoreARNInvalidException} (client fault)
46
+ * <p>The specified event data store ARN is not valid or does not map to an event data store
47
+ * in your account.</p>
48
+ *
49
+ * @throws {@link EventDataStoreHasOngoingImportException} (client fault)
50
+ * <p> This exception is thrown when you try to update or delete an event data store that
51
+ * currently has an import in progress. </p>
52
+ *
53
+ * @throws {@link EventDataStoreNotFoundException} (client fault)
54
+ * <p>The specified event data store was not found.</p>
55
+ *
56
+ * @throws {@link EventDataStoreTerminationProtectedException} (client fault)
57
+ * <p>The event data store cannot be deleted because termination protection is enabled for
58
+ * it.</p>
59
+ *
60
+ * @throws {@link InactiveEventDataStoreException} (client fault)
61
+ * <p>The event data store is inactive.</p>
62
+ *
63
+ * @throws {@link InsufficientDependencyServiceAccessPermissionException} (client fault)
64
+ * <p>This exception is thrown when the IAM user or role that is used to create
65
+ * the organization resource lacks one or more required permissions for creating an
66
+ * organization resource in a required service.</p>
67
+ *
68
+ * @throws {@link InvalidParameterException} (client fault)
69
+ * <p>The request includes a parameter that is not valid.</p>
70
+ *
71
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
72
+ * <p> This exception is thrown when the management account does not have a service-linked
73
+ * role. </p>
74
+ *
75
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
76
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
77
+ * create or update an organization trail or event data store is not the management account
78
+ * 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>
79
+ *
80
+ * @throws {@link OperationNotPermittedException} (client fault)
81
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
82
+ *
83
+ * @throws {@link UnsupportedOperationException} (client fault)
84
+ * <p>This exception is thrown when the requested operation is not supported.</p>
85
+ *
86
+ *
41
87
  */
42
88
  export declare class DeleteEventDataStoreCommand extends $Command<DeleteEventDataStoreCommandInput, DeleteEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
43
89
  readonly input: DeleteEventDataStoreCommandInput;
@@ -31,6 +31,30 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
31
31
  * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
32
32
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
33
33
  *
34
+ * @throws {@link OperationNotPermittedException} (client fault)
35
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
36
+ *
37
+ * @throws {@link ResourceARNNotValidException} (client fault)
38
+ * <p>
39
+ * 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:
40
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>.
41
+ * </p>
42
+ *
43
+ * @throws {@link ResourceNotFoundException} (client fault)
44
+ * <p>This exception is thrown when the specified resource is not found.</p>
45
+ *
46
+ * @throws {@link ResourcePolicyNotFoundException} (client fault)
47
+ * <p>
48
+ * This exception is thrown when the specified resource policy is not found.
49
+ * </p>
50
+ *
51
+ * @throws {@link ResourceTypeNotSupportedException} (client fault)
52
+ * <p>This exception is thrown when the specified resource type is not supported by CloudTrail.</p>
53
+ *
54
+ * @throws {@link UnsupportedOperationException} (client fault)
55
+ * <p>This exception is thrown when the requested operation is not supported.</p>
56
+ *
57
+ *
34
58
  */
35
59
  export declare class DeleteResourcePolicyCommand extends $Command<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, CloudTrailClientResolvedConfig> {
36
60
  readonly input: DeleteResourcePolicyCommandInput;
@@ -31,6 +31,77 @@ export interface DeleteTrailCommandOutput extends DeleteTrailResponse, __Metadat
31
31
  * @see {@link DeleteTrailCommandOutput} for command's `response` shape.
32
32
  * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
33
33
  *
34
+ * @throws {@link CloudTrailARNInvalidException} (client fault)
35
+ * <p>This exception is thrown when an operation is called with a trail ARN that is not valid.
36
+ * The following is the format of a trail ARN.</p>
37
+ * <p>
38
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>
39
+ * </p>
40
+ * <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>
41
+ * <p>The following is the format of an event data store ARN:
42
+ * <code>arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE</code>
43
+ * </p>
44
+ * <p>The following is the format of a channel ARN:
45
+ * <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890</code>
46
+ * </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 InsufficientDependencyServiceAccessPermissionException} (client fault)
55
+ * <p>This exception is thrown when the IAM user or role that is used to create
56
+ * the organization resource lacks one or more required permissions for creating an
57
+ * organization resource in a required service.</p>
58
+ *
59
+ * @throws {@link InvalidHomeRegionException} (client fault)
60
+ * <p>This exception is thrown when an operation is called on a trail from a region other than
61
+ * the region in which the trail was created.</p>
62
+ *
63
+ * @throws {@link InvalidTrailNameException} (client fault)
64
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
65
+ * meet the following requirements:</p>
66
+ * <ul>
67
+ * <li>
68
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
69
+ * (_), or dashes (-)</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>Start with a letter or number, and end with a letter or number</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>Be between 3 and 128 characters</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>Have no adjacent periods, underscores or dashes. Names like
79
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
80
+ * </li>
81
+ * <li>
82
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
83
+ * </li>
84
+ * </ul>
85
+ *
86
+ * @throws {@link NoManagementAccountSLRExistsException} (client fault)
87
+ * <p> This exception is thrown when the management account does not have a service-linked
88
+ * role. </p>
89
+ *
90
+ * @throws {@link NotOrganizationMasterAccountException} (client fault)
91
+ * <p>This exception is thrown when the Amazon Web Services account making the request to
92
+ * create or update an organization trail or event data store is not the management account
93
+ * 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>
94
+ *
95
+ * @throws {@link OperationNotPermittedException} (client fault)
96
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
97
+ *
98
+ * @throws {@link TrailNotFoundException} (client fault)
99
+ * <p>This exception is thrown when the trail with the given name is not found.</p>
100
+ *
101
+ * @throws {@link UnsupportedOperationException} (client fault)
102
+ * <p>This exception is thrown when the requested operation is not supported.</p>
103
+ *
104
+ *
34
105
  */
35
106
  export declare class DeleteTrailCommand extends $Command<DeleteTrailCommandInput, DeleteTrailCommandOutput, CloudTrailClientResolvedConfig> {
36
107
  readonly input: DeleteTrailCommandInput;