{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AppRunner.Types
(
defaultService,
_InternalServiceErrorException,
_InvalidRequestException,
_InvalidStateException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
AutoScalingConfigurationStatus (..),
CertificateValidationRecordStatus (..),
ConfigurationSource (..),
ConnectionStatus (..),
CustomDomainAssociationStatus (..),
EgressType (..),
HealthCheckProtocol (..),
ImageRepositoryType (..),
ObservabilityConfigurationStatus (..),
OperationStatus (..),
OperationType (..),
ProviderType (..),
Runtime (..),
ServiceStatus (..),
SourceCodeVersionType (..),
TracingVendor (..),
VpcConnectorStatus (..),
VpcIngressConnectionStatus (..),
AuthenticationConfiguration (..),
newAuthenticationConfiguration,
authenticationConfiguration_accessRoleArn,
authenticationConfiguration_connectionArn,
AutoScalingConfiguration (..),
newAutoScalingConfiguration,
autoScalingConfiguration_autoScalingConfigurationArn,
autoScalingConfiguration_autoScalingConfigurationName,
autoScalingConfiguration_autoScalingConfigurationRevision,
autoScalingConfiguration_createdAt,
autoScalingConfiguration_deletedAt,
autoScalingConfiguration_latest,
autoScalingConfiguration_maxConcurrency,
autoScalingConfiguration_maxSize,
autoScalingConfiguration_minSize,
autoScalingConfiguration_status,
AutoScalingConfigurationSummary (..),
newAutoScalingConfigurationSummary,
autoScalingConfigurationSummary_autoScalingConfigurationArn,
autoScalingConfigurationSummary_autoScalingConfigurationName,
autoScalingConfigurationSummary_autoScalingConfigurationRevision,
CertificateValidationRecord (..),
newCertificateValidationRecord,
certificateValidationRecord_name,
certificateValidationRecord_status,
certificateValidationRecord_type,
certificateValidationRecord_value,
CodeConfiguration (..),
newCodeConfiguration,
codeConfiguration_codeConfigurationValues,
codeConfiguration_configurationSource,
CodeConfigurationValues (..),
newCodeConfigurationValues,
codeConfigurationValues_buildCommand,
codeConfigurationValues_port,
codeConfigurationValues_runtimeEnvironmentSecrets,
codeConfigurationValues_runtimeEnvironmentVariables,
codeConfigurationValues_startCommand,
codeConfigurationValues_runtime,
CodeRepository (..),
newCodeRepository,
codeRepository_codeConfiguration,
codeRepository_repositoryUrl,
codeRepository_sourceCodeVersion,
Connection (..),
newConnection,
connection_connectionArn,
connection_connectionName,
connection_createdAt,
connection_providerType,
connection_status,
ConnectionSummary (..),
newConnectionSummary,
connectionSummary_connectionArn,
connectionSummary_connectionName,
connectionSummary_createdAt,
connectionSummary_providerType,
connectionSummary_status,
CustomDomain (..),
newCustomDomain,
customDomain_certificateValidationRecords,
customDomain_domainName,
customDomain_enableWWWSubdomain,
customDomain_status,
EgressConfiguration (..),
newEgressConfiguration,
egressConfiguration_egressType,
egressConfiguration_vpcConnectorArn,
EncryptionConfiguration (..),
newEncryptionConfiguration,
encryptionConfiguration_kmsKey,
HealthCheckConfiguration (..),
newHealthCheckConfiguration,
healthCheckConfiguration_healthyThreshold,
healthCheckConfiguration_interval,
healthCheckConfiguration_path,
healthCheckConfiguration_protocol,
healthCheckConfiguration_timeout,
healthCheckConfiguration_unhealthyThreshold,
ImageConfiguration (..),
newImageConfiguration,
imageConfiguration_port,
imageConfiguration_runtimeEnvironmentSecrets,
imageConfiguration_runtimeEnvironmentVariables,
imageConfiguration_startCommand,
ImageRepository (..),
newImageRepository,
imageRepository_imageConfiguration,
imageRepository_imageIdentifier,
imageRepository_imageRepositoryType,
IngressConfiguration (..),
newIngressConfiguration,
ingressConfiguration_isPubliclyAccessible,
IngressVpcConfiguration (..),
newIngressVpcConfiguration,
ingressVpcConfiguration_vpcEndpointId,
ingressVpcConfiguration_vpcId,
InstanceConfiguration (..),
newInstanceConfiguration,
instanceConfiguration_cpu,
instanceConfiguration_instanceRoleArn,
instanceConfiguration_memory,
ListVpcIngressConnectionsFilter (..),
newListVpcIngressConnectionsFilter,
listVpcIngressConnectionsFilter_serviceArn,
listVpcIngressConnectionsFilter_vpcEndpointId,
NetworkConfiguration (..),
newNetworkConfiguration,
networkConfiguration_egressConfiguration,
networkConfiguration_ingressConfiguration,
ObservabilityConfiguration (..),
newObservabilityConfiguration,
observabilityConfiguration_createdAt,
observabilityConfiguration_deletedAt,
observabilityConfiguration_latest,
observabilityConfiguration_observabilityConfigurationArn,
observabilityConfiguration_observabilityConfigurationName,
observabilityConfiguration_observabilityConfigurationRevision,
observabilityConfiguration_status,
observabilityConfiguration_traceConfiguration,
ObservabilityConfigurationSummary (..),
newObservabilityConfigurationSummary,
observabilityConfigurationSummary_observabilityConfigurationArn,
observabilityConfigurationSummary_observabilityConfigurationName,
observabilityConfigurationSummary_observabilityConfigurationRevision,
OperationSummary (..),
newOperationSummary,
operationSummary_endedAt,
operationSummary_id,
operationSummary_startedAt,
operationSummary_status,
operationSummary_targetArn,
operationSummary_type,
operationSummary_updatedAt,
Service (..),
newService,
service_deletedAt,
service_encryptionConfiguration,
service_healthCheckConfiguration,
service_observabilityConfiguration,
service_serviceUrl,
service_serviceName,
service_serviceId,
service_serviceArn,
service_createdAt,
service_updatedAt,
service_status,
service_sourceConfiguration,
service_instanceConfiguration,
service_autoScalingConfigurationSummary,
service_networkConfiguration,
ServiceObservabilityConfiguration (..),
newServiceObservabilityConfiguration,
serviceObservabilityConfiguration_observabilityConfigurationArn,
serviceObservabilityConfiguration_observabilityEnabled,
ServiceSummary (..),
newServiceSummary,
serviceSummary_createdAt,
serviceSummary_serviceArn,
serviceSummary_serviceId,
serviceSummary_serviceName,
serviceSummary_serviceUrl,
serviceSummary_status,
serviceSummary_updatedAt,
SourceCodeVersion (..),
newSourceCodeVersion,
sourceCodeVersion_type,
sourceCodeVersion_value,
SourceConfiguration (..),
newSourceConfiguration,
sourceConfiguration_authenticationConfiguration,
sourceConfiguration_autoDeploymentsEnabled,
sourceConfiguration_codeRepository,
sourceConfiguration_imageRepository,
Tag (..),
newTag,
tag_key,
tag_value,
TraceConfiguration (..),
newTraceConfiguration,
traceConfiguration_vendor,
VpcConnector (..),
newVpcConnector,
vpcConnector_createdAt,
vpcConnector_deletedAt,
vpcConnector_securityGroups,
vpcConnector_status,
vpcConnector_subnets,
vpcConnector_vpcConnectorArn,
vpcConnector_vpcConnectorName,
vpcConnector_vpcConnectorRevision,
VpcDNSTarget (..),
newVpcDNSTarget,
vpcDNSTarget_domainName,
vpcDNSTarget_vpcId,
vpcDNSTarget_vpcIngressConnectionArn,
VpcIngressConnection (..),
newVpcIngressConnection,
vpcIngressConnection_accountId,
vpcIngressConnection_createdAt,
vpcIngressConnection_deletedAt,
vpcIngressConnection_domainName,
vpcIngressConnection_ingressVpcConfiguration,
vpcIngressConnection_serviceArn,
vpcIngressConnection_status,
vpcIngressConnection_vpcIngressConnectionArn,
vpcIngressConnection_vpcIngressConnectionName,
VpcIngressConnectionSummary (..),
newVpcIngressConnectionSummary,
vpcIngressConnectionSummary_serviceArn,
vpcIngressConnectionSummary_vpcIngressConnectionArn,
)
where
import Amazonka.AppRunner.Types.AuthenticationConfiguration
import Amazonka.AppRunner.Types.AutoScalingConfiguration
import Amazonka.AppRunner.Types.AutoScalingConfigurationStatus
import Amazonka.AppRunner.Types.AutoScalingConfigurationSummary
import Amazonka.AppRunner.Types.CertificateValidationRecord
import Amazonka.AppRunner.Types.CertificateValidationRecordStatus
import Amazonka.AppRunner.Types.CodeConfiguration
import Amazonka.AppRunner.Types.CodeConfigurationValues
import Amazonka.AppRunner.Types.CodeRepository
import Amazonka.AppRunner.Types.ConfigurationSource
import Amazonka.AppRunner.Types.Connection
import Amazonka.AppRunner.Types.ConnectionStatus
import Amazonka.AppRunner.Types.ConnectionSummary
import Amazonka.AppRunner.Types.CustomDomain
import Amazonka.AppRunner.Types.CustomDomainAssociationStatus
import Amazonka.AppRunner.Types.EgressConfiguration
import Amazonka.AppRunner.Types.EgressType
import Amazonka.AppRunner.Types.EncryptionConfiguration
import Amazonka.AppRunner.Types.HealthCheckConfiguration
import Amazonka.AppRunner.Types.HealthCheckProtocol
import Amazonka.AppRunner.Types.ImageConfiguration
import Amazonka.AppRunner.Types.ImageRepository
import Amazonka.AppRunner.Types.ImageRepositoryType
import Amazonka.AppRunner.Types.IngressConfiguration
import Amazonka.AppRunner.Types.IngressVpcConfiguration
import Amazonka.AppRunner.Types.InstanceConfiguration
import Amazonka.AppRunner.Types.ListVpcIngressConnectionsFilter
import Amazonka.AppRunner.Types.NetworkConfiguration
import Amazonka.AppRunner.Types.ObservabilityConfiguration
import Amazonka.AppRunner.Types.ObservabilityConfigurationStatus
import Amazonka.AppRunner.Types.ObservabilityConfigurationSummary
import Amazonka.AppRunner.Types.OperationStatus
import Amazonka.AppRunner.Types.OperationSummary
import Amazonka.AppRunner.Types.OperationType
import Amazonka.AppRunner.Types.ProviderType
import Amazonka.AppRunner.Types.Runtime
import Amazonka.AppRunner.Types.Service
import Amazonka.AppRunner.Types.ServiceObservabilityConfiguration
import Amazonka.AppRunner.Types.ServiceStatus
import Amazonka.AppRunner.Types.ServiceSummary
import Amazonka.AppRunner.Types.SourceCodeVersion
import Amazonka.AppRunner.Types.SourceCodeVersionType
import Amazonka.AppRunner.Types.SourceConfiguration
import Amazonka.AppRunner.Types.Tag
import Amazonka.AppRunner.Types.TraceConfiguration
import Amazonka.AppRunner.Types.TracingVendor
import Amazonka.AppRunner.Types.VpcConnector
import Amazonka.AppRunner.Types.VpcConnectorStatus
import Amazonka.AppRunner.Types.VpcDNSTarget
import Amazonka.AppRunner.Types.VpcIngressConnection
import Amazonka.AppRunner.Types.VpcIngressConnectionStatus
import Amazonka.AppRunner.Types.VpcIngressConnectionSummary
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
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"AppRunner",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"apprunner",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"apprunner",
$sel:version:Service :: ByteString
Core.version = ByteString
"2020-05-15",
$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
"AppRunner",
$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
_InternalServiceErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServiceErrorException :: forall a. AsError a => Fold a ServiceError
_InternalServiceErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServiceErrorException"
_InvalidRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidRequestException :: forall a. AsError a => Fold a ServiceError
_InvalidRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidRequestException"
_InvalidStateException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidStateException :: forall a. AsError a => Fold a ServiceError
_InvalidStateException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidStateException"
_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"
_ServiceQuotaExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceQuotaExceededException :: forall a. AsError a => Fold a ServiceError
_ServiceQuotaExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"