{-# LANGUAGE OverloadedStrings #-}
module Network.AWS.Config.Types
(
config
, _InvalidTimeRangeException
, _InvalidSNSTopicARNException
, _InvalidRecordingGroupException
, _NoAvailableOrganizationException
, _ValidationException
, _OrganizationAccessDeniedException
, _NoSuchConfigurationAggregatorException
, _InvalidRoleException
, _LastDeliveryChannelDeleteFailedException
, _InvalidLimitException
, _InvalidDeliveryChannelNameException
, _InvalidParameterValueException
, _InvalidResultTokenException
, _NoSuchDeliveryChannelException
, _NoSuchConfigRuleException
, _OrganizationAllFeaturesNotEnabledException
, _InsufficientPermissionsException
, _ResourceNotDiscoveredException
, _InvalidNextTokenException
, _MaxNumberOfConfigRulesExceededException
, _NoAvailableConfigurationRecorderException
, _NoSuchBucketException
, _NoAvailableDeliveryChannelException
, _InvalidConfigurationRecorderNameException
, _NoRunningConfigurationRecorderException
, _MaxNumberOfConfigurationRecordersExceededException
, _InsufficientDeliveryPolicyException
, _MaxNumberOfDeliveryChannelsExceededException
, _NoSuchConfigurationRecorderException
, _InvalidS3KeyPrefixException
, _LimitExceededException
, _ResourceInUseException
, AggregatedSourceStatusType (..)
, AggregatedSourceType (..)
, ChronologicalOrder (..)
, ComplianceType (..)
, ConfigRuleComplianceSummaryGroupKey (..)
, ConfigRuleState (..)
, ConfigurationItemStatus (..)
, DeliveryStatus (..)
, EventSource (..)
, MaximumExecutionFrequency (..)
, MessageType (..)
, Owner (..)
, RecorderStatus (..)
, ResourceType (..)
, AccountAggregationSource
, accountAggregationSource
, aasAWSRegions
, aasAllAWSRegions
, aasAccountIds
, AggregateComplianceByConfigRule
, aggregateComplianceByConfigRule
, acbcrCompliance
, acbcrConfigRuleName
, acbcrAccountId
, acbcrAWSRegion
, AggregateComplianceCount
, aggregateComplianceCount
, accGroupName
, accComplianceSummary
, AggregateEvaluationResult
, aggregateEvaluationResult
, aerEvaluationResultIdentifier
, aerAnnotation
, aerConfigRuleInvokedTime
, aerResultRecordedTime
, aerAccountId
, aerComplianceType
, aerAWSRegion
, AggregatedSourceStatus
, aggregatedSourceStatus
, assLastErrorCode
, assLastUpdateStatus
, assSourceType
, assSourceId
, assLastErrorMessage
, assAWSRegion
, assLastUpdateTime
, AggregationAuthorization
, aggregationAuthorization
, aaCreationTime
, aaAuthorizedAWSRegion
, aaAggregationAuthorizationARN
, aaAuthorizedAccountId
, BaseConfigurationItem
, baseConfigurationItem
, bciResourceId
, bciResourceType
, bciConfigurationStateId
, bciArn
, bciResourceName
, bciResourceCreationTime
, bciConfigurationItemStatus
, bciConfigurationItemCaptureTime
, bciAccountId
, bciSupplementaryConfiguration
, bciAvailabilityZone
, bciVersion
, bciAwsRegion
, bciConfiguration
, 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
, ConfigRuleComplianceFilters
, configRuleComplianceFilters
, crcfConfigRuleName
, crcfAccountId
, crcfComplianceType
, crcfAWSRegion
, ConfigRuleComplianceSummaryFilters
, configRuleComplianceSummaryFilters
, crcsfAccountId
, crcsfAWSRegion
, ConfigRuleEvaluationStatus
, configRuleEvaluationStatus
, cresLastErrorCode
, cresLastFailedEvaluationTime
, cresFirstActivatedTime
, cresLastSuccessfulEvaluationTime
, cresConfigRuleName
, cresLastErrorMessage
, cresConfigRuleId
, cresLastFailedInvocationTime
, cresFirstEvaluationStarted
, cresLastSuccessfulInvocationTime
, cresConfigRuleARN
, ConfigSnapshotDeliveryProperties
, configSnapshotDeliveryProperties
, csdpDeliveryFrequency
, ConfigStreamDeliveryInfo
, configStreamDeliveryInfo
, csdiLastErrorCode
, csdiLastStatusChangeTime
, csdiLastStatus
, csdiLastErrorMessage
, ConfigurationAggregator
, configurationAggregator
, caConfigurationAggregatorARN
, caCreationTime
, caOrganizationAggregationSource
, caLastUpdatedTime
, caAccountAggregationSources
, caConfigurationAggregatorName
, ConfigurationItem
, configurationItem
, ciResourceId
, ciResourceType
, ciConfigurationStateId
, ciArn
, ciResourceName
, ciResourceCreationTime
, ciConfigurationItemStatus
, ciConfigurationItemCaptureTime
, ciAccountId
, ciSupplementaryConfiguration
, 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
, OrganizationAggregationSource
, organizationAggregationSource
, oasAWSRegions
, oasAllAWSRegions
, oasRoleARN
, PendingAggregationRequest
, pendingAggregationRequest
, parRequesterAccountId
, parRequesterAWSRegion
, RecordingGroup
, recordingGroup
, rgAllSupported
, rgIncludeGlobalResourceTypes
, rgResourceTypes
, Relationship
, relationship
, rResourceId
, rResourceType
, rResourceName
, rRelationshipName
, ResourceCount
, resourceCount
, rcResourceType
, rcCount
, ResourceIdentifier
, resourceIdentifier
, riResourceId
, riResourceType
, riResourceName
, riResourceDeletionTime
, ResourceKey
, resourceKey
, rkResourceType
, rkResourceId
, Scope
, scope
, sComplianceResourceTypes
, sComplianceResourceId
, sTagValue
, sTagKey
, Source
, source
, sSourceDetails
, sOwner
, sSourceIdentifier
, SourceDetail
, sourceDetail
, sdMessageType
, sdMaximumExecutionFrequency
, sdEventSource
) where
import Network.AWS.Config.Types.Product
import Network.AWS.Config.Types.Sum
import Network.AWS.Lens
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 "Config"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
| has (hasStatus 429) e = Just "too_many_requests"
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasCode "RequestThrottledException" . hasStatus 400) e =
Just "request_throttled_exception"
| has (hasStatus 502) e = Just "bad_gateway"
| 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 =
_MatchServiceError config "InvalidTimeRangeException"
_InvalidSNSTopicARNException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSNSTopicARNException =
_MatchServiceError config "InvalidSNSTopicARNException"
_InvalidRecordingGroupException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRecordingGroupException =
_MatchServiceError config "InvalidRecordingGroupException"
_NoAvailableOrganizationException :: AsError a => Getting (First ServiceError) a ServiceError
_NoAvailableOrganizationException =
_MatchServiceError config "NoAvailableOrganizationException"
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_ValidationException = _MatchServiceError config "ValidationException"
_OrganizationAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
_OrganizationAccessDeniedException =
_MatchServiceError config "OrganizationAccessDeniedException"
_NoSuchConfigurationAggregatorException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchConfigurationAggregatorException =
_MatchServiceError config "NoSuchConfigurationAggregatorException"
_InvalidRoleException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRoleException = _MatchServiceError config "InvalidRoleException"
_LastDeliveryChannelDeleteFailedException :: AsError a => Getting (First ServiceError) a ServiceError
_LastDeliveryChannelDeleteFailedException =
_MatchServiceError config "LastDeliveryChannelDeleteFailedException"
_InvalidLimitException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidLimitException = _MatchServiceError config "InvalidLimitException"
_InvalidDeliveryChannelNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidDeliveryChannelNameException =
_MatchServiceError config "InvalidDeliveryChannelNameException"
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidParameterValueException =
_MatchServiceError config "InvalidParameterValueException"
_InvalidResultTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidResultTokenException =
_MatchServiceError config "InvalidResultTokenException"
_NoSuchDeliveryChannelException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchDeliveryChannelException =
_MatchServiceError config "NoSuchDeliveryChannelException"
_NoSuchConfigRuleException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchConfigRuleException =
_MatchServiceError config "NoSuchConfigRuleException"
_OrganizationAllFeaturesNotEnabledException :: AsError a => Getting (First ServiceError) a ServiceError
_OrganizationAllFeaturesNotEnabledException =
_MatchServiceError config "OrganizationAllFeaturesNotEnabledException"
_InsufficientPermissionsException :: AsError a => Getting (First ServiceError) a ServiceError
_InsufficientPermissionsException =
_MatchServiceError config "InsufficientPermissionsException"
_ResourceNotDiscoveredException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotDiscoveredException =
_MatchServiceError config "ResourceNotDiscoveredException"
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidNextTokenException =
_MatchServiceError config "InvalidNextTokenException"
_MaxNumberOfConfigRulesExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfConfigRulesExceededException =
_MatchServiceError config "MaxNumberOfConfigRulesExceededException"
_NoAvailableConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoAvailableConfigurationRecorderException =
_MatchServiceError config "NoAvailableConfigurationRecorderException"
_NoSuchBucketException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchBucketException = _MatchServiceError config "NoSuchBucketException"
_NoAvailableDeliveryChannelException :: AsError a => Getting (First ServiceError) a ServiceError
_NoAvailableDeliveryChannelException =
_MatchServiceError config "NoAvailableDeliveryChannelException"
_InvalidConfigurationRecorderNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidConfigurationRecorderNameException =
_MatchServiceError config "InvalidConfigurationRecorderNameException"
_NoRunningConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoRunningConfigurationRecorderException =
_MatchServiceError config "NoRunningConfigurationRecorderException"
_MaxNumberOfConfigurationRecordersExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfConfigurationRecordersExceededException =
_MatchServiceError config "MaxNumberOfConfigurationRecordersExceededException"
_InsufficientDeliveryPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
_InsufficientDeliveryPolicyException =
_MatchServiceError config "InsufficientDeliveryPolicyException"
_MaxNumberOfDeliveryChannelsExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaxNumberOfDeliveryChannelsExceededException =
_MatchServiceError config "MaxNumberOfDeliveryChannelsExceededException"
_NoSuchConfigurationRecorderException :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchConfigurationRecorderException =
_MatchServiceError config "NoSuchConfigurationRecorderException"
_InvalidS3KeyPrefixException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidS3KeyPrefixException =
_MatchServiceError config "InvalidS3KeyPrefixException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _MatchServiceError config "LimitExceededException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _MatchServiceError config "ResourceInUseException"