{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DevOpsGuru.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ThrottlingException,
_ValidationException,
AnomalySeverity (..),
AnomalyStatus (..),
AnomalyType (..),
CloudWatchMetricDataStatusCode (..),
CloudWatchMetricsStat (..),
CostEstimationServiceResourceState (..),
CostEstimationStatus (..),
EventClass (..),
EventDataSource (..),
EventSourceOptInStatus (..),
InsightFeedbackOption (..),
InsightSeverity (..),
InsightStatus (..),
InsightType (..),
Locale (..),
LogAnomalyType (..),
NotificationMessageType (..),
OptInStatus (..),
OrganizationResourceCollectionType (..),
ResourceCollectionType (..),
ResourcePermission (..),
ResourceTypeFilter (..),
ServiceName (..),
UpdateResourceCollectionAction (..),
AccountHealth (..),
newAccountHealth,
accountHealth_accountId,
accountHealth_insight,
AccountInsightHealth (..),
newAccountInsightHealth,
accountInsightHealth_openProactiveInsights,
accountInsightHealth_openReactiveInsights,
AmazonCodeGuruProfilerIntegration (..),
newAmazonCodeGuruProfilerIntegration,
amazonCodeGuruProfilerIntegration_status,
AnomalousLogGroup (..),
newAnomalousLogGroup,
anomalousLogGroup_impactEndTime,
anomalousLogGroup_impactStartTime,
anomalousLogGroup_logAnomalyShowcases,
anomalousLogGroup_logGroupName,
anomalousLogGroup_numberOfLogLinesScanned,
AnomalyReportedTimeRange (..),
newAnomalyReportedTimeRange,
anomalyReportedTimeRange_closeTime,
anomalyReportedTimeRange_openTime,
AnomalyResource (..),
newAnomalyResource,
anomalyResource_name,
anomalyResource_type,
AnomalySourceDetails (..),
newAnomalySourceDetails,
anomalySourceDetails_cloudWatchMetrics,
anomalySourceDetails_performanceInsightsMetrics,
AnomalySourceMetadata (..),
newAnomalySourceMetadata,
anomalySourceMetadata_source,
anomalySourceMetadata_sourceResourceName,
anomalySourceMetadata_sourceResourceType,
AnomalyTimeRange (..),
newAnomalyTimeRange,
anomalyTimeRange_endTime,
anomalyTimeRange_startTime,
CloudFormationCollection (..),
newCloudFormationCollection,
cloudFormationCollection_stackNames,
CloudFormationCollectionFilter (..),
newCloudFormationCollectionFilter,
cloudFormationCollectionFilter_stackNames,
CloudFormationCostEstimationResourceCollectionFilter (..),
newCloudFormationCostEstimationResourceCollectionFilter,
cloudFormationCostEstimationResourceCollectionFilter_stackNames,
CloudFormationHealth (..),
newCloudFormationHealth,
cloudFormationHealth_analyzedResourceCount,
cloudFormationHealth_insight,
cloudFormationHealth_stackName,
CloudWatchMetricsDataSummary (..),
newCloudWatchMetricsDataSummary,
cloudWatchMetricsDataSummary_statusCode,
cloudWatchMetricsDataSummary_timestampMetricValuePairList,
CloudWatchMetricsDetail (..),
newCloudWatchMetricsDetail,
cloudWatchMetricsDetail_dimensions,
cloudWatchMetricsDetail_metricDataSummary,
cloudWatchMetricsDetail_metricName,
cloudWatchMetricsDetail_namespace,
cloudWatchMetricsDetail_period,
cloudWatchMetricsDetail_stat,
cloudWatchMetricsDetail_unit,
CloudWatchMetricsDimension (..),
newCloudWatchMetricsDimension,
cloudWatchMetricsDimension_name,
cloudWatchMetricsDimension_value,
CostEstimationResourceCollectionFilter (..),
newCostEstimationResourceCollectionFilter,
costEstimationResourceCollectionFilter_cloudFormation,
costEstimationResourceCollectionFilter_tags,
CostEstimationTimeRange (..),
newCostEstimationTimeRange,
costEstimationTimeRange_endTime,
costEstimationTimeRange_startTime,
EndTimeRange (..),
newEndTimeRange,
endTimeRange_fromTime,
endTimeRange_toTime,
Event (..),
newEvent,
event_dataSource,
event_eventClass,
event_eventSource,
event_id,
event_name,
event_resourceCollection,
event_resources,
event_time,
EventResource (..),
newEventResource,
eventResource_arn,
eventResource_name,
eventResource_type,
EventSourcesConfig (..),
newEventSourcesConfig,
eventSourcesConfig_amazonCodeGuruProfiler,
EventTimeRange (..),
newEventTimeRange,
eventTimeRange_fromTime,
eventTimeRange_toTime,
InsightFeedback (..),
newInsightFeedback,
insightFeedback_feedback,
insightFeedback_id,
InsightHealth (..),
newInsightHealth,
insightHealth_meanTimeToRecoverInMilliseconds,
insightHealth_openProactiveInsights,
insightHealth_openReactiveInsights,
InsightTimeRange (..),
newInsightTimeRange,
insightTimeRange_endTime,
insightTimeRange_startTime,
ListEventsFilters (..),
newListEventsFilters,
listEventsFilters_dataSource,
listEventsFilters_eventClass,
listEventsFilters_eventSource,
listEventsFilters_eventTimeRange,
listEventsFilters_insightId,
listEventsFilters_resourceCollection,
ListInsightsAnyStatusFilter (..),
newListInsightsAnyStatusFilter,
listInsightsAnyStatusFilter_type,
listInsightsAnyStatusFilter_startTimeRange,
ListInsightsClosedStatusFilter (..),
newListInsightsClosedStatusFilter,
listInsightsClosedStatusFilter_type,
listInsightsClosedStatusFilter_endTimeRange,
ListInsightsOngoingStatusFilter (..),
newListInsightsOngoingStatusFilter,
listInsightsOngoingStatusFilter_type,
ListInsightsStatusFilter (..),
newListInsightsStatusFilter,
listInsightsStatusFilter_any,
listInsightsStatusFilter_closed,
listInsightsStatusFilter_ongoing,
ListMonitoredResourcesFilters (..),
newListMonitoredResourcesFilters,
listMonitoredResourcesFilters_resourcePermission,
listMonitoredResourcesFilters_resourceTypeFilters,
LogAnomalyClass (..),
newLogAnomalyClass,
logAnomalyClass_explanation,
logAnomalyClass_logAnomalyToken,
logAnomalyClass_logAnomalyType,
logAnomalyClass_logEventId,
logAnomalyClass_logEventTimestamp,
logAnomalyClass_logStreamName,
logAnomalyClass_numberOfLogLinesOccurrences,
LogAnomalyShowcase (..),
newLogAnomalyShowcase,
logAnomalyShowcase_logAnomalyClasses,
LogsAnomalyDetectionIntegration (..),
newLogsAnomalyDetectionIntegration,
logsAnomalyDetectionIntegration_optInStatus,
LogsAnomalyDetectionIntegrationConfig (..),
newLogsAnomalyDetectionIntegrationConfig,
logsAnomalyDetectionIntegrationConfig_optInStatus,
MonitoredResourceIdentifier (..),
newMonitoredResourceIdentifier,
monitoredResourceIdentifier_lastUpdated,
monitoredResourceIdentifier_monitoredResourceName,
monitoredResourceIdentifier_resourceCollection,
monitoredResourceIdentifier_resourcePermission,
monitoredResourceIdentifier_type,
NotificationChannel (..),
newNotificationChannel,
notificationChannel_config,
notificationChannel_id,
NotificationChannelConfig (..),
newNotificationChannelConfig,
notificationChannelConfig_filters,
notificationChannelConfig_sns,
NotificationFilterConfig (..),
newNotificationFilterConfig,
notificationFilterConfig_messageTypes,
notificationFilterConfig_severities,
OpsCenterIntegration (..),
newOpsCenterIntegration,
opsCenterIntegration_optInStatus,
OpsCenterIntegrationConfig (..),
newOpsCenterIntegrationConfig,
opsCenterIntegrationConfig_optInStatus,
PerformanceInsightsMetricDimensionGroup (..),
newPerformanceInsightsMetricDimensionGroup,
performanceInsightsMetricDimensionGroup_dimensions,
performanceInsightsMetricDimensionGroup_group,
performanceInsightsMetricDimensionGroup_limit,
PerformanceInsightsMetricQuery (..),
newPerformanceInsightsMetricQuery,
performanceInsightsMetricQuery_filter,
performanceInsightsMetricQuery_groupBy,
performanceInsightsMetricQuery_metric,
PerformanceInsightsMetricsDetail (..),
newPerformanceInsightsMetricsDetail,
performanceInsightsMetricsDetail_metricDisplayName,
performanceInsightsMetricsDetail_metricQuery,
performanceInsightsMetricsDetail_referenceData,
performanceInsightsMetricsDetail_statsAtAnomaly,
performanceInsightsMetricsDetail_statsAtBaseline,
performanceInsightsMetricsDetail_unit,
PerformanceInsightsReferenceComparisonValues (..),
newPerformanceInsightsReferenceComparisonValues,
performanceInsightsReferenceComparisonValues_referenceMetric,
performanceInsightsReferenceComparisonValues_referenceScalar,
PerformanceInsightsReferenceData (..),
newPerformanceInsightsReferenceData,
performanceInsightsReferenceData_comparisonValues,
performanceInsightsReferenceData_name,
PerformanceInsightsReferenceMetric (..),
newPerformanceInsightsReferenceMetric,
performanceInsightsReferenceMetric_metricQuery,
PerformanceInsightsReferenceScalar (..),
newPerformanceInsightsReferenceScalar,
performanceInsightsReferenceScalar_value,
PerformanceInsightsStat (..),
newPerformanceInsightsStat,
performanceInsightsStat_type,
performanceInsightsStat_value,
PredictionTimeRange (..),
newPredictionTimeRange,
predictionTimeRange_endTime,
predictionTimeRange_startTime,
ProactiveAnomaly (..),
newProactiveAnomaly,
proactiveAnomaly_anomalyReportedTimeRange,
proactiveAnomaly_anomalyResources,
proactiveAnomaly_anomalyTimeRange,
proactiveAnomaly_associatedInsightId,
proactiveAnomaly_id,
proactiveAnomaly_limit,
proactiveAnomaly_predictionTimeRange,
proactiveAnomaly_resourceCollection,
proactiveAnomaly_severity,
proactiveAnomaly_sourceDetails,
proactiveAnomaly_sourceMetadata,
proactiveAnomaly_status,
proactiveAnomaly_updateTime,
ProactiveAnomalySummary (..),
newProactiveAnomalySummary,
proactiveAnomalySummary_anomalyReportedTimeRange,
proactiveAnomalySummary_anomalyResources,
proactiveAnomalySummary_anomalyTimeRange,
proactiveAnomalySummary_associatedInsightId,
proactiveAnomalySummary_id,
proactiveAnomalySummary_limit,
proactiveAnomalySummary_predictionTimeRange,
proactiveAnomalySummary_resourceCollection,
proactiveAnomalySummary_severity,
proactiveAnomalySummary_sourceDetails,
proactiveAnomalySummary_sourceMetadata,
proactiveAnomalySummary_status,
proactiveAnomalySummary_updateTime,
ProactiveInsight (..),
newProactiveInsight,
proactiveInsight_description,
proactiveInsight_id,
proactiveInsight_insightTimeRange,
proactiveInsight_name,
proactiveInsight_predictionTimeRange,
proactiveInsight_resourceCollection,
proactiveInsight_severity,
proactiveInsight_ssmOpsItemId,
proactiveInsight_status,
ProactiveInsightSummary (..),
newProactiveInsightSummary,
proactiveInsightSummary_associatedResourceArns,
proactiveInsightSummary_id,
proactiveInsightSummary_insightTimeRange,
proactiveInsightSummary_name,
proactiveInsightSummary_predictionTimeRange,
proactiveInsightSummary_resourceCollection,
proactiveInsightSummary_serviceCollection,
proactiveInsightSummary_severity,
proactiveInsightSummary_status,
ProactiveOrganizationInsightSummary (..),
newProactiveOrganizationInsightSummary,
proactiveOrganizationInsightSummary_accountId,
proactiveOrganizationInsightSummary_id,
proactiveOrganizationInsightSummary_insightTimeRange,
proactiveOrganizationInsightSummary_name,
proactiveOrganizationInsightSummary_organizationalUnitId,
proactiveOrganizationInsightSummary_predictionTimeRange,
proactiveOrganizationInsightSummary_resourceCollection,
proactiveOrganizationInsightSummary_serviceCollection,
proactiveOrganizationInsightSummary_severity,
proactiveOrganizationInsightSummary_status,
ReactiveAnomaly (..),
newReactiveAnomaly,
reactiveAnomaly_anomalyReportedTimeRange,
reactiveAnomaly_anomalyResources,
reactiveAnomaly_anomalyTimeRange,
reactiveAnomaly_associatedInsightId,
reactiveAnomaly_causalAnomalyId,
reactiveAnomaly_description,
reactiveAnomaly_id,
reactiveAnomaly_name,
reactiveAnomaly_resourceCollection,
reactiveAnomaly_severity,
reactiveAnomaly_sourceDetails,
reactiveAnomaly_status,
reactiveAnomaly_type,
ReactiveAnomalySummary (..),
newReactiveAnomalySummary,
reactiveAnomalySummary_anomalyReportedTimeRange,
reactiveAnomalySummary_anomalyResources,
reactiveAnomalySummary_anomalyTimeRange,
reactiveAnomalySummary_associatedInsightId,
reactiveAnomalySummary_causalAnomalyId,
reactiveAnomalySummary_description,
reactiveAnomalySummary_id,
reactiveAnomalySummary_name,
reactiveAnomalySummary_resourceCollection,
reactiveAnomalySummary_severity,
reactiveAnomalySummary_sourceDetails,
reactiveAnomalySummary_status,
reactiveAnomalySummary_type,
ReactiveInsight (..),
newReactiveInsight,
reactiveInsight_description,
reactiveInsight_id,
reactiveInsight_insightTimeRange,
reactiveInsight_name,
reactiveInsight_resourceCollection,
reactiveInsight_severity,
reactiveInsight_ssmOpsItemId,
reactiveInsight_status,
ReactiveInsightSummary (..),
newReactiveInsightSummary,
reactiveInsightSummary_associatedResourceArns,
reactiveInsightSummary_id,
reactiveInsightSummary_insightTimeRange,
reactiveInsightSummary_name,
reactiveInsightSummary_resourceCollection,
reactiveInsightSummary_serviceCollection,
reactiveInsightSummary_severity,
reactiveInsightSummary_status,
ReactiveOrganizationInsightSummary (..),
newReactiveOrganizationInsightSummary,
reactiveOrganizationInsightSummary_accountId,
reactiveOrganizationInsightSummary_id,
reactiveOrganizationInsightSummary_insightTimeRange,
reactiveOrganizationInsightSummary_name,
reactiveOrganizationInsightSummary_organizationalUnitId,
reactiveOrganizationInsightSummary_resourceCollection,
reactiveOrganizationInsightSummary_serviceCollection,
reactiveOrganizationInsightSummary_severity,
reactiveOrganizationInsightSummary_status,
Recommendation (..),
newRecommendation,
recommendation_category,
recommendation_description,
recommendation_link,
recommendation_name,
recommendation_reason,
recommendation_relatedAnomalies,
recommendation_relatedEvents,
RecommendationRelatedAnomaly (..),
newRecommendationRelatedAnomaly,
recommendationRelatedAnomaly_anomalyId,
recommendationRelatedAnomaly_resources,
recommendationRelatedAnomaly_sourceDetails,
RecommendationRelatedAnomalyResource (..),
newRecommendationRelatedAnomalyResource,
recommendationRelatedAnomalyResource_name,
recommendationRelatedAnomalyResource_type,
RecommendationRelatedAnomalySourceDetail (..),
newRecommendationRelatedAnomalySourceDetail,
recommendationRelatedAnomalySourceDetail_cloudWatchMetrics,
RecommendationRelatedCloudWatchMetricsSourceDetail (..),
newRecommendationRelatedCloudWatchMetricsSourceDetail,
recommendationRelatedCloudWatchMetricsSourceDetail_metricName,
recommendationRelatedCloudWatchMetricsSourceDetail_namespace,
RecommendationRelatedEvent (..),
newRecommendationRelatedEvent,
recommendationRelatedEvent_name,
recommendationRelatedEvent_resources,
RecommendationRelatedEventResource (..),
newRecommendationRelatedEventResource,
recommendationRelatedEventResource_name,
recommendationRelatedEventResource_type,
ResourceCollection (..),
newResourceCollection,
resourceCollection_cloudFormation,
resourceCollection_tags,
ResourceCollectionFilter (..),
newResourceCollectionFilter,
resourceCollectionFilter_cloudFormation,
resourceCollectionFilter_tags,
SearchInsightsFilters (..),
newSearchInsightsFilters,
searchInsightsFilters_resourceCollection,
searchInsightsFilters_serviceCollection,
searchInsightsFilters_severities,
searchInsightsFilters_statuses,
SearchOrganizationInsightsFilters (..),
newSearchOrganizationInsightsFilters,
searchOrganizationInsightsFilters_resourceCollection,
searchOrganizationInsightsFilters_serviceCollection,
searchOrganizationInsightsFilters_severities,
searchOrganizationInsightsFilters_statuses,
ServiceCollection (..),
newServiceCollection,
serviceCollection_serviceNames,
ServiceHealth (..),
newServiceHealth,
serviceHealth_analyzedResourceCount,
serviceHealth_insight,
serviceHealth_serviceName,
ServiceInsightHealth (..),
newServiceInsightHealth,
serviceInsightHealth_openProactiveInsights,
serviceInsightHealth_openReactiveInsights,
ServiceIntegrationConfig (..),
newServiceIntegrationConfig,
serviceIntegrationConfig_logsAnomalyDetection,
serviceIntegrationConfig_opsCenter,
ServiceResourceCost (..),
newServiceResourceCost,
serviceResourceCost_cost,
serviceResourceCost_count,
serviceResourceCost_state,
serviceResourceCost_type,
serviceResourceCost_unitCost,
SnsChannelConfig (..),
newSnsChannelConfig,
snsChannelConfig_topicArn,
StartTimeRange (..),
newStartTimeRange,
startTimeRange_fromTime,
startTimeRange_toTime,
TagCollection (..),
newTagCollection,
tagCollection_appBoundaryKey,
tagCollection_tagValues,
TagCollectionFilter (..),
newTagCollectionFilter,
tagCollectionFilter_appBoundaryKey,
tagCollectionFilter_tagValues,
TagCostEstimationResourceCollectionFilter (..),
newTagCostEstimationResourceCollectionFilter,
tagCostEstimationResourceCollectionFilter_appBoundaryKey,
tagCostEstimationResourceCollectionFilter_tagValues,
TagHealth (..),
newTagHealth,
tagHealth_analyzedResourceCount,
tagHealth_appBoundaryKey,
tagHealth_insight,
tagHealth_tagValue,
TimestampMetricValuePair (..),
newTimestampMetricValuePair,
timestampMetricValuePair_metricValue,
timestampMetricValuePair_timestamp,
UpdateCloudFormationCollectionFilter (..),
newUpdateCloudFormationCollectionFilter,
updateCloudFormationCollectionFilter_stackNames,
UpdateResourceCollectionFilter (..),
newUpdateResourceCollectionFilter,
updateResourceCollectionFilter_cloudFormation,
updateResourceCollectionFilter_tags,
UpdateServiceIntegrationConfig (..),
newUpdateServiceIntegrationConfig,
updateServiceIntegrationConfig_logsAnomalyDetection,
updateServiceIntegrationConfig_opsCenter,
UpdateTagCollectionFilter (..),
newUpdateTagCollectionFilter,
updateTagCollectionFilter_appBoundaryKey,
updateTagCollectionFilter_tagValues,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.DevOpsGuru.Types.AccountHealth
import Amazonka.DevOpsGuru.Types.AccountInsightHealth
import Amazonka.DevOpsGuru.Types.AmazonCodeGuruProfilerIntegration
import Amazonka.DevOpsGuru.Types.AnomalousLogGroup
import Amazonka.DevOpsGuru.Types.AnomalyReportedTimeRange
import Amazonka.DevOpsGuru.Types.AnomalyResource
import Amazonka.DevOpsGuru.Types.AnomalySeverity
import Amazonka.DevOpsGuru.Types.AnomalySourceDetails
import Amazonka.DevOpsGuru.Types.AnomalySourceMetadata
import Amazonka.DevOpsGuru.Types.AnomalyStatus
import Amazonka.DevOpsGuru.Types.AnomalyTimeRange
import Amazonka.DevOpsGuru.Types.AnomalyType
import Amazonka.DevOpsGuru.Types.CloudFormationCollection
import Amazonka.DevOpsGuru.Types.CloudFormationCollectionFilter
import Amazonka.DevOpsGuru.Types.CloudFormationCostEstimationResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.CloudFormationHealth
import Amazonka.DevOpsGuru.Types.CloudWatchMetricDataStatusCode
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsDataSummary
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsDetail
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsDimension
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsStat
import Amazonka.DevOpsGuru.Types.CostEstimationResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.CostEstimationServiceResourceState
import Amazonka.DevOpsGuru.Types.CostEstimationStatus
import Amazonka.DevOpsGuru.Types.CostEstimationTimeRange
import Amazonka.DevOpsGuru.Types.EndTimeRange
import Amazonka.DevOpsGuru.Types.Event
import Amazonka.DevOpsGuru.Types.EventClass
import Amazonka.DevOpsGuru.Types.EventDataSource
import Amazonka.DevOpsGuru.Types.EventResource
import Amazonka.DevOpsGuru.Types.EventSourceOptInStatus
import Amazonka.DevOpsGuru.Types.EventSourcesConfig
import Amazonka.DevOpsGuru.Types.EventTimeRange
import Amazonka.DevOpsGuru.Types.InsightFeedback
import Amazonka.DevOpsGuru.Types.InsightFeedbackOption
import Amazonka.DevOpsGuru.Types.InsightHealth
import Amazonka.DevOpsGuru.Types.InsightSeverity
import Amazonka.DevOpsGuru.Types.InsightStatus
import Amazonka.DevOpsGuru.Types.InsightTimeRange
import Amazonka.DevOpsGuru.Types.InsightType
import Amazonka.DevOpsGuru.Types.ListEventsFilters
import Amazonka.DevOpsGuru.Types.ListInsightsAnyStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsClosedStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsOngoingStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsStatusFilter
import Amazonka.DevOpsGuru.Types.ListMonitoredResourcesFilters
import Amazonka.DevOpsGuru.Types.Locale
import Amazonka.DevOpsGuru.Types.LogAnomalyClass
import Amazonka.DevOpsGuru.Types.LogAnomalyShowcase
import Amazonka.DevOpsGuru.Types.LogAnomalyType
import Amazonka.DevOpsGuru.Types.LogsAnomalyDetectionIntegration
import Amazonka.DevOpsGuru.Types.LogsAnomalyDetectionIntegrationConfig
import Amazonka.DevOpsGuru.Types.MonitoredResourceIdentifier
import Amazonka.DevOpsGuru.Types.NotificationChannel
import Amazonka.DevOpsGuru.Types.NotificationChannelConfig
import Amazonka.DevOpsGuru.Types.NotificationFilterConfig
import Amazonka.DevOpsGuru.Types.NotificationMessageType
import Amazonka.DevOpsGuru.Types.OpsCenterIntegration
import Amazonka.DevOpsGuru.Types.OpsCenterIntegrationConfig
import Amazonka.DevOpsGuru.Types.OptInStatus
import Amazonka.DevOpsGuru.Types.OrganizationResourceCollectionType
import Amazonka.DevOpsGuru.Types.PerformanceInsightsMetricDimensionGroup
import Amazonka.DevOpsGuru.Types.PerformanceInsightsMetricQuery
import Amazonka.DevOpsGuru.Types.PerformanceInsightsMetricsDetail
import Amazonka.DevOpsGuru.Types.PerformanceInsightsReferenceComparisonValues
import Amazonka.DevOpsGuru.Types.PerformanceInsightsReferenceData
import Amazonka.DevOpsGuru.Types.PerformanceInsightsReferenceMetric
import Amazonka.DevOpsGuru.Types.PerformanceInsightsReferenceScalar
import Amazonka.DevOpsGuru.Types.PerformanceInsightsStat
import Amazonka.DevOpsGuru.Types.PredictionTimeRange
import Amazonka.DevOpsGuru.Types.ProactiveAnomaly
import Amazonka.DevOpsGuru.Types.ProactiveAnomalySummary
import Amazonka.DevOpsGuru.Types.ProactiveInsight
import Amazonka.DevOpsGuru.Types.ProactiveInsightSummary
import Amazonka.DevOpsGuru.Types.ProactiveOrganizationInsightSummary
import Amazonka.DevOpsGuru.Types.ReactiveAnomaly
import Amazonka.DevOpsGuru.Types.ReactiveAnomalySummary
import Amazonka.DevOpsGuru.Types.ReactiveInsight
import Amazonka.DevOpsGuru.Types.ReactiveInsightSummary
import Amazonka.DevOpsGuru.Types.ReactiveOrganizationInsightSummary
import Amazonka.DevOpsGuru.Types.Recommendation
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomaly
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomalyResource
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomalySourceDetail
import Amazonka.DevOpsGuru.Types.RecommendationRelatedCloudWatchMetricsSourceDetail
import Amazonka.DevOpsGuru.Types.RecommendationRelatedEvent
import Amazonka.DevOpsGuru.Types.RecommendationRelatedEventResource
import Amazonka.DevOpsGuru.Types.ResourceCollection
import Amazonka.DevOpsGuru.Types.ResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.ResourceCollectionType
import Amazonka.DevOpsGuru.Types.ResourcePermission
import Amazonka.DevOpsGuru.Types.ResourceTypeFilter
import Amazonka.DevOpsGuru.Types.SearchInsightsFilters
import Amazonka.DevOpsGuru.Types.SearchOrganizationInsightsFilters
import Amazonka.DevOpsGuru.Types.ServiceCollection
import Amazonka.DevOpsGuru.Types.ServiceHealth
import Amazonka.DevOpsGuru.Types.ServiceInsightHealth
import Amazonka.DevOpsGuru.Types.ServiceIntegrationConfig
import Amazonka.DevOpsGuru.Types.ServiceName
import Amazonka.DevOpsGuru.Types.ServiceResourceCost
import Amazonka.DevOpsGuru.Types.SnsChannelConfig
import Amazonka.DevOpsGuru.Types.StartTimeRange
import Amazonka.DevOpsGuru.Types.TagCollection
import Amazonka.DevOpsGuru.Types.TagCollectionFilter
import Amazonka.DevOpsGuru.Types.TagCostEstimationResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.TagHealth
import Amazonka.DevOpsGuru.Types.TimestampMetricValuePair
import Amazonka.DevOpsGuru.Types.UpdateCloudFormationCollectionFilter
import Amazonka.DevOpsGuru.Types.UpdateResourceCollectionAction
import Amazonka.DevOpsGuru.Types.UpdateResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.UpdateServiceIntegrationConfig
import Amazonka.DevOpsGuru.Types.UpdateTagCollectionFilter
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"DevOpsGuru",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"devops-guru",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"devops-guru",
$sel:version:Service :: ByteString
Core.version = ByteString
"2020-12-01",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"DevOpsGuru",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ServiceQuotaExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceQuotaExceededException :: forall a. AsError a => Fold a ServiceError
_ServiceQuotaExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
402
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException :: forall a. AsError a => Fold a ServiceError
_ThrottlingException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400