Class CloudTrailException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\CloudTrail\Exception\CloudTrailException
- Namespace: Aws\CloudTrail\Exception
- Located at CloudTrail/Exception/CloudTrailException.php
Represents an error interacting with the AWS CloudTrail service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AccountHasOngoingImportException
[ ]
Description
This exception is thrown when you start a new import and a previous import is still in progress.
Members
AccountNotFoundException
[ ]
Description
This exception is thrown when the specified account is not found or not part of an organization.
Members
AccountNotRegisteredException
[ ]
Description
This exception is thrown when the specified account is not registered as the CloudTrail delegated administrator.
Members
AccountRegisteredException
[ ]
Description
This exception is thrown when the account is already registered as the CloudTrail delegated administrator.
Members
CannotDelegateManagementAccountException
[ ]
Description
This exception is thrown when the management account of an organization is registered as the CloudTrail delegated administrator.
Members
ChannelARNInvalidException
[ ]
Description
This exception is thrown when the specified value of ChannelARN
is not valid.
Members
ChannelAlreadyExistsException
[ ]
Description
This exception is thrown when the provided channel already exists.
Members
ChannelExistsForEDSException
[ ]
Description
This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel.
Members
ChannelMaxLimitExceededException
[ ]
Description
This exception is thrown when the maximum number of channels limit is exceeded.
Members
ChannelNotFoundException
[ ]
Description
This exception is thrown when CloudTrail cannot find the specified channel.
Members
CloudTrailARNInvalidException
[ ]
Description
This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
This exception is also thrown when you call AddTags
or RemoveTags
on a trail, event data store, or channel with a resource ARN that is not valid.
The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
Members
CloudTrailAccessNotEnabledException
[ ]
Description
This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see Enabling Trusted Access with Other Amazon Web Services Services and Prepare For Creating a Trail For Your Organization.
Members
CloudTrailInvalidClientTokenIdException
[ ]
Description
This exception is thrown when a call results in the InvalidClientTokenId
error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that is in a suspended Amazon Web Services account.
Members
CloudWatchLogsDeliveryUnavailableException
[ ]
Description
Cannot set a CloudWatch Logs delivery for this region.
Members
ConflictException
[ ]
Description
This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time 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 operation again.
Members
DelegatedAdminAccountLimitExceededException
[ ]
Description
This exception is thrown when the maximum number of CloudTrail delegated administrators is reached.
Members
EventDataStoreARNInvalidException
[ ]
Description
The specified event data store ARN is not valid or does not map to an event data store in your account.
Members
EventDataStoreAlreadyExistsException
[ ]
Description
An event data store with that name already exists.
Members
EventDataStoreHasOngoingImportException
[ ]
Description
This exception is thrown when you try to update or delete an event data store that currently has an import in progress.
Members
EventDataStoreMaxLimitExceededException
[ ]
Description
Your account has used the maximum number of event data stores.
Members
EventDataStoreNotFoundException
[ ]
Description
The specified event data store was not found.
Members
EventDataStoreTerminationProtectedException
[ ]
Description
The event data store cannot be deleted because termination protection is enabled for it.
Members
ImportNotFoundException
[ ]
Description
The specified import was not found.
Members
InactiveEventDataStoreException
[ ]
Description
The event data store is inactive.
Members
InactiveQueryException
[ ]
Description
The specified query cannot be canceled because it is in the FINISHED
, FAILED
, TIMED_OUT
, or CANCELLED
state.
Members
InsightNotEnabledException
[ ]
Description
If you run GetInsightSelectors
on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
.
Members
InsufficientDependencyServiceAccessPermissionException
[ ]
Description
This exception is thrown when the IAM identity that is used to create the organization resource lacks one or more required permissions for creating an organization resource in a required service.
Members
InsufficientEncryptionPolicyException
[ ]
Description
This exception is thrown when the policy on the S3 bucket or KMS key does not have sufficient permissions for the operation.
Members
InsufficientS3BucketPolicyException
[ ]
Description
This exception is thrown when the policy on the S3 bucket is not sufficient.
Members
InsufficientSnsTopicPolicyException
[ ]
Description
This exception is thrown when the policy on the Amazon SNS topic is not sufficient.
Members
InvalidCloudWatchLogsLogGroupArnException
[ ]
Description
This exception is thrown when the provided CloudWatch Logs log group is not valid.
Members
InvalidCloudWatchLogsRoleArnException
[ ]
Description
This exception is thrown when the provided role is not valid.
Members
InvalidDateRangeException
[ ]
Description
A date range for the query was specified that is not valid. Be sure that the start time is chronologically before the end time. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.
Members
InvalidEventCategoryException
[ ]
Description
Occurs if an event category that is not valid is specified as a value of EventCategory
.
Members
InvalidEventDataStoreCategoryException
[ ]
Description
This exception is thrown when event categories of specified event data stores are not valid.
Members
InvalidEventDataStoreStatusException
[ ]
Description
The event data store is not in a status that supports the operation.
Members
InvalidEventSelectorsException
[ ]
Description
This exception is thrown when the PutEventSelectors
operation is called with a number of event selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum 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.
You can:
-
Specify a valid number of event selectors (1 to 5) for a trail.
-
Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.
-
Specify up to 500 values for all conditions in all advanced event selectors for a trail.
-
Specify a valid value for a parameter. For example, specifying the
ReadWriteType
parameter with a value ofread-only
is not valid.
Members
InvalidHomeRegionException
[ ]
Description
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.
Members
InvalidImportSourceException
[ ]
Description
This exception is thrown when the provided source S3 bucket is not valid for import.
Members
InvalidInsightSelectorsException
[ ]
Description
The formatting or syntax of the InsightSelectors
JSON statement in your PutInsightSelectors
or GetInsightSelectors
request is not valid, or the specified insight type in the InsightSelectors
statement is not a valid insight type.
Members
InvalidKmsKeyIdException
[ ]
Description
This exception is thrown when the KMS key ARN is not valid.
Members
InvalidLookupAttributesException
[ ]
Description
Occurs when a lookup attribute is specified that is not valid.
Members
InvalidMaxResultsException
[ ]
Description
This exception is thrown if the limit specified is not valid.
Members
InvalidNextTokenException
[ ]
Description
A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.
Members
InvalidParameterCombinationException
[ ]
Description
This exception is thrown when the combination of parameters provided is not valid.
Members
InvalidParameterException
[ ]
Description
The request includes a parameter that is not valid.
Members
InvalidQueryStatementException
[ ]
Description
The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.
Members
InvalidQueryStatusException
[ ]
Description
The query status is not valid for the operation.
Members
InvalidS3BucketNameException
[ ]
Description
This exception is thrown when the provided S3 bucket name is not valid.
Members
InvalidS3PrefixException
[ ]
Description
This exception is thrown when the provided S3 prefix is not valid.
Members
InvalidSnsTopicNameException
[ ]
Description
This exception is thrown when the provided SNS topic name is not valid.
Members
InvalidSourceException
[ ]
Description
This exception is thrown when the specified value of Source
is not valid.
Members
InvalidTagParameterException
[ ]
Description
This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.
Members
InvalidTimeRangeException
[ ]
Description
Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.
Members
InvalidTokenException
[ ]
Description
Reserved for future use.
Members
InvalidTrailNameException
[ ]
Description
This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like
my-_namespace
andmy--namespace
are not valid. -
Not be in IP address format (for example, 192.168.5.4)
Members
KmsException
[ ]
Description
This exception is thrown when there is an issue with the specified KMS key and the trail or event data store can't be updated.
Members
KmsKeyDisabledException
[ ]
Description
This exception is no longer in use.
Members
KmsKeyNotFoundException
[ ]
Description
This exception is thrown when the KMS key does not exist, when the S3 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 not in the same region.
Members
MaxConcurrentQueriesException
[ ]
Description
You are already running the maximum number of concurrent queries. Wait a minute for some queries to finish, and then run the query again.
Members
MaximumNumberOfTrailsExceededException
[ ]
Description
This exception is thrown when the maximum number of trails is reached.
Members
NoManagementAccountSLRExistsException
[ ]
Description
This exception is thrown when the management account does not have a service-linked role.
Members
NotOrganizationManagementAccountException
[ ]
Description
This exception is thrown when the account making the request is not the organization's management account.
Members
NotOrganizationMasterAccountException
[ ]
Description
This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail or event data store is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization or Create an event data store.
Members
OperationNotPermittedException
[ ]
Description
This exception is thrown when the requested operation is not permitted.
Members
OrganizationNotInAllFeaturesModeException
[ ]
Description
This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support creating an organization trail or event data store.
Members
OrganizationsNotInUseException
[ ]
Description
This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.
Members
QueryIdNotFoundException
[ ]
Description
The query ID does not exist or does not map to a query.
Members
ResourceARNNotValidException
[ ]
Description
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: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel
.
Members
ResourceNotFoundException
[ ]
Description
This exception is thrown when the specified resource is not found.
Members
ResourcePolicyNotFoundException
[ ]
Description
This exception is thrown when the specified resource policy is not found.
Members
ResourcePolicyNotValidException
[ ]
Description
This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.
The following are requirements for the resource policy:
-
Contains only one action: cloudtrail-data:PutAuditEvents
-
Contains at least one statement. The policy can have a maximum of 20 statements.
-
Each statement contains at least one principal. A statement can have a maximum of 50 principals.
Members
ResourceTypeNotSupportedException
[ ]
Description
This exception is thrown when the specified resource type is not supported by CloudTrail.
Members
S3BucketDoesNotExistException
[ ]
Description
This exception is thrown when the specified S3 bucket does not exist.
Members
TagsLimitExceededException
[ ]
Description
The number of tags per trail, event data store, or channel has exceeded the permitted amount. Currently, the limit is 50.
Members
TrailAlreadyExistsException
[ ]
Description
This exception is thrown when the specified trail already exists.
Members
TrailNotFoundException
[ ]
Description
This exception is thrown when the trail with the given name is not found.
Members
TrailNotProvidedException
[ ]
Description
This exception is no longer in use.
Members
UnsupportedOperationException
[ ]
Description
This exception is thrown when the requested operation is not supported.