#[non_exhaustive]
pub enum PutResourceConfigErrorKind {
InsufficientPermissionsException(InsufficientPermissionsException),
MaxActiveResourcesExceededException(MaxActiveResourcesExceededException),
NoRunningConfigurationRecorderException(NoRunningConfigurationRecorderException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
Types of errors that can occur for the PutResourceConfig operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
GetRoleaction 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
GetRoleaction or create a service-linked role. -
To read Amazon S3 bucket or call SSM:GetDocument.
-
MaxActiveResourcesExceededException(MaxActiveResourcesExceededException)
You have reached the limit (100,000) of active custom resource types in your account. Delete unused resources using DeleteResourceConfig.
NoRunningConfigurationRecorderException(NoRunningConfigurationRecorderException)
There is no configuration recorder running.
ValidationException(ValidationException)
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(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.