{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MacieV2.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_ConflictException,
_ServiceQuotaExceededException,
_ThrottlingException,
_InternalServerException,
_ResourceNotFoundException,
AdminStatus (..),
AllowsUnencryptedObjectUploads (..),
BucketMetadataErrorCode (..),
Currency (..),
DayOfWeek (..),
EffectivePermission (..),
EncryptionType (..),
ErrorCode (..),
FindingActionType (..),
FindingCategory (..),
FindingPublishingFrequency (..),
FindingStatisticsSortAttributeName (..),
FindingType (..),
FindingsFilterAction (..),
GroupBy (..),
IsDefinedInJob (..),
IsMonitoredByJob (..),
JobComparator (..),
JobStatus (..),
JobType (..),
LastRunErrorStatusCode (..),
ListJobsFilterKey (..),
ListJobsSortAttributeName (..),
MacieStatus (..),
ManagedDataIdentifierSelector (..),
OrderBy (..),
RelationshipStatus (..),
ScopeFilterKey (..),
SearchResourcesComparator (..),
SearchResourcesSimpleCriterionKey (..),
SearchResourcesSortAttributeName (..),
SensitiveDataItemCategory (..),
SeverityDescription (..),
SharedAccess (..),
SimpleCriterionKeyForJob (..),
StorageClass (..),
TagTarget (..),
TimeRange (..),
Type (..),
Unit (..),
UsageStatisticsFilterComparator (..),
UsageStatisticsFilterKey (..),
UsageStatisticsSortKey (..),
UsageType (..),
UserIdentityType (..),
AccessControlList (..),
newAccessControlList,
accessControlList_allowsPublicWriteAccess,
accessControlList_allowsPublicReadAccess,
AccountDetail (..),
newAccountDetail,
accountDetail_email,
accountDetail_accountId,
AccountLevelPermissions (..),
newAccountLevelPermissions,
accountLevelPermissions_blockPublicAccess,
AdminAccount (..),
newAdminAccount,
adminAccount_status,
adminAccount_accountId,
ApiCallDetails (..),
newApiCallDetails,
apiCallDetails_firstSeen,
apiCallDetails_apiServiceName,
apiCallDetails_lastSeen,
apiCallDetails_api,
AssumedRole (..),
newAssumedRole,
assumedRole_principalId,
assumedRole_arn,
assumedRole_sessionContext,
assumedRole_accountId,
assumedRole_accessKeyId,
AwsAccount (..),
newAwsAccount,
awsAccount_principalId,
awsAccount_accountId,
AwsService (..),
newAwsService,
awsService_invokedBy,
BatchGetCustomDataIdentifierSummary (..),
newBatchGetCustomDataIdentifierSummary,
batchGetCustomDataIdentifierSummary_arn,
batchGetCustomDataIdentifierSummary_createdAt,
batchGetCustomDataIdentifierSummary_name,
batchGetCustomDataIdentifierSummary_id,
batchGetCustomDataIdentifierSummary_deleted,
batchGetCustomDataIdentifierSummary_description,
BlockPublicAccess (..),
newBlockPublicAccess,
blockPublicAccess_ignorePublicAcls,
blockPublicAccess_blockPublicAcls,
blockPublicAccess_restrictPublicBuckets,
blockPublicAccess_blockPublicPolicy,
BucketCountByEffectivePermission (..),
newBucketCountByEffectivePermission,
bucketCountByEffectivePermission_publiclyAccessible,
bucketCountByEffectivePermission_unknown,
bucketCountByEffectivePermission_publiclyReadable,
bucketCountByEffectivePermission_publiclyWritable,
BucketCountByEncryptionType (..),
newBucketCountByEncryptionType,
bucketCountByEncryptionType_unknown,
bucketCountByEncryptionType_s3Managed,
bucketCountByEncryptionType_unencrypted,
bucketCountByEncryptionType_kmsManaged,
BucketCountBySharedAccessType (..),
newBucketCountBySharedAccessType,
bucketCountBySharedAccessType_notShared,
bucketCountBySharedAccessType_internal,
bucketCountBySharedAccessType_external,
bucketCountBySharedAccessType_unknown,
BucketCountPolicyAllowsUnencryptedObjectUploads (..),
newBucketCountPolicyAllowsUnencryptedObjectUploads,
bucketCountPolicyAllowsUnencryptedObjectUploads_deniesUnencryptedObjectUploads,
bucketCountPolicyAllowsUnencryptedObjectUploads_unknown,
bucketCountPolicyAllowsUnencryptedObjectUploads_allowsUnencryptedObjectUploads,
BucketCriteriaAdditionalProperties (..),
newBucketCriteriaAdditionalProperties,
bucketCriteriaAdditionalProperties_eq,
bucketCriteriaAdditionalProperties_lte,
bucketCriteriaAdditionalProperties_prefix,
bucketCriteriaAdditionalProperties_gt,
bucketCriteriaAdditionalProperties_neq,
bucketCriteriaAdditionalProperties_lt,
bucketCriteriaAdditionalProperties_gte,
BucketLevelPermissions (..),
newBucketLevelPermissions,
bucketLevelPermissions_accessControlList,
bucketLevelPermissions_blockPublicAccess,
bucketLevelPermissions_bucketPolicy,
BucketMetadata (..),
newBucketMetadata,
bucketMetadata_sizeInBytesCompressed,
bucketMetadata_lastUpdated,
bucketMetadata_objectCountByEncryptionType,
bucketMetadata_sharedAccess,
bucketMetadata_sizeInBytes,
bucketMetadata_bucketName,
bucketMetadata_classifiableObjectCount,
bucketMetadata_accountId,
bucketMetadata_unclassifiableObjectSizeInBytes,
bucketMetadata_unclassifiableObjectCount,
bucketMetadata_versioning,
bucketMetadata_allowsUnencryptedObjectUploads,
bucketMetadata_publicAccess,
bucketMetadata_errorCode,
bucketMetadata_jobDetails,
bucketMetadata_region,
bucketMetadata_bucketCreatedAt,
bucketMetadata_errorMessage,
bucketMetadata_bucketArn,
bucketMetadata_objectCount,
bucketMetadata_replicationDetails,
bucketMetadata_serverSideEncryption,
bucketMetadata_tags,
bucketMetadata_classifiableSizeInBytes,
BucketPermissionConfiguration (..),
newBucketPermissionConfiguration,
bucketPermissionConfiguration_bucketLevelPermissions,
bucketPermissionConfiguration_accountLevelPermissions,
BucketPolicy (..),
newBucketPolicy,
bucketPolicy_allowsPublicWriteAccess,
bucketPolicy_allowsPublicReadAccess,
BucketPublicAccess (..),
newBucketPublicAccess,
bucketPublicAccess_permissionConfiguration,
bucketPublicAccess_effectivePermission,
BucketServerSideEncryption (..),
newBucketServerSideEncryption,
bucketServerSideEncryption_kmsMasterKeyId,
bucketServerSideEncryption_type,
BucketSortCriteria (..),
newBucketSortCriteria,
bucketSortCriteria_orderBy,
bucketSortCriteria_attributeName,
Cell (..),
newCell,
cell_row,
cell_cellReference,
cell_column,
cell_columnName,
ClassificationDetails (..),
newClassificationDetails,
classificationDetails_detailedResultsLocation,
classificationDetails_jobId,
classificationDetails_jobArn,
classificationDetails_result,
ClassificationExportConfiguration (..),
newClassificationExportConfiguration,
classificationExportConfiguration_s3Destination,
ClassificationResult (..),
newClassificationResult,
classificationResult_sensitiveData,
classificationResult_status,
classificationResult_mimeType,
classificationResult_sizeClassified,
classificationResult_additionalOccurrences,
classificationResult_customDataIdentifiers,
ClassificationResultStatus (..),
newClassificationResultStatus,
classificationResultStatus_reason,
classificationResultStatus_code,
CriteriaBlockForJob (..),
newCriteriaBlockForJob,
criteriaBlockForJob_and,
CriteriaForJob (..),
newCriteriaForJob,
criteriaForJob_tagCriterion,
criteriaForJob_simpleCriterion,
CriterionAdditionalProperties (..),
newCriterionAdditionalProperties,
criterionAdditionalProperties_eq,
criterionAdditionalProperties_lte,
criterionAdditionalProperties_gt,
criterionAdditionalProperties_eqExactMatch,
criterionAdditionalProperties_neq,
criterionAdditionalProperties_lt,
criterionAdditionalProperties_gte,
CustomDataIdentifierSummary (..),
newCustomDataIdentifierSummary,
customDataIdentifierSummary_arn,
customDataIdentifierSummary_createdAt,
customDataIdentifierSummary_name,
customDataIdentifierSummary_id,
customDataIdentifierSummary_description,
CustomDataIdentifiers (..),
newCustomDataIdentifiers,
customDataIdentifiers_detections,
customDataIdentifiers_totalCount,
CustomDetection (..),
newCustomDetection,
customDetection_occurrences,
customDetection_arn,
customDetection_count,
customDetection_name,
DailySchedule (..),
newDailySchedule,
DefaultDetection (..),
newDefaultDetection,
defaultDetection_occurrences,
defaultDetection_count,
defaultDetection_type,
DomainDetails (..),
newDomainDetails,
domainDetails_domainName,
FederatedUser (..),
newFederatedUser,
federatedUser_principalId,
federatedUser_arn,
federatedUser_sessionContext,
federatedUser_accountId,
federatedUser_accessKeyId,
Finding (..),
newFinding,
finding_classificationDetails,
finding_policyDetails,
finding_createdAt,
finding_category,
finding_severity,
finding_count,
finding_schemaVersion,
finding_resourcesAffected,
finding_accountId,
finding_partition,
finding_id,
finding_region,
finding_updatedAt,
finding_title,
finding_type,
finding_archived,
finding_description,
finding_sample,
FindingAction (..),
newFindingAction,
findingAction_apiCallDetails,
findingAction_actionType,
FindingActor (..),
newFindingActor,
findingActor_userIdentity,
findingActor_ipAddressDetails,
findingActor_domainDetails,
FindingCriteria (..),
newFindingCriteria,
findingCriteria_criterion,
FindingStatisticsSortCriteria (..),
newFindingStatisticsSortCriteria,
findingStatisticsSortCriteria_orderBy,
findingStatisticsSortCriteria_attributeName,
FindingsFilterListItem (..),
newFindingsFilterListItem,
findingsFilterListItem_arn,
findingsFilterListItem_action,
findingsFilterListItem_name,
findingsFilterListItem_id,
findingsFilterListItem_tags,
GroupCount (..),
newGroupCount,
groupCount_groupKey,
groupCount_count,
IamUser (..),
newIamUser,
iamUser_principalId,
iamUser_arn,
iamUser_userName,
iamUser_accountId,
Invitation (..),
newInvitation,
invitation_relationshipStatus,
invitation_invitedAt,
invitation_invitationId,
invitation_accountId,
IpAddressDetails (..),
newIpAddressDetails,
ipAddressDetails_ipCity,
ipAddressDetails_ipGeoLocation,
ipAddressDetails_ipAddressV4,
ipAddressDetails_ipOwner,
ipAddressDetails_ipCountry,
IpCity (..),
newIpCity,
ipCity_name,
IpCountry (..),
newIpCountry,
ipCountry_name,
ipCountry_code,
IpGeoLocation (..),
newIpGeoLocation,
ipGeoLocation_lat,
ipGeoLocation_lon,
IpOwner (..),
newIpOwner,
ipOwner_org,
ipOwner_asnOrg,
ipOwner_asn,
ipOwner_isp,
JobDetails (..),
newJobDetails,
jobDetails_isMonitoredByJob,
jobDetails_isDefinedInJob,
jobDetails_lastJobId,
jobDetails_lastJobRunTime,
JobScheduleFrequency (..),
newJobScheduleFrequency,
jobScheduleFrequency_dailySchedule,
jobScheduleFrequency_monthlySchedule,
jobScheduleFrequency_weeklySchedule,
JobScopeTerm (..),
newJobScopeTerm,
jobScopeTerm_simpleScopeTerm,
jobScopeTerm_tagScopeTerm,
JobScopingBlock (..),
newJobScopingBlock,
jobScopingBlock_and,
JobSummary (..),
newJobSummary,
jobSummary_lastRunErrorStatus,
jobSummary_jobType,
jobSummary_jobId,
jobSummary_createdAt,
jobSummary_userPausedDetails,
jobSummary_bucketCriteria,
jobSummary_name,
jobSummary_bucketDefinitions,
jobSummary_jobStatus,
KeyValuePair (..),
newKeyValuePair,
keyValuePair_value,
keyValuePair_key,
LastRunErrorStatus (..),
newLastRunErrorStatus,
lastRunErrorStatus_code,
ListJobsFilterCriteria (..),
newListJobsFilterCriteria,
listJobsFilterCriteria_includes,
listJobsFilterCriteria_excludes,
ListJobsFilterTerm (..),
newListJobsFilterTerm,
listJobsFilterTerm_values,
listJobsFilterTerm_key,
listJobsFilterTerm_comparator,
ListJobsSortCriteria (..),
newListJobsSortCriteria,
listJobsSortCriteria_orderBy,
listJobsSortCriteria_attributeName,
ManagedDataIdentifierSummary (..),
newManagedDataIdentifierSummary,
managedDataIdentifierSummary_category,
managedDataIdentifierSummary_id,
MatchingBucket (..),
newMatchingBucket,
matchingBucket_sizeInBytesCompressed,
matchingBucket_objectCountByEncryptionType,
matchingBucket_sizeInBytes,
matchingBucket_bucketName,
matchingBucket_classifiableObjectCount,
matchingBucket_accountId,
matchingBucket_unclassifiableObjectSizeInBytes,
matchingBucket_unclassifiableObjectCount,
matchingBucket_errorCode,
matchingBucket_jobDetails,
matchingBucket_errorMessage,
matchingBucket_objectCount,
matchingBucket_classifiableSizeInBytes,
MatchingResource (..),
newMatchingResource,
matchingResource_matchingBucket,
Member (..),
newMember,
member_email,
member_administratorAccountId,
member_arn,
member_relationshipStatus,
member_masterAccountId,
member_invitedAt,
member_accountId,
member_updatedAt,
member_tags,
MonthlySchedule (..),
newMonthlySchedule,
monthlySchedule_dayOfMonth,
ObjectCountByEncryptionType (..),
newObjectCountByEncryptionType,
objectCountByEncryptionType_unknown,
objectCountByEncryptionType_s3Managed,
objectCountByEncryptionType_unencrypted,
objectCountByEncryptionType_kmsManaged,
objectCountByEncryptionType_customerManaged,
ObjectLevelStatistics (..),
newObjectLevelStatistics,
objectLevelStatistics_fileType,
objectLevelStatistics_storageClass,
objectLevelStatistics_total,
Occurrences (..),
newOccurrences,
occurrences_lineRanges,
occurrences_cells,
occurrences_pages,
occurrences_records,
occurrences_offsetRanges,
Page (..),
newPage,
page_offsetRange,
page_lineRange,
page_pageNumber,
PolicyDetails (..),
newPolicyDetails,
policyDetails_actor,
policyDetails_action,
Range (..),
newRange,
range_start,
range_end,
range_startColumn,
Record (..),
newRecord,
record_jsonPath,
record_recordIndex,
ReplicationDetails (..),
newReplicationDetails,
replicationDetails_replicated,
replicationDetails_replicationAccounts,
replicationDetails_replicatedExternally,
ResourcesAffected (..),
newResourcesAffected,
resourcesAffected_s3Object,
resourcesAffected_s3Bucket,
S3Bucket (..),
newS3Bucket,
s3Bucket_arn,
s3Bucket_createdAt,
s3Bucket_owner,
s3Bucket_name,
s3Bucket_defaultServerSideEncryption,
s3Bucket_allowsUnencryptedObjectUploads,
s3Bucket_publicAccess,
s3Bucket_tags,
S3BucketCriteriaForJob (..),
newS3BucketCriteriaForJob,
s3BucketCriteriaForJob_includes,
s3BucketCriteriaForJob_excludes,
S3BucketDefinitionForJob (..),
newS3BucketDefinitionForJob,
s3BucketDefinitionForJob_accountId,
s3BucketDefinitionForJob_buckets,
S3BucketOwner (..),
newS3BucketOwner,
s3BucketOwner_displayName,
s3BucketOwner_id,
S3Destination (..),
newS3Destination,
s3Destination_keyPrefix,
s3Destination_bucketName,
s3Destination_kmsKeyArn,
S3JobDefinition (..),
newS3JobDefinition,
s3JobDefinition_scoping,
s3JobDefinition_bucketCriteria,
s3JobDefinition_bucketDefinitions,
S3Object (..),
newS3Object,
s3Object_eTag,
s3Object_versionId,
s3Object_path,
s3Object_size,
s3Object_extension,
s3Object_key,
s3Object_storageClass,
s3Object_publicAccess,
s3Object_lastModified,
s3Object_bucketArn,
s3Object_serverSideEncryption,
s3Object_tags,
Scoping (..),
newScoping,
scoping_includes,
scoping_excludes,
SearchResourcesBucketCriteria (..),
newSearchResourcesBucketCriteria,
searchResourcesBucketCriteria_includes,
searchResourcesBucketCriteria_excludes,
SearchResourcesCriteria (..),
newSearchResourcesCriteria,
searchResourcesCriteria_tagCriterion,
searchResourcesCriteria_simpleCriterion,
SearchResourcesCriteriaBlock (..),
newSearchResourcesCriteriaBlock,
searchResourcesCriteriaBlock_and,
SearchResourcesSimpleCriterion (..),
newSearchResourcesSimpleCriterion,
searchResourcesSimpleCriterion_values,
searchResourcesSimpleCriterion_key,
searchResourcesSimpleCriterion_comparator,
SearchResourcesSortCriteria (..),
newSearchResourcesSortCriteria,
searchResourcesSortCriteria_orderBy,
searchResourcesSortCriteria_attributeName,
SearchResourcesTagCriterion (..),
newSearchResourcesTagCriterion,
searchResourcesTagCriterion_tagValues,
searchResourcesTagCriterion_comparator,
SearchResourcesTagCriterionPair (..),
newSearchResourcesTagCriterionPair,
searchResourcesTagCriterionPair_value,
searchResourcesTagCriterionPair_key,
SecurityHubConfiguration (..),
newSecurityHubConfiguration,
securityHubConfiguration_publishPolicyFindings,
securityHubConfiguration_publishClassificationFindings,
SensitiveDataItem (..),
newSensitiveDataItem,
sensitiveDataItem_detections,
sensitiveDataItem_category,
sensitiveDataItem_totalCount,
ServerSideEncryption (..),
newServerSideEncryption,
serverSideEncryption_encryptionType,
serverSideEncryption_kmsMasterKeyId,
ServiceLimit (..),
newServiceLimit,
serviceLimit_isServiceLimited,
serviceLimit_value,
serviceLimit_unit,
SessionContext (..),
newSessionContext,
sessionContext_attributes,
sessionContext_sessionIssuer,
SessionContextAttributes (..),
newSessionContextAttributes,
sessionContextAttributes_creationDate,
sessionContextAttributes_mfaAuthenticated,
SessionIssuer (..),
newSessionIssuer,
sessionIssuer_principalId,
sessionIssuer_arn,
sessionIssuer_userName,
sessionIssuer_accountId,
sessionIssuer_type,
Severity (..),
newSeverity,
severity_score,
severity_description,
SimpleCriterionForJob (..),
newSimpleCriterionForJob,
simpleCriterionForJob_values,
simpleCriterionForJob_key,
simpleCriterionForJob_comparator,
SimpleScopeTerm (..),
newSimpleScopeTerm,
simpleScopeTerm_values,
simpleScopeTerm_key,
simpleScopeTerm_comparator,
SortCriteria (..),
newSortCriteria,
sortCriteria_orderBy,
sortCriteria_attributeName,
Statistics (..),
newStatistics,
statistics_approximateNumberOfObjectsToProcess,
statistics_numberOfRuns,
TagCriterionForJob (..),
newTagCriterionForJob,
tagCriterionForJob_tagValues,
tagCriterionForJob_comparator,
TagCriterionPairForJob (..),
newTagCriterionPairForJob,
tagCriterionPairForJob_value,
tagCriterionPairForJob_key,
TagScopeTerm (..),
newTagScopeTerm,
tagScopeTerm_tagValues,
tagScopeTerm_key,
tagScopeTerm_comparator,
tagScopeTerm_target,
TagValuePair (..),
newTagValuePair,
tagValuePair_value,
tagValuePair_key,
UnprocessedAccount (..),
newUnprocessedAccount,
unprocessedAccount_accountId,
unprocessedAccount_errorCode,
unprocessedAccount_errorMessage,
UsageByAccount (..),
newUsageByAccount,
usageByAccount_serviceLimit,
usageByAccount_currency,
usageByAccount_type,
usageByAccount_estimatedCost,
UsageRecord (..),
newUsageRecord,
usageRecord_accountId,
usageRecord_freeTrialStartDate,
usageRecord_usage,
UsageStatisticsFilter (..),
newUsageStatisticsFilter,
usageStatisticsFilter_values,
usageStatisticsFilter_key,
usageStatisticsFilter_comparator,
UsageStatisticsSortBy (..),
newUsageStatisticsSortBy,
usageStatisticsSortBy_orderBy,
usageStatisticsSortBy_key,
UsageTotal (..),
newUsageTotal,
usageTotal_currency,
usageTotal_type,
usageTotal_estimatedCost,
UserIdentity (..),
newUserIdentity,
userIdentity_iamUser,
userIdentity_root,
userIdentity_awsAccount,
userIdentity_assumedRole,
userIdentity_federatedUser,
userIdentity_awsService,
userIdentity_type,
UserIdentityRoot (..),
newUserIdentityRoot,
userIdentityRoot_principalId,
userIdentityRoot_arn,
userIdentityRoot_accountId,
UserPausedDetails (..),
newUserPausedDetails,
userPausedDetails_jobExpiresAt,
userPausedDetails_jobImminentExpirationHealthEventArn,
userPausedDetails_jobPausedAt,
WeeklySchedule (..),
newWeeklySchedule,
weeklySchedule_dayOfWeek,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types.AccessControlList
import Amazonka.MacieV2.Types.AccountDetail
import Amazonka.MacieV2.Types.AccountLevelPermissions
import Amazonka.MacieV2.Types.AdminAccount
import Amazonka.MacieV2.Types.AdminStatus
import Amazonka.MacieV2.Types.AllowsUnencryptedObjectUploads
import Amazonka.MacieV2.Types.ApiCallDetails
import Amazonka.MacieV2.Types.AssumedRole
import Amazonka.MacieV2.Types.AwsAccount
import Amazonka.MacieV2.Types.AwsService
import Amazonka.MacieV2.Types.BatchGetCustomDataIdentifierSummary
import Amazonka.MacieV2.Types.BlockPublicAccess
import Amazonka.MacieV2.Types.BucketCountByEffectivePermission
import Amazonka.MacieV2.Types.BucketCountByEncryptionType
import Amazonka.MacieV2.Types.BucketCountBySharedAccessType
import Amazonka.MacieV2.Types.BucketCountPolicyAllowsUnencryptedObjectUploads
import Amazonka.MacieV2.Types.BucketCriteriaAdditionalProperties
import Amazonka.MacieV2.Types.BucketLevelPermissions
import Amazonka.MacieV2.Types.BucketMetadata
import Amazonka.MacieV2.Types.BucketMetadataErrorCode
import Amazonka.MacieV2.Types.BucketPermissionConfiguration
import Amazonka.MacieV2.Types.BucketPolicy
import Amazonka.MacieV2.Types.BucketPublicAccess
import Amazonka.MacieV2.Types.BucketServerSideEncryption
import Amazonka.MacieV2.Types.BucketSortCriteria
import Amazonka.MacieV2.Types.Cell
import Amazonka.MacieV2.Types.ClassificationDetails
import Amazonka.MacieV2.Types.ClassificationExportConfiguration
import Amazonka.MacieV2.Types.ClassificationResult
import Amazonka.MacieV2.Types.ClassificationResultStatus
import Amazonka.MacieV2.Types.CriteriaBlockForJob
import Amazonka.MacieV2.Types.CriteriaForJob
import Amazonka.MacieV2.Types.CriterionAdditionalProperties
import Amazonka.MacieV2.Types.Currency
import Amazonka.MacieV2.Types.CustomDataIdentifierSummary
import Amazonka.MacieV2.Types.CustomDataIdentifiers
import Amazonka.MacieV2.Types.CustomDetection
import Amazonka.MacieV2.Types.DailySchedule
import Amazonka.MacieV2.Types.DayOfWeek
import Amazonka.MacieV2.Types.DefaultDetection
import Amazonka.MacieV2.Types.DomainDetails
import Amazonka.MacieV2.Types.EffectivePermission
import Amazonka.MacieV2.Types.EncryptionType
import Amazonka.MacieV2.Types.ErrorCode
import Amazonka.MacieV2.Types.FederatedUser
import Amazonka.MacieV2.Types.Finding
import Amazonka.MacieV2.Types.FindingAction
import Amazonka.MacieV2.Types.FindingActionType
import Amazonka.MacieV2.Types.FindingActor
import Amazonka.MacieV2.Types.FindingCategory
import Amazonka.MacieV2.Types.FindingCriteria
import Amazonka.MacieV2.Types.FindingPublishingFrequency
import Amazonka.MacieV2.Types.FindingStatisticsSortAttributeName
import Amazonka.MacieV2.Types.FindingStatisticsSortCriteria
import Amazonka.MacieV2.Types.FindingType
import Amazonka.MacieV2.Types.FindingsFilterAction
import Amazonka.MacieV2.Types.FindingsFilterListItem
import Amazonka.MacieV2.Types.GroupBy
import Amazonka.MacieV2.Types.GroupCount
import Amazonka.MacieV2.Types.IamUser
import Amazonka.MacieV2.Types.Invitation
import Amazonka.MacieV2.Types.IpAddressDetails
import Amazonka.MacieV2.Types.IpCity
import Amazonka.MacieV2.Types.IpCountry
import Amazonka.MacieV2.Types.IpGeoLocation
import Amazonka.MacieV2.Types.IpOwner
import Amazonka.MacieV2.Types.IsDefinedInJob
import Amazonka.MacieV2.Types.IsMonitoredByJob
import Amazonka.MacieV2.Types.JobComparator
import Amazonka.MacieV2.Types.JobDetails
import Amazonka.MacieV2.Types.JobScheduleFrequency
import Amazonka.MacieV2.Types.JobScopeTerm
import Amazonka.MacieV2.Types.JobScopingBlock
import Amazonka.MacieV2.Types.JobStatus
import Amazonka.MacieV2.Types.JobSummary
import Amazonka.MacieV2.Types.JobType
import Amazonka.MacieV2.Types.KeyValuePair
import Amazonka.MacieV2.Types.LastRunErrorStatus
import Amazonka.MacieV2.Types.LastRunErrorStatusCode
import Amazonka.MacieV2.Types.ListJobsFilterCriteria
import Amazonka.MacieV2.Types.ListJobsFilterKey
import Amazonka.MacieV2.Types.ListJobsFilterTerm
import Amazonka.MacieV2.Types.ListJobsSortAttributeName
import Amazonka.MacieV2.Types.ListJobsSortCriteria
import Amazonka.MacieV2.Types.MacieStatus
import Amazonka.MacieV2.Types.ManagedDataIdentifierSelector
import Amazonka.MacieV2.Types.ManagedDataIdentifierSummary
import Amazonka.MacieV2.Types.MatchingBucket
import Amazonka.MacieV2.Types.MatchingResource
import Amazonka.MacieV2.Types.Member
import Amazonka.MacieV2.Types.MonthlySchedule
import Amazonka.MacieV2.Types.ObjectCountByEncryptionType
import Amazonka.MacieV2.Types.ObjectLevelStatistics
import Amazonka.MacieV2.Types.Occurrences
import Amazonka.MacieV2.Types.OrderBy
import Amazonka.MacieV2.Types.Page
import Amazonka.MacieV2.Types.PolicyDetails
import Amazonka.MacieV2.Types.Range
import Amazonka.MacieV2.Types.Record
import Amazonka.MacieV2.Types.RelationshipStatus
import Amazonka.MacieV2.Types.ReplicationDetails
import Amazonka.MacieV2.Types.ResourcesAffected
import Amazonka.MacieV2.Types.S3Bucket
import Amazonka.MacieV2.Types.S3BucketCriteriaForJob
import Amazonka.MacieV2.Types.S3BucketDefinitionForJob
import Amazonka.MacieV2.Types.S3BucketOwner
import Amazonka.MacieV2.Types.S3Destination
import Amazonka.MacieV2.Types.S3JobDefinition
import Amazonka.MacieV2.Types.S3Object
import Amazonka.MacieV2.Types.ScopeFilterKey
import Amazonka.MacieV2.Types.Scoping
import Amazonka.MacieV2.Types.SearchResourcesBucketCriteria
import Amazonka.MacieV2.Types.SearchResourcesComparator
import Amazonka.MacieV2.Types.SearchResourcesCriteria
import Amazonka.MacieV2.Types.SearchResourcesCriteriaBlock
import Amazonka.MacieV2.Types.SearchResourcesSimpleCriterion
import Amazonka.MacieV2.Types.SearchResourcesSimpleCriterionKey
import Amazonka.MacieV2.Types.SearchResourcesSortAttributeName
import Amazonka.MacieV2.Types.SearchResourcesSortCriteria
import Amazonka.MacieV2.Types.SearchResourcesTagCriterion
import Amazonka.MacieV2.Types.SearchResourcesTagCriterionPair
import Amazonka.MacieV2.Types.SecurityHubConfiguration
import Amazonka.MacieV2.Types.SensitiveDataItem
import Amazonka.MacieV2.Types.SensitiveDataItemCategory
import Amazonka.MacieV2.Types.ServerSideEncryption
import Amazonka.MacieV2.Types.ServiceLimit
import Amazonka.MacieV2.Types.SessionContext
import Amazonka.MacieV2.Types.SessionContextAttributes
import Amazonka.MacieV2.Types.SessionIssuer
import Amazonka.MacieV2.Types.Severity
import Amazonka.MacieV2.Types.SeverityDescription
import Amazonka.MacieV2.Types.SharedAccess
import Amazonka.MacieV2.Types.SimpleCriterionForJob
import Amazonka.MacieV2.Types.SimpleCriterionKeyForJob
import Amazonka.MacieV2.Types.SimpleScopeTerm
import Amazonka.MacieV2.Types.SortCriteria
import Amazonka.MacieV2.Types.Statistics
import Amazonka.MacieV2.Types.StorageClass
import Amazonka.MacieV2.Types.TagCriterionForJob
import Amazonka.MacieV2.Types.TagCriterionPairForJob
import Amazonka.MacieV2.Types.TagScopeTerm
import Amazonka.MacieV2.Types.TagTarget
import Amazonka.MacieV2.Types.TagValuePair
import Amazonka.MacieV2.Types.TimeRange
import Amazonka.MacieV2.Types.Type
import Amazonka.MacieV2.Types.Unit
import Amazonka.MacieV2.Types.UnprocessedAccount
import Amazonka.MacieV2.Types.UsageByAccount
import Amazonka.MacieV2.Types.UsageRecord
import Amazonka.MacieV2.Types.UsageStatisticsFilter
import Amazonka.MacieV2.Types.UsageStatisticsFilterComparator
import Amazonka.MacieV2.Types.UsageStatisticsFilterKey
import Amazonka.MacieV2.Types.UsageStatisticsSortBy
import Amazonka.MacieV2.Types.UsageStatisticsSortKey
import Amazonka.MacieV2.Types.UsageTotal
import Amazonka.MacieV2.Types.UsageType
import Amazonka.MacieV2.Types.UserIdentity
import Amazonka.MacieV2.Types.UserIdentityRoot
import Amazonka.MacieV2.Types.UserIdentityType
import Amazonka.MacieV2.Types.UserPausedDetails
import Amazonka.MacieV2.Types.WeeklySchedule
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
"MacieV2",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"macie2",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"macie2",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2020-01-01",
$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
"MacieV2",
$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
_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"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_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"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ServiceQuotaExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceQuotaExceededException :: Getting (First ServiceError) a ServiceError
_ServiceQuotaExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
402
_ThrottlingException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ThrottlingException :: Getting (First ServiceError) a ServiceError
_ThrottlingException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_InternalServerException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServerException :: Getting (First ServiceError) a ServiceError
_InternalServerException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_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"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404