Class ConfigServiceException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\ConfigService\Exception\ConfigServiceException
- Namespace: Aws\ConfigService\Exception
- Located at ConfigService/Exception/ConfigServiceException.php
Represents an error interacting with the AWS Config 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
ConformancePackTemplateValidationException
[ ]
Description
You have specified a template that is not valid or supported.
Members
IdempotentParameterMismatch
[ 'message' => '<string>', ]
Description
Using the same client token with one or more different parameters. Specify a new client token with the parameter changes and try again.
Members
InsufficientDeliveryPolicyException
[ ]
Description
Your Amazon S3 bucket policy does not permit Config to write to it.
Members
InsufficientPermissionsException
[ ]
Description
Indicates one of the following errors:
-
For PutConfigRule, the rule cannot be created because the IAM role assigned to Config lacks permissions to perform the config:Put* action.
-
For PutConfigRule, the Lambda function cannot be invoked. Check the function ARN, and check the function's permissions.
-
For PutOrganizationConfigRule, organization Config rule cannot be created because you do not have permissions to call IAM
GetRole
action or create a service-linked role. -
For PutConformancePack and PutOrganizationConformancePack, a conformance pack cannot be created because you do not have the following permissions:
-
You do not have permission to call IAM
GetRole
action or create a service-linked role. -
You do not have permission to read Amazon S3 bucket or call SSM:GetDocument.
-
Members
InvalidConfigurationRecorderNameException
[ ]
Description
You have provided a configuration recorder name that is not valid.
Members
InvalidDeliveryChannelNameException
[ ]
Description
The specified delivery channel name is not valid.
Members
InvalidExpressionException
[ ]
Description
The syntax of the query is incorrect.
Members
InvalidLimitException
[ ]
Description
The specified limit is outside the allowable range.
Members
InvalidNextTokenException
[ ]
Description
The specified next token is not valid. Specify the nextToken
string that was returned in the previous response to get the next page of results.
Members
InvalidParameterValueException
[ ]
Description
One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
Members
InvalidRecordingGroupException
[ ]
Description
Config throws an exception if the recording group does not contain a valid list of resource types. Values that are not valid might also be incorrectly formatted.
Members
InvalidResultTokenException
[ ]
Description
The specified ResultToken
is not valid.
Members
InvalidRoleException
[ ]
Description
You have provided a null or empty role ARN.
Members
InvalidS3KeyPrefixException
[ ]
Description
The specified Amazon S3 key prefix is not valid.
Members
InvalidS3KmsKeyArnException
[ ]
Description
The specified Amazon KMS Key ARN is not valid.
Members
InvalidSNSTopicARNException
[ ]
Description
The specified Amazon SNS topic does not exist.
Members
InvalidTimeRangeException
[ ]
Description
The specified time range is not valid. The earlier time is not chronologically before the later time.
Members
LastDeliveryChannelDeleteFailedException
[ ]
Description
You cannot delete the delivery channel you specified because the configuration recorder is running.
Members
LimitExceededException
[ ]
Description
For StartConfigRulesEvaluation
API, this exception is thrown if an evaluation is in progress or if you call the StartConfigRulesEvaluation API more than once per minute.
For PutConfigurationAggregator
API, this exception is thrown if the number of accounts and aggregators exceeds the limit.
Members
MaxActiveResourcesExceededException
[ ]
Description
You have reached the limit of active custom resource types in your account. There is a limit of 100,000. Delete unused resources using DeleteResourceConfig .
Members
MaxNumberOfConfigRulesExceededException
[ ]
Description
Failed to add the Config rule because the account already contains the maximum number of 150 rules. Consider deleting any deactivated rules before you add new rules.
Members
MaxNumberOfConfigurationRecordersExceededException
[ ]
Description
You have reached the limit of the number of recorders you can create.
Members
MaxNumberOfConformancePacksExceededException
[ ]
Description
You have reached the limit of the number of conformance packs you can create in an account. For more information, see Service Limits in the Config Developer Guide.
Members
MaxNumberOfDeliveryChannelsExceededException
[ ]
Description
You have reached the limit of the number of delivery channels you can create.
Members
MaxNumberOfOrganizationConfigRulesExceededException
[ ]
Description
You have reached the limit of the number of organization Config rules you can create. For more information, see see Service Limits in the Config Developer Guide.
Members
MaxNumberOfOrganizationConformancePacksExceededException
[ ]
Description
You have reached the limit of the number of organization conformance packs you can create in an account. For more information, see Service Limits in the Config Developer Guide.
Members
MaxNumberOfRetentionConfigurationsExceededException
[ ]
Description
Failed to add the retention configuration because a retention configuration with that name already exists.
Members
NoAvailableConfigurationRecorderException
[ ]
Description
There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.
Members
NoAvailableDeliveryChannelException
[ ]
Description
There is no delivery channel available to record configurations.
Members
NoAvailableOrganizationException
[ ]
Description
Organization is no longer available.
Members
NoRunningConfigurationRecorderException
[ ]
Description
There is no configuration recorder running.
Members
NoSuchBucketException
[ ]
Description
The specified Amazon S3 bucket does not exist.
Members
NoSuchConfigRuleException
[ ]
Description
The Config rule in the request is not valid. Verify that the rule is an Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
Members
NoSuchConfigRuleInConformancePackException
[ ]
Description
Config rule that you passed in the filter does not exist.
Members
NoSuchConfigurationAggregatorException
[ ]
Description
You have specified a configuration aggregator that does not exist.
Members
NoSuchConfigurationRecorderException
[ ]
Description
You have specified a configuration recorder that does not exist.
Members
NoSuchConformancePackException
[ ]
Description
You specified one or more conformance packs that do not exist.
Members
NoSuchDeliveryChannelException
[ ]
Description
You have specified a delivery channel that does not exist.
Members
NoSuchOrganizationConfigRuleException
[ ]
Description
The Config rule in the request is not valid. Verify that the rule is an organization Config Process Check rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
Members
NoSuchOrganizationConformancePackException
[ ]
Description
Config organization conformance pack that you passed in the filter does not exist.
For DeleteOrganizationConformancePack, you tried to delete an organization conformance pack that does not exist.
Members
NoSuchRemediationConfigurationException
[ ]
Description
You specified an Config rule without a remediation configuration.
Members
NoSuchRemediationExceptionException
[ ]
Description
You tried to delete a remediation exception that does not exist.
Members
NoSuchRetentionConfigurationException
[ ]
Description
You have specified a retention configuration that does not exist.
Members
OrganizationAccessDeniedException
[ ]
Description
For PutConfigurationAggregator
API, you can see this exception for the following reasons:
-
No permission to call
EnableAWSServiceAccess
API -
The configuration aggregator cannot be updated because your Amazon Web Services Organization management account or the delegated administrator role changed. Delete this aggregator and create a new one with the current Amazon Web Services Organization.
-
The configuration aggregator is associated with a previous Amazon Web Services Organization and Config cannot aggregate data with current Amazon Web Services Organization. Delete this aggregator and create a new one with the current Amazon Web Services Organization.
-
You are not a registered delegated administrator for Config with permissions to call
ListDelegatedAdministrators
API. Ensure that the management account registers delagated administrator for Config service principle name before the delegated administrator creates an aggregator.
For all OrganizationConfigRule
and OrganizationConformancePack
APIs, Config throws an exception if APIs are called from member accounts. All APIs must be called from organization management account.
Members
OrganizationAllFeaturesNotEnabledException
[ ]
Description
Config resource cannot be created because your organization does not have all features enabled.
Members
OrganizationConformancePackTemplateValidationException
[ ]
Description
You have specified a template that is not valid or supported.
Members
OversizedConfigurationItemException
[ ]
Description
The configuration item size is outside the allowable range.
Members
RemediationInProgressException
[ ]
Description
Remediation action is in progress. You can either cancel execution in Amazon Web Services Systems Manager or wait and try again later.
Members
ResourceConcurrentModificationException
[ 'message' => '<string>', ]
Description
Two users are trying to modify the same query at the same time. Wait for a moment and try again.
Members
ResourceInUseException
[ ]
Description
You see this exception in the following cases:
-
For DeleteConfigRule, Config is deleting this rule. Try your request again later.
-
For DeleteConfigRule, the rule is deleting your evaluation results. Try your request again later.
-
For DeleteConfigRule, a remediation action is associated with the rule and Config cannot delete this rule. Delete the remediation action associated with the rule before deleting the rule and try your request again later.
-
For PutConfigOrganizationRule, organization Config rule deletion is in progress. Try your request again later.
-
For DeleteOrganizationConfigRule, organization Config rule creation is in progress. Try your request again later.
-
For PutConformancePack and PutOrganizationConformancePack, a conformance pack creation, update, and deletion is in progress. Try your request again later.
-
For DeleteConformancePack, a conformance pack creation, update, and deletion is in progress. Try your request again later.
Members
ResourceNotDiscoveredException
[ ]
Description
You have specified a resource that is either unknown or has not been discovered.
Members
ResourceNotFoundException
[ ]
Description
You have specified a resource that does not exist.
Members
TooManyTagsException
[ ]
Description
You have reached the limit of the number of tags you can use. For more information, see Service Limits in the Config Developer Guide.
Members
ValidationException
[ ]
Description
The requested action is not valid.
For PutStoredQuery, you will see this exception if there are missing required fields or if the input value fails the validation, or if you are trying to create more than 300 queries.
For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this exception if there are missing required fields or if the input value fails the validation.