{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ServiceCatalog.Types
(
defaultService,
_InvalidParametersException,
_DuplicateResourceException,
_OperationNotSupportedException,
_TagOptionNotMigratedException,
_ResourceNotFoundException,
_InvalidStateException,
_LimitExceededException,
_ResourceInUseException,
AccessLevelFilterKey (..),
AccessStatus (..),
ChangeAction (..),
CopyOption (..),
CopyProductStatus (..),
DescribePortfolioShareType (..),
EvaluationType (..),
OrganizationNodeType (..),
PortfolioShareType (..),
PrincipalType (..),
ProductSource (..),
ProductType (..),
ProductViewFilterBy (..),
ProductViewSortBy (..),
PropertyKey (..),
ProvisionedProductPlanStatus (..),
ProvisionedProductPlanType (..),
ProvisionedProductStatus (..),
ProvisionedProductViewFilterBy (..),
ProvisioningArtifactGuidance (..),
ProvisioningArtifactPropertyName (..),
ProvisioningArtifactType (..),
RecordStatus (..),
Replacement (..),
RequestStatus (..),
RequiresRecreation (..),
ResourceAttribute (..),
ServiceActionAssociationErrorCode (..),
ServiceActionDefinitionKey (..),
ServiceActionDefinitionType (..),
ShareStatus (..),
SortOrder (..),
StackInstanceStatus (..),
StackSetOperationType (..),
AccessLevelFilter (..),
newAccessLevelFilter,
accessLevelFilter_value,
accessLevelFilter_key,
BudgetDetail (..),
newBudgetDetail,
budgetDetail_budgetName,
CloudWatchDashboard (..),
newCloudWatchDashboard,
cloudWatchDashboard_name,
ConstraintDetail (..),
newConstraintDetail,
constraintDetail_portfolioId,
constraintDetail_constraintId,
constraintDetail_owner,
constraintDetail_type,
constraintDetail_description,
constraintDetail_productId,
ConstraintSummary (..),
newConstraintSummary,
constraintSummary_type,
constraintSummary_description,
ExecutionParameter (..),
newExecutionParameter,
executionParameter_defaultValues,
executionParameter_name,
executionParameter_type,
FailedServiceActionAssociation (..),
newFailedServiceActionAssociation,
failedServiceActionAssociation_provisioningArtifactId,
failedServiceActionAssociation_errorCode,
failedServiceActionAssociation_errorMessage,
failedServiceActionAssociation_serviceActionId,
failedServiceActionAssociation_productId,
LaunchPath (..),
newLaunchPath,
launchPath_name,
launchPath_id,
LaunchPathSummary (..),
newLaunchPathSummary,
launchPathSummary_constraintSummaries,
launchPathSummary_name,
launchPathSummary_id,
launchPathSummary_tags,
ListRecordHistorySearchFilter (..),
newListRecordHistorySearchFilter,
listRecordHistorySearchFilter_value,
listRecordHistorySearchFilter_key,
ListTagOptionsFilters (..),
newListTagOptionsFilters,
listTagOptionsFilters_value,
listTagOptionsFilters_active,
listTagOptionsFilters_key,
OrganizationNode (..),
newOrganizationNode,
organizationNode_value,
organizationNode_type,
ParameterConstraints (..),
newParameterConstraints,
parameterConstraints_maxValue,
parameterConstraints_maxLength,
parameterConstraints_constraintDescription,
parameterConstraints_minLength,
parameterConstraints_allowedPattern,
parameterConstraints_allowedValues,
parameterConstraints_minValue,
PortfolioDetail (..),
newPortfolioDetail,
portfolioDetail_arn,
portfolioDetail_createdTime,
portfolioDetail_id,
portfolioDetail_displayName,
portfolioDetail_description,
portfolioDetail_providerName,
PortfolioShareDetail (..),
newPortfolioShareDetail,
portfolioShareDetail_principalId,
portfolioShareDetail_shareTagOptions,
portfolioShareDetail_type,
portfolioShareDetail_accepted,
Principal (..),
newPrincipal,
principal_principalType,
principal_principalARN,
ProductViewAggregationValue (..),
newProductViewAggregationValue,
productViewAggregationValue_value,
productViewAggregationValue_approximateCount,
ProductViewDetail (..),
newProductViewDetail,
productViewDetail_status,
productViewDetail_productViewSummary,
productViewDetail_createdTime,
productViewDetail_productARN,
ProductViewSummary (..),
newProductViewSummary,
productViewSummary_owner,
productViewSummary_supportUrl,
productViewSummary_shortDescription,
productViewSummary_hasDefaultPath,
productViewSummary_distributor,
productViewSummary_name,
productViewSummary_id,
productViewSummary_type,
productViewSummary_supportEmail,
productViewSummary_productId,
productViewSummary_supportDescription,
ProvisionedProductAttribute (..),
newProvisionedProductAttribute,
provisionedProductAttribute_idempotencyToken,
provisionedProductAttribute_status,
provisionedProductAttribute_productName,
provisionedProductAttribute_lastSuccessfulProvisioningRecordId,
provisionedProductAttribute_provisioningArtifactId,
provisionedProductAttribute_arn,
provisionedProductAttribute_createdTime,
provisionedProductAttribute_provisioningArtifactName,
provisionedProductAttribute_userArn,
provisionedProductAttribute_statusMessage,
provisionedProductAttribute_name,
provisionedProductAttribute_lastRecordId,
provisionedProductAttribute_userArnSession,
provisionedProductAttribute_id,
provisionedProductAttribute_type,
provisionedProductAttribute_physicalId,
provisionedProductAttribute_lastProvisioningRecordId,
provisionedProductAttribute_productId,
provisionedProductAttribute_tags,
ProvisionedProductDetail (..),
newProvisionedProductDetail,
provisionedProductDetail_launchRoleArn,
provisionedProductDetail_idempotencyToken,
provisionedProductDetail_status,
provisionedProductDetail_lastSuccessfulProvisioningRecordId,
provisionedProductDetail_provisioningArtifactId,
provisionedProductDetail_arn,
provisionedProductDetail_createdTime,
provisionedProductDetail_statusMessage,
provisionedProductDetail_name,
provisionedProductDetail_lastRecordId,
provisionedProductDetail_id,
provisionedProductDetail_type,
provisionedProductDetail_lastProvisioningRecordId,
provisionedProductDetail_productId,
ProvisionedProductPlanDetails (..),
newProvisionedProductPlanDetails,
provisionedProductPlanDetails_status,
provisionedProductPlanDetails_provisionProductId,
provisionedProductPlanDetails_provisioningArtifactId,
provisionedProductPlanDetails_provisionProductName,
provisionedProductPlanDetails_createdTime,
provisionedProductPlanDetails_notificationArns,
provisionedProductPlanDetails_planId,
provisionedProductPlanDetails_planName,
provisionedProductPlanDetails_statusMessage,
provisionedProductPlanDetails_updatedTime,
provisionedProductPlanDetails_pathId,
provisionedProductPlanDetails_provisioningParameters,
provisionedProductPlanDetails_planType,
provisionedProductPlanDetails_productId,
provisionedProductPlanDetails_tags,
ProvisionedProductPlanSummary (..),
newProvisionedProductPlanSummary,
provisionedProductPlanSummary_provisionProductId,
provisionedProductPlanSummary_provisioningArtifactId,
provisionedProductPlanSummary_provisionProductName,
provisionedProductPlanSummary_planId,
provisionedProductPlanSummary_planName,
provisionedProductPlanSummary_planType,
ProvisioningArtifact (..),
newProvisioningArtifact,
provisioningArtifact_createdTime,
provisioningArtifact_name,
provisioningArtifact_id,
provisioningArtifact_guidance,
provisioningArtifact_description,
ProvisioningArtifactDetail (..),
newProvisioningArtifactDetail,
provisioningArtifactDetail_createdTime,
provisioningArtifactDetail_active,
provisioningArtifactDetail_name,
provisioningArtifactDetail_id,
provisioningArtifactDetail_type,
provisioningArtifactDetail_guidance,
provisioningArtifactDetail_description,
ProvisioningArtifactOutput (..),
newProvisioningArtifactOutput,
provisioningArtifactOutput_key,
provisioningArtifactOutput_description,
ProvisioningArtifactParameter (..),
newProvisioningArtifactParameter,
provisioningArtifactParameter_isNoEcho,
provisioningArtifactParameter_parameterKey,
provisioningArtifactParameter_parameterType,
provisioningArtifactParameter_parameterConstraints,
provisioningArtifactParameter_defaultValue,
provisioningArtifactParameter_description,
ProvisioningArtifactPreferences (..),
newProvisioningArtifactPreferences,
provisioningArtifactPreferences_stackSetRegions,
provisioningArtifactPreferences_stackSetAccounts,
ProvisioningArtifactProperties (..),
newProvisioningArtifactProperties,
provisioningArtifactProperties_disableTemplateValidation,
provisioningArtifactProperties_name,
provisioningArtifactProperties_type,
provisioningArtifactProperties_description,
provisioningArtifactProperties_info,
ProvisioningArtifactSummary (..),
newProvisioningArtifactSummary,
provisioningArtifactSummary_provisioningArtifactMetadata,
provisioningArtifactSummary_createdTime,
provisioningArtifactSummary_name,
provisioningArtifactSummary_id,
provisioningArtifactSummary_description,
ProvisioningArtifactView (..),
newProvisioningArtifactView,
provisioningArtifactView_productViewSummary,
provisioningArtifactView_provisioningArtifact,
ProvisioningParameter (..),
newProvisioningParameter,
provisioningParameter_value,
provisioningParameter_key,
ProvisioningPreferences (..),
newProvisioningPreferences,
provisioningPreferences_stackSetRegions,
provisioningPreferences_stackSetMaxConcurrencyPercentage,
provisioningPreferences_stackSetFailureToleranceCount,
provisioningPreferences_stackSetFailureTolerancePercentage,
provisioningPreferences_stackSetAccounts,
provisioningPreferences_stackSetMaxConcurrencyCount,
RecordDetail (..),
newRecordDetail,
recordDetail_launchRoleArn,
recordDetail_status,
recordDetail_recordTags,
recordDetail_provisionedProductName,
recordDetail_provisioningArtifactId,
recordDetail_createdTime,
recordDetail_recordType,
recordDetail_recordId,
recordDetail_provisionedProductType,
recordDetail_updatedTime,
recordDetail_pathId,
recordDetail_provisionedProductId,
recordDetail_recordErrors,
recordDetail_productId,
RecordError (..),
newRecordError,
recordError_code,
recordError_description,
RecordOutput (..),
newRecordOutput,
recordOutput_outputValue,
recordOutput_outputKey,
recordOutput_description,
RecordTag (..),
newRecordTag,
recordTag_value,
recordTag_key,
ResourceChange (..),
newResourceChange,
resourceChange_logicalResourceId,
resourceChange_physicalResourceId,
resourceChange_resourceType,
resourceChange_action,
resourceChange_scope,
resourceChange_details,
resourceChange_replacement,
ResourceChangeDetail (..),
newResourceChangeDetail,
resourceChangeDetail_causingEntity,
resourceChangeDetail_evaluation,
resourceChangeDetail_target,
ResourceDetail (..),
newResourceDetail,
resourceDetail_arn,
resourceDetail_createdTime,
resourceDetail_name,
resourceDetail_id,
resourceDetail_description,
ResourceTargetDefinition (..),
newResourceTargetDefinition,
resourceTargetDefinition_attribute,
resourceTargetDefinition_requiresRecreation,
resourceTargetDefinition_name,
ServiceActionAssociation (..),
newServiceActionAssociation,
serviceActionAssociation_serviceActionId,
serviceActionAssociation_productId,
serviceActionAssociation_provisioningArtifactId,
ServiceActionDetail (..),
newServiceActionDetail,
serviceActionDetail_serviceActionSummary,
serviceActionDetail_definition,
ServiceActionSummary (..),
newServiceActionSummary,
serviceActionSummary_name,
serviceActionSummary_id,
serviceActionSummary_definitionType,
serviceActionSummary_description,
ShareDetails (..),
newShareDetails,
shareDetails_shareErrors,
shareDetails_successfulShares,
ShareError (..),
newShareError,
shareError_accounts,
shareError_error,
shareError_message,
StackInstance (..),
newStackInstance,
stackInstance_account,
stackInstance_region,
stackInstance_stackInstanceStatus,
Tag (..),
newTag,
tag_key,
tag_value,
TagOptionDetail (..),
newTagOptionDetail,
tagOptionDetail_value,
tagOptionDetail_owner,
tagOptionDetail_active,
tagOptionDetail_key,
tagOptionDetail_id,
TagOptionSummary (..),
newTagOptionSummary,
tagOptionSummary_values,
tagOptionSummary_key,
UpdateProvisioningParameter (..),
newUpdateProvisioningParameter,
updateProvisioningParameter_value,
updateProvisioningParameter_key,
updateProvisioningParameter_usePreviousValue,
UpdateProvisioningPreferences (..),
newUpdateProvisioningPreferences,
updateProvisioningPreferences_stackSetRegions,
updateProvisioningPreferences_stackSetMaxConcurrencyPercentage,
updateProvisioningPreferences_stackSetFailureToleranceCount,
updateProvisioningPreferences_stackSetFailureTolerancePercentage,
updateProvisioningPreferences_stackSetAccounts,
updateProvisioningPreferences_stackSetMaxConcurrencyCount,
updateProvisioningPreferences_stackSetOperationType,
UsageInstruction (..),
newUsageInstruction,
usageInstruction_value,
usageInstruction_type,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.AccessLevelFilter
import Amazonka.ServiceCatalog.Types.AccessLevelFilterKey
import Amazonka.ServiceCatalog.Types.AccessStatus
import Amazonka.ServiceCatalog.Types.BudgetDetail
import Amazonka.ServiceCatalog.Types.ChangeAction
import Amazonka.ServiceCatalog.Types.CloudWatchDashboard
import Amazonka.ServiceCatalog.Types.ConstraintDetail
import Amazonka.ServiceCatalog.Types.ConstraintSummary
import Amazonka.ServiceCatalog.Types.CopyOption
import Amazonka.ServiceCatalog.Types.CopyProductStatus
import Amazonka.ServiceCatalog.Types.DescribePortfolioShareType
import Amazonka.ServiceCatalog.Types.EvaluationType
import Amazonka.ServiceCatalog.Types.ExecutionParameter
import Amazonka.ServiceCatalog.Types.FailedServiceActionAssociation
import Amazonka.ServiceCatalog.Types.LaunchPath
import Amazonka.ServiceCatalog.Types.LaunchPathSummary
import Amazonka.ServiceCatalog.Types.ListRecordHistorySearchFilter
import Amazonka.ServiceCatalog.Types.ListTagOptionsFilters
import Amazonka.ServiceCatalog.Types.OrganizationNode
import Amazonka.ServiceCatalog.Types.OrganizationNodeType
import Amazonka.ServiceCatalog.Types.ParameterConstraints
import Amazonka.ServiceCatalog.Types.PortfolioDetail
import Amazonka.ServiceCatalog.Types.PortfolioShareDetail
import Amazonka.ServiceCatalog.Types.PortfolioShareType
import Amazonka.ServiceCatalog.Types.Principal
import Amazonka.ServiceCatalog.Types.PrincipalType
import Amazonka.ServiceCatalog.Types.ProductSource
import Amazonka.ServiceCatalog.Types.ProductType
import Amazonka.ServiceCatalog.Types.ProductViewAggregationValue
import Amazonka.ServiceCatalog.Types.ProductViewDetail
import Amazonka.ServiceCatalog.Types.ProductViewFilterBy
import Amazonka.ServiceCatalog.Types.ProductViewSortBy
import Amazonka.ServiceCatalog.Types.ProductViewSummary
import Amazonka.ServiceCatalog.Types.PropertyKey
import Amazonka.ServiceCatalog.Types.ProvisionedProductAttribute
import Amazonka.ServiceCatalog.Types.ProvisionedProductDetail
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanDetails
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanStatus
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanSummary
import Amazonka.ServiceCatalog.Types.ProvisionedProductPlanType
import Amazonka.ServiceCatalog.Types.ProvisionedProductStatus
import Amazonka.ServiceCatalog.Types.ProvisionedProductViewFilterBy
import Amazonka.ServiceCatalog.Types.ProvisioningArtifact
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactDetail
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactGuidance
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactOutput
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactParameter
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactPreferences
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactProperties
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactPropertyName
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactSummary
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactType
import Amazonka.ServiceCatalog.Types.ProvisioningArtifactView
import Amazonka.ServiceCatalog.Types.ProvisioningParameter
import Amazonka.ServiceCatalog.Types.ProvisioningPreferences
import Amazonka.ServiceCatalog.Types.RecordDetail
import Amazonka.ServiceCatalog.Types.RecordError
import Amazonka.ServiceCatalog.Types.RecordOutput
import Amazonka.ServiceCatalog.Types.RecordStatus
import Amazonka.ServiceCatalog.Types.RecordTag
import Amazonka.ServiceCatalog.Types.Replacement
import Amazonka.ServiceCatalog.Types.RequestStatus
import Amazonka.ServiceCatalog.Types.RequiresRecreation
import Amazonka.ServiceCatalog.Types.ResourceAttribute
import Amazonka.ServiceCatalog.Types.ResourceChange
import Amazonka.ServiceCatalog.Types.ResourceChangeDetail
import Amazonka.ServiceCatalog.Types.ResourceDetail
import Amazonka.ServiceCatalog.Types.ResourceTargetDefinition
import Amazonka.ServiceCatalog.Types.ServiceActionAssociation
import Amazonka.ServiceCatalog.Types.ServiceActionAssociationErrorCode
import Amazonka.ServiceCatalog.Types.ServiceActionDefinitionKey
import Amazonka.ServiceCatalog.Types.ServiceActionDefinitionType
import Amazonka.ServiceCatalog.Types.ServiceActionDetail
import Amazonka.ServiceCatalog.Types.ServiceActionSummary
import Amazonka.ServiceCatalog.Types.ShareDetails
import Amazonka.ServiceCatalog.Types.ShareError
import Amazonka.ServiceCatalog.Types.ShareStatus
import Amazonka.ServiceCatalog.Types.SortOrder
import Amazonka.ServiceCatalog.Types.StackInstance
import Amazonka.ServiceCatalog.Types.StackInstanceStatus
import Amazonka.ServiceCatalog.Types.StackSetOperationType
import Amazonka.ServiceCatalog.Types.Tag
import Amazonka.ServiceCatalog.Types.TagOptionDetail
import Amazonka.ServiceCatalog.Types.TagOptionSummary
import Amazonka.ServiceCatalog.Types.UpdateProvisioningParameter
import Amazonka.ServiceCatalog.Types.UpdateProvisioningPreferences
import Amazonka.ServiceCatalog.Types.UsageInstruction
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
"ServiceCatalog",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"servicecatalog",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"servicecatalog",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2015-12-10",
$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
"ServiceCatalog",
$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
_InvalidParametersException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidParametersException :: Getting (First ServiceError) a ServiceError
_InvalidParametersException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParametersException"
_DuplicateResourceException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DuplicateResourceException :: Getting (First ServiceError) a ServiceError
_DuplicateResourceException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DuplicateResourceException"
_OperationNotSupportedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_OperationNotSupportedException :: Getting (First ServiceError) a ServiceError
_OperationNotSupportedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"OperationNotSupportedException"
_TagOptionNotMigratedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TagOptionNotMigratedException :: Getting (First ServiceError) a ServiceError
_TagOptionNotMigratedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TagOptionNotMigratedException"
_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"
_InvalidStateException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidStateException :: Getting (First ServiceError) a ServiceError
_InvalidStateException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidStateException"
_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"
_ResourceInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceInUseException :: Getting (First ServiceError) a ServiceError
_ResourceInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"