{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WorkSpaces.Types
(
defaultService,
_AccessDeniedException,
_InvalidParameterValuesException,
_InvalidResourceStateException,
_OperationInProgressException,
_OperationNotSupportedException,
_ResourceAlreadyExistsException,
_ResourceAssociatedException,
_ResourceCreationFailedException,
_ResourceLimitExceededException,
_ResourceNotFoundException,
_ResourceUnavailableException,
_UnsupportedNetworkConfigurationException,
_UnsupportedWorkspaceConfigurationException,
_WorkspacesDefaultRoleNotFoundException,
AccessPropertyValue (..),
Application (..),
AssociationStatus (..),
BundleType (..),
CertificateBasedAuthStatusEnum (..),
ClientDeviceType (..),
Compute (..),
ConnectionAliasState (..),
ConnectionState (..),
DedicatedTenancyModificationStateEnum (..),
DedicatedTenancySupportEnum (..),
DedicatedTenancySupportResultEnum (..),
DeletableCertificateBasedAuthProperty (..),
DeletableSamlProperty (..),
ImageType (..),
LogUploadEnum (..),
ModificationResourceEnum (..),
ModificationStateEnum (..),
OperatingSystemType (..),
Protocol (..),
ReconnectEnum (..),
RunningMode (..),
SamlStatusEnum (..),
StandbyWorkspaceRelationshipType (..),
TargetWorkspaceState (..),
Tenancy (..),
WorkspaceBundleState (..),
WorkspaceDirectoryState (..),
WorkspaceDirectoryType (..),
WorkspaceImageIngestionProcess (..),
WorkspaceImageRequiredTenancy (..),
WorkspaceImageState (..),
WorkspaceState (..),
AccountModification (..),
newAccountModification,
accountModification_dedicatedTenancyManagementCidrRange,
accountModification_dedicatedTenancySupport,
accountModification_errorCode,
accountModification_errorMessage,
accountModification_modificationState,
accountModification_startTime,
CertificateBasedAuthProperties (..),
newCertificateBasedAuthProperties,
certificateBasedAuthProperties_certificateAuthorityArn,
certificateBasedAuthProperties_status,
ClientProperties (..),
newClientProperties,
clientProperties_logUploadEnabled,
clientProperties_reconnectEnabled,
ClientPropertiesResult (..),
newClientPropertiesResult,
clientPropertiesResult_clientProperties,
clientPropertiesResult_resourceId,
ComputeType (..),
newComputeType,
computeType_name,
ConnectClientAddIn (..),
newConnectClientAddIn,
connectClientAddIn_addInId,
connectClientAddIn_name,
connectClientAddIn_resourceId,
connectClientAddIn_url,
ConnectionAlias (..),
newConnectionAlias,
connectionAlias_aliasId,
connectionAlias_associations,
connectionAlias_connectionString,
connectionAlias_ownerAccountId,
connectionAlias_state,
ConnectionAliasAssociation (..),
newConnectionAliasAssociation,
connectionAliasAssociation_associatedAccountId,
connectionAliasAssociation_associationStatus,
connectionAliasAssociation_connectionIdentifier,
connectionAliasAssociation_resourceId,
ConnectionAliasPermission (..),
newConnectionAliasPermission,
connectionAliasPermission_sharedAccountId,
connectionAliasPermission_allowAssociation,
DefaultClientBrandingAttributes (..),
newDefaultClientBrandingAttributes,
defaultClientBrandingAttributes_forgotPasswordLink,
defaultClientBrandingAttributes_loginMessage,
defaultClientBrandingAttributes_logoUrl,
defaultClientBrandingAttributes_supportEmail,
defaultClientBrandingAttributes_supportLink,
DefaultImportClientBrandingAttributes (..),
newDefaultImportClientBrandingAttributes,
defaultImportClientBrandingAttributes_forgotPasswordLink,
defaultImportClientBrandingAttributes_loginMessage,
defaultImportClientBrandingAttributes_logo,
defaultImportClientBrandingAttributes_supportEmail,
defaultImportClientBrandingAttributes_supportLink,
DefaultWorkspaceCreationProperties (..),
newDefaultWorkspaceCreationProperties,
defaultWorkspaceCreationProperties_customSecurityGroupId,
defaultWorkspaceCreationProperties_defaultOu,
defaultWorkspaceCreationProperties_enableInternetAccess,
defaultWorkspaceCreationProperties_enableMaintenanceMode,
defaultWorkspaceCreationProperties_enableWorkDocs,
defaultWorkspaceCreationProperties_userEnabledAsLocalAdministrator,
FailedCreateStandbyWorkspacesRequest (..),
newFailedCreateStandbyWorkspacesRequest,
failedCreateStandbyWorkspacesRequest_errorCode,
failedCreateStandbyWorkspacesRequest_errorMessage,
failedCreateStandbyWorkspacesRequest_standbyWorkspaceRequest,
FailedCreateWorkspaceRequest (..),
newFailedCreateWorkspaceRequest,
failedCreateWorkspaceRequest_errorCode,
failedCreateWorkspaceRequest_errorMessage,
failedCreateWorkspaceRequest_workspaceRequest,
FailedWorkspaceChangeRequest (..),
newFailedWorkspaceChangeRequest,
failedWorkspaceChangeRequest_errorCode,
failedWorkspaceChangeRequest_errorMessage,
failedWorkspaceChangeRequest_workspaceId,
ImagePermission (..),
newImagePermission,
imagePermission_sharedAccountId,
IosClientBrandingAttributes (..),
newIosClientBrandingAttributes,
iosClientBrandingAttributes_forgotPasswordLink,
iosClientBrandingAttributes_loginMessage,
iosClientBrandingAttributes_logo2xUrl,
iosClientBrandingAttributes_logo3xUrl,
iosClientBrandingAttributes_logoUrl,
iosClientBrandingAttributes_supportEmail,
iosClientBrandingAttributes_supportLink,
IosImportClientBrandingAttributes (..),
newIosImportClientBrandingAttributes,
iosImportClientBrandingAttributes_forgotPasswordLink,
iosImportClientBrandingAttributes_loginMessage,
iosImportClientBrandingAttributes_logo,
iosImportClientBrandingAttributes_logo2x,
iosImportClientBrandingAttributes_logo3x,
iosImportClientBrandingAttributes_supportEmail,
iosImportClientBrandingAttributes_supportLink,
IpRuleItem (..),
newIpRuleItem,
ipRuleItem_ipRule,
ipRuleItem_ruleDesc,
ModificationState (..),
newModificationState,
modificationState_resource,
modificationState_state,
OperatingSystem (..),
newOperatingSystem,
operatingSystem_type,
PendingCreateStandbyWorkspacesRequest (..),
newPendingCreateStandbyWorkspacesRequest,
pendingCreateStandbyWorkspacesRequest_directoryId,
pendingCreateStandbyWorkspacesRequest_state,
pendingCreateStandbyWorkspacesRequest_userName,
pendingCreateStandbyWorkspacesRequest_workspaceId,
RebootRequest (..),
newRebootRequest,
rebootRequest_workspaceId,
RebuildRequest (..),
newRebuildRequest,
rebuildRequest_workspaceId,
RelatedWorkspaceProperties (..),
newRelatedWorkspaceProperties,
relatedWorkspaceProperties_region,
relatedWorkspaceProperties_state,
relatedWorkspaceProperties_type,
relatedWorkspaceProperties_workspaceId,
RootStorage (..),
newRootStorage,
rootStorage_capacity,
SamlProperties (..),
newSamlProperties,
samlProperties_relayStateParameterName,
samlProperties_status,
samlProperties_userAccessUrl,
SelfservicePermissions (..),
newSelfservicePermissions,
selfservicePermissions_changeComputeType,
selfservicePermissions_increaseVolumeSize,
selfservicePermissions_rebuildWorkspace,
selfservicePermissions_restartWorkspace,
selfservicePermissions_switchRunningMode,
Snapshot (..),
newSnapshot,
snapshot_snapshotTime,
StandbyWorkspace (..),
newStandbyWorkspace,
standbyWorkspace_tags,
standbyWorkspace_volumeEncryptionKey,
standbyWorkspace_primaryWorkspaceId,
standbyWorkspace_directoryId,
StartRequest (..),
newStartRequest,
startRequest_workspaceId,
StopRequest (..),
newStopRequest,
stopRequest_workspaceId,
Tag (..),
newTag,
tag_value,
tag_key,
TerminateRequest (..),
newTerminateRequest,
terminateRequest_workspaceId,
UpdateResult (..),
newUpdateResult,
updateResult_description,
updateResult_updateAvailable,
UserStorage (..),
newUserStorage,
userStorage_capacity,
Workspace (..),
newWorkspace,
workspace_bundleId,
workspace_computerName,
workspace_directoryId,
workspace_errorCode,
workspace_errorMessage,
workspace_ipAddress,
workspace_modificationStates,
workspace_relatedWorkspaces,
workspace_rootVolumeEncryptionEnabled,
workspace_state,
workspace_subnetId,
workspace_userName,
workspace_userVolumeEncryptionEnabled,
workspace_volumeEncryptionKey,
workspace_workspaceId,
workspace_workspaceProperties,
WorkspaceAccessProperties (..),
newWorkspaceAccessProperties,
workspaceAccessProperties_deviceTypeAndroid,
workspaceAccessProperties_deviceTypeChromeOs,
workspaceAccessProperties_deviceTypeIos,
workspaceAccessProperties_deviceTypeLinux,
workspaceAccessProperties_deviceTypeOsx,
workspaceAccessProperties_deviceTypeWeb,
workspaceAccessProperties_deviceTypeWindows,
workspaceAccessProperties_deviceTypeZeroClient,
WorkspaceBundle (..),
newWorkspaceBundle,
workspaceBundle_bundleId,
workspaceBundle_bundleType,
workspaceBundle_computeType,
workspaceBundle_creationTime,
workspaceBundle_description,
workspaceBundle_imageId,
workspaceBundle_lastUpdatedTime,
workspaceBundle_name,
workspaceBundle_owner,
workspaceBundle_rootStorage,
workspaceBundle_state,
workspaceBundle_userStorage,
WorkspaceConnectionStatus (..),
newWorkspaceConnectionStatus,
workspaceConnectionStatus_connectionState,
workspaceConnectionStatus_connectionStateCheckTimestamp,
workspaceConnectionStatus_lastKnownUserConnectionTimestamp,
workspaceConnectionStatus_workspaceId,
WorkspaceCreationProperties (..),
newWorkspaceCreationProperties,
workspaceCreationProperties_customSecurityGroupId,
workspaceCreationProperties_defaultOu,
workspaceCreationProperties_enableInternetAccess,
workspaceCreationProperties_enableMaintenanceMode,
workspaceCreationProperties_enableWorkDocs,
workspaceCreationProperties_userEnabledAsLocalAdministrator,
WorkspaceDirectory (..),
newWorkspaceDirectory,
workspaceDirectory_alias,
workspaceDirectory_certificateBasedAuthProperties,
workspaceDirectory_customerUserName,
workspaceDirectory_directoryId,
workspaceDirectory_directoryName,
workspaceDirectory_directoryType,
workspaceDirectory_dnsIpAddresses,
workspaceDirectory_iamRoleId,
workspaceDirectory_registrationCode,
workspaceDirectory_samlProperties,
workspaceDirectory_selfservicePermissions,
workspaceDirectory_state,
workspaceDirectory_subnetIds,
workspaceDirectory_tenancy,
workspaceDirectory_workspaceAccessProperties,
workspaceDirectory_workspaceCreationProperties,
workspaceDirectory_workspaceSecurityGroupId,
workspaceDirectory_ipGroupIds,
WorkspaceImage (..),
newWorkspaceImage,
workspaceImage_created,
workspaceImage_description,
workspaceImage_errorCode,
workspaceImage_errorMessage,
workspaceImage_imageId,
workspaceImage_name,
workspaceImage_operatingSystem,
workspaceImage_ownerAccountId,
workspaceImage_requiredTenancy,
workspaceImage_state,
workspaceImage_updates,
WorkspaceProperties (..),
newWorkspaceProperties,
workspaceProperties_computeTypeName,
workspaceProperties_protocols,
workspaceProperties_rootVolumeSizeGib,
workspaceProperties_runningMode,
workspaceProperties_runningModeAutoStopTimeoutInMinutes,
workspaceProperties_userVolumeSizeGib,
WorkspaceRequest (..),
newWorkspaceRequest,
workspaceRequest_rootVolumeEncryptionEnabled,
workspaceRequest_tags,
workspaceRequest_userVolumeEncryptionEnabled,
workspaceRequest_volumeEncryptionKey,
workspaceRequest_workspaceProperties,
workspaceRequest_directoryId,
workspaceRequest_userName,
workspaceRequest_bundleId,
WorkspacesIpGroup (..),
newWorkspacesIpGroup,
workspacesIpGroup_groupDesc,
workspacesIpGroup_groupId,
workspacesIpGroup_groupName,
workspacesIpGroup_userRules,
)
where
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
import Amazonka.WorkSpaces.Types.AccessPropertyValue
import Amazonka.WorkSpaces.Types.AccountModification
import Amazonka.WorkSpaces.Types.Application
import Amazonka.WorkSpaces.Types.AssociationStatus
import Amazonka.WorkSpaces.Types.BundleType
import Amazonka.WorkSpaces.Types.CertificateBasedAuthProperties
import Amazonka.WorkSpaces.Types.CertificateBasedAuthStatusEnum
import Amazonka.WorkSpaces.Types.ClientDeviceType
import Amazonka.WorkSpaces.Types.ClientProperties
import Amazonka.WorkSpaces.Types.ClientPropertiesResult
import Amazonka.WorkSpaces.Types.Compute
import Amazonka.WorkSpaces.Types.ComputeType
import Amazonka.WorkSpaces.Types.ConnectClientAddIn
import Amazonka.WorkSpaces.Types.ConnectionAlias
import Amazonka.WorkSpaces.Types.ConnectionAliasAssociation
import Amazonka.WorkSpaces.Types.ConnectionAliasPermission
import Amazonka.WorkSpaces.Types.ConnectionAliasState
import Amazonka.WorkSpaces.Types.ConnectionState
import Amazonka.WorkSpaces.Types.DedicatedTenancyModificationStateEnum
import Amazonka.WorkSpaces.Types.DedicatedTenancySupportEnum
import Amazonka.WorkSpaces.Types.DedicatedTenancySupportResultEnum
import Amazonka.WorkSpaces.Types.DefaultClientBrandingAttributes
import Amazonka.WorkSpaces.Types.DefaultImportClientBrandingAttributes
import Amazonka.WorkSpaces.Types.DefaultWorkspaceCreationProperties
import Amazonka.WorkSpaces.Types.DeletableCertificateBasedAuthProperty
import Amazonka.WorkSpaces.Types.DeletableSamlProperty
import Amazonka.WorkSpaces.Types.FailedCreateStandbyWorkspacesRequest
import Amazonka.WorkSpaces.Types.FailedCreateWorkspaceRequest
import Amazonka.WorkSpaces.Types.FailedWorkspaceChangeRequest
import Amazonka.WorkSpaces.Types.ImagePermission
import Amazonka.WorkSpaces.Types.ImageType
import Amazonka.WorkSpaces.Types.IosClientBrandingAttributes
import Amazonka.WorkSpaces.Types.IosImportClientBrandingAttributes
import Amazonka.WorkSpaces.Types.IpRuleItem
import Amazonka.WorkSpaces.Types.LogUploadEnum
import Amazonka.WorkSpaces.Types.ModificationResourceEnum
import Amazonka.WorkSpaces.Types.ModificationState
import Amazonka.WorkSpaces.Types.ModificationStateEnum
import Amazonka.WorkSpaces.Types.OperatingSystem
import Amazonka.WorkSpaces.Types.OperatingSystemType
import Amazonka.WorkSpaces.Types.PendingCreateStandbyWorkspacesRequest
import Amazonka.WorkSpaces.Types.Protocol
import Amazonka.WorkSpaces.Types.RebootRequest
import Amazonka.WorkSpaces.Types.RebuildRequest
import Amazonka.WorkSpaces.Types.ReconnectEnum
import Amazonka.WorkSpaces.Types.RelatedWorkspaceProperties
import Amazonka.WorkSpaces.Types.RootStorage
import Amazonka.WorkSpaces.Types.RunningMode
import Amazonka.WorkSpaces.Types.SamlProperties
import Amazonka.WorkSpaces.Types.SamlStatusEnum
import Amazonka.WorkSpaces.Types.SelfservicePermissions
import Amazonka.WorkSpaces.Types.Snapshot
import Amazonka.WorkSpaces.Types.StandbyWorkspace
import Amazonka.WorkSpaces.Types.StandbyWorkspaceRelationshipType
import Amazonka.WorkSpaces.Types.StartRequest
import Amazonka.WorkSpaces.Types.StopRequest
import Amazonka.WorkSpaces.Types.Tag
import Amazonka.WorkSpaces.Types.TargetWorkspaceState
import Amazonka.WorkSpaces.Types.Tenancy
import Amazonka.WorkSpaces.Types.TerminateRequest
import Amazonka.WorkSpaces.Types.UpdateResult
import Amazonka.WorkSpaces.Types.UserStorage
import Amazonka.WorkSpaces.Types.Workspace
import Amazonka.WorkSpaces.Types.WorkspaceAccessProperties
import Amazonka.WorkSpaces.Types.WorkspaceBundle
import Amazonka.WorkSpaces.Types.WorkspaceBundleState
import Amazonka.WorkSpaces.Types.WorkspaceConnectionStatus
import Amazonka.WorkSpaces.Types.WorkspaceCreationProperties
import Amazonka.WorkSpaces.Types.WorkspaceDirectory
import Amazonka.WorkSpaces.Types.WorkspaceDirectoryState
import Amazonka.WorkSpaces.Types.WorkspaceDirectoryType
import Amazonka.WorkSpaces.Types.WorkspaceImage
import Amazonka.WorkSpaces.Types.WorkspaceImageIngestionProcess
import Amazonka.WorkSpaces.Types.WorkspaceImageRequiredTenancy
import Amazonka.WorkSpaces.Types.WorkspaceImageState
import Amazonka.WorkSpaces.Types.WorkspaceProperties
import Amazonka.WorkSpaces.Types.WorkspaceRequest
import Amazonka.WorkSpaces.Types.WorkspaceState
import Amazonka.WorkSpaces.Types.WorkspacesIpGroup
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"WorkSpaces",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"workspaces",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"workspaces",
$sel:version:Service :: ByteString
Core.version = ByteString
"2015-04-08",
$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
"WorkSpaces",
$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"
_InvalidParameterValuesException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidParameterValuesException :: forall a. AsError a => Fold a ServiceError
_InvalidParameterValuesException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterValuesException"
_InvalidResourceStateException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidResourceStateException :: forall a. AsError a => Fold a ServiceError
_InvalidResourceStateException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidResourceStateException"
_OperationInProgressException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_OperationInProgressException :: forall a. AsError a => Fold a ServiceError
_OperationInProgressException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"OperationInProgressException"
_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"
_ResourceAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceAlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_ResourceAlreadyExistsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAlreadyExistsException"
_ResourceAssociatedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceAssociatedException :: forall a. AsError a => Fold a ServiceError
_ResourceAssociatedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAssociatedException"
_ResourceCreationFailedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceCreationFailedException :: forall a. AsError a => Fold a ServiceError
_ResourceCreationFailedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceCreationFailedException"
_ResourceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ResourceLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceLimitExceededException"
_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"
_ResourceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceUnavailableException :: forall a. AsError a => Fold a ServiceError
_ResourceUnavailableException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceUnavailableException"
_UnsupportedNetworkConfigurationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnsupportedNetworkConfigurationException :: forall a. AsError a => Fold a ServiceError
_UnsupportedNetworkConfigurationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedNetworkConfigurationException"
_UnsupportedWorkspaceConfigurationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnsupportedWorkspaceConfigurationException :: forall a. AsError a => Fold a ServiceError
_UnsupportedWorkspaceConfigurationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedWorkspaceConfigurationException"
_WorkspacesDefaultRoleNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_WorkspacesDefaultRoleNotFoundException :: forall a. AsError a => Fold a ServiceError
_WorkspacesDefaultRoleNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WorkspacesDefaultRoleNotFoundException"