module Network.AWS.AppStream.Types
(
appStream
, _InvalidRoleException
, _ResourceAlreadyExistsException
, _IncompatibleImageException
, _ConcurrentModificationException
, _OperationNotPermittedException
, _ResourceNotFoundException
, _InvalidParameterCombinationException
, _ResourceNotAvailableException
, _LimitExceededException
, _ResourceInUseException
, AuthenticationType (..)
, FleetAttribute (..)
, FleetErrorCode (..)
, FleetState (..)
, FleetType (..)
, ImageBuilderState (..)
, ImageBuilderStateChangeReasonCode (..)
, ImageState (..)
, ImageStateChangeReasonCode (..)
, PlatformType (..)
, SessionState (..)
, StackErrorCode (..)
, StorageConnectorType (..)
, VisibilityType (..)
, Application
, application
, aEnabled
, aLaunchPath
, aLaunchParameters
, aName
, aDisplayName
, aMetadata
, aIconURL
, ComputeCapacity
, computeCapacity
, ccDesiredInstances
, ComputeCapacityStatus
, computeCapacityStatus
, ccsInUse
, ccsRunning
, ccsAvailable
, ccsDesired
, DirectoryConfig
, directoryConfig
, dcCreatedTime
, dcServiceAccountCredentials
, dcOrganizationalUnitDistinguishedNames
, dcDirectoryName
, DomainJoinInfo
, domainJoinInfo
, djiOrganizationalUnitDistinguishedName
, djiDirectoryName
, Fleet
, fleet
, fDomainJoinInfo
, fDisconnectTimeoutInSeconds
, fMaxUserDurationInSeconds
, fCreatedTime
, fFleetType
, fVPCConfig
, fFleetErrors
, fDisplayName
, fEnableDefaultInternetAccess
, fDescription
, fARN
, fName
, fImageName
, fInstanceType
, fComputeCapacityStatus
, fState
, FleetError
, fleetError
, feErrorCode
, feErrorMessage
, Image
, image
, iState
, iPlatform
, iPublicBaseImageReleasedDate
, iStateChangeReason
, iARN
, iCreatedTime
, iImageBuilderSupported
, iVisibility
, iBaseImageARN
, iDisplayName
, iDescription
, iApplications
, iName
, ImageBuilder
, imageBuilder
, ibDomainJoinInfo
, ibState
, ibPlatform
, ibStateChangeReason
, ibARN
, ibCreatedTime
, ibImageBuilderErrors
, ibInstanceType
, ibVPCConfig
, ibImageARN
, ibDisplayName
, ibEnableDefaultInternetAccess
, ibDescription
, ibName
, ImageBuilderStateChangeReason
, imageBuilderStateChangeReason
, ibscrCode
, ibscrMessage
, ImageStateChangeReason
, imageStateChangeReason
, iscrCode
, iscrMessage
, ResourceError
, resourceError
, reErrorCode
, reErrorMessage
, reErrorTimestamp
, ServiceAccountCredentials
, serviceAccountCredentials
, sacAccountName
, sacAccountPassword
, Session
, session
, sAuthenticationType
, sId
, sUserId
, sStackName
, sFleetName
, sState
, Stack
, stack
, sARN
, sCreatedTime
, sStorageConnectors
, sDisplayName
, sStackErrors
, sDescription
, sName
, StackError
, stackError
, seErrorCode
, seErrorMessage
, StorageConnector
, storageConnector
, scResourceIdentifier
, scConnectorType
, VPCConfig
, vpcConfig
, vcSecurityGroupIds
, vcSubnetIds
) where
import Network.AWS.AppStream.Types.Product
import Network.AWS.AppStream.Types.Sum
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Sign.V4
appStream :: Service
appStream =
Service
{ _svcAbbrev = "AppStream"
, _svcSigner = v4
, _svcPrefix = "appstream2"
, _svcVersion = "2016-12-01"
, _svcEndpoint = defaultEndpoint appStream
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError "AppStream"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
| has (hasStatus 429) e = Just "too_many_requests"
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_InvalidRoleException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRoleException = _MatchServiceError appStream "InvalidRoleException"
_ResourceAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceAlreadyExistsException =
_MatchServiceError appStream "ResourceAlreadyExistsException"
_IncompatibleImageException :: AsError a => Getting (First ServiceError) a ServiceError
_IncompatibleImageException =
_MatchServiceError appStream "IncompatibleImageException"
_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
_MatchServiceError appStream "ConcurrentModificationException"
_OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError
_OperationNotPermittedException =
_MatchServiceError appStream "OperationNotPermittedException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_MatchServiceError appStream "ResourceNotFoundException"
_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidParameterCombinationException =
_MatchServiceError appStream "InvalidParameterCombinationException"
_ResourceNotAvailableException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotAvailableException =
_MatchServiceError appStream "ResourceNotAvailableException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _MatchServiceError appStream "LimitExceededException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _MatchServiceError appStream "ResourceInUseException"