module Network.AWS.Config.Types
(
config
, _InvalidTimeRangeException
, _InvalidSNSTopicARNException
, _InvalidRecordingGroupException
, _ValidationException
, _InvalidRoleException
, _LastDeliveryChannelDeleteFailedException
, _InvalidLimitException
, _InvalidDeliveryChannelNameException
, _InvalidParameterValueException
, _InvalidResultTokenException
, _NoSuchDeliveryChannelException
, _NoSuchConfigRuleException
, _ResourceNotDiscoveredException
, _InvalidNextTokenException
, _MaxNumberOfConfigRulesExceededException
, _NoAvailableConfigurationRecorderException
, _NoSuchBucketException
, _NoAvailableDeliveryChannelException
, _InvalidConfigurationRecorderNameException
, _NoRunningConfigurationRecorderException
, _MaxNumberOfConfigurationRecordersExceededException
, _InsufficientDeliveryPolicyException
, _MaxNumberOfDeliveryChannelsExceededException
, _NoSuchConfigurationRecorderException
, _InvalidS3KeyPrefixException
, _ResourceInUseException
, ChronologicalOrder (..)
, ComplianceType (..)
, ConfigRuleState (..)
, ConfigurationItemStatus (..)
, DeliveryStatus (..)
, EventSource (..)
, MaximumExecutionFrequency (..)
, MessageType (..)
, Owner (..)
, RecorderStatus (..)
, ResourceType (..)
, Compliance
, compliance
, cComplianceContributorCount
, cComplianceType
, ComplianceByConfigRule
, complianceByConfigRule
, cbcrCompliance
, cbcrConfigRuleName
, ComplianceByResource
, complianceByResource
, cbrResourceId
, cbrResourceType
, cbrCompliance
, ComplianceContributorCount
, complianceContributorCount
, cccCappedCount
, cccCapExceeded
, ComplianceSummary
, complianceSummary
, csComplianceSummaryTimestamp
, csCompliantResourceCount
, csNonCompliantResourceCount
, ComplianceSummaryByResourceType
, complianceSummaryByResourceType
, csbrtResourceType
, csbrtComplianceSummary
, ConfigExportDeliveryInfo
, configExportDeliveryInfo
, cediLastErrorCode
, cediLastAttemptTime
, cediLastSuccessfulTime
, cediLastStatus
, cediLastErrorMessage
, cediNextDeliveryTime
, ConfigRule
, configRule
, crInputParameters
, crConfigRuleName
, crMaximumExecutionFrequency
, crConfigRuleId
, crScope
, crConfigRuleState
, crDescription
, crConfigRuleARN
, crSource
, ConfigRuleEvaluationStatus
, configRuleEvaluationStatus
, cresLastErrorCode
, cresFirstActivatedTime
, cresConfigRuleName
, cresLastErrorMessage
, cresConfigRuleId
, cresLastFailedInvocationTime
, cresLastSuccessfulInvocationTime
, cresConfigRuleARN
, ConfigSnapshotDeliveryProperties
, configSnapshotDeliveryProperties
, csdpDeliveryFrequency
, ConfigStreamDeliveryInfo
, configStreamDeliveryInfo
, csdiLastErrorCode
, csdiLastStatusChangeTime
, csdiLastStatus
, csdiLastErrorMessage
, ConfigurationItem
, configurationItem
, ciResourceId
, ciResourceType
, ciConfigurationStateId
, ciArn
, ciResourceName
, ciResourceCreationTime
, ciConfigurationItemStatus
, ciConfigurationItemCaptureTime
, ciAccountId
, ciAvailabilityZone
, ciRelationships
, ciVersion
, ciAwsRegion
, ciRelatedEvents
, ciConfiguration
, ciConfigurationItemMD5Hash
, ciTags
, ConfigurationRecorder
, configurationRecorder
, crName
, crRecordingGroup
, crRoleARN
, ConfigurationRecorderStatus
, configurationRecorderStatus
, crsLastErrorCode
, crsLastStopTime
, crsLastStatusChangeTime
, crsRecording
, crsLastStatus
, crsLastErrorMessage
, crsName
, crsLastStartTime
, DeliveryChannel
, deliveryChannel
, dcS3KeyPrefix
, dcSnsTopicARN
, dcName
, dcConfigSnapshotDeliveryProperties
, dcS3BucketName
, DeliveryChannelStatus
, deliveryChannelStatus
, dcsConfigSnapshotDeliveryInfo
, dcsConfigStreamDeliveryInfo
, dcsConfigHistoryDeliveryInfo
, dcsName
, Evaluation
, evaluation
, eAnnotation
, eComplianceResourceType
, eComplianceResourceId
, eComplianceType
, eOrderingTimestamp
, EvaluationResult
, evaluationResult
, erEvaluationResultIdentifier
, erAnnotation
, erConfigRuleInvokedTime
, erResultRecordedTime
, erResultToken
, erComplianceType
, EvaluationResultIdentifier
, evaluationResultIdentifier
, eriEvaluationResultQualifier
, eriOrderingTimestamp
, EvaluationResultQualifier
, evaluationResultQualifier
, erqResourceId
, erqResourceType
, erqConfigRuleName
, RecordingGroup
, recordingGroup
, rgAllSupported
, rgResourceTypes
, Relationship
, relationship
, rResourceId
, rResourceType
, rResourceName
, rRelationshipName
, ResourceIdentifier
, resourceIdentifier
, riResourceId
, riResourceType
, riResourceName
, riResourceDeletionTime
, Scope
, scope
, sComplianceResourceTypes
, sComplianceResourceId
, sTagValue
, sTagKey
, Source
, source
, sSourceIdentifier
, sOwner
, sSourceDetails
, SourceDetail
, sourceDetail
, sdMessageType
, sdEventSource
) where
import Network.AWS.Config.Types.Product
import Network.AWS.Config.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
config :: Service
config =
Service
{ _svcAbbrev = "Config"
, _svcSigner = v4
, _svcPrefix = "config"
, _svcVersion = "2014-11-12"
, _svcEndpoint = defaultEndpoint config
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidTimeRangeException =
_ServiceError . hasCode "InvalidTimeRangeException"
_InvalidSNSTopicARNException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSNSTopicARNException =
_ServiceError . hasCode "InvalidSNSTopicARNException"
_InvalidRecordingGroupException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRecordingGroupException =
_ServiceError . hasCode "InvalidRecordingGroupException"
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_ValidationException = _ServiceError . hasCode "ValidationException"
_InvalidRoleException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRoleException = _ServiceError . hasCode "InvalidRoleException"
_LastDeliveryChannelDeleteFailedException :: AsError a => Getting (First ServiceError) a ServiceError
_LastDeliveryChannelDeleteFailedException =
_ServiceError . hasCode "LastDeliveryChannelDeleteFailedException"
_InvalidLimitException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidLimitException = _ServiceError . hasCode "InvalidLimitException"
_InvalidDeliveryChannelNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidDeliveryChannelNameException =
_ServiceError . hasCode "InvalidDeliveryChannelNameException"
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidParameterValueException =
_ServiceError . hasCode "InvalidParameterValueException"
_InvalidResultTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidResultTokenException =
_ServiceError . hasCode "InvalidResultTokenException"
_NoSuchDeliveryChannelException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchDeliveryChannelException =
_ServiceError . hasCode "NoSuchDeliveryChannelException"
_NoSuchConfigRuleException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchConfigRuleException =
_ServiceError . hasCode "NoSuchConfigRuleException"
_ResourceNotDiscoveredException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotDiscoveredException =
_ServiceError . hasCode "ResourceNotDiscoveredException"
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidNextTokenException =
_ServiceError . hasCode "InvalidNextTokenException"
_MaxNumberOfConfigRulesExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfConfigRulesExceededException =
_ServiceError . hasCode "MaxNumberOfConfigRulesExceededException"
_NoAvailableConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoAvailableConfigurationRecorderException =
_ServiceError . hasCode "NoAvailableConfigurationRecorderException"
_NoSuchBucketException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchBucketException = _ServiceError . hasCode "NoSuchBucketException"
_NoAvailableDeliveryChannelException :: AsError a => Getting (First ServiceError) a ServiceError
_NoAvailableDeliveryChannelException =
_ServiceError . hasCode "NoAvailableDeliveryChannelException"
_InvalidConfigurationRecorderNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidConfigurationRecorderNameException =
_ServiceError . hasCode "InvalidConfigurationRecorderNameException"
_NoRunningConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoRunningConfigurationRecorderException =
_ServiceError . hasCode "NoRunningConfigurationRecorderException"
_MaxNumberOfConfigurationRecordersExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfConfigurationRecordersExceededException =
_ServiceError .
hasCode "MaxNumberOfConfigurationRecordersExceededException"
_InsufficientDeliveryPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
_InsufficientDeliveryPolicyException =
_ServiceError . hasCode "InsufficientDeliveryPolicyException"
_MaxNumberOfDeliveryChannelsExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfDeliveryChannelsExceededException =
_ServiceError . hasCode "MaxNumberOfDeliveryChannelsExceededException"
_NoSuchConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchConfigurationRecorderException =
_ServiceError . hasCode "NoSuchConfigurationRecorderException"
_InvalidS3KeyPrefixException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidS3KeyPrefixException =
_ServiceError . hasCode "InvalidS3KeyPrefixException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _ServiceError . hasCode "ResourceInUseException"