{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Inspector2.Types
(
defaultService,
_AccessDeniedException,
_BadRequestException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ThrottlingException,
_ValidationException,
AccountSortBy (..),
AggregationFindingType (..),
AggregationResourceType (..),
AggregationType (..),
AmiSortBy (..),
Architecture (..),
AwsEcrContainerSortBy (..),
CoverageMapComparison (..),
CoverageResourceType (..),
CoverageStringComparison (..),
Currency (..),
DelegatedAdminStatus (..),
Ec2InstanceSortBy (..),
Ec2Platform (..),
EcrRescanDuration (..),
EcrRescanDurationStatus (..),
EcrScanFrequency (..),
ErrorCode (..),
ExploitAvailable (..),
ExternalReportStatus (..),
FilterAction (..),
FindingStatus (..),
FindingType (..),
FindingTypeSortBy (..),
FixAvailable (..),
FreeTrialInfoErrorCode (..),
FreeTrialStatus (..),
FreeTrialType (..),
GroupKey (..),
ImageLayerSortBy (..),
LambdaFunctionSortBy (..),
LambdaLayerSortBy (..),
MapComparison (..),
NetworkProtocol (..),
Operation (..),
PackageManager (..),
PackageSortBy (..),
PackageType (..),
RelationshipStatus (..),
ReportFormat (..),
ReportingErrorCode (..),
RepositorySortBy (..),
ResourceScanType (..),
ResourceType (..),
Runtime (..),
ScanStatusCode (..),
ScanStatusReason (..),
ScanType (..),
Service (..),
Severity (..),
SortField (..),
SortOrder (..),
Status (..),
StringComparison (..),
TitleSortBy (..),
UsageType (..),
Account (..),
newAccount,
account_accountId,
account_resourceStatus,
account_status,
AccountAggregation (..),
newAccountAggregation,
accountAggregation_findingType,
accountAggregation_resourceType,
accountAggregation_sortBy,
accountAggregation_sortOrder,
AccountAggregationResponse (..),
newAccountAggregationResponse,
accountAggregationResponse_accountId,
accountAggregationResponse_severityCounts,
AccountState (..),
newAccountState,
accountState_accountId,
accountState_resourceState,
accountState_state,
AggregationRequest (..),
newAggregationRequest,
aggregationRequest_accountAggregation,
aggregationRequest_amiAggregation,
aggregationRequest_awsEcrContainerAggregation,
aggregationRequest_ec2InstanceAggregation,
aggregationRequest_findingTypeAggregation,
aggregationRequest_imageLayerAggregation,
aggregationRequest_lambdaFunctionAggregation,
aggregationRequest_lambdaLayerAggregation,
aggregationRequest_packageAggregation,
aggregationRequest_repositoryAggregation,
aggregationRequest_titleAggregation,
AggregationResponse (..),
newAggregationResponse,
aggregationResponse_accountAggregation,
aggregationResponse_amiAggregation,
aggregationResponse_awsEcrContainerAggregation,
aggregationResponse_ec2InstanceAggregation,
aggregationResponse_findingTypeAggregation,
aggregationResponse_imageLayerAggregation,
aggregationResponse_lambdaFunctionAggregation,
aggregationResponse_lambdaLayerAggregation,
aggregationResponse_packageAggregation,
aggregationResponse_repositoryAggregation,
aggregationResponse_titleAggregation,
AmiAggregation (..),
newAmiAggregation,
amiAggregation_amis,
amiAggregation_sortBy,
amiAggregation_sortOrder,
AmiAggregationResponse (..),
newAmiAggregationResponse,
amiAggregationResponse_accountId,
amiAggregationResponse_affectedInstances,
amiAggregationResponse_severityCounts,
amiAggregationResponse_ami,
AutoEnable (..),
newAutoEnable,
autoEnable_lambda,
autoEnable_ec2,
autoEnable_ecr,
AwsEc2InstanceDetails (..),
newAwsEc2InstanceDetails,
awsEc2InstanceDetails_iamInstanceProfileArn,
awsEc2InstanceDetails_imageId,
awsEc2InstanceDetails_ipV4Addresses,
awsEc2InstanceDetails_ipV6Addresses,
awsEc2InstanceDetails_keyName,
awsEc2InstanceDetails_launchedAt,
awsEc2InstanceDetails_platform,
awsEc2InstanceDetails_subnetId,
awsEc2InstanceDetails_type,
awsEc2InstanceDetails_vpcId,
AwsEcrContainerAggregation (..),
newAwsEcrContainerAggregation,
awsEcrContainerAggregation_architectures,
awsEcrContainerAggregation_imageShas,
awsEcrContainerAggregation_imageTags,
awsEcrContainerAggregation_repositories,
awsEcrContainerAggregation_resourceIds,
awsEcrContainerAggregation_sortBy,
awsEcrContainerAggregation_sortOrder,
AwsEcrContainerAggregationResponse (..),
newAwsEcrContainerAggregationResponse,
awsEcrContainerAggregationResponse_accountId,
awsEcrContainerAggregationResponse_architecture,
awsEcrContainerAggregationResponse_imageSha,
awsEcrContainerAggregationResponse_imageTags,
awsEcrContainerAggregationResponse_repository,
awsEcrContainerAggregationResponse_severityCounts,
awsEcrContainerAggregationResponse_resourceId,
AwsEcrContainerImageDetails (..),
newAwsEcrContainerImageDetails,
awsEcrContainerImageDetails_architecture,
awsEcrContainerImageDetails_author,
awsEcrContainerImageDetails_imageTags,
awsEcrContainerImageDetails_platform,
awsEcrContainerImageDetails_pushedAt,
awsEcrContainerImageDetails_imageHash,
awsEcrContainerImageDetails_registry,
awsEcrContainerImageDetails_repositoryName,
AwsLambdaFunctionDetails (..),
newAwsLambdaFunctionDetails,
awsLambdaFunctionDetails_architectures,
awsLambdaFunctionDetails_lastModifiedAt,
awsLambdaFunctionDetails_layers,
awsLambdaFunctionDetails_packageType,
awsLambdaFunctionDetails_vpcConfig,
awsLambdaFunctionDetails_codeSha256,
awsLambdaFunctionDetails_executionRoleArn,
awsLambdaFunctionDetails_functionName,
awsLambdaFunctionDetails_runtime,
awsLambdaFunctionDetails_version,
Counts (..),
newCounts,
counts_count,
counts_groupKey,
CoverageFilterCriteria (..),
newCoverageFilterCriteria,
coverageFilterCriteria_accountId,
coverageFilterCriteria_ec2InstanceTags,
coverageFilterCriteria_ecrImageTags,
coverageFilterCriteria_ecrRepositoryName,
coverageFilterCriteria_lambdaFunctionName,
coverageFilterCriteria_lambdaFunctionRuntime,
coverageFilterCriteria_lambdaFunctionTags,
coverageFilterCriteria_resourceId,
coverageFilterCriteria_resourceType,
coverageFilterCriteria_scanStatusCode,
coverageFilterCriteria_scanStatusReason,
coverageFilterCriteria_scanType,
CoverageMapFilter (..),
newCoverageMapFilter,
coverageMapFilter_value,
coverageMapFilter_comparison,
coverageMapFilter_key,
CoverageStringFilter (..),
newCoverageStringFilter,
coverageStringFilter_comparison,
coverageStringFilter_value,
CoveredResource (..),
newCoveredResource,
coveredResource_resourceMetadata,
coveredResource_scanStatus,
coveredResource_accountId,
coveredResource_resourceId,
coveredResource_resourceType,
coveredResource_scanType,
CvssScore (..),
newCvssScore,
cvssScore_baseScore,
cvssScore_scoringVector,
cvssScore_source,
cvssScore_version,
CvssScoreAdjustment (..),
newCvssScoreAdjustment,
cvssScoreAdjustment_metric,
cvssScoreAdjustment_reason,
CvssScoreDetails (..),
newCvssScoreDetails,
cvssScoreDetails_adjustments,
cvssScoreDetails_cvssSource,
cvssScoreDetails_score,
cvssScoreDetails_scoreSource,
cvssScoreDetails_scoringVector,
cvssScoreDetails_version,
DateFilter (..),
newDateFilter,
dateFilter_endInclusive,
dateFilter_startInclusive,
DelegatedAdmin (..),
newDelegatedAdmin,
delegatedAdmin_accountId,
delegatedAdmin_relationshipStatus,
DelegatedAdminAccount (..),
newDelegatedAdminAccount,
delegatedAdminAccount_accountId,
delegatedAdminAccount_status,
Destination (..),
newDestination,
destination_keyPrefix,
destination_bucketName,
destination_kmsKeyArn,
Ec2InstanceAggregation (..),
newEc2InstanceAggregation,
ec2InstanceAggregation_amis,
ec2InstanceAggregation_instanceIds,
ec2InstanceAggregation_instanceTags,
ec2InstanceAggregation_operatingSystems,
ec2InstanceAggregation_sortBy,
ec2InstanceAggregation_sortOrder,
Ec2InstanceAggregationResponse (..),
newEc2InstanceAggregationResponse,
ec2InstanceAggregationResponse_accountId,
ec2InstanceAggregationResponse_ami,
ec2InstanceAggregationResponse_instanceTags,
ec2InstanceAggregationResponse_networkFindings,
ec2InstanceAggregationResponse_operatingSystem,
ec2InstanceAggregationResponse_severityCounts,
ec2InstanceAggregationResponse_instanceId,
Ec2Metadata (..),
newEc2Metadata,
ec2Metadata_amiId,
ec2Metadata_platform,
ec2Metadata_tags,
EcrConfiguration (..),
newEcrConfiguration,
ecrConfiguration_rescanDuration,
EcrConfigurationState (..),
newEcrConfigurationState,
ecrConfigurationState_rescanDurationState,
EcrContainerImageMetadata (..),
newEcrContainerImageMetadata,
ecrContainerImageMetadata_tags,
EcrRepositoryMetadata (..),
newEcrRepositoryMetadata,
ecrRepositoryMetadata_name,
ecrRepositoryMetadata_scanFrequency,
EcrRescanDurationState (..),
newEcrRescanDurationState,
ecrRescanDurationState_rescanDuration,
ecrRescanDurationState_status,
ecrRescanDurationState_updatedAt,
ExploitabilityDetails (..),
newExploitabilityDetails,
exploitabilityDetails_lastKnownExploitAt,
FailedAccount (..),
newFailedAccount,
failedAccount_resourceStatus,
failedAccount_status,
failedAccount_accountId,
failedAccount_errorCode,
failedAccount_errorMessage,
Filter (..),
newFilter,
filter_description,
filter_reason,
filter_tags,
filter_action,
filter_arn,
filter_createdAt,
filter_criteria,
filter_name,
filter_ownerId,
filter_updatedAt,
FilterCriteria (..),
newFilterCriteria,
filterCriteria_awsAccountId,
filterCriteria_componentId,
filterCriteria_componentType,
filterCriteria_ec2InstanceImageId,
filterCriteria_ec2InstanceSubnetId,
filterCriteria_ec2InstanceVpcId,
filterCriteria_ecrImageArchitecture,
filterCriteria_ecrImageHash,
filterCriteria_ecrImagePushedAt,
filterCriteria_ecrImageRegistry,
filterCriteria_ecrImageRepositoryName,
filterCriteria_ecrImageTags,
filterCriteria_exploitAvailable,
filterCriteria_findingArn,
filterCriteria_findingStatus,
filterCriteria_findingType,
filterCriteria_firstObservedAt,
filterCriteria_fixAvailable,
filterCriteria_inspectorScore,
filterCriteria_lambdaFunctionExecutionRoleArn,
filterCriteria_lambdaFunctionLastModifiedAt,
filterCriteria_lambdaFunctionLayers,
filterCriteria_lambdaFunctionName,
filterCriteria_lambdaFunctionRuntime,
filterCriteria_lastObservedAt,
filterCriteria_networkProtocol,
filterCriteria_portRange,
filterCriteria_relatedVulnerabilities,
filterCriteria_resourceId,
filterCriteria_resourceTags,
filterCriteria_resourceType,
filterCriteria_severity,
filterCriteria_title,
filterCriteria_updatedAt,
filterCriteria_vendorSeverity,
filterCriteria_vulnerabilityId,
filterCriteria_vulnerabilitySource,
filterCriteria_vulnerablePackages,
Finding (..),
newFinding,
finding_exploitAvailable,
finding_exploitabilityDetails,
finding_fixAvailable,
finding_inspectorScore,
finding_inspectorScoreDetails,
finding_networkReachabilityDetails,
finding_packageVulnerabilityDetails,
finding_title,
finding_updatedAt,
finding_awsAccountId,
finding_description,
finding_findingArn,
finding_firstObservedAt,
finding_lastObservedAt,
finding_remediation,
finding_resources,
finding_severity,
finding_status,
finding_type,
FindingTypeAggregation (..),
newFindingTypeAggregation,
findingTypeAggregation_findingType,
findingTypeAggregation_resourceType,
findingTypeAggregation_sortBy,
findingTypeAggregation_sortOrder,
FindingTypeAggregationResponse (..),
newFindingTypeAggregationResponse,
findingTypeAggregationResponse_accountId,
findingTypeAggregationResponse_severityCounts,
FreeTrialAccountInfo (..),
newFreeTrialAccountInfo,
freeTrialAccountInfo_accountId,
freeTrialAccountInfo_freeTrialInfo,
FreeTrialInfo (..),
newFreeTrialInfo,
freeTrialInfo_end,
freeTrialInfo_start,
freeTrialInfo_status,
freeTrialInfo_type,
FreeTrialInfoError (..),
newFreeTrialInfoError,
freeTrialInfoError_accountId,
freeTrialInfoError_code,
freeTrialInfoError_message,
ImageLayerAggregation (..),
newImageLayerAggregation,
imageLayerAggregation_layerHashes,
imageLayerAggregation_repositories,
imageLayerAggregation_resourceIds,
imageLayerAggregation_sortBy,
imageLayerAggregation_sortOrder,
ImageLayerAggregationResponse (..),
newImageLayerAggregationResponse,
imageLayerAggregationResponse_severityCounts,
imageLayerAggregationResponse_accountId,
imageLayerAggregationResponse_layerHash,
imageLayerAggregationResponse_repository,
imageLayerAggregationResponse_resourceId,
InspectorScoreDetails (..),
newInspectorScoreDetails,
inspectorScoreDetails_adjustedCvss,
LambdaFunctionAggregation (..),
newLambdaFunctionAggregation,
lambdaFunctionAggregation_functionNames,
lambdaFunctionAggregation_functionTags,
lambdaFunctionAggregation_resourceIds,
lambdaFunctionAggregation_runtimes,
lambdaFunctionAggregation_sortBy,
lambdaFunctionAggregation_sortOrder,
LambdaFunctionAggregationResponse (..),
newLambdaFunctionAggregationResponse,
lambdaFunctionAggregationResponse_accountId,
lambdaFunctionAggregationResponse_functionName,
lambdaFunctionAggregationResponse_lambdaTags,
lambdaFunctionAggregationResponse_lastModifiedAt,
lambdaFunctionAggregationResponse_runtime,
lambdaFunctionAggregationResponse_severityCounts,
lambdaFunctionAggregationResponse_resourceId,
LambdaFunctionMetadata (..),
newLambdaFunctionMetadata,
lambdaFunctionMetadata_functionName,
lambdaFunctionMetadata_functionTags,
lambdaFunctionMetadata_layers,
lambdaFunctionMetadata_runtime,
LambdaLayerAggregation (..),
newLambdaLayerAggregation,
lambdaLayerAggregation_functionNames,
lambdaLayerAggregation_layerArns,
lambdaLayerAggregation_resourceIds,
lambdaLayerAggregation_sortBy,
lambdaLayerAggregation_sortOrder,
LambdaLayerAggregationResponse (..),
newLambdaLayerAggregationResponse,
lambdaLayerAggregationResponse_severityCounts,
lambdaLayerAggregationResponse_accountId,
lambdaLayerAggregationResponse_functionName,
lambdaLayerAggregationResponse_layerArn,
lambdaLayerAggregationResponse_resourceId,
LambdaVpcConfig (..),
newLambdaVpcConfig,
lambdaVpcConfig_securityGroupIds,
lambdaVpcConfig_subnetIds,
lambdaVpcConfig_vpcId,
MapFilter (..),
newMapFilter,
mapFilter_value,
mapFilter_comparison,
mapFilter_key,
Member (..),
newMember,
member_accountId,
member_delegatedAdminAccountId,
member_relationshipStatus,
member_updatedAt,
NetworkPath (..),
newNetworkPath,
networkPath_steps,
NetworkReachabilityDetails (..),
newNetworkReachabilityDetails,
networkReachabilityDetails_networkPath,
networkReachabilityDetails_openPortRange,
networkReachabilityDetails_protocol,
NumberFilter (..),
newNumberFilter,
numberFilter_lowerInclusive,
numberFilter_upperInclusive,
PackageAggregation (..),
newPackageAggregation,
packageAggregation_packageNames,
packageAggregation_sortBy,
packageAggregation_sortOrder,
PackageAggregationResponse (..),
newPackageAggregationResponse,
packageAggregationResponse_accountId,
packageAggregationResponse_severityCounts,
packageAggregationResponse_packageName,
PackageFilter (..),
newPackageFilter,
packageFilter_architecture,
packageFilter_epoch,
packageFilter_name,
packageFilter_release,
packageFilter_sourceLambdaLayerArn,
packageFilter_sourceLayerHash,
packageFilter_version,
PackageVulnerabilityDetails (..),
newPackageVulnerabilityDetails,
packageVulnerabilityDetails_cvss,
packageVulnerabilityDetails_referenceUrls,
packageVulnerabilityDetails_relatedVulnerabilities,
packageVulnerabilityDetails_sourceUrl,
packageVulnerabilityDetails_vendorCreatedAt,
packageVulnerabilityDetails_vendorSeverity,
packageVulnerabilityDetails_vendorUpdatedAt,
packageVulnerabilityDetails_vulnerablePackages,
packageVulnerabilityDetails_source,
packageVulnerabilityDetails_vulnerabilityId,
Permission (..),
newPermission,
permission_operation,
permission_service,
PortRange (..),
newPortRange,
portRange_begin,
portRange_end,
PortRangeFilter (..),
newPortRangeFilter,
portRangeFilter_beginInclusive,
portRangeFilter_endInclusive,
Recommendation (..),
newRecommendation,
recommendation_url,
recommendation_text,
Remediation (..),
newRemediation,
remediation_recommendation,
RepositoryAggregation (..),
newRepositoryAggregation,
repositoryAggregation_repositories,
repositoryAggregation_sortBy,
repositoryAggregation_sortOrder,
RepositoryAggregationResponse (..),
newRepositoryAggregationResponse,
repositoryAggregationResponse_accountId,
repositoryAggregationResponse_affectedImages,
repositoryAggregationResponse_severityCounts,
repositoryAggregationResponse_repository,
Resource (..),
newResource,
resource_details,
resource_partition,
resource_region,
resource_tags,
resource_id,
resource_type,
ResourceDetails (..),
newResourceDetails,
resourceDetails_awsEc2Instance,
resourceDetails_awsEcrContainerImage,
resourceDetails_awsLambdaFunction,
ResourceScanMetadata (..),
newResourceScanMetadata,
resourceScanMetadata_ec2,
resourceScanMetadata_ecrImage,
resourceScanMetadata_ecrRepository,
resourceScanMetadata_lambdaFunction,
ResourceState (..),
newResourceState,
resourceState_lambda,
resourceState_ec2,
resourceState_ecr,
ResourceStatus (..),
newResourceStatus,
resourceStatus_lambda,
resourceStatus_ec2,
resourceStatus_ecr,
ScanStatus (..),
newScanStatus,
scanStatus_reason,
scanStatus_statusCode,
SeverityCounts (..),
newSeverityCounts,
severityCounts_all,
severityCounts_critical,
severityCounts_high,
severityCounts_medium,
SortCriteria (..),
newSortCriteria,
sortCriteria_field,
sortCriteria_sortOrder,
State (..),
newState,
state_errorCode,
state_errorMessage,
state_status,
Step (..),
newStep,
step_componentId,
step_componentType,
StringFilter (..),
newStringFilter,
stringFilter_comparison,
stringFilter_value,
TitleAggregation (..),
newTitleAggregation,
titleAggregation_resourceType,
titleAggregation_sortBy,
titleAggregation_sortOrder,
titleAggregation_titles,
titleAggregation_vulnerabilityIds,
TitleAggregationResponse (..),
newTitleAggregationResponse,
titleAggregationResponse_accountId,
titleAggregationResponse_severityCounts,
titleAggregationResponse_vulnerabilityId,
titleAggregationResponse_title,
Usage (..),
newUsage,
usage_currency,
usage_estimatedMonthlyCost,
usage_total,
usage_type,
UsageTotal (..),
newUsageTotal,
usageTotal_accountId,
usageTotal_usage,
VulnerablePackage (..),
newVulnerablePackage,
vulnerablePackage_arch,
vulnerablePackage_epoch,
vulnerablePackage_filePath,
vulnerablePackage_fixedInVersion,
vulnerablePackage_packageManager,
vulnerablePackage_release,
vulnerablePackage_remediation,
vulnerablePackage_sourceLambdaLayerArn,
vulnerablePackage_sourceLayerHash,
vulnerablePackage_name,
vulnerablePackage_version,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.Inspector2.Types.Account
import Amazonka.Inspector2.Types.AccountAggregation
import Amazonka.Inspector2.Types.AccountAggregationResponse
import Amazonka.Inspector2.Types.AccountSortBy
import Amazonka.Inspector2.Types.AccountState
import Amazonka.Inspector2.Types.AggregationFindingType
import Amazonka.Inspector2.Types.AggregationRequest
import Amazonka.Inspector2.Types.AggregationResourceType
import Amazonka.Inspector2.Types.AggregationResponse
import Amazonka.Inspector2.Types.AggregationType
import Amazonka.Inspector2.Types.AmiAggregation
import Amazonka.Inspector2.Types.AmiAggregationResponse
import Amazonka.Inspector2.Types.AmiSortBy
import Amazonka.Inspector2.Types.Architecture
import Amazonka.Inspector2.Types.AutoEnable
import Amazonka.Inspector2.Types.AwsEc2InstanceDetails
import Amazonka.Inspector2.Types.AwsEcrContainerAggregation
import Amazonka.Inspector2.Types.AwsEcrContainerAggregationResponse
import Amazonka.Inspector2.Types.AwsEcrContainerImageDetails
import Amazonka.Inspector2.Types.AwsEcrContainerSortBy
import Amazonka.Inspector2.Types.AwsLambdaFunctionDetails
import Amazonka.Inspector2.Types.Counts
import Amazonka.Inspector2.Types.CoverageFilterCriteria
import Amazonka.Inspector2.Types.CoverageMapComparison
import Amazonka.Inspector2.Types.CoverageMapFilter
import Amazonka.Inspector2.Types.CoverageResourceType
import Amazonka.Inspector2.Types.CoverageStringComparison
import Amazonka.Inspector2.Types.CoverageStringFilter
import Amazonka.Inspector2.Types.CoveredResource
import Amazonka.Inspector2.Types.Currency
import Amazonka.Inspector2.Types.CvssScore
import Amazonka.Inspector2.Types.CvssScoreAdjustment
import Amazonka.Inspector2.Types.CvssScoreDetails
import Amazonka.Inspector2.Types.DateFilter
import Amazonka.Inspector2.Types.DelegatedAdmin
import Amazonka.Inspector2.Types.DelegatedAdminAccount
import Amazonka.Inspector2.Types.DelegatedAdminStatus
import Amazonka.Inspector2.Types.Destination
import Amazonka.Inspector2.Types.Ec2InstanceAggregation
import Amazonka.Inspector2.Types.Ec2InstanceAggregationResponse
import Amazonka.Inspector2.Types.Ec2InstanceSortBy
import Amazonka.Inspector2.Types.Ec2Metadata
import Amazonka.Inspector2.Types.Ec2Platform
import Amazonka.Inspector2.Types.EcrConfiguration
import Amazonka.Inspector2.Types.EcrConfigurationState
import Amazonka.Inspector2.Types.EcrContainerImageMetadata
import Amazonka.Inspector2.Types.EcrRepositoryMetadata
import Amazonka.Inspector2.Types.EcrRescanDuration
import Amazonka.Inspector2.Types.EcrRescanDurationState
import Amazonka.Inspector2.Types.EcrRescanDurationStatus
import Amazonka.Inspector2.Types.EcrScanFrequency
import Amazonka.Inspector2.Types.ErrorCode
import Amazonka.Inspector2.Types.ExploitAvailable
import Amazonka.Inspector2.Types.ExploitabilityDetails
import Amazonka.Inspector2.Types.ExternalReportStatus
import Amazonka.Inspector2.Types.FailedAccount
import Amazonka.Inspector2.Types.Filter
import Amazonka.Inspector2.Types.FilterAction
import Amazonka.Inspector2.Types.FilterCriteria
import Amazonka.Inspector2.Types.Finding
import Amazonka.Inspector2.Types.FindingStatus
import Amazonka.Inspector2.Types.FindingType
import Amazonka.Inspector2.Types.FindingTypeAggregation
import Amazonka.Inspector2.Types.FindingTypeAggregationResponse
import Amazonka.Inspector2.Types.FindingTypeSortBy
import Amazonka.Inspector2.Types.FixAvailable
import Amazonka.Inspector2.Types.FreeTrialAccountInfo
import Amazonka.Inspector2.Types.FreeTrialInfo
import Amazonka.Inspector2.Types.FreeTrialInfoError
import Amazonka.Inspector2.Types.FreeTrialInfoErrorCode
import Amazonka.Inspector2.Types.FreeTrialStatus
import Amazonka.Inspector2.Types.FreeTrialType
import Amazonka.Inspector2.Types.GroupKey
import Amazonka.Inspector2.Types.ImageLayerAggregation
import Amazonka.Inspector2.Types.ImageLayerAggregationResponse
import Amazonka.Inspector2.Types.ImageLayerSortBy
import Amazonka.Inspector2.Types.InspectorScoreDetails
import Amazonka.Inspector2.Types.LambdaFunctionAggregation
import Amazonka.Inspector2.Types.LambdaFunctionAggregationResponse
import Amazonka.Inspector2.Types.LambdaFunctionMetadata
import Amazonka.Inspector2.Types.LambdaFunctionSortBy
import Amazonka.Inspector2.Types.LambdaLayerAggregation
import Amazonka.Inspector2.Types.LambdaLayerAggregationResponse
import Amazonka.Inspector2.Types.LambdaLayerSortBy
import Amazonka.Inspector2.Types.LambdaVpcConfig
import Amazonka.Inspector2.Types.MapComparison
import Amazonka.Inspector2.Types.MapFilter
import Amazonka.Inspector2.Types.Member
import Amazonka.Inspector2.Types.NetworkPath
import Amazonka.Inspector2.Types.NetworkProtocol
import Amazonka.Inspector2.Types.NetworkReachabilityDetails
import Amazonka.Inspector2.Types.NumberFilter
import Amazonka.Inspector2.Types.Operation
import Amazonka.Inspector2.Types.PackageAggregation
import Amazonka.Inspector2.Types.PackageAggregationResponse
import Amazonka.Inspector2.Types.PackageFilter
import Amazonka.Inspector2.Types.PackageManager
import Amazonka.Inspector2.Types.PackageSortBy
import Amazonka.Inspector2.Types.PackageType
import Amazonka.Inspector2.Types.PackageVulnerabilityDetails
import Amazonka.Inspector2.Types.Permission
import Amazonka.Inspector2.Types.PortRange
import Amazonka.Inspector2.Types.PortRangeFilter
import Amazonka.Inspector2.Types.Recommendation
import Amazonka.Inspector2.Types.RelationshipStatus
import Amazonka.Inspector2.Types.Remediation
import Amazonka.Inspector2.Types.ReportFormat
import Amazonka.Inspector2.Types.ReportingErrorCode
import Amazonka.Inspector2.Types.RepositoryAggregation
import Amazonka.Inspector2.Types.RepositoryAggregationResponse
import Amazonka.Inspector2.Types.RepositorySortBy
import Amazonka.Inspector2.Types.Resource
import Amazonka.Inspector2.Types.ResourceDetails
import Amazonka.Inspector2.Types.ResourceScanMetadata
import Amazonka.Inspector2.Types.ResourceScanType
import Amazonka.Inspector2.Types.ResourceState
import Amazonka.Inspector2.Types.ResourceStatus
import Amazonka.Inspector2.Types.ResourceType
import Amazonka.Inspector2.Types.Runtime
import Amazonka.Inspector2.Types.ScanStatus
import Amazonka.Inspector2.Types.ScanStatusCode
import Amazonka.Inspector2.Types.ScanStatusReason
import Amazonka.Inspector2.Types.ScanType
import Amazonka.Inspector2.Types.Service
import Amazonka.Inspector2.Types.Severity
import Amazonka.Inspector2.Types.SeverityCounts
import Amazonka.Inspector2.Types.SortCriteria
import Amazonka.Inspector2.Types.SortField
import Amazonka.Inspector2.Types.SortOrder
import Amazonka.Inspector2.Types.State
import Amazonka.Inspector2.Types.Status
import Amazonka.Inspector2.Types.Step
import Amazonka.Inspector2.Types.StringComparison
import Amazonka.Inspector2.Types.StringFilter
import Amazonka.Inspector2.Types.TitleAggregation
import Amazonka.Inspector2.Types.TitleAggregationResponse
import Amazonka.Inspector2.Types.TitleSortBy
import Amazonka.Inspector2.Types.Usage
import Amazonka.Inspector2.Types.UsageTotal
import Amazonka.Inspector2.Types.UsageType
import Amazonka.Inspector2.Types.VulnerablePackage
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"Inspector2",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"inspector2",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"inspector2",
$sel:version:Service :: ByteString
Core.version = ByteString
"2020-06-08",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"Inspector2",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_BadRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BadRequestException :: forall a. AsError a => Fold a ServiceError
_BadRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ServiceQuotaExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceQuotaExceededException :: forall a. AsError a => Fold a ServiceError
_ServiceQuotaExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
402
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException :: forall a. AsError a => Fold a ServiceError
_ThrottlingException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400