Enum aws_sdk_config::Error
source · #[non_exhaustive]
pub enum Error {
Show 55 variants
ConformancePackTemplateValidationException(ConformancePackTemplateValidationException),
IdempotentParameterMismatch(IdempotentParameterMismatch),
InsufficientDeliveryPolicyException(InsufficientDeliveryPolicyException),
InsufficientPermissionsException(InsufficientPermissionsException),
InvalidConfigurationRecorderNameException(InvalidConfigurationRecorderNameException),
InvalidDeliveryChannelNameException(InvalidDeliveryChannelNameException),
InvalidExpressionException(InvalidExpressionException),
InvalidLimitException(InvalidLimitException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidRecordingGroupException(InvalidRecordingGroupException),
InvalidResultTokenException(InvalidResultTokenException),
InvalidRoleException(InvalidRoleException),
InvalidS3KeyPrefixException(InvalidS3KeyPrefixException),
InvalidS3KmsKeyArnException(InvalidS3KmsKeyArnException),
InvalidSnsTopicArnException(InvalidSnsTopicArnException),
InvalidTimeRangeException(InvalidTimeRangeException),
LastDeliveryChannelDeleteFailedException(LastDeliveryChannelDeleteFailedException),
LimitExceededException(LimitExceededException),
MaxActiveResourcesExceededException(MaxActiveResourcesExceededException),
MaxNumberOfConfigRulesExceededException(MaxNumberOfConfigRulesExceededException),
MaxNumberOfConfigurationRecordersExceededException(MaxNumberOfConfigurationRecordersExceededException),
MaxNumberOfConformancePacksExceededException(MaxNumberOfConformancePacksExceededException),
MaxNumberOfDeliveryChannelsExceededException(MaxNumberOfDeliveryChannelsExceededException),
MaxNumberOfOrganizationConfigRulesExceededException(MaxNumberOfOrganizationConfigRulesExceededException),
MaxNumberOfOrganizationConformancePacksExceededException(MaxNumberOfOrganizationConformancePacksExceededException),
MaxNumberOfRetentionConfigurationsExceededException(MaxNumberOfRetentionConfigurationsExceededException),
NoAvailableConfigurationRecorderException(NoAvailableConfigurationRecorderException),
NoAvailableDeliveryChannelException(NoAvailableDeliveryChannelException),
NoAvailableOrganizationException(NoAvailableOrganizationException),
NoRunningConfigurationRecorderException(NoRunningConfigurationRecorderException),
NoSuchBucketException(NoSuchBucketException),
NoSuchConfigRuleException(NoSuchConfigRuleException),
NoSuchConfigRuleInConformancePackException(NoSuchConfigRuleInConformancePackException),
NoSuchConfigurationAggregatorException(NoSuchConfigurationAggregatorException),
NoSuchConfigurationRecorderException(NoSuchConfigurationRecorderException),
NoSuchConformancePackException(NoSuchConformancePackException),
NoSuchDeliveryChannelException(NoSuchDeliveryChannelException),
NoSuchOrganizationConfigRuleException(NoSuchOrganizationConfigRuleException),
NoSuchOrganizationConformancePackException(NoSuchOrganizationConformancePackException),
NoSuchRemediationConfigurationException(NoSuchRemediationConfigurationException),
NoSuchRemediationExceptionException(NoSuchRemediationExceptionException),
NoSuchRetentionConfigurationException(NoSuchRetentionConfigurationException),
OrganizationAccessDeniedException(OrganizationAccessDeniedException),
OrganizationAllFeaturesNotEnabledException(OrganizationAllFeaturesNotEnabledException),
OrganizationConformancePackTemplateValidationException(OrganizationConformancePackTemplateValidationException),
OversizedConfigurationItemException(OversizedConfigurationItemException),
RemediationInProgressException(RemediationInProgressException),
ResourceConcurrentModificationException(ResourceConcurrentModificationException),
ResourceInUseException(ResourceInUseException),
ResourceNotDiscoveredException(ResourceNotDiscoveredException),
ResourceNotFoundException(ResourceNotFoundException),
TooManyTagsException(TooManyTagsException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConformancePackTemplateValidationException(ConformancePackTemplateValidationException)
You have specified a template that is invalid or supported.
IdempotentParameterMismatch(IdempotentParameterMismatch)
Using the same client token with one or more different parameters. Specify a new client token with the parameter changes and try again.
InsufficientDeliveryPolicyException(InsufficientDeliveryPolicyException)
Your Amazon S3 bucket policy does not permit Config to write to it.
InsufficientPermissionsException(InsufficientPermissionsException)
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.
-
InvalidConfigurationRecorderNameException(InvalidConfigurationRecorderNameException)
You have provided a configuration recorder name that is not valid.
InvalidDeliveryChannelNameException(InvalidDeliveryChannelNameException)
The specified delivery channel name is invalid.
InvalidExpressionException(InvalidExpressionException)
The syntax of the query is incorrect.
InvalidLimitException(InvalidLimitException)
The specified limit is outside the allowable range.
InvalidNextTokenException(InvalidNextTokenException)
The specified next token is invalid. Specify the nextToken
string that was returned in the previous response to get the next page of results.
InvalidParameterValueException(InvalidParameterValueException)
One or more of the specified parameters are invalid. Verify that your parameters are valid and try again.
InvalidRecordingGroupException(InvalidRecordingGroupException)
Config throws an exception if the recording group does not contain a valid list of resource types. Invalid values might also be incorrectly formatted.
InvalidResultTokenException(InvalidResultTokenException)
The specified ResultToken
is invalid.
InvalidRoleException(InvalidRoleException)
You have provided a null or empty role ARN.
InvalidS3KeyPrefixException(InvalidS3KeyPrefixException)
The specified Amazon S3 key prefix is invalid.
InvalidS3KmsKeyArnException(InvalidS3KmsKeyArnException)
The specified Amazon KMS Key ARN is invalid.
InvalidSnsTopicArnException(InvalidSnsTopicArnException)
The specified Amazon SNS topic does not exist.
InvalidTimeRangeException(InvalidTimeRangeException)
The specified time range is invalid. The earlier time is not chronologically before the later time.
LastDeliveryChannelDeleteFailedException(LastDeliveryChannelDeleteFailedException)
You cannot delete the delivery channel you specified because the configuration recorder is running.
LimitExceededException(LimitExceededException)
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.
MaxActiveResourcesExceededException(MaxActiveResourcesExceededException)
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 .
MaxNumberOfConfigRulesExceededException(MaxNumberOfConfigRulesExceededException)
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.
MaxNumberOfConfigurationRecordersExceededException(MaxNumberOfConfigurationRecordersExceededException)
You have reached the limit of the number of recorders you can create.
MaxNumberOfConformancePacksExceededException(MaxNumberOfConformancePacksExceededException)
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.
MaxNumberOfDeliveryChannelsExceededException(MaxNumberOfDeliveryChannelsExceededException)
You have reached the limit of the number of delivery channels you can create.
MaxNumberOfOrganizationConfigRulesExceededException(MaxNumberOfOrganizationConfigRulesExceededException)
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.
MaxNumberOfOrganizationConformancePacksExceededException(MaxNumberOfOrganizationConformancePacksExceededException)
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.
MaxNumberOfRetentionConfigurationsExceededException(MaxNumberOfRetentionConfigurationsExceededException)
Failed to add the retention configuration because a retention configuration with that name already exists.
NoAvailableConfigurationRecorderException(NoAvailableConfigurationRecorderException)
There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.
NoAvailableDeliveryChannelException(NoAvailableDeliveryChannelException)
There is no delivery channel available to record configurations.
NoAvailableOrganizationException(NoAvailableOrganizationException)
Organization is no longer available.
NoRunningConfigurationRecorderException(NoRunningConfigurationRecorderException)
There is no configuration recorder running.
NoSuchBucketException(NoSuchBucketException)
The specified Amazon S3 bucket does not exist.
NoSuchConfigRuleException(NoSuchConfigRuleException)
The Config rule in the request is invalid. Verify that the rule is an Config Custom Policy rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
NoSuchConfigRuleInConformancePackException(NoSuchConfigRuleInConformancePackException)
Config rule that you passed in the filter does not exist.
NoSuchConfigurationAggregatorException(NoSuchConfigurationAggregatorException)
You have specified a configuration aggregator that does not exist.
NoSuchConfigurationRecorderException(NoSuchConfigurationRecorderException)
You have specified a configuration recorder that does not exist.
NoSuchConformancePackException(NoSuchConformancePackException)
You specified one or more conformance packs that do not exist.
NoSuchDeliveryChannelException(NoSuchDeliveryChannelException)
You have specified a delivery channel that does not exist.
NoSuchOrganizationConfigRuleException(NoSuchOrganizationConfigRuleException)
The Config rule in the request is invalid. Verify that the rule is an organization Config Custom Policy rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying again.
NoSuchOrganizationConformancePackException(NoSuchOrganizationConformancePackException)
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.
NoSuchRemediationConfigurationException(NoSuchRemediationConfigurationException)
You specified an Config rule without a remediation configuration.
NoSuchRemediationExceptionException(NoSuchRemediationExceptionException)
You tried to delete a remediation exception that does not exist.
NoSuchRetentionConfigurationException(NoSuchRetentionConfigurationException)
You have specified a retention configuration that does not exist.
OrganizationAccessDeniedException(OrganizationAccessDeniedException)
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.
OrganizationAllFeaturesNotEnabledException(OrganizationAllFeaturesNotEnabledException)
Config resource cannot be created because your organization does not have all features enabled.
OrganizationConformancePackTemplateValidationException(OrganizationConformancePackTemplateValidationException)
You have specified a template that is invalid or supported.
OversizedConfigurationItemException(OversizedConfigurationItemException)
The configuration item size is outside the allowable range.
RemediationInProgressException(RemediationInProgressException)
Remediation action is in progress. You can either cancel execution in Amazon Web Services Systems Manager or wait and try again later.
ResourceConcurrentModificationException(ResourceConcurrentModificationException)
Two users are trying to modify the same query at the same time. Wait for a moment and try again.
ResourceInUseException(ResourceInUseException)
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.
ResourceNotDiscoveredException(ResourceNotDiscoveredException)
You have specified a resource that is either unknown or has not been discovered.
ResourceNotFoundException(ResourceNotFoundException)
You have specified a resource that does not exist.
TooManyTagsException(TooManyTagsException)
You have reached the limit of the number of tags you can use. For more information, see Service Limits in the Config Developer Guide.
ValidationException(ValidationException)
The requested action is invalid.
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.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.