{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CodePipeline.Types
(
defaultService,
_InvalidClientTokenException,
_ValidationException,
_InvalidNonceException,
_ActionNotFoundException,
_InvalidApprovalTokenException,
_RequestFailedException,
_PipelineExecutionNotStoppableException,
_InvalidBlockerDeclarationException,
_OutputVariablesSizeExceededException,
_InvalidJobStateException,
_TooManyTagsException,
_ConflictException,
_InvalidJobException,
_PipelineVersionNotFoundException,
_StageNotRetryableException,
_PipelineExecutionNotFoundException,
_InvalidWebhookAuthenticationParametersException,
_WebhookNotFoundException,
_InvalidTagsException,
_ActionTypeAlreadyExistsException,
_ActionTypeNotFoundException,
_ConcurrentModificationException,
_InvalidNextTokenException,
_InvalidStageDeclarationException,
_DuplicatedStopRequestException,
_InvalidWebhookFilterPatternException,
_InvalidActionDeclarationException,
_StageNotFoundException,
_InvalidStructureException,
_JobNotFoundException,
_ApprovalAlreadyCompletedException,
_InvalidArnException,
_PipelineNameInUseException,
_PipelineNotFoundException,
_ResourceNotFoundException,
_LimitExceededException,
_NotLatestPipelineExecutionException,
ActionCategory (..),
ActionConfigurationPropertyType (..),
ActionExecutionStatus (..),
ActionOwner (..),
ApprovalStatus (..),
ArtifactLocationType (..),
ArtifactStoreType (..),
BlockerType (..),
EncryptionKeyType (..),
ExecutorType (..),
FailureType (..),
JobStatus (..),
PipelineExecutionStatus (..),
StageExecutionStatus (..),
StageRetryMode (..),
StageTransitionType (..),
TriggerType (..),
WebhookAuthenticationType (..),
AWSSessionCredentials (..),
newAWSSessionCredentials,
aWSSessionCredentials_accessKeyId,
aWSSessionCredentials_secretAccessKey,
aWSSessionCredentials_sessionToken,
ActionConfiguration (..),
newActionConfiguration,
actionConfiguration_configuration,
ActionConfigurationProperty (..),
newActionConfigurationProperty,
actionConfigurationProperty_queryable,
actionConfigurationProperty_type,
actionConfigurationProperty_description,
actionConfigurationProperty_name,
actionConfigurationProperty_required,
actionConfigurationProperty_key,
actionConfigurationProperty_secret,
ActionContext (..),
newActionContext,
actionContext_name,
actionContext_actionExecutionId,
ActionDeclaration (..),
newActionDeclaration,
actionDeclaration_outputArtifacts,
actionDeclaration_namespace,
actionDeclaration_runOrder,
actionDeclaration_region,
actionDeclaration_configuration,
actionDeclaration_inputArtifacts,
actionDeclaration_roleArn,
actionDeclaration_name,
actionDeclaration_actionTypeId,
ActionExecution (..),
newActionExecution,
actionExecution_lastUpdatedBy,
actionExecution_summary,
actionExecution_status,
actionExecution_lastStatusChange,
actionExecution_token,
actionExecution_externalExecutionUrl,
actionExecution_externalExecutionId,
actionExecution_errorDetails,
actionExecution_percentComplete,
actionExecution_actionExecutionId,
ActionExecutionDetail (..),
newActionExecutionDetail,
actionExecutionDetail_status,
actionExecutionDetail_startTime,
actionExecutionDetail_pipelineVersion,
actionExecutionDetail_input,
actionExecutionDetail_actionName,
actionExecutionDetail_output,
actionExecutionDetail_pipelineExecutionId,
actionExecutionDetail_stageName,
actionExecutionDetail_lastUpdateTime,
actionExecutionDetail_actionExecutionId,
ActionExecutionFilter (..),
newActionExecutionFilter,
actionExecutionFilter_pipelineExecutionId,
ActionExecutionInput (..),
newActionExecutionInput,
actionExecutionInput_namespace,
actionExecutionInput_resolvedConfiguration,
actionExecutionInput_region,
actionExecutionInput_configuration,
actionExecutionInput_actionTypeId,
actionExecutionInput_inputArtifacts,
actionExecutionInput_roleArn,
ActionExecutionOutput (..),
newActionExecutionOutput,
actionExecutionOutput_outputVariables,
actionExecutionOutput_outputArtifacts,
actionExecutionOutput_executionResult,
ActionExecutionResult (..),
newActionExecutionResult,
actionExecutionResult_externalExecutionUrl,
actionExecutionResult_externalExecutionId,
actionExecutionResult_externalExecutionSummary,
ActionRevision (..),
newActionRevision,
actionRevision_revisionId,
actionRevision_revisionChangeId,
actionRevision_created,
ActionState (..),
newActionState,
actionState_revisionUrl,
actionState_entityUrl,
actionState_actionName,
actionState_currentRevision,
actionState_latestExecution,
ActionType (..),
newActionType,
actionType_settings,
actionType_actionConfigurationProperties,
actionType_id,
actionType_inputArtifactDetails,
actionType_outputArtifactDetails,
ActionTypeArtifactDetails (..),
newActionTypeArtifactDetails,
actionTypeArtifactDetails_minimumCount,
actionTypeArtifactDetails_maximumCount,
ActionTypeDeclaration (..),
newActionTypeDeclaration,
actionTypeDeclaration_urls,
actionTypeDeclaration_permissions,
actionTypeDeclaration_description,
actionTypeDeclaration_properties,
actionTypeDeclaration_executor,
actionTypeDeclaration_id,
actionTypeDeclaration_inputArtifactDetails,
actionTypeDeclaration_outputArtifactDetails,
ActionTypeExecutor (..),
newActionTypeExecutor,
actionTypeExecutor_jobTimeout,
actionTypeExecutor_policyStatementsTemplate,
actionTypeExecutor_configuration,
actionTypeExecutor_type,
ActionTypeId (..),
newActionTypeId,
actionTypeId_category,
actionTypeId_owner,
actionTypeId_provider,
actionTypeId_version,
ActionTypeIdentifier (..),
newActionTypeIdentifier,
actionTypeIdentifier_category,
actionTypeIdentifier_owner,
actionTypeIdentifier_provider,
actionTypeIdentifier_version,
ActionTypePermissions (..),
newActionTypePermissions,
actionTypePermissions_allowedAccounts,
ActionTypeProperty (..),
newActionTypeProperty,
actionTypeProperty_queryable,
actionTypeProperty_description,
actionTypeProperty_name,
actionTypeProperty_optional,
actionTypeProperty_key,
actionTypeProperty_noEcho,
ActionTypeSettings (..),
newActionTypeSettings,
actionTypeSettings_thirdPartyConfigurationUrl,
actionTypeSettings_executionUrlTemplate,
actionTypeSettings_revisionUrlTemplate,
actionTypeSettings_entityUrlTemplate,
ActionTypeUrls (..),
newActionTypeUrls,
actionTypeUrls_executionUrlTemplate,
actionTypeUrls_revisionUrlTemplate,
actionTypeUrls_entityUrlTemplate,
actionTypeUrls_configurationUrl,
ApprovalResult (..),
newApprovalResult,
approvalResult_summary,
approvalResult_status,
Artifact (..),
newArtifact,
artifact_location,
artifact_name,
artifact_revision,
ArtifactDetail (..),
newArtifactDetail,
artifactDetail_name,
artifactDetail_s3location,
ArtifactDetails (..),
newArtifactDetails,
artifactDetails_minimumCount,
artifactDetails_maximumCount,
ArtifactLocation (..),
newArtifactLocation,
artifactLocation_s3Location,
artifactLocation_type,
ArtifactRevision (..),
newArtifactRevision,
artifactRevision_revisionSummary,
artifactRevision_revisionUrl,
artifactRevision_created,
artifactRevision_name,
artifactRevision_revisionId,
artifactRevision_revisionChangeIdentifier,
ArtifactStore (..),
newArtifactStore,
artifactStore_encryptionKey,
artifactStore_type,
artifactStore_location,
BlockerDeclaration (..),
newBlockerDeclaration,
blockerDeclaration_name,
blockerDeclaration_type,
CurrentRevision (..),
newCurrentRevision,
currentRevision_revisionSummary,
currentRevision_created,
currentRevision_revision,
currentRevision_changeIdentifier,
EncryptionKey (..),
newEncryptionKey,
encryptionKey_id,
encryptionKey_type,
ErrorDetails (..),
newErrorDetails,
errorDetails_code,
errorDetails_message,
ExecutionDetails (..),
newExecutionDetails,
executionDetails_summary,
executionDetails_externalExecutionId,
executionDetails_percentComplete,
ExecutionTrigger (..),
newExecutionTrigger,
executionTrigger_triggerType,
executionTrigger_triggerDetail,
ExecutorConfiguration (..),
newExecutorConfiguration,
executorConfiguration_lambdaExecutorConfiguration,
executorConfiguration_jobWorkerExecutorConfiguration,
FailureDetails (..),
newFailureDetails,
failureDetails_externalExecutionId,
failureDetails_type,
failureDetails_message,
InputArtifact (..),
newInputArtifact,
inputArtifact_name,
Job (..),
newJob,
job_data,
job_accountId,
job_id,
job_nonce,
JobData (..),
newJobData,
jobData_continuationToken,
jobData_outputArtifacts,
jobData_artifactCredentials,
jobData_pipelineContext,
jobData_encryptionKey,
jobData_actionTypeId,
jobData_inputArtifacts,
jobData_actionConfiguration,
JobDetails (..),
newJobDetails,
jobDetails_data,
jobDetails_accountId,
jobDetails_id,
JobWorkerExecutorConfiguration (..),
newJobWorkerExecutorConfiguration,
jobWorkerExecutorConfiguration_pollingAccounts,
jobWorkerExecutorConfiguration_pollingServicePrincipals,
LambdaExecutorConfiguration (..),
newLambdaExecutorConfiguration,
lambdaExecutorConfiguration_lambdaFunctionArn,
ListWebhookItem (..),
newListWebhookItem,
listWebhookItem_arn,
listWebhookItem_errorCode,
listWebhookItem_lastTriggered,
listWebhookItem_errorMessage,
listWebhookItem_tags,
listWebhookItem_definition,
listWebhookItem_url,
OutputArtifact (..),
newOutputArtifact,
outputArtifact_name,
PipelineContext (..),
newPipelineContext,
pipelineContext_stage,
pipelineContext_pipelineName,
pipelineContext_action,
pipelineContext_pipelineArn,
pipelineContext_pipelineExecutionId,
PipelineDeclaration (..),
newPipelineDeclaration,
pipelineDeclaration_artifactStores,
pipelineDeclaration_artifactStore,
pipelineDeclaration_version,
pipelineDeclaration_name,
pipelineDeclaration_roleArn,
pipelineDeclaration_stages,
PipelineExecution (..),
newPipelineExecution,
pipelineExecution_status,
pipelineExecution_pipelineName,
pipelineExecution_statusSummary,
pipelineExecution_pipelineVersion,
pipelineExecution_pipelineExecutionId,
pipelineExecution_artifactRevisions,
PipelineExecutionSummary (..),
newPipelineExecutionSummary,
pipelineExecutionSummary_status,
pipelineExecutionSummary_startTime,
pipelineExecutionSummary_stopTrigger,
pipelineExecutionSummary_pipelineExecutionId,
pipelineExecutionSummary_sourceRevisions,
pipelineExecutionSummary_trigger,
pipelineExecutionSummary_lastUpdateTime,
PipelineMetadata (..),
newPipelineMetadata,
pipelineMetadata_created,
pipelineMetadata_pipelineArn,
pipelineMetadata_updated,
PipelineSummary (..),
newPipelineSummary,
pipelineSummary_created,
pipelineSummary_name,
pipelineSummary_version,
pipelineSummary_updated,
S3ArtifactLocation (..),
newS3ArtifactLocation,
s3ArtifactLocation_bucketName,
s3ArtifactLocation_objectKey,
S3Location (..),
newS3Location,
s3Location_bucket,
s3Location_key,
SourceRevision (..),
newSourceRevision,
sourceRevision_revisionSummary,
sourceRevision_revisionUrl,
sourceRevision_revisionId,
sourceRevision_actionName,
StageContext (..),
newStageContext,
stageContext_name,
StageDeclaration (..),
newStageDeclaration,
stageDeclaration_blockers,
stageDeclaration_name,
stageDeclaration_actions,
StageExecution (..),
newStageExecution,
stageExecution_pipelineExecutionId,
stageExecution_status,
StageState (..),
newStageState,
stageState_inboundExecution,
stageState_inboundTransitionState,
stageState_actionStates,
stageState_stageName,
stageState_latestExecution,
StopExecutionTrigger (..),
newStopExecutionTrigger,
stopExecutionTrigger_reason,
Tag (..),
newTag,
tag_key,
tag_value,
ThirdPartyJob (..),
newThirdPartyJob,
thirdPartyJob_clientId,
thirdPartyJob_jobId,
ThirdPartyJobData (..),
newThirdPartyJobData,
thirdPartyJobData_continuationToken,
thirdPartyJobData_outputArtifacts,
thirdPartyJobData_artifactCredentials,
thirdPartyJobData_pipelineContext,
thirdPartyJobData_encryptionKey,
thirdPartyJobData_actionTypeId,
thirdPartyJobData_inputArtifacts,
thirdPartyJobData_actionConfiguration,
ThirdPartyJobDetails (..),
newThirdPartyJobDetails,
thirdPartyJobDetails_data,
thirdPartyJobDetails_id,
thirdPartyJobDetails_nonce,
TransitionState (..),
newTransitionState,
transitionState_enabled,
transitionState_disabledReason,
transitionState_lastChangedAt,
transitionState_lastChangedBy,
WebhookAuthConfiguration (..),
newWebhookAuthConfiguration,
webhookAuthConfiguration_allowedIPRange,
webhookAuthConfiguration_secretToken,
WebhookDefinition (..),
newWebhookDefinition,
webhookDefinition_name,
webhookDefinition_targetPipeline,
webhookDefinition_targetAction,
webhookDefinition_filters,
webhookDefinition_authentication,
webhookDefinition_authenticationConfiguration,
WebhookFilterRule (..),
newWebhookFilterRule,
webhookFilterRule_matchEquals,
webhookFilterRule_jsonPath,
)
where
import Amazonka.CodePipeline.Types.AWSSessionCredentials
import Amazonka.CodePipeline.Types.ActionCategory
import Amazonka.CodePipeline.Types.ActionConfiguration
import Amazonka.CodePipeline.Types.ActionConfigurationProperty
import Amazonka.CodePipeline.Types.ActionConfigurationPropertyType
import Amazonka.CodePipeline.Types.ActionContext
import Amazonka.CodePipeline.Types.ActionDeclaration
import Amazonka.CodePipeline.Types.ActionExecution
import Amazonka.CodePipeline.Types.ActionExecutionDetail
import Amazonka.CodePipeline.Types.ActionExecutionFilter
import Amazonka.CodePipeline.Types.ActionExecutionInput
import Amazonka.CodePipeline.Types.ActionExecutionOutput
import Amazonka.CodePipeline.Types.ActionExecutionResult
import Amazonka.CodePipeline.Types.ActionExecutionStatus
import Amazonka.CodePipeline.Types.ActionOwner
import Amazonka.CodePipeline.Types.ActionRevision
import Amazonka.CodePipeline.Types.ActionState
import Amazonka.CodePipeline.Types.ActionType
import Amazonka.CodePipeline.Types.ActionTypeArtifactDetails
import Amazonka.CodePipeline.Types.ActionTypeDeclaration
import Amazonka.CodePipeline.Types.ActionTypeExecutor
import Amazonka.CodePipeline.Types.ActionTypeId
import Amazonka.CodePipeline.Types.ActionTypeIdentifier
import Amazonka.CodePipeline.Types.ActionTypePermissions
import Amazonka.CodePipeline.Types.ActionTypeProperty
import Amazonka.CodePipeline.Types.ActionTypeSettings
import Amazonka.CodePipeline.Types.ActionTypeUrls
import Amazonka.CodePipeline.Types.ApprovalResult
import Amazonka.CodePipeline.Types.ApprovalStatus
import Amazonka.CodePipeline.Types.Artifact
import Amazonka.CodePipeline.Types.ArtifactDetail
import Amazonka.CodePipeline.Types.ArtifactDetails
import Amazonka.CodePipeline.Types.ArtifactLocation
import Amazonka.CodePipeline.Types.ArtifactLocationType
import Amazonka.CodePipeline.Types.ArtifactRevision
import Amazonka.CodePipeline.Types.ArtifactStore
import Amazonka.CodePipeline.Types.ArtifactStoreType
import Amazonka.CodePipeline.Types.BlockerDeclaration
import Amazonka.CodePipeline.Types.BlockerType
import Amazonka.CodePipeline.Types.CurrentRevision
import Amazonka.CodePipeline.Types.EncryptionKey
import Amazonka.CodePipeline.Types.EncryptionKeyType
import Amazonka.CodePipeline.Types.ErrorDetails
import Amazonka.CodePipeline.Types.ExecutionDetails
import Amazonka.CodePipeline.Types.ExecutionTrigger
import Amazonka.CodePipeline.Types.ExecutorConfiguration
import Amazonka.CodePipeline.Types.ExecutorType
import Amazonka.CodePipeline.Types.FailureDetails
import Amazonka.CodePipeline.Types.FailureType
import Amazonka.CodePipeline.Types.InputArtifact
import Amazonka.CodePipeline.Types.Job
import Amazonka.CodePipeline.Types.JobData
import Amazonka.CodePipeline.Types.JobDetails
import Amazonka.CodePipeline.Types.JobStatus
import Amazonka.CodePipeline.Types.JobWorkerExecutorConfiguration
import Amazonka.CodePipeline.Types.LambdaExecutorConfiguration
import Amazonka.CodePipeline.Types.ListWebhookItem
import Amazonka.CodePipeline.Types.OutputArtifact
import Amazonka.CodePipeline.Types.PipelineContext
import Amazonka.CodePipeline.Types.PipelineDeclaration
import Amazonka.CodePipeline.Types.PipelineExecution
import Amazonka.CodePipeline.Types.PipelineExecutionStatus
import Amazonka.CodePipeline.Types.PipelineExecutionSummary
import Amazonka.CodePipeline.Types.PipelineMetadata
import Amazonka.CodePipeline.Types.PipelineSummary
import Amazonka.CodePipeline.Types.S3ArtifactLocation
import Amazonka.CodePipeline.Types.S3Location
import Amazonka.CodePipeline.Types.SourceRevision
import Amazonka.CodePipeline.Types.StageContext
import Amazonka.CodePipeline.Types.StageDeclaration
import Amazonka.CodePipeline.Types.StageExecution
import Amazonka.CodePipeline.Types.StageExecutionStatus
import Amazonka.CodePipeline.Types.StageRetryMode
import Amazonka.CodePipeline.Types.StageState
import Amazonka.CodePipeline.Types.StageTransitionType
import Amazonka.CodePipeline.Types.StopExecutionTrigger
import Amazonka.CodePipeline.Types.Tag
import Amazonka.CodePipeline.Types.ThirdPartyJob
import Amazonka.CodePipeline.Types.ThirdPartyJobData
import Amazonka.CodePipeline.Types.ThirdPartyJobDetails
import Amazonka.CodePipeline.Types.TransitionState
import Amazonka.CodePipeline.Types.TriggerType
import Amazonka.CodePipeline.Types.WebhookAuthConfiguration
import Amazonka.CodePipeline.Types.WebhookAuthenticationType
import Amazonka.CodePipeline.Types.WebhookDefinition
import Amazonka.CodePipeline.Types.WebhookFilterRule
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Service :: Abbrev
-> Signer
-> ByteString
-> ByteString
-> ByteString
-> (Region -> Endpoint)
-> Maybe Seconds
-> (Status -> Bool)
-> (Status -> [Header] -> ByteStringLazy -> Error)
-> Retry
-> Service
Core.Service
{ $sel:_serviceAbbrev:Service :: Abbrev
Core._serviceAbbrev = Abbrev
"CodePipeline",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"codepipeline",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"codepipeline",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2015-07-09",
$sel:_serviceEndpoint:Service :: Region -> Endpoint
Core._serviceEndpoint =
Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:_serviceTimeout:Service :: Maybe Seconds
Core._serviceTimeout = Seconds -> Maybe Seconds
forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:_serviceCheck:Service :: Status -> Bool
Core._serviceCheck = Status -> Bool
Core.statusSuccess,
$sel:_serviceError:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core._serviceError =
Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"CodePipeline",
$sel:_serviceRetry:Service :: Retry
Core._serviceRetry = Retry
retry
}
where
retry :: Retry
retry =
Exponential :: Double -> Int -> Int -> (ServiceError -> Maybe Text) -> Retry
Core.Exponential
{ $sel:_retryBase:Exponential :: Double
Core._retryBase = Double
5.0e-2,
$sel:_retryGrowth:Exponential :: Int
Core._retryGrowth = Int
2,
$sel:_retryAttempts:Exponential :: Int
Core._retryAttempts = Int
5,
$sel:_retryCheck:Exponential :: ServiceError -> Maybe Text
Core._retryCheck = ServiceError -> Maybe Text
forall a. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| Bool
Prelude.otherwise = Maybe a
forall a. Maybe a
Prelude.Nothing
_InvalidClientTokenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidClientTokenException :: Getting (First ServiceError) a ServiceError
_InvalidClientTokenException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidClientTokenException"
_ValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ValidationException :: Getting (First ServiceError) a ServiceError
_ValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
_InvalidNonceException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidNonceException :: Getting (First ServiceError) a ServiceError
_InvalidNonceException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNonceException"
_ActionNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ActionNotFoundException :: Getting (First ServiceError) a ServiceError
_ActionNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ActionNotFoundException"
_InvalidApprovalTokenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidApprovalTokenException :: Getting (First ServiceError) a ServiceError
_InvalidApprovalTokenException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidApprovalTokenException"
_RequestFailedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_RequestFailedException :: Getting (First ServiceError) a ServiceError
_RequestFailedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"RequestFailedException"
_PipelineExecutionNotStoppableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PipelineExecutionNotStoppableException :: Getting (First ServiceError) a ServiceError
_PipelineExecutionNotStoppableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PipelineExecutionNotStoppableException"
_InvalidBlockerDeclarationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidBlockerDeclarationException :: Getting (First ServiceError) a ServiceError
_InvalidBlockerDeclarationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidBlockerDeclarationException"
_OutputVariablesSizeExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_OutputVariablesSizeExceededException :: Getting (First ServiceError) a ServiceError
_OutputVariablesSizeExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"OutputVariablesSizeExceededException"
_InvalidJobStateException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidJobStateException :: Getting (First ServiceError) a ServiceError
_InvalidJobStateException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidJobStateException"
_TooManyTagsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyTagsException :: Getting (First ServiceError) a ServiceError
_TooManyTagsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
_ConflictException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConflictException :: Getting (First ServiceError) a ServiceError
_ConflictException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
_InvalidJobException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidJobException :: Getting (First ServiceError) a ServiceError
_InvalidJobException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidJobException"
_PipelineVersionNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PipelineVersionNotFoundException :: Getting (First ServiceError) a ServiceError
_PipelineVersionNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PipelineVersionNotFoundException"
_StageNotRetryableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_StageNotRetryableException :: Getting (First ServiceError) a ServiceError
_StageNotRetryableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"StageNotRetryableException"
_PipelineExecutionNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PipelineExecutionNotFoundException :: Getting (First ServiceError) a ServiceError
_PipelineExecutionNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PipelineExecutionNotFoundException"
_InvalidWebhookAuthenticationParametersException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidWebhookAuthenticationParametersException :: Getting (First ServiceError) a ServiceError
_InvalidWebhookAuthenticationParametersException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidWebhookAuthenticationParametersException"
_WebhookNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_WebhookNotFoundException :: Getting (First ServiceError) a ServiceError
_WebhookNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WebhookNotFoundException"
_InvalidTagsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidTagsException :: Getting (First ServiceError) a ServiceError
_InvalidTagsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidTagsException"
_ActionTypeAlreadyExistsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ActionTypeAlreadyExistsException :: Getting (First ServiceError) a ServiceError
_ActionTypeAlreadyExistsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ActionTypeAlreadyExistsException"
_ActionTypeNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ActionTypeNotFoundException :: Getting (First ServiceError) a ServiceError
_ActionTypeNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ActionTypeNotFoundException"
_ConcurrentModificationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConcurrentModificationException :: Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
_InvalidNextTokenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidNextTokenException :: Getting (First ServiceError) a ServiceError
_InvalidNextTokenException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNextTokenException"
_InvalidStageDeclarationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidStageDeclarationException :: Getting (First ServiceError) a ServiceError
_InvalidStageDeclarationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidStageDeclarationException"
_DuplicatedStopRequestException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DuplicatedStopRequestException :: Getting (First ServiceError) a ServiceError
_DuplicatedStopRequestException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DuplicatedStopRequestException"
_InvalidWebhookFilterPatternException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidWebhookFilterPatternException :: Getting (First ServiceError) a ServiceError
_InvalidWebhookFilterPatternException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidWebhookFilterPatternException"
_InvalidActionDeclarationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidActionDeclarationException :: Getting (First ServiceError) a ServiceError
_InvalidActionDeclarationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidActionDeclarationException"
_StageNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_StageNotFoundException :: Getting (First ServiceError) a ServiceError
_StageNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"StageNotFoundException"
_InvalidStructureException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidStructureException :: Getting (First ServiceError) a ServiceError
_InvalidStructureException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidStructureException"
_JobNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_JobNotFoundException :: Getting (First ServiceError) a ServiceError
_JobNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"JobNotFoundException"
_ApprovalAlreadyCompletedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ApprovalAlreadyCompletedException :: Getting (First ServiceError) a ServiceError
_ApprovalAlreadyCompletedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ApprovalAlreadyCompletedException"
_InvalidArnException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidArnException :: Getting (First ServiceError) a ServiceError
_InvalidArnException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidArnException"
_PipelineNameInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PipelineNameInUseException :: Getting (First ServiceError) a ServiceError
_PipelineNameInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PipelineNameInUseException"
_PipelineNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PipelineNotFoundException :: Getting (First ServiceError) a ServiceError
_PipelineNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PipelineNotFoundException"
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
_LimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededException :: Getting (First ServiceError) a ServiceError
_LimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
_NotLatestPipelineExecutionException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NotLatestPipelineExecutionException :: Getting (First ServiceError) a ServiceError
_NotLatestPipelineExecutionException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotLatestPipelineExecutionException"