{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodeDeploy.Types
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeDeploy.Types
  ( -- * Service Configuration
    defaultService,

    -- * Errors
    _AlarmsLimitExceededException,
    _ApplicationAlreadyExistsException,
    _ApplicationDoesNotExistException,
    _ApplicationLimitExceededException,
    _ApplicationNameRequiredException,
    _ArnNotSupportedException,
    _BatchLimitExceededException,
    _BucketNameFilterRequiredException,
    _DeploymentAlreadyCompletedException,
    _DeploymentAlreadyStartedException,
    _DeploymentConfigAlreadyExistsException,
    _DeploymentConfigDoesNotExistException,
    _DeploymentConfigInUseException,
    _DeploymentConfigLimitExceededException,
    _DeploymentConfigNameRequiredException,
    _DeploymentDoesNotExistException,
    _DeploymentGroupAlreadyExistsException,
    _DeploymentGroupDoesNotExistException,
    _DeploymentGroupLimitExceededException,
    _DeploymentGroupNameRequiredException,
    _DeploymentIdRequiredException,
    _DeploymentIsNotInReadyStateException,
    _DeploymentLimitExceededException,
    _DeploymentNotStartedException,
    _DeploymentTargetDoesNotExistException,
    _DeploymentTargetIdRequiredException,
    _DeploymentTargetListSizeExceededException,
    _DescriptionTooLongException,
    _ECSServiceMappingLimitExceededException,
    _GitHubAccountTokenDoesNotExistException,
    _GitHubAccountTokenNameRequiredException,
    _IamArnRequiredException,
    _IamSessionArnAlreadyRegisteredException,
    _IamUserArnAlreadyRegisteredException,
    _IamUserArnRequiredException,
    _InstanceDoesNotExistException,
    _InstanceIdRequiredException,
    _InstanceLimitExceededException,
    _InstanceNameAlreadyRegisteredException,
    _InstanceNameRequiredException,
    _InstanceNotRegisteredException,
    _InvalidAlarmConfigException,
    _InvalidApplicationNameException,
    _InvalidArnException,
    _InvalidAutoRollbackConfigException,
    _InvalidAutoScalingGroupException,
    _InvalidBlueGreenDeploymentConfigurationException,
    _InvalidBucketNameFilterException,
    _InvalidComputePlatformException,
    _InvalidDeployedStateFilterException,
    _InvalidDeploymentConfigNameException,
    _InvalidDeploymentGroupNameException,
    _InvalidDeploymentIdException,
    _InvalidDeploymentInstanceTypeException,
    _InvalidDeploymentStatusException,
    _InvalidDeploymentStyleException,
    _InvalidDeploymentTargetIdException,
    _InvalidDeploymentWaitTypeException,
    _InvalidEC2TagCombinationException,
    _InvalidEC2TagException,
    _InvalidECSServiceException,
    _InvalidExternalIdException,
    _InvalidFileExistsBehaviorException,
    _InvalidGitHubAccountTokenException,
    _InvalidGitHubAccountTokenNameException,
    _InvalidIamSessionArnException,
    _InvalidIamUserArnException,
    _InvalidIgnoreApplicationStopFailuresValueException,
    _InvalidInputException,
    _InvalidInstanceIdException,
    _InvalidInstanceNameException,
    _InvalidInstanceStatusException,
    _InvalidInstanceTypeException,
    _InvalidKeyPrefixFilterException,
    _InvalidLifecycleEventHookExecutionIdException,
    _InvalidLifecycleEventHookExecutionStatusException,
    _InvalidLoadBalancerInfoException,
    _InvalidMinimumHealthyHostValueException,
    _InvalidNextTokenException,
    _InvalidOnPremisesTagCombinationException,
    _InvalidOperationException,
    _InvalidRegistrationStatusException,
    _InvalidRevisionException,
    _InvalidRoleException,
    _InvalidSortByException,
    _InvalidSortOrderException,
    _InvalidTagException,
    _InvalidTagFilterException,
    _InvalidTagsToAddException,
    _InvalidTargetException,
    _InvalidTargetFilterNameException,
    _InvalidTargetGroupPairException,
    _InvalidTargetInstancesException,
    _InvalidTimeRangeException,
    _InvalidTrafficRoutingConfigurationException,
    _InvalidTriggerConfigException,
    _InvalidUpdateOutdatedInstancesOnlyValueException,
    _LifecycleEventAlreadyCompletedException,
    _LifecycleHookLimitExceededException,
    _MultipleIamArnsProvidedException,
    _OperationNotSupportedException,
    _ResourceArnRequiredException,
    _ResourceValidationException,
    _RevisionDoesNotExistException,
    _RevisionRequiredException,
    _RoleRequiredException,
    _TagLimitExceededException,
    _TagRequiredException,
    _TagSetListLimitExceededException,
    _ThrottlingException,
    _TriggerTargetsLimitExceededException,
    _UnsupportedActionForDeploymentTypeException,

    -- * ApplicationRevisionSortBy
    ApplicationRevisionSortBy (..),

    -- * AutoRollbackEvent
    AutoRollbackEvent (..),

    -- * BundleType
    BundleType (..),

    -- * ComputePlatform
    ComputePlatform (..),

    -- * DeployErrorCode
    DeployErrorCode (..),

    -- * DeploymentCreator
    DeploymentCreator (..),

    -- * DeploymentOption
    DeploymentOption (..),

    -- * DeploymentReadyAction
    DeploymentReadyAction (..),

    -- * DeploymentStatus
    DeploymentStatus (..),

    -- * DeploymentTargetType
    DeploymentTargetType (..),

    -- * DeploymentType
    DeploymentType (..),

    -- * DeploymentWaitType
    DeploymentWaitType (..),

    -- * EC2TagFilterType
    EC2TagFilterType (..),

    -- * FileExistsBehavior
    FileExistsBehavior (..),

    -- * GreenFleetProvisioningAction
    GreenFleetProvisioningAction (..),

    -- * InstanceAction
    InstanceAction (..),

    -- * LifecycleErrorCode
    LifecycleErrorCode (..),

    -- * LifecycleEventStatus
    LifecycleEventStatus (..),

    -- * ListStateFilterAction
    ListStateFilterAction (..),

    -- * MinimumHealthyHostsType
    MinimumHealthyHostsType (..),

    -- * OutdatedInstancesStrategy
    OutdatedInstancesStrategy (..),

    -- * RegistrationStatus
    RegistrationStatus (..),

    -- * RevisionLocationType
    RevisionLocationType (..),

    -- * SortOrder
    SortOrder (..),

    -- * StopStatus
    StopStatus (..),

    -- * TagFilterType
    TagFilterType (..),

    -- * TargetFilterName
    TargetFilterName (..),

    -- * TargetLabel
    TargetLabel (..),

    -- * TargetStatus
    TargetStatus (..),

    -- * TrafficRoutingType
    TrafficRoutingType (..),

    -- * TriggerEventType
    TriggerEventType (..),

    -- * Alarm
    Alarm (..),
    newAlarm,
    alarm_name,

    -- * AlarmConfiguration
    AlarmConfiguration (..),
    newAlarmConfiguration,
    alarmConfiguration_alarms,
    alarmConfiguration_enabled,
    alarmConfiguration_ignorePollAlarmFailure,

    -- * AppSpecContent
    AppSpecContent (..),
    newAppSpecContent,
    appSpecContent_content,
    appSpecContent_sha256,

    -- * ApplicationInfo
    ApplicationInfo (..),
    newApplicationInfo,
    applicationInfo_applicationId,
    applicationInfo_applicationName,
    applicationInfo_computePlatform,
    applicationInfo_createTime,
    applicationInfo_gitHubAccountName,
    applicationInfo_linkedToGitHub,

    -- * AutoRollbackConfiguration
    AutoRollbackConfiguration (..),
    newAutoRollbackConfiguration,
    autoRollbackConfiguration_enabled,
    autoRollbackConfiguration_events,

    -- * AutoScalingGroup
    AutoScalingGroup (..),
    newAutoScalingGroup,
    autoScalingGroup_hook,
    autoScalingGroup_name,

    -- * BlueGreenDeploymentConfiguration
    BlueGreenDeploymentConfiguration (..),
    newBlueGreenDeploymentConfiguration,
    blueGreenDeploymentConfiguration_deploymentReadyOption,
    blueGreenDeploymentConfiguration_greenFleetProvisioningOption,
    blueGreenDeploymentConfiguration_terminateBlueInstancesOnDeploymentSuccess,

    -- * BlueInstanceTerminationOption
    BlueInstanceTerminationOption (..),
    newBlueInstanceTerminationOption,
    blueInstanceTerminationOption_action,
    blueInstanceTerminationOption_terminationWaitTimeInMinutes,

    -- * CloudFormationTarget
    CloudFormationTarget (..),
    newCloudFormationTarget,
    cloudFormationTarget_deploymentId,
    cloudFormationTarget_lastUpdatedAt,
    cloudFormationTarget_lifecycleEvents,
    cloudFormationTarget_resourceType,
    cloudFormationTarget_status,
    cloudFormationTarget_targetId,
    cloudFormationTarget_targetVersionWeight,

    -- * DeploymentConfigInfo
    DeploymentConfigInfo (..),
    newDeploymentConfigInfo,
    deploymentConfigInfo_computePlatform,
    deploymentConfigInfo_createTime,
    deploymentConfigInfo_deploymentConfigId,
    deploymentConfigInfo_deploymentConfigName,
    deploymentConfigInfo_minimumHealthyHosts,
    deploymentConfigInfo_trafficRoutingConfig,

    -- * DeploymentGroupInfo
    DeploymentGroupInfo (..),
    newDeploymentGroupInfo,
    deploymentGroupInfo_alarmConfiguration,
    deploymentGroupInfo_applicationName,
    deploymentGroupInfo_autoRollbackConfiguration,
    deploymentGroupInfo_autoScalingGroups,
    deploymentGroupInfo_blueGreenDeploymentConfiguration,
    deploymentGroupInfo_computePlatform,
    deploymentGroupInfo_deploymentConfigName,
    deploymentGroupInfo_deploymentGroupId,
    deploymentGroupInfo_deploymentGroupName,
    deploymentGroupInfo_deploymentStyle,
    deploymentGroupInfo_ec2TagFilters,
    deploymentGroupInfo_ec2TagSet,
    deploymentGroupInfo_ecsServices,
    deploymentGroupInfo_lastAttemptedDeployment,
    deploymentGroupInfo_lastSuccessfulDeployment,
    deploymentGroupInfo_loadBalancerInfo,
    deploymentGroupInfo_onPremisesInstanceTagFilters,
    deploymentGroupInfo_onPremisesTagSet,
    deploymentGroupInfo_outdatedInstancesStrategy,
    deploymentGroupInfo_serviceRoleArn,
    deploymentGroupInfo_targetRevision,
    deploymentGroupInfo_triggerConfigurations,

    -- * DeploymentInfo
    DeploymentInfo (..),
    newDeploymentInfo,
    deploymentInfo_additionalDeploymentStatusInfo,
    deploymentInfo_applicationName,
    deploymentInfo_autoRollbackConfiguration,
    deploymentInfo_blueGreenDeploymentConfiguration,
    deploymentInfo_completeTime,
    deploymentInfo_computePlatform,
    deploymentInfo_createTime,
    deploymentInfo_creator,
    deploymentInfo_deploymentConfigName,
    deploymentInfo_deploymentGroupName,
    deploymentInfo_deploymentId,
    deploymentInfo_deploymentOverview,
    deploymentInfo_deploymentStatusMessages,
    deploymentInfo_deploymentStyle,
    deploymentInfo_description,
    deploymentInfo_errorInformation,
    deploymentInfo_externalId,
    deploymentInfo_fileExistsBehavior,
    deploymentInfo_ignoreApplicationStopFailures,
    deploymentInfo_instanceTerminationWaitTimeStarted,
    deploymentInfo_loadBalancerInfo,
    deploymentInfo_overrideAlarmConfiguration,
    deploymentInfo_previousRevision,
    deploymentInfo_relatedDeployments,
    deploymentInfo_revision,
    deploymentInfo_rollbackInfo,
    deploymentInfo_startTime,
    deploymentInfo_status,
    deploymentInfo_targetInstances,
    deploymentInfo_updateOutdatedInstancesOnly,

    -- * DeploymentOverview
    DeploymentOverview (..),
    newDeploymentOverview,
    deploymentOverview_failed,
    deploymentOverview_inProgress,
    deploymentOverview_pending,
    deploymentOverview_ready,
    deploymentOverview_skipped,
    deploymentOverview_succeeded,

    -- * DeploymentReadyOption
    DeploymentReadyOption (..),
    newDeploymentReadyOption,
    deploymentReadyOption_actionOnTimeout,
    deploymentReadyOption_waitTimeInMinutes,

    -- * DeploymentStyle
    DeploymentStyle (..),
    newDeploymentStyle,
    deploymentStyle_deploymentOption,
    deploymentStyle_deploymentType,

    -- * DeploymentTarget
    DeploymentTarget (..),
    newDeploymentTarget,
    deploymentTarget_cloudFormationTarget,
    deploymentTarget_deploymentTargetType,
    deploymentTarget_ecsTarget,
    deploymentTarget_instanceTarget,
    deploymentTarget_lambdaTarget,

    -- * Diagnostics
    Diagnostics (..),
    newDiagnostics,
    diagnostics_errorCode,
    diagnostics_logTail,
    diagnostics_message,
    diagnostics_scriptName,

    -- * EC2TagFilter
    EC2TagFilter (..),
    newEC2TagFilter,
    eC2TagFilter_key,
    eC2TagFilter_type,
    eC2TagFilter_value,

    -- * EC2TagSet
    EC2TagSet (..),
    newEC2TagSet,
    eC2TagSet_ec2TagSetList,

    -- * ECSService
    ECSService (..),
    newECSService,
    eCSService_clusterName,
    eCSService_serviceName,

    -- * ECSTarget
    ECSTarget (..),
    newECSTarget,
    eCSTarget_deploymentId,
    eCSTarget_lastUpdatedAt,
    eCSTarget_lifecycleEvents,
    eCSTarget_status,
    eCSTarget_targetArn,
    eCSTarget_targetId,
    eCSTarget_taskSetsInfo,

    -- * ECSTaskSet
    ECSTaskSet (..),
    newECSTaskSet,
    eCSTaskSet_desiredCount,
    eCSTaskSet_identifer,
    eCSTaskSet_pendingCount,
    eCSTaskSet_runningCount,
    eCSTaskSet_status,
    eCSTaskSet_targetGroup,
    eCSTaskSet_taskSetLabel,
    eCSTaskSet_trafficWeight,

    -- * ELBInfo
    ELBInfo (..),
    newELBInfo,
    eLBInfo_name,

    -- * ErrorInformation
    ErrorInformation (..),
    newErrorInformation,
    errorInformation_code,
    errorInformation_message,

    -- * GenericRevisionInfo
    GenericRevisionInfo (..),
    newGenericRevisionInfo,
    genericRevisionInfo_deploymentGroups,
    genericRevisionInfo_description,
    genericRevisionInfo_firstUsedTime,
    genericRevisionInfo_lastUsedTime,
    genericRevisionInfo_registerTime,

    -- * GitHubLocation
    GitHubLocation (..),
    newGitHubLocation,
    gitHubLocation_commitId,
    gitHubLocation_repository,

    -- * GreenFleetProvisioningOption
    GreenFleetProvisioningOption (..),
    newGreenFleetProvisioningOption,
    greenFleetProvisioningOption_action,

    -- * InstanceInfo
    InstanceInfo (..),
    newInstanceInfo,
    instanceInfo_deregisterTime,
    instanceInfo_iamSessionArn,
    instanceInfo_iamUserArn,
    instanceInfo_instanceArn,
    instanceInfo_instanceName,
    instanceInfo_registerTime,
    instanceInfo_tags,

    -- * InstanceTarget
    InstanceTarget (..),
    newInstanceTarget,
    instanceTarget_deploymentId,
    instanceTarget_instanceLabel,
    instanceTarget_lastUpdatedAt,
    instanceTarget_lifecycleEvents,
    instanceTarget_status,
    instanceTarget_targetArn,
    instanceTarget_targetId,

    -- * LambdaFunctionInfo
    LambdaFunctionInfo (..),
    newLambdaFunctionInfo,
    lambdaFunctionInfo_currentVersion,
    lambdaFunctionInfo_functionAlias,
    lambdaFunctionInfo_functionName,
    lambdaFunctionInfo_targetVersion,
    lambdaFunctionInfo_targetVersionWeight,

    -- * LambdaTarget
    LambdaTarget (..),
    newLambdaTarget,
    lambdaTarget_deploymentId,
    lambdaTarget_lambdaFunctionInfo,
    lambdaTarget_lastUpdatedAt,
    lambdaTarget_lifecycleEvents,
    lambdaTarget_status,
    lambdaTarget_targetArn,
    lambdaTarget_targetId,

    -- * LastDeploymentInfo
    LastDeploymentInfo (..),
    newLastDeploymentInfo,
    lastDeploymentInfo_createTime,
    lastDeploymentInfo_deploymentId,
    lastDeploymentInfo_endTime,
    lastDeploymentInfo_status,

    -- * LifecycleEvent
    LifecycleEvent (..),
    newLifecycleEvent,
    lifecycleEvent_diagnostics,
    lifecycleEvent_endTime,
    lifecycleEvent_lifecycleEventName,
    lifecycleEvent_startTime,
    lifecycleEvent_status,

    -- * LoadBalancerInfo
    LoadBalancerInfo (..),
    newLoadBalancerInfo,
    loadBalancerInfo_elbInfoList,
    loadBalancerInfo_targetGroupInfoList,
    loadBalancerInfo_targetGroupPairInfoList,

    -- * MinimumHealthyHosts
    MinimumHealthyHosts (..),
    newMinimumHealthyHosts,
    minimumHealthyHosts_type,
    minimumHealthyHosts_value,

    -- * OnPremisesTagSet
    OnPremisesTagSet (..),
    newOnPremisesTagSet,
    onPremisesTagSet_onPremisesTagSetList,

    -- * RawString
    RawString (..),
    newRawString,
    rawString_content,
    rawString_sha256,

    -- * RelatedDeployments
    RelatedDeployments (..),
    newRelatedDeployments,
    relatedDeployments_autoUpdateOutdatedInstancesDeploymentIds,
    relatedDeployments_autoUpdateOutdatedInstancesRootDeploymentId,

    -- * RevisionInfo
    RevisionInfo (..),
    newRevisionInfo,
    revisionInfo_genericRevisionInfo,
    revisionInfo_revisionLocation,

    -- * RevisionLocation
    RevisionLocation (..),
    newRevisionLocation,
    revisionLocation_appSpecContent,
    revisionLocation_gitHubLocation,
    revisionLocation_revisionType,
    revisionLocation_s3Location,
    revisionLocation_string,

    -- * RollbackInfo
    RollbackInfo (..),
    newRollbackInfo,
    rollbackInfo_rollbackDeploymentId,
    rollbackInfo_rollbackMessage,
    rollbackInfo_rollbackTriggeringDeploymentId,

    -- * S3Location
    S3Location (..),
    newS3Location,
    s3Location_bucket,
    s3Location_bundleType,
    s3Location_eTag,
    s3Location_key,
    s3Location_version,

    -- * Tag
    Tag (..),
    newTag,
    tag_key,
    tag_value,

    -- * TagFilter
    TagFilter (..),
    newTagFilter,
    tagFilter_key,
    tagFilter_type,
    tagFilter_value,

    -- * TargetGroupInfo
    TargetGroupInfo (..),
    newTargetGroupInfo,
    targetGroupInfo_name,

    -- * TargetGroupPairInfo
    TargetGroupPairInfo (..),
    newTargetGroupPairInfo,
    targetGroupPairInfo_prodTrafficRoute,
    targetGroupPairInfo_targetGroups,
    targetGroupPairInfo_testTrafficRoute,

    -- * TargetInstances
    TargetInstances (..),
    newTargetInstances,
    targetInstances_autoScalingGroups,
    targetInstances_ec2TagSet,
    targetInstances_tagFilters,

    -- * TimeBasedCanary
    TimeBasedCanary (..),
    newTimeBasedCanary,
    timeBasedCanary_canaryInterval,
    timeBasedCanary_canaryPercentage,

    -- * TimeBasedLinear
    TimeBasedLinear (..),
    newTimeBasedLinear,
    timeBasedLinear_linearInterval,
    timeBasedLinear_linearPercentage,

    -- * TimeRange
    TimeRange (..),
    newTimeRange,
    timeRange_end,
    timeRange_start,

    -- * TrafficRoute
    TrafficRoute (..),
    newTrafficRoute,
    trafficRoute_listenerArns,

    -- * TrafficRoutingConfig
    TrafficRoutingConfig (..),
    newTrafficRoutingConfig,
    trafficRoutingConfig_timeBasedCanary,
    trafficRoutingConfig_timeBasedLinear,
    trafficRoutingConfig_type,

    -- * TriggerConfig
    TriggerConfig (..),
    newTriggerConfig,
    triggerConfig_triggerEvents,
    triggerConfig_triggerName,
    triggerConfig_triggerTargetArn,
  )
where

import Amazonka.CodeDeploy.Types.Alarm
import Amazonka.CodeDeploy.Types.AlarmConfiguration
import Amazonka.CodeDeploy.Types.AppSpecContent
import Amazonka.CodeDeploy.Types.ApplicationInfo
import Amazonka.CodeDeploy.Types.ApplicationRevisionSortBy
import Amazonka.CodeDeploy.Types.AutoRollbackConfiguration
import Amazonka.CodeDeploy.Types.AutoRollbackEvent
import Amazonka.CodeDeploy.Types.AutoScalingGroup
import Amazonka.CodeDeploy.Types.BlueGreenDeploymentConfiguration
import Amazonka.CodeDeploy.Types.BlueInstanceTerminationOption
import Amazonka.CodeDeploy.Types.BundleType
import Amazonka.CodeDeploy.Types.CloudFormationTarget
import Amazonka.CodeDeploy.Types.ComputePlatform
import Amazonka.CodeDeploy.Types.DeployErrorCode
import Amazonka.CodeDeploy.Types.DeploymentConfigInfo
import Amazonka.CodeDeploy.Types.DeploymentCreator
import Amazonka.CodeDeploy.Types.DeploymentGroupInfo
import Amazonka.CodeDeploy.Types.DeploymentInfo
import Amazonka.CodeDeploy.Types.DeploymentOption
import Amazonka.CodeDeploy.Types.DeploymentOverview
import Amazonka.CodeDeploy.Types.DeploymentReadyAction
import Amazonka.CodeDeploy.Types.DeploymentReadyOption
import Amazonka.CodeDeploy.Types.DeploymentStatus
import Amazonka.CodeDeploy.Types.DeploymentStyle
import Amazonka.CodeDeploy.Types.DeploymentTarget
import Amazonka.CodeDeploy.Types.DeploymentTargetType
import Amazonka.CodeDeploy.Types.DeploymentType
import Amazonka.CodeDeploy.Types.DeploymentWaitType
import Amazonka.CodeDeploy.Types.Diagnostics
import Amazonka.CodeDeploy.Types.EC2TagFilter
import Amazonka.CodeDeploy.Types.EC2TagFilterType
import Amazonka.CodeDeploy.Types.EC2TagSet
import Amazonka.CodeDeploy.Types.ECSService
import Amazonka.CodeDeploy.Types.ECSTarget
import Amazonka.CodeDeploy.Types.ECSTaskSet
import Amazonka.CodeDeploy.Types.ELBInfo
import Amazonka.CodeDeploy.Types.ErrorInformation
import Amazonka.CodeDeploy.Types.FileExistsBehavior
import Amazonka.CodeDeploy.Types.GenericRevisionInfo
import Amazonka.CodeDeploy.Types.GitHubLocation
import Amazonka.CodeDeploy.Types.GreenFleetProvisioningAction
import Amazonka.CodeDeploy.Types.GreenFleetProvisioningOption
import Amazonka.CodeDeploy.Types.InstanceAction
import Amazonka.CodeDeploy.Types.InstanceInfo
import Amazonka.CodeDeploy.Types.InstanceTarget
import Amazonka.CodeDeploy.Types.LambdaFunctionInfo
import Amazonka.CodeDeploy.Types.LambdaTarget
import Amazonka.CodeDeploy.Types.LastDeploymentInfo
import Amazonka.CodeDeploy.Types.LifecycleErrorCode
import Amazonka.CodeDeploy.Types.LifecycleEvent
import Amazonka.CodeDeploy.Types.LifecycleEventStatus
import Amazonka.CodeDeploy.Types.ListStateFilterAction
import Amazonka.CodeDeploy.Types.LoadBalancerInfo
import Amazonka.CodeDeploy.Types.MinimumHealthyHosts
import Amazonka.CodeDeploy.Types.MinimumHealthyHostsType
import Amazonka.CodeDeploy.Types.OnPremisesTagSet
import Amazonka.CodeDeploy.Types.OutdatedInstancesStrategy
import Amazonka.CodeDeploy.Types.RawString
import Amazonka.CodeDeploy.Types.RegistrationStatus
import Amazonka.CodeDeploy.Types.RelatedDeployments
import Amazonka.CodeDeploy.Types.RevisionInfo
import Amazonka.CodeDeploy.Types.RevisionLocation
import Amazonka.CodeDeploy.Types.RevisionLocationType
import Amazonka.CodeDeploy.Types.RollbackInfo
import Amazonka.CodeDeploy.Types.S3Location
import Amazonka.CodeDeploy.Types.SortOrder
import Amazonka.CodeDeploy.Types.StopStatus
import Amazonka.CodeDeploy.Types.Tag
import Amazonka.CodeDeploy.Types.TagFilter
import Amazonka.CodeDeploy.Types.TagFilterType
import Amazonka.CodeDeploy.Types.TargetFilterName
import Amazonka.CodeDeploy.Types.TargetGroupInfo
import Amazonka.CodeDeploy.Types.TargetGroupPairInfo
import Amazonka.CodeDeploy.Types.TargetInstances
import Amazonka.CodeDeploy.Types.TargetLabel
import Amazonka.CodeDeploy.Types.TargetStatus
import Amazonka.CodeDeploy.Types.TimeBasedCanary
import Amazonka.CodeDeploy.Types.TimeBasedLinear
import Amazonka.CodeDeploy.Types.TimeRange
import Amazonka.CodeDeploy.Types.TrafficRoute
import Amazonka.CodeDeploy.Types.TrafficRoutingConfig
import Amazonka.CodeDeploy.Types.TrafficRoutingType
import Amazonka.CodeDeploy.Types.TriggerConfig
import Amazonka.CodeDeploy.Types.TriggerEventType
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign

-- | API version @2014-10-06@ of the Amazon CodeDeploy SDK configuration.
defaultService :: Core.Service
defaultService :: Service
defaultService =
  Core.Service
    { $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"CodeDeploy",
      $sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
      $sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"codedeploy",
      $sel:signingName:Service :: ByteString
Core.signingName = ByteString
"codedeploy",
      $sel:version:Service :: ByteString
Core.version = ByteString
"2014-10-06",
      $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
"CodeDeploy",
      $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

-- | The maximum number of alarms for a deployment group (10) was exceeded.
_AlarmsLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AlarmsLimitExceededException :: forall a. AsError a => Fold a ServiceError
_AlarmsLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"AlarmsLimitExceededException"

-- | An application with the specified name with the IAM user or Amazon Web
-- Services account already exists.
_ApplicationAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApplicationAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_ApplicationAlreadyExistsException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ApplicationAlreadyExistsException"

-- | The application does not exist with the IAM user or Amazon Web Services
-- account.
_ApplicationDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApplicationDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_ApplicationDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ApplicationDoesNotExistException"

-- | More applications were attempted to be created than are allowed.
_ApplicationLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApplicationLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ApplicationLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ApplicationLimitExceededException"

-- | The minimum number of required application names was not specified.
_ApplicationNameRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApplicationNameRequiredException :: forall a. AsError a => Fold a ServiceError
_ApplicationNameRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ApplicationNameRequiredException"

-- | The specified ARN is not supported. For example, it might be an ARN for
-- a resource that is not expected.
_ArnNotSupportedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ArnNotSupportedException :: forall a. AsError a => Fold a ServiceError
_ArnNotSupportedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ArnNotSupportedException"

-- | The maximum number of names or IDs allowed for this request (100) was
-- exceeded.
_BatchLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BatchLimitExceededException :: forall a. AsError a => Fold a ServiceError
_BatchLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"BatchLimitExceededException"

-- | A bucket name is required, but was not provided.
_BucketNameFilterRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BucketNameFilterRequiredException :: forall a. AsError a => Fold a ServiceError
_BucketNameFilterRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"BucketNameFilterRequiredException"

-- | The deployment is already complete.
_DeploymentAlreadyCompletedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentAlreadyCompletedException :: forall a. AsError a => Fold a ServiceError
_DeploymentAlreadyCompletedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentAlreadyCompletedException"

-- | A deployment to a target was attempted while another deployment was in
-- progress.
_DeploymentAlreadyStartedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentAlreadyStartedException :: forall a. AsError a => Fold a ServiceError
_DeploymentAlreadyStartedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentAlreadyStartedException"

-- | A deployment configuration with the specified name with the IAM user or
-- Amazon Web Services account already exists.
_DeploymentConfigAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentConfigAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_DeploymentConfigAlreadyExistsException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentConfigAlreadyExistsException"

-- | The deployment configuration does not exist with the IAM user or Amazon
-- Web Services account.
_DeploymentConfigDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentConfigDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_DeploymentConfigDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentConfigDoesNotExistException"

-- | The deployment configuration is still in use.
_DeploymentConfigInUseException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentConfigInUseException :: forall a. AsError a => Fold a ServiceError
_DeploymentConfigInUseException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentConfigInUseException"

-- | The deployment configurations limit was exceeded.
_DeploymentConfigLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentConfigLimitExceededException :: forall a. AsError a => Fold a ServiceError
_DeploymentConfigLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentConfigLimitExceededException"

-- | The deployment configuration name was not specified.
_DeploymentConfigNameRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentConfigNameRequiredException :: forall a. AsError a => Fold a ServiceError
_DeploymentConfigNameRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentConfigNameRequiredException"

-- | The deployment with the IAM user or Amazon Web Services account does not
-- exist.
_DeploymentDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_DeploymentDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentDoesNotExistException"

-- | A deployment group with the specified name with the IAM user or Amazon
-- Web Services account already exists.
_DeploymentGroupAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentGroupAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_DeploymentGroupAlreadyExistsException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentGroupAlreadyExistsException"

-- | The named deployment group with the IAM user or Amazon Web Services
-- account does not exist.
_DeploymentGroupDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentGroupDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_DeploymentGroupDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentGroupDoesNotExistException"

-- | The deployment groups limit was exceeded.
_DeploymentGroupLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentGroupLimitExceededException :: forall a. AsError a => Fold a ServiceError
_DeploymentGroupLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentGroupLimitExceededException"

-- | The deployment group name was not specified.
_DeploymentGroupNameRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentGroupNameRequiredException :: forall a. AsError a => Fold a ServiceError
_DeploymentGroupNameRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentGroupNameRequiredException"

-- | At least one deployment ID must be specified.
_DeploymentIdRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentIdRequiredException :: forall a. AsError a => Fold a ServiceError
_DeploymentIdRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentIdRequiredException"

-- | The deployment does not have a status of Ready and can\'t continue yet.
_DeploymentIsNotInReadyStateException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentIsNotInReadyStateException :: forall a. AsError a => Fold a ServiceError
_DeploymentIsNotInReadyStateException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentIsNotInReadyStateException"

-- | The number of allowed deployments was exceeded.
_DeploymentLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentLimitExceededException :: forall a. AsError a => Fold a ServiceError
_DeploymentLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentLimitExceededException"

-- | The specified deployment has not started.
_DeploymentNotStartedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentNotStartedException :: forall a. AsError a => Fold a ServiceError
_DeploymentNotStartedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentNotStartedException"

-- | The provided target ID does not belong to the attempted deployment.
_DeploymentTargetDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentTargetDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_DeploymentTargetDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentTargetDoesNotExistException"

-- | A deployment target ID was not provided.
_DeploymentTargetIdRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentTargetIdRequiredException :: forall a. AsError a => Fold a ServiceError
_DeploymentTargetIdRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentTargetIdRequiredException"

-- | The maximum number of targets that can be associated with an Amazon ECS
-- or Lambda deployment was exceeded. The target list of both types of
-- deployments must have exactly one item. This exception does not apply to
-- EC2\/On-premises deployments.
_DeploymentTargetListSizeExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DeploymentTargetListSizeExceededException :: forall a. AsError a => Fold a ServiceError
_DeploymentTargetListSizeExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DeploymentTargetListSizeExceededException"

-- | The description is too long.
_DescriptionTooLongException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DescriptionTooLongException :: forall a. AsError a => Fold a ServiceError
_DescriptionTooLongException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"DescriptionTooLongException"

-- | The Amazon ECS service is associated with more than one deployment
-- groups. An Amazon ECS service can be associated with only one deployment
-- group.
_ECSServiceMappingLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ECSServiceMappingLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ECSServiceMappingLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ECSServiceMappingLimitExceededException"

-- | No GitHub account connection exists with the named specified in the
-- call.
_GitHubAccountTokenDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_GitHubAccountTokenDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_GitHubAccountTokenDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"GitHubAccountTokenDoesNotExistException"

-- | The call is missing a required GitHub account connection name.
_GitHubAccountTokenNameRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_GitHubAccountTokenNameRequiredException :: forall a. AsError a => Fold a ServiceError
_GitHubAccountTokenNameRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"GitHubAccountTokenNameRequiredException"

-- | No IAM ARN was included in the request. You must use an IAM session ARN
-- or IAM user ARN in the request.
_IamArnRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_IamArnRequiredException :: forall a. AsError a => Fold a ServiceError
_IamArnRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"IamArnRequiredException"

-- | The request included an IAM session ARN that has already been used to
-- register a different instance.
_IamSessionArnAlreadyRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_IamSessionArnAlreadyRegisteredException :: forall a. AsError a => Fold a ServiceError
_IamSessionArnAlreadyRegisteredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"IamSessionArnAlreadyRegisteredException"

-- | The specified IAM user ARN is already registered with an on-premises
-- instance.
_IamUserArnAlreadyRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_IamUserArnAlreadyRegisteredException :: forall a. AsError a => Fold a ServiceError
_IamUserArnAlreadyRegisteredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"IamUserArnAlreadyRegisteredException"

-- | An IAM user ARN was not specified.
_IamUserArnRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_IamUserArnRequiredException :: forall a. AsError a => Fold a ServiceError
_IamUserArnRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"IamUserArnRequiredException"

-- | The specified instance does not exist in the deployment group.
_InstanceDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_InstanceDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceDoesNotExistException"

-- | The instance ID was not specified.
_InstanceIdRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceIdRequiredException :: forall a. AsError a => Fold a ServiceError
_InstanceIdRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceIdRequiredException"

-- | The maximum number of allowed on-premises instances in a single call was
-- exceeded.
_InstanceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceLimitExceededException :: forall a. AsError a => Fold a ServiceError
_InstanceLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceLimitExceededException"

-- | The specified on-premises instance name is already registered.
_InstanceNameAlreadyRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceNameAlreadyRegisteredException :: forall a. AsError a => Fold a ServiceError
_InstanceNameAlreadyRegisteredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceNameAlreadyRegisteredException"

-- | An on-premises instance name was not specified.
_InstanceNameRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceNameRequiredException :: forall a. AsError a => Fold a ServiceError
_InstanceNameRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceNameRequiredException"

-- | The specified on-premises instance is not registered.
_InstanceNotRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InstanceNotRegisteredException :: forall a. AsError a => Fold a ServiceError
_InstanceNotRegisteredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InstanceNotRegisteredException"

-- | The format of the alarm configuration is invalid. Possible causes
-- include:
--
-- -   The alarm list is null.
--
-- -   The alarm object is null.
--
-- -   The alarm name is empty or null or exceeds the limit of 255
--     characters.
--
-- -   Two alarms with the same name have been specified.
--
-- -   The alarm configuration is enabled, but the alarm list is empty.
_InvalidAlarmConfigException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidAlarmConfigException :: forall a. AsError a => Fold a ServiceError
_InvalidAlarmConfigException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidAlarmConfigException"

-- | The application name was specified in an invalid format.
_InvalidApplicationNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidApplicationNameException :: forall a. AsError a => Fold a ServiceError
_InvalidApplicationNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidApplicationNameException"

-- | The specified ARN is not in a valid format.
_InvalidArnException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidArnException :: forall a. AsError a => Fold a ServiceError
_InvalidArnException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidArnException"

-- | The automatic rollback configuration was specified in an invalid format.
-- For example, automatic rollback is enabled, but an invalid triggering
-- event type or no event types were listed.
_InvalidAutoRollbackConfigException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidAutoRollbackConfigException :: forall a. AsError a => Fold a ServiceError
_InvalidAutoRollbackConfigException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidAutoRollbackConfigException"

-- | The Auto Scaling group was specified in an invalid format or does not
-- exist.
_InvalidAutoScalingGroupException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidAutoScalingGroupException :: forall a. AsError a => Fold a ServiceError
_InvalidAutoScalingGroupException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidAutoScalingGroupException"

-- | The configuration for the blue\/green deployment group was provided in
-- an invalid format. For information about deployment configuration
-- format, see CreateDeploymentConfig.
_InvalidBlueGreenDeploymentConfigurationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidBlueGreenDeploymentConfigurationException :: forall a. AsError a => Fold a ServiceError
_InvalidBlueGreenDeploymentConfigurationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidBlueGreenDeploymentConfigurationException"

-- | The bucket name either doesn\'t exist or was specified in an invalid
-- format.
_InvalidBucketNameFilterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidBucketNameFilterException :: forall a. AsError a => Fold a ServiceError
_InvalidBucketNameFilterException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidBucketNameFilterException"

-- | The computePlatform is invalid. The computePlatform should be @Lambda@,
-- @Server@, or @ECS@.
_InvalidComputePlatformException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidComputePlatformException :: forall a. AsError a => Fold a ServiceError
_InvalidComputePlatformException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidComputePlatformException"

-- | The deployed state filter was specified in an invalid format.
_InvalidDeployedStateFilterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeployedStateFilterException :: forall a. AsError a => Fold a ServiceError
_InvalidDeployedStateFilterException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeployedStateFilterException"

-- | The deployment configuration name was specified in an invalid format.
_InvalidDeploymentConfigNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentConfigNameException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentConfigNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentConfigNameException"

-- | The deployment group name was specified in an invalid format.
_InvalidDeploymentGroupNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentGroupNameException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentGroupNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentGroupNameException"

-- | At least one of the deployment IDs was specified in an invalid format.
_InvalidDeploymentIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentIdException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentIdException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentIdException"

-- | An instance type was specified for an in-place deployment. Instance
-- types are supported for blue\/green deployments only.
_InvalidDeploymentInstanceTypeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentInstanceTypeException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentInstanceTypeException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentInstanceTypeException"

-- | The specified deployment status doesn\'t exist or cannot be determined.
_InvalidDeploymentStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentStatusException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentStatusException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentStatusException"

-- | An invalid deployment style was specified. Valid deployment types
-- include \"IN_PLACE\" and \"BLUE_GREEN.\" Valid deployment options
-- include \"WITH_TRAFFIC_CONTROL\" and \"WITHOUT_TRAFFIC_CONTROL.\"
_InvalidDeploymentStyleException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentStyleException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentStyleException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentStyleException"

-- | The target ID provided was not valid.
_InvalidDeploymentTargetIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentTargetIdException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentTargetIdException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentTargetIdException"

-- | The wait type is invalid.
_InvalidDeploymentWaitTypeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidDeploymentWaitTypeException :: forall a. AsError a => Fold a ServiceError
_InvalidDeploymentWaitTypeException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidDeploymentWaitTypeException"

-- | A call was submitted that specified both Ec2TagFilters and Ec2TagSet,
-- but only one of these data types can be used in a single call.
_InvalidEC2TagCombinationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidEC2TagCombinationException :: forall a. AsError a => Fold a ServiceError
_InvalidEC2TagCombinationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidEC2TagCombinationException"

-- | The tag was specified in an invalid format.
_InvalidEC2TagException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidEC2TagException :: forall a. AsError a => Fold a ServiceError
_InvalidEC2TagException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidEC2TagException"

-- | The Amazon ECS service identifier is not valid.
_InvalidECSServiceException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidECSServiceException :: forall a. AsError a => Fold a ServiceError
_InvalidECSServiceException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidECSServiceException"

-- | The external ID was specified in an invalid format.
_InvalidExternalIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidExternalIdException :: forall a. AsError a => Fold a ServiceError
_InvalidExternalIdException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidExternalIdException"

-- | An invalid fileExistsBehavior option was specified to determine how
-- CodeDeploy handles files or directories that already exist in a
-- deployment target location, but weren\'t part of the previous successful
-- deployment. Valid values include \"DISALLOW,\" \"OVERWRITE,\" and
-- \"RETAIN.\"
_InvalidFileExistsBehaviorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidFileExistsBehaviorException :: forall a. AsError a => Fold a ServiceError
_InvalidFileExistsBehaviorException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidFileExistsBehaviorException"

-- | The GitHub token is not valid.
_InvalidGitHubAccountTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidGitHubAccountTokenException :: forall a. AsError a => Fold a ServiceError
_InvalidGitHubAccountTokenException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidGitHubAccountTokenException"

-- | The format of the specified GitHub account connection name is invalid.
_InvalidGitHubAccountTokenNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidGitHubAccountTokenNameException :: forall a. AsError a => Fold a ServiceError
_InvalidGitHubAccountTokenNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidGitHubAccountTokenNameException"

-- | The IAM session ARN was specified in an invalid format.
_InvalidIamSessionArnException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidIamSessionArnException :: forall a. AsError a => Fold a ServiceError
_InvalidIamSessionArnException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidIamSessionArnException"

-- | The IAM user ARN was specified in an invalid format.
_InvalidIamUserArnException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidIamUserArnException :: forall a. AsError a => Fold a ServiceError
_InvalidIamUserArnException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidIamUserArnException"

-- | The IgnoreApplicationStopFailures value is invalid. For Lambda
-- deployments, @false@ is expected. For EC2\/On-premises deployments,
-- @true@ or @false@ is expected.
_InvalidIgnoreApplicationStopFailuresValueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidIgnoreApplicationStopFailuresValueException :: forall a. AsError a => Fold a ServiceError
_InvalidIgnoreApplicationStopFailuresValueException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidIgnoreApplicationStopFailuresValueException"

-- | The input was specified in an invalid format.
_InvalidInputException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidInputException :: forall a. AsError a => Fold a ServiceError
_InvalidInputException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidInputException"

_InvalidInstanceIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidInstanceIdException :: forall a. AsError a => Fold a ServiceError
_InvalidInstanceIdException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidInstanceIdException"

-- | The on-premises instance name was specified in an invalid format.
_InvalidInstanceNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidInstanceNameException :: forall a. AsError a => Fold a ServiceError
_InvalidInstanceNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidInstanceNameException"

-- | The specified instance status does not exist.
_InvalidInstanceStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidInstanceStatusException :: forall a. AsError a => Fold a ServiceError
_InvalidInstanceStatusException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidInstanceStatusException"

-- | An invalid instance type was specified for instances in a blue\/green
-- deployment. Valid values include \"Blue\" for an original environment
-- and \"Green\" for a replacement environment.
_InvalidInstanceTypeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidInstanceTypeException :: forall a. AsError a => Fold a ServiceError
_InvalidInstanceTypeException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidInstanceTypeException"

-- | The specified key prefix filter was specified in an invalid format.
_InvalidKeyPrefixFilterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidKeyPrefixFilterException :: forall a. AsError a => Fold a ServiceError
_InvalidKeyPrefixFilterException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidKeyPrefixFilterException"

-- | A lifecycle event hook is invalid. Review the @hooks@ section in your
-- AppSpec file to ensure the lifecycle events and @hooks@ functions are
-- valid.
_InvalidLifecycleEventHookExecutionIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidLifecycleEventHookExecutionIdException :: forall a. AsError a => Fold a ServiceError
_InvalidLifecycleEventHookExecutionIdException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidLifecycleEventHookExecutionIdException"

-- | The result of a Lambda validation function that verifies a lifecycle
-- event is invalid. It should return @Succeeded@ or @Failed@.
_InvalidLifecycleEventHookExecutionStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidLifecycleEventHookExecutionStatusException :: forall a. AsError a => Fold a ServiceError
_InvalidLifecycleEventHookExecutionStatusException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidLifecycleEventHookExecutionStatusException"

-- | An invalid load balancer name, or no load balancer name, was specified.
_InvalidLoadBalancerInfoException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidLoadBalancerInfoException :: forall a. AsError a => Fold a ServiceError
_InvalidLoadBalancerInfoException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidLoadBalancerInfoException"

-- | The minimum healthy instance value was specified in an invalid format.
_InvalidMinimumHealthyHostValueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidMinimumHealthyHostValueException :: forall a. AsError a => Fold a ServiceError
_InvalidMinimumHealthyHostValueException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidMinimumHealthyHostValueException"

-- | The next token was specified in an invalid format.
_InvalidNextTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidNextTokenException :: forall a. AsError a => Fold a ServiceError
_InvalidNextTokenException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidNextTokenException"

-- | A call was submitted that specified both OnPremisesTagFilters and
-- OnPremisesTagSet, but only one of these data types can be used in a
-- single call.
_InvalidOnPremisesTagCombinationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidOnPremisesTagCombinationException :: forall a. AsError a => Fold a ServiceError
_InvalidOnPremisesTagCombinationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidOnPremisesTagCombinationException"

-- | An invalid operation was detected.
_InvalidOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidOperationException :: forall a. AsError a => Fold a ServiceError
_InvalidOperationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidOperationException"

-- | The registration status was specified in an invalid format.
_InvalidRegistrationStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRegistrationStatusException :: forall a. AsError a => Fold a ServiceError
_InvalidRegistrationStatusException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidRegistrationStatusException"

-- | The revision was specified in an invalid format.
_InvalidRevisionException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRevisionException :: forall a. AsError a => Fold a ServiceError
_InvalidRevisionException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidRevisionException"

-- | The service role ARN was specified in an invalid format. Or, if an Auto
-- Scaling group was specified, the specified service role does not grant
-- the appropriate permissions to Amazon EC2 Auto Scaling.
_InvalidRoleException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRoleException :: forall a. AsError a => Fold a ServiceError
_InvalidRoleException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidRoleException"

-- | The column name to sort by is either not present or was specified in an
-- invalid format.
_InvalidSortByException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidSortByException :: forall a. AsError a => Fold a ServiceError
_InvalidSortByException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidSortByException"

-- | The sort order was specified in an invalid format.
_InvalidSortOrderException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidSortOrderException :: forall a. AsError a => Fold a ServiceError
_InvalidSortOrderException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidSortOrderException"

-- | The tag was specified in an invalid format.
_InvalidTagException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTagException :: forall a. AsError a => Fold a ServiceError
_InvalidTagException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTagException"

-- | The tag filter was specified in an invalid format.
_InvalidTagFilterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTagFilterException :: forall a. AsError a => Fold a ServiceError
_InvalidTagFilterException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTagFilterException"

-- | The specified tags are not valid.
_InvalidTagsToAddException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTagsToAddException :: forall a. AsError a => Fold a ServiceError
_InvalidTagsToAddException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTagsToAddException"

-- | A target is not valid.
_InvalidTargetException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTargetException :: forall a. AsError a => Fold a ServiceError
_InvalidTargetException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTargetException"

-- | The target filter name is invalid.
_InvalidTargetFilterNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTargetFilterNameException :: forall a. AsError a => Fold a ServiceError
_InvalidTargetFilterNameException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTargetFilterNameException"

-- | A target group pair associated with this deployment is not valid.
_InvalidTargetGroupPairException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTargetGroupPairException :: forall a. AsError a => Fold a ServiceError
_InvalidTargetGroupPairException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTargetGroupPairException"

-- | The target instance configuration is invalid. Possible causes include:
--
-- -   Configuration data for target instances was entered for an in-place
--     deployment.
--
-- -   The limit of 10 tags for a tag type was exceeded.
--
-- -   The combined length of the tag names exceeded the limit.
--
-- -   A specified tag is not currently applied to any instances.
_InvalidTargetInstancesException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTargetInstancesException :: forall a. AsError a => Fold a ServiceError
_InvalidTargetInstancesException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTargetInstancesException"

-- | The specified time range was specified in an invalid format.
_InvalidTimeRangeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTimeRangeException :: forall a. AsError a => Fold a ServiceError
_InvalidTimeRangeException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTimeRangeException"

-- | The configuration that specifies how traffic is routed during a
-- deployment is invalid.
_InvalidTrafficRoutingConfigurationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTrafficRoutingConfigurationException :: forall a. AsError a => Fold a ServiceError
_InvalidTrafficRoutingConfigurationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTrafficRoutingConfigurationException"

-- | The trigger was specified in an invalid format.
_InvalidTriggerConfigException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidTriggerConfigException :: forall a. AsError a => Fold a ServiceError
_InvalidTriggerConfigException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidTriggerConfigException"

-- | The UpdateOutdatedInstancesOnly value is invalid. For Lambda
-- deployments, @false@ is expected. For EC2\/On-premises deployments,
-- @true@ or @false@ is expected.
_InvalidUpdateOutdatedInstancesOnlyValueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidUpdateOutdatedInstancesOnlyValueException :: forall a. AsError a => Fold a ServiceError
_InvalidUpdateOutdatedInstancesOnlyValueException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"InvalidUpdateOutdatedInstancesOnlyValueException"

-- | An attempt to return the status of an already completed lifecycle event
-- occurred.
_LifecycleEventAlreadyCompletedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LifecycleEventAlreadyCompletedException :: forall a. AsError a => Fold a ServiceError
_LifecycleEventAlreadyCompletedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"LifecycleEventAlreadyCompletedException"

-- | The limit for lifecycle hooks was exceeded.
_LifecycleHookLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LifecycleHookLimitExceededException :: forall a. AsError a => Fold a ServiceError
_LifecycleHookLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"LifecycleHookLimitExceededException"

-- | Both an IAM user ARN and an IAM session ARN were included in the
-- request. Use only one ARN type.
_MultipleIamArnsProvidedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_MultipleIamArnsProvidedException :: forall a. AsError a => Fold a ServiceError
_MultipleIamArnsProvidedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"MultipleIamArnsProvidedException"

-- | The API used does not support the deployment.
_OperationNotSupportedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_OperationNotSupportedException :: forall a. AsError a => Fold a ServiceError
_OperationNotSupportedException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"OperationNotSupportedException"

-- | The ARN of a resource is required, but was not found.
_ResourceArnRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceArnRequiredException :: forall a. AsError a => Fold a ServiceError
_ResourceArnRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ResourceArnRequiredException"

-- | The specified resource could not be validated.
_ResourceValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceValidationException :: forall a. AsError a => Fold a ServiceError
_ResourceValidationException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"ResourceValidationException"

-- | The named revision does not exist with the IAM user or Amazon Web
-- Services account.
_RevisionDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_RevisionDoesNotExistException :: forall a. AsError a => Fold a ServiceError
_RevisionDoesNotExistException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"RevisionDoesNotExistException"

-- | The revision ID was not specified.
_RevisionRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_RevisionRequiredException :: forall a. AsError a => Fold a ServiceError
_RevisionRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"RevisionRequiredException"

-- | The role ID was not specified.
_RoleRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_RoleRequiredException :: forall a. AsError a => Fold a ServiceError
_RoleRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"RoleRequiredException"

-- | The maximum allowed number of tags was exceeded.
_TagLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TagLimitExceededException :: forall a. AsError a => Fold a ServiceError
_TagLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"TagLimitExceededException"

-- | A tag was not specified.
_TagRequiredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TagRequiredException :: forall a. AsError a => Fold a ServiceError
_TagRequiredException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"TagRequiredException"

-- | The number of tag groups included in the tag set list exceeded the
-- maximum allowed limit of 3.
_TagSetListLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TagSetListLimitExceededException :: forall a. AsError a => Fold a ServiceError
_TagSetListLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"TagSetListLimitExceededException"

-- | An API function was called too frequently.
_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"

-- | The maximum allowed number of triggers was exceeded.
_TriggerTargetsLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TriggerTargetsLimitExceededException :: forall a. AsError a => Fold a ServiceError
_TriggerTargetsLimitExceededException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"TriggerTargetsLimitExceededException"

-- | A call was submitted that is not supported for the specified deployment
-- type.
_UnsupportedActionForDeploymentTypeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnsupportedActionForDeploymentTypeException :: forall a. AsError a => Fold a ServiceError
_UnsupportedActionForDeploymentTypeException =
  forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
    Service
defaultService
    ErrorCode
"UnsupportedActionForDeploymentTypeException"