Enum aws_sdk_config::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 54 variants
ConformancePackTemplateValidationException(ConformancePackTemplateValidationException),
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(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ConformancePackTemplateValidationException(ConformancePackTemplateValidationException)
Tuple Fields
You have specified a template that is not valid or supported.
InsufficientDeliveryPolicyException(InsufficientDeliveryPolicyException)
Tuple Fields
Your Amazon S3 bucket policy does not permit Config to write to it.
InsufficientPermissionsException(InsufficientPermissionsException)
Tuple Fields
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 permissions:
-
To call IAM
GetRole
action or create a service linked role. -
To read Amazon S3 bucket.
-
InvalidConfigurationRecorderNameException(InvalidConfigurationRecorderNameException)
Tuple Fields
You have provided a configuration recorder name that is not valid.
InvalidDeliveryChannelNameException(InvalidDeliveryChannelNameException)
Tuple Fields
The specified delivery channel name is not valid.
InvalidExpressionException(InvalidExpressionException)
Tuple Fields
The syntax of the query is incorrect.
InvalidLimitException(InvalidLimitException)
Tuple Fields
The specified limit is outside the allowable range.
InvalidNextTokenException(InvalidNextTokenException)
Tuple Fields
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)
Tuple Fields
One or more of the specified parameters are invalid. Verify that your parameters are valid and try again.
InvalidRecordingGroupException(InvalidRecordingGroupException)
Tuple Fields
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)
Tuple Fields
The specified ResultToken
is invalid.
InvalidRoleException(InvalidRoleException)
Tuple Fields
You have provided a null or empty role ARN.
InvalidS3KeyPrefixException(InvalidS3KeyPrefixException)
Tuple Fields
The specified Amazon S3 key prefix is not valid.
InvalidS3KmsKeyArnException(InvalidS3KmsKeyArnException)
Tuple Fields
The specified Amazon KMS Key ARN is not valid.
InvalidSnsTopicArnException(InvalidSnsTopicArnException)
Tuple Fields
The specified Amazon SNS topic does not exist.
InvalidTimeRangeException(InvalidTimeRangeException)
Tuple Fields
The specified time range is not valid. The earlier time is not chronologically before the later time.
LastDeliveryChannelDeleteFailedException(LastDeliveryChannelDeleteFailedException)
Tuple Fields
You cannot delete the delivery channel you specified because the configuration recorder is running.
LimitExceededException(LimitExceededException)
Tuple Fields
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)
Tuple Fields
You have reached the limit (100,000) of active custom resource types in your account.
Delete unused resources using DeleteResourceConfig
.
MaxNumberOfConfigRulesExceededException(MaxNumberOfConfigRulesExceededException)
Tuple Fields
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)
Tuple Fields
You have reached the limit of the number of recorders you can create.
MaxNumberOfConformancePacksExceededException(MaxNumberOfConformancePacksExceededException)
Tuple Fields
You have reached the limit (6) of the number of conformance packs in an account (6 conformance pack with 25 Config rules per pack).
MaxNumberOfDeliveryChannelsExceededException(MaxNumberOfDeliveryChannelsExceededException)
Tuple Fields
You have reached the limit of the number of delivery channels you can create.
MaxNumberOfOrganizationConfigRulesExceededException(MaxNumberOfOrganizationConfigRulesExceededException)
Tuple Fields
You have reached the limit of the number of organization config rules you can create.
MaxNumberOfOrganizationConformancePacksExceededException(MaxNumberOfOrganizationConformancePacksExceededException)
Tuple Fields
You have reached the limit (6) of the number of organization conformance packs in an account (6 conformance pack with 25 Config rules per pack per account).
MaxNumberOfRetentionConfigurationsExceededException(MaxNumberOfRetentionConfigurationsExceededException)
Tuple Fields
Failed to add the retention configuration because a retention configuration with that name already exists.
NoAvailableConfigurationRecorderException(NoAvailableConfigurationRecorderException)
Tuple Fields
There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.
NoAvailableDeliveryChannelException(NoAvailableDeliveryChannelException)
Tuple Fields
There is no delivery channel available to record configurations.
NoAvailableOrganizationException(NoAvailableOrganizationException)
Tuple Fields
Organization is no longer available.
NoRunningConfigurationRecorderException(NoRunningConfigurationRecorderException)
Tuple Fields
There is no configuration recorder running.
NoSuchBucketException(NoSuchBucketException)
Tuple Fields
The specified Amazon S3 bucket does not exist.
NoSuchConfigRuleException(NoSuchConfigRuleException)
Tuple Fields
One or more Config rules in the request are invalid. Verify that the rule names are correct and try again.
NoSuchConfigRuleInConformancePackException(NoSuchConfigRuleInConformancePackException)
Tuple Fields
Config rule that you passed in the filter does not exist.
NoSuchConfigurationAggregatorException(NoSuchConfigurationAggregatorException)
Tuple Fields
You have specified a configuration aggregator that does not exist.
NoSuchConfigurationRecorderException(NoSuchConfigurationRecorderException)
Tuple Fields
You have specified a configuration recorder that does not exist.
NoSuchConformancePackException(NoSuchConformancePackException)
Tuple Fields
You specified one or more conformance packs that do not exist.
NoSuchDeliveryChannelException(NoSuchDeliveryChannelException)
Tuple Fields
You have specified a delivery channel that does not exist.
NoSuchOrganizationConfigRuleException(NoSuchOrganizationConfigRuleException)
Tuple Fields
You specified one or more organization config rules that do not exist.
NoSuchOrganizationConformancePackException(NoSuchOrganizationConformancePackException)
Tuple Fields
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)
Tuple Fields
You specified an Config rule without a remediation configuration.
NoSuchRemediationExceptionException(NoSuchRemediationExceptionException)
Tuple Fields
You tried to delete a remediation exception that does not exist.
NoSuchRetentionConfigurationException(NoSuchRetentionConfigurationException)
Tuple Fields
You have specified a retention configuration that does not exist.
OrganizationAccessDeniedException(OrganizationAccessDeniedException)
Tuple Fields
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 master account.
OrganizationAllFeaturesNotEnabledException(OrganizationAllFeaturesNotEnabledException)
Tuple Fields
Config resource cannot be created because your organization does not have all features enabled.
OrganizationConformancePackTemplateValidationException(OrganizationConformancePackTemplateValidationException)
Tuple Fields
You have specified a template that is not valid or supported.
OversizedConfigurationItemException(OversizedConfigurationItemException)
Tuple Fields
The configuration item size is outside the allowable range.
RemediationInProgressException(RemediationInProgressException)
Tuple Fields
Remediation action is in progress. You can either cancel execution in Amazon Web Services Systems Manager or wait and try again later.
ResourceConcurrentModificationException(ResourceConcurrentModificationException)
Tuple Fields
Two users are trying to modify the same query at the same time. Wait for a moment and try again.
ResourceInUseException(ResourceInUseException)
Tuple Fields
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)
Tuple Fields
You have specified a resource that is either unknown or has not been discovered.
ResourceNotFoundException(ResourceNotFoundException)
Tuple Fields
You have specified a resource that does not exist.
TooManyTagsException(TooManyTagsException)
Tuple Fields
You have reached the limit of the number of tags you can use. You have more than 50 tags.
ValidationException(ValidationException)
Tuple Fields
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.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more