Enum aws_sdk_config::operation::put_configuration_aggregator::PutConfigurationAggregatorError
source · #[non_exhaustive]pub enum PutConfigurationAggregatorError {
InvalidParameterValueException(InvalidParameterValueException),
InvalidRoleException(InvalidRoleException),
LimitExceededException(LimitExceededException),
NoAvailableOrganizationException(NoAvailableOrganizationException),
OrganizationAccessDeniedException(OrganizationAccessDeniedException),
OrganizationAllFeaturesNotEnabledException(OrganizationAllFeaturesNotEnabledException),
Unhandled(Unhandled),
}Expand description
Error type for the PutConfigurationAggregatorError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidParameterValueException(InvalidParameterValueException)
One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
InvalidRoleException(InvalidRoleException)
You have provided a null or empty Amazon Resource Name (ARN) for the IAM role assumed by Config and used by the configuration recorder.
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.
NoAvailableOrganizationException(NoAvailableOrganizationException)
Organization is no longer available.
OrganizationAccessDeniedException(OrganizationAccessDeniedException)
For PutConfigurationAggregator API, you can see this exception for the following reasons:
-
No permission to call
EnableAWSServiceAccessAPI -
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
ListDelegatedAdministratorsAPI. 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.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PutConfigurationAggregatorError
impl PutConfigurationAggregatorError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the PutConfigurationAggregatorError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PutConfigurationAggregatorError::Unhandled variant from an ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::InvalidParameterValueException.
sourcepub fn is_invalid_role_exception(&self) -> bool
pub fn is_invalid_role_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::InvalidRoleException.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::LimitExceededException.
sourcepub fn is_no_available_organization_exception(&self) -> bool
pub fn is_no_available_organization_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::NoAvailableOrganizationException.
sourcepub fn is_organization_access_denied_exception(&self) -> bool
pub fn is_organization_access_denied_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::OrganizationAccessDeniedException.
sourcepub fn is_organization_all_features_not_enabled_exception(&self) -> bool
pub fn is_organization_all_features_not_enabled_exception(&self) -> bool
Returns true if the error kind is PutConfigurationAggregatorError::OrganizationAllFeaturesNotEnabledException.
Trait Implementations§
source§impl CreateUnhandledError for PutConfigurationAggregatorError
impl CreateUnhandledError for PutConfigurationAggregatorError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Error for PutConfigurationAggregatorError
impl Error for PutConfigurationAggregatorError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<PutConfigurationAggregatorError> for Error
impl From<PutConfigurationAggregatorError> for Error
source§fn from(err: PutConfigurationAggregatorError) -> Self
fn from(err: PutConfigurationAggregatorError) -> Self
source§impl ProvideErrorMetadata for PutConfigurationAggregatorError
impl ProvideErrorMetadata for PutConfigurationAggregatorError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PutConfigurationAggregatorError
impl RequestId for PutConfigurationAggregatorError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.