module Network.AWS.OpsWorks.Types
(
opsWorks
, _ValidationException
, _ResourceNotFoundException
, AppAttributesKeys (..)
, AppType (..)
, Architecture (..)
, AutoScalingType (..)
, DeploymentCommandName (..)
, LayerAttributesKeys (..)
, LayerType (..)
, RootDeviceType (..)
, SourceType (..)
, StackAttributesKeys (..)
, VirtualizationType (..)
, VolumeType (..)
, AgentVersion
, agentVersion
, avVersion
, avConfigurationManager
, App
, app
, appSSLConfiguration
, appShortname
, appEnableSSL
, appCreatedAt
, appEnvironment
, appDataSources
, appAppId
, appAppSource
, appName
, appAttributes
, appType
, appDomains
, appStackId
, appDescription
, AutoScalingThresholds
, autoScalingThresholds
, astInstanceCount
, astIgnoreMetricsTime
, astLoadThreshold
, astThresholdsWaitTime
, astAlarms
, astMemoryThreshold
, astCPUThreshold
, BlockDeviceMapping
, blockDeviceMapping
, bdmVirtualName
, bdmNoDevice
, bdmEBS
, bdmDeviceName
, ChefConfiguration
, chefConfiguration
, ccBerkshelfVersion
, ccManageBerkshelf
, Command
, command
, cInstanceId
, cDeploymentId
, cStatus
, cLogURL
, cCreatedAt
, cCommandId
, cExitCode
, cType
, cCompletedAt
, cAcknowledgedAt
, DataSource
, dataSource
, dsARN
, dsDatabaseName
, dsType
, Deployment
, deployment
, dDeploymentId
, dStatus
, dCommand
, dCreatedAt
, dCustomJSON
, dIAMUserARN
, dAppId
, dInstanceIds
, dCompletedAt
, dStackId
, dComment
, dDuration
, DeploymentCommand
, deploymentCommand
, dcArgs
, dcName
, EBSBlockDevice
, ebsBlockDevice
, ebdDeleteOnTermination
, ebdVolumeSize
, ebdIOPS
, ebdVolumeType
, ebdSnapshotId
, EcsCluster
, ecsCluster
, ecEcsClusterARN
, ecEcsClusterName
, ecRegisteredAt
, ecStackId
, ElasticIP
, elasticIP
, eiInstanceId
, eiDomain
, eiIP
, eiName
, eiRegion
, ElasticLoadBalancer
, elasticLoadBalancer
, elbSubnetIds
, elbVPCId
, elbAvailabilityZones
, elbRegion
, elbElasticLoadBalancerName
, elbEC2InstanceIds
, elbStackId
, elbLayerId
, elbDNSName
, EnvironmentVariable
, environmentVariable
, evSecure
, evKey
, evValue
, Instance
, instance'
, iInstanceId
, iPrivateIP
, iInstallUpdatesOnBoot
, iReportedAgentVersion
, iStatus
, iPrivateDNS
, iVirtualizationType
, iSecurityGroupIds
, iSSHHostRsaKeyFingerprint
, iInstanceProfileARN
, iPlatform
, iHostname
, iEcsClusterARN
, iCreatedAt
, iSSHKeyName
, iEC2InstanceId
, iAgentVersion
, iRootDeviceVolumeId
, iSubnetId
, iInstanceType
, iInfrastructureClass
, iEBSOptimized
, iSSHHostDsaKeyFingerprint
, iElasticIP
, iOS
, iAvailabilityZone
, iLastServiceErrorId
, iAutoScalingType
, iLayerIds
, iArchitecture
, iPublicDNS
, iPublicIP
, iAMIId
, iReportedOS
, iStackId
, iRegisteredBy
, iBlockDeviceMappings
, iEcsContainerInstanceARN
, iRootDeviceType
, InstanceIdentity
, instanceIdentity
, iiSignature
, iiDocument
, InstancesCount
, instancesCount
, icTerminating
, icPending
, icOnline
, icUnassigning
, icRequested
, icRunningSetup
, icDeregistering
, icBooting
, icStopped
, icRebooting
, icAssigning
, icShuttingDown
, icSetupFailed
, icConnectionLost
, icTerminated
, icStopping
, icRegistered
, icStartFailed
, icRegistering
, Layer
, layer
, lCustomInstanceProfileARN
, lInstallUpdatesOnBoot
, lCustomSecurityGroupIds
, lLifecycleEventConfiguration
, lShortname
, lCreatedAt
, lDefaultRecipes
, lCustomRecipes
, lVolumeConfigurations
, lCustomJSON
, lEnableAutoHealing
, lPackages
, lName
, lAttributes
, lAutoAssignPublicIPs
, lUseEBSOptimizedInstances
, lType
, lStackId
, lLayerId
, lDefaultSecurityGroupNames
, lAutoAssignElasticIPs
, LifecycleEventConfiguration
, lifecycleEventConfiguration
, lecShutdown
, LoadBasedAutoScalingConfiguration
, loadBasedAutoScalingConfiguration
, lbascUpScaling
, lbascEnable
, lbascDownScaling
, lbascLayerId
, Permission
, permission
, pIAMUserARN
, pAllowSudo
, pStackId
, pLevel
, pAllowSSH
, RAIdArray
, rAIdArray
, raiaInstanceId
, raiaSize
, raiaCreatedAt
, raiaIOPS
, raiaRAIdLevel
, raiaDevice
, raiaNumberOfDisks
, raiaName
, raiaAvailabilityZone
, raiaRAIdArrayId
, raiaVolumeType
, raiaStackId
, raiaMountPoint
, RDSDBInstance
, rdsDBInstance
, rdiDBUser
, rdiRDSDBInstanceARN
, rdiMissingOnRDS
, rdiEngine
, rdiAddress
, rdiDBInstanceIdentifier
, rdiRegion
, rdiStackId
, rdiDBPassword
, Recipes
, recipes
, rSetup
, rUndeploy
, rShutdown
, rConfigure
, rDeploy
, ReportedOS
, reportedOS
, roFamily
, roName
, roVersion
, SSLConfiguration
, sslConfiguration
, scChain
, scCertificate
, scPrivateKey
, SelfUserProfile
, selfUserProfile
, supSSHUsername
, supSSHPublicKey
, supIAMUserARN
, supName
, ServiceError'
, serviceError'
, seInstanceId
, seCreatedAt
, seServiceErrorId
, seType
, seMessage
, seStackId
, ShutdownEventConfiguration
, shutdownEventConfiguration
, secExecutionTimeout
, secDelayUntilElbConnectionsDrained
, Source
, source
, sURL
, sUsername
, sSSHKey
, sPassword
, sType
, sRevision
, Stack
, stack
, sDefaultInstanceProfileARN
, sServiceRoleARN
, sARN
, sDefaultRootDeviceType
, sCreatedAt
, sChefConfiguration
, sVPCId
, sAgentVersion
, sDefaultSSHKeyName
, sCustomJSON
, sCustomCookbooksSource
, sDefaultAvailabilityZone
, sName
, sUseOpsworksSecurityGroups
, sDefaultOS
, sAttributes
, sUseCustomCookbooks
, sDefaultSubnetId
, sRegion
, sConfigurationManager
, sStackId
, sHostnameTheme
, StackConfigurationManager
, stackConfigurationManager
, scmName
, scmVersion
, StackSummary
, stackSummary
, ssARN
, ssAppsCount
, ssName
, ssStackId
, ssLayersCount
, ssInstancesCount
, TemporaryCredential
, temporaryCredential
, tcInstanceId
, tcUsername
, tcPassword
, tcValidForInMinutes
, TimeBasedAutoScalingConfiguration
, timeBasedAutoScalingConfiguration
, tbascInstanceId
, tbascAutoScalingSchedule
, UserProfile
, userProfile
, upSSHUsername
, upSSHPublicKey
, upAllowSelfManagement
, upIAMUserARN
, upName
, Volume
, volume
, vInstanceId
, vStatus
, vSize
, vIOPS
, vDevice
, vName
, vAvailabilityZone
, vRAIdArrayId
, vVolumeId
, vRegion
, vVolumeType
, vEC2VolumeId
, vMountPoint
, VolumeConfiguration
, volumeConfiguration
, vcIOPS
, vcRAIdLevel
, vcVolumeType
, vcMountPoint
, vcNumberOfDisks
, vcSize
, WeeklyAutoScalingSchedule
, weeklyAutoScalingSchedule
, wassThursday
, wassWednesday
, wassSaturday
, wassMonday
, wassFriday
, wassSunday
, wassTuesday
) where
import Network.AWS.OpsWorks.Types.Product
import Network.AWS.OpsWorks.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
opsWorks :: Service
opsWorks =
Service
{ _svcAbbrev = "OpsWorks"
, _svcSigner = v4
, _svcPrefix = "opsworks"
, _svcVersion = "2013-02-18"
, _svcEndpoint = defaultEndpoint opsWorks
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_ValidationException = _ServiceError . hasCode "ValidationException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_ServiceError . hasCode "ResourceNotFoundException"