Documentation
¶
Index ¶
- type AccessDeniedException
- type Account
- type AccountAggregation
- type AccountAggregationResponse
- type AccountSortBy
- type AccountState
- type AggregationFindingType
- type AggregationRequest
- type AggregationRequestMemberAccountAggregation
- type AggregationRequestMemberAmiAggregation
- type AggregationRequestMemberAwsEcrContainerAggregation
- type AggregationRequestMemberCodeRepositoryAggregation
- type AggregationRequestMemberEc2InstanceAggregation
- type AggregationRequestMemberFindingTypeAggregation
- type AggregationRequestMemberImageLayerAggregation
- type AggregationRequestMemberLambdaFunctionAggregation
- type AggregationRequestMemberLambdaLayerAggregation
- type AggregationRequestMemberPackageAggregation
- type AggregationRequestMemberRepositoryAggregation
- type AggregationRequestMemberTitleAggregation
- type AggregationResourceType
- type AggregationResponse
- type AggregationResponseMemberAccountAggregation
- type AggregationResponseMemberAmiAggregation
- type AggregationResponseMemberAwsEcrContainerAggregation
- type AggregationResponseMemberCodeRepositoryAggregation
- type AggregationResponseMemberEc2InstanceAggregation
- type AggregationResponseMemberFindingTypeAggregation
- type AggregationResponseMemberImageLayerAggregation
- type AggregationResponseMemberLambdaFunctionAggregation
- type AggregationResponseMemberLambdaLayerAggregation
- type AggregationResponseMemberPackageAggregation
- type AggregationResponseMemberRepositoryAggregation
- type AggregationResponseMemberTitleAggregation
- type AggregationType
- type AmiAggregation
- type AmiAggregationResponse
- type AmiSortBy
- type Architecture
- type AssociateConfigurationRequest
- type AssociationResultStatusCode
- type AtigData
- type AutoEnable
- type AwsEc2InstanceDetails
- type AwsEcrContainerAggregation
- type AwsEcrContainerAggregationResponse
- type AwsEcrContainerImageDetails
- type AwsEcrContainerSortBy
- type AwsEcsMetadataDetails
- type AwsEksMetadataDetails
- type AwsEksWorkloadInfo
- type AwsLambdaFunctionDetails
- type BadRequestException
- type CisCheckAggregation
- type CisDateFilter
- type CisFindingStatus
- type CisFindingStatusComparison
- type CisFindingStatusFilter
- type CisNumberFilter
- type CisReportFormat
- type CisReportStatus
- type CisResultStatus
- type CisResultStatusComparison
- type CisResultStatusFilter
- type CisRuleStatus
- type CisScan
- type CisScanConfiguration
- type CisScanConfigurationsSortBy
- type CisScanResultDetails
- type CisScanResultDetailsFilterCriteria
- type CisScanResultDetailsSortBy
- type CisScanResultsAggregatedByChecksFilterCriteria
- type CisScanResultsAggregatedByChecksSortBy
- type CisScanResultsAggregatedByTargetResourceFilterCriteria
- type CisScanResultsAggregatedByTargetResourceSortBy
- type CisScanStatus
- type CisScanStatusComparison
- type CisScanStatusFilter
- type CisSecurityLevel
- type CisSecurityLevelComparison
- type CisSecurityLevelFilter
- type CisSessionMessage
- type CisSortOrder
- type CisStringComparison
- type CisStringFilter
- type CisTargetResourceAggregation
- type CisTargetStatus
- type CisTargetStatusComparison
- type CisTargetStatusFilter
- type CisTargetStatusReason
- type CisTargetStatusReasonFilter
- type CisTargets
- type CisaData
- type ClusterDetails
- type ClusterForImageFilterCriteria
- type ClusterInformation
- type ClusterMetadata
- type ClusterMetadataMemberAwsEcsMetadataDetails
- type ClusterMetadataMemberAwsEksMetadataDetails
- type CodeFilePath
- type CodeLine
- type CodeRepositoryAggregation
- type CodeRepositoryAggregationResponse
- type CodeRepositoryDetails
- type CodeRepositoryMetadata
- type CodeRepositoryOnDemandScan
- type CodeRepositoryProviderType
- type CodeRepositorySortBy
- type CodeScanStatus
- type CodeSecurityIntegrationSummary
- type CodeSecurityResource
- type CodeSecurityResourceMemberProjectId
- type CodeSecurityScanConfiguration
- type CodeSecurityScanConfigurationAssociationSummary
- type CodeSecurityScanConfigurationSummary
- type CodeSnippetError
- type CodeSnippetErrorCode
- type CodeSnippetResult
- type CodeVulnerabilityDetails
- type ComputePlatform
- type ConfigurationLevel
- type ConflictException
- type ContinuousIntegrationScanConfiguration
- type ContinuousIntegrationScanEvent
- type Counts
- type CoverageDateFilter
- type CoverageFilterCriteria
- type CoverageMapComparison
- type CoverageMapFilter
- type CoverageNumberFilter
- type CoverageResourceType
- type CoverageStringComparison
- type CoverageStringFilter
- type CoveredResource
- type CreateCisTargets
- type CreateGitLabSelfManagedIntegrationDetail
- type CreateIntegrationDetail
- type CreateIntegrationDetailMemberGitlabSelfManaged
- type Currency
- type Cvss2
- type Cvss3
- type Cvss4
- type CvssScore
- type CvssScoreAdjustment
- type CvssScoreDetails
- type DailySchedule
- type DateFilter
- type Day
- type DelegatedAdmin
- type DelegatedAdminAccount
- type DelegatedAdminStatus
- type Destination
- type DisassociateConfigurationRequest
- type Ec2Configuration
- type Ec2ConfigurationState
- type Ec2DeepInspectionStatus
- type Ec2InstanceAggregation
- type Ec2InstanceAggregationResponse
- type Ec2InstanceSortBy
- type Ec2Metadata
- type Ec2Platform
- type Ec2ScanMode
- type Ec2ScanModeState
- type Ec2ScanModeStatus
- type EcrConfiguration
- type EcrConfigurationState
- type EcrContainerImageMetadata
- type EcrPullDateRescanDuration
- type EcrPullDateRescanMode
- type EcrRepositoryMetadata
- type EcrRescanDuration
- type EcrRescanDurationState
- type EcrRescanDurationStatus
- type EcrScanFrequency
- type Epss
- type EpssDetails
- type ErrorCode
- type Evidence
- type ExploitAvailable
- type ExploitObserved
- type ExploitabilityDetails
- type ExternalReportStatus
- type FailedAccount
- type FailedAssociationResult
- type FailedMemberAccountEc2DeepInspectionStatusState
- type Filter
- type FilterAction
- type FilterCriteria
- type Finding
- type FindingDetail
- type FindingDetailsError
- type FindingDetailsErrorCode
- type FindingStatus
- type FindingType
- type FindingTypeAggregation
- type FindingTypeAggregationResponse
- type FindingTypeSortBy
- type FixAvailable
- type FreeTrialAccountInfo
- type FreeTrialInfo
- type FreeTrialInfoError
- type FreeTrialInfoErrorCode
- type FreeTrialStatus
- type FreeTrialType
- type GroupKey
- type ImageLayerAggregation
- type ImageLayerAggregationResponse
- type ImageLayerSortBy
- type InspectorScoreDetails
- type IntegrationStatus
- type IntegrationType
- type InternalServerException
- type LambdaFunctionAggregation
- type LambdaFunctionAggregationResponse
- type LambdaFunctionMetadata
- type LambdaFunctionSortBy
- type LambdaLayerAggregation
- type LambdaLayerAggregationResponse
- type LambdaLayerSortBy
- type LambdaVpcConfig
- type ListCisScanConfigurationsFilterCriteria
- type ListCisScansDetailLevel
- type ListCisScansFilterCriteria
- type ListCisScansSortBy
- type MapComparison
- type MapFilter
- type Member
- type MemberAccountEc2DeepInspectionStatus
- type MemberAccountEc2DeepInspectionStatusState
- type MonthlySchedule
- type NetworkPath
- type NetworkProtocol
- type NetworkReachabilityDetails
- type NumberFilter
- type OneTimeSchedule
- type Operation
- type PackageAggregation
- type PackageAggregationResponse
- type PackageFilter
- type PackageManager
- type PackageSortBy
- type PackageType
- type PackageVulnerabilityDetails
- type PeriodicScanConfiguration
- type PeriodicScanFrequency
- type Permission
- type PortRange
- type PortRangeFilter
- type ProjectCodeSecurityScanConfiguration
- type ProjectContinuousIntegrationScanConfiguration
- type ProjectPeriodicScanConfiguration
- type ProjectSelectionScope
- type Recommendation
- type RelationshipStatus
- type Remediation
- type ReportFormat
- type ReportingErrorCode
- type RepositoryAggregation
- type RepositoryAggregationResponse
- type RepositorySortBy
- type Resource
- type ResourceDetails
- type ResourceFilterCriteria
- type ResourceMapComparison
- type ResourceMapFilter
- type ResourceNotFoundException
- type ResourceScanMetadata
- type ResourceScanType
- type ResourceState
- type ResourceStatus
- type ResourceStringComparison
- type ResourceStringFilter
- type ResourceType
- type RuleSetCategory
- type Runtime
- type SbomReportFormat
- type ScanMode
- type ScanStatus
- type ScanStatusCode
- type ScanStatusReason
- type ScanType
- type Schedule
- type ScheduleMemberDaily
- type ScheduleMemberMonthly
- type ScheduleMemberOneTime
- type ScheduleMemberWeekly
- type ScopeSettings
- type SearchVulnerabilitiesFilterCriteria
- type Service
- type ServiceQuotaExceededException
- type Severity
- type SeverityCounts
- type SortCriteria
- type SortField
- type SortOrder
- type StartCisSessionMessage
- type State
- type Status
- type StatusCounts
- type Step
- type StopCisMessageProgress
- type StopCisSessionMessage
- type StopCisSessionStatus
- type StringComparison
- type StringFilter
- type SuccessfulAssociationResult
- type SuggestedFix
- type TagComparison
- type TagFilter
- type ThrottlingException
- type Time
- type TitleAggregation
- type TitleAggregationResponse
- type TitleSortBy
- type UnknownUnionMember
- type UpdateCisTargets
- type UpdateGitHubIntegrationDetail
- type UpdateGitLabSelfManagedIntegrationDetail
- type UpdateIntegrationDetails
- type UpdateIntegrationDetailsMemberGithub
- type UpdateIntegrationDetailsMemberGitlabSelfManaged
- type Usage
- type UsageTotal
- type UsageType
- type ValidationException
- type ValidationExceptionField
- type ValidationExceptionReason
- type Vulnerability
- type VulnerabilitySource
- type VulnerablePackage
- type WeeklySchedule
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDeniedException ¶
type AccessDeniedException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
You do not have sufficient access to perform this action.
For Enable , you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region.
func (*AccessDeniedException) Error ¶
func (e *AccessDeniedException) Error() string
func (*AccessDeniedException) ErrorCode ¶
func (e *AccessDeniedException) ErrorCode() string
func (*AccessDeniedException) ErrorFault ¶
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
func (*AccessDeniedException) ErrorMessage ¶
func (e *AccessDeniedException) ErrorMessage() string
type Account ¶
type Account struct { // The ID of the Amazon Web Services account. // // This member is required. AccountId *string // Details of the status of Amazon Inspector scans by resource type. // // This member is required. ResourceStatus *ResourceStatus // The status of Amazon Inspector for the account. // // This member is required. Status Status // contains filtered or unexported fields }
An Amazon Web Services account within your environment that Amazon Inspector has been enabled for.
type AccountAggregation ¶
type AccountAggregation struct { // The type of finding. FindingType AggregationFindingType // The type of resource. ResourceType AggregationResourceType // The value to sort by. SortBy AccountSortBy // The sort order (ascending or descending). SortOrder SortOrder // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon Web Services accounts.
type AccountAggregationResponse ¶
type AccountAggregationResponse struct { // The Amazon Web Services account ID. AccountId *string // The number of findings that have an exploit available. ExploitAvailableCount *int64 // Details about the number of fixes. FixAvailableCount *int64 // The number of findings by severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
An aggregation of findings by Amazon Web Services account ID.
type AccountSortBy ¶
type AccountSortBy string
const ( AccountSortByCritical AccountSortBy = "CRITICAL" AccountSortByHigh AccountSortBy = "HIGH" AccountSortByAll AccountSortBy = "ALL" )
Enum values for AccountSortBy
func (AccountSortBy) Values ¶
func (AccountSortBy) Values() []AccountSortBy
Values returns all known values for AccountSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AccountState ¶
type AccountState struct { // The Amazon Web Services account ID. // // This member is required. AccountId *string // An object detailing which resources Amazon Inspector is enabled to scan for the // account. // // This member is required. ResourceState *ResourceState // An object detailing the status of Amazon Inspector for the account. // // This member is required. State *State // contains filtered or unexported fields }
An object with details the status of an Amazon Web Services account within your Amazon Inspector environment.
type AggregationFindingType ¶
type AggregationFindingType string
const ( AggregationFindingTypeNetworkReachability AggregationFindingType = "NETWORK_REACHABILITY" AggregationFindingTypePackageVulnerability AggregationFindingType = "PACKAGE_VULNERABILITY" AggregationFindingTypeCodeVulnerability AggregationFindingType = "CODE_VULNERABILITY" )
Enum values for AggregationFindingType
func (AggregationFindingType) Values ¶
func (AggregationFindingType) Values() []AggregationFindingType
Values returns all known values for AggregationFindingType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AggregationRequest ¶
type AggregationRequest interface {
// contains filtered or unexported methods
}
Contains details about an aggregation request.
The following types satisfy this interface:
AggregationRequestMemberAccountAggregation AggregationRequestMemberAmiAggregation AggregationRequestMemberAwsEcrContainerAggregation AggregationRequestMemberCodeRepositoryAggregation AggregationRequestMemberEc2InstanceAggregation AggregationRequestMemberFindingTypeAggregation AggregationRequestMemberImageLayerAggregation AggregationRequestMemberLambdaFunctionAggregation AggregationRequestMemberLambdaLayerAggregation AggregationRequestMemberPackageAggregation AggregationRequestMemberRepositoryAggregation AggregationRequestMemberTitleAggregation
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.AggregationRequest // type switches can be used to check the union value switch v := union.(type) { case *types.AggregationRequestMemberAccountAggregation: _ = v.Value // Value is types.AccountAggregation case *types.AggregationRequestMemberAmiAggregation: _ = v.Value // Value is types.AmiAggregation case *types.AggregationRequestMemberAwsEcrContainerAggregation: _ = v.Value // Value is types.AwsEcrContainerAggregation case *types.AggregationRequestMemberCodeRepositoryAggregation: _ = v.Value // Value is types.CodeRepositoryAggregation case *types.AggregationRequestMemberEc2InstanceAggregation: _ = v.Value // Value is types.Ec2InstanceAggregation case *types.AggregationRequestMemberFindingTypeAggregation: _ = v.Value // Value is types.FindingTypeAggregation case *types.AggregationRequestMemberImageLayerAggregation: _ = v.Value // Value is types.ImageLayerAggregation case *types.AggregationRequestMemberLambdaFunctionAggregation: _ = v.Value // Value is types.LambdaFunctionAggregation case *types.AggregationRequestMemberLambdaLayerAggregation: _ = v.Value // Value is types.LambdaLayerAggregation case *types.AggregationRequestMemberPackageAggregation: _ = v.Value // Value is types.PackageAggregation case *types.AggregationRequestMemberRepositoryAggregation: _ = v.Value // Value is types.RepositoryAggregation case *types.AggregationRequestMemberTitleAggregation: _ = v.Value // Value is types.TitleAggregation case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type AggregationRequestMemberAccountAggregation ¶
type AggregationRequestMemberAccountAggregation struct { Value AccountAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on Amazon Web Services account IDs.
type AggregationRequestMemberAmiAggregation ¶
type AggregationRequestMemberAmiAggregation struct { Value AmiAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on Amazon Machine Images (AMIs).
type AggregationRequestMemberAwsEcrContainerAggregation ¶
type AggregationRequestMemberAwsEcrContainerAggregation struct { Value AwsEcrContainerAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on Amazon ECR container images.
type AggregationRequestMemberCodeRepositoryAggregation ¶ added in v1.38.0
type AggregationRequestMemberCodeRepositoryAggregation struct { Value CodeRepositoryAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on code repositories.
type AggregationRequestMemberEc2InstanceAggregation ¶
type AggregationRequestMemberEc2InstanceAggregation struct { Value Ec2InstanceAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on Amazon EC2 instances.
type AggregationRequestMemberFindingTypeAggregation ¶
type AggregationRequestMemberFindingTypeAggregation struct { Value FindingTypeAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on finding types.
type AggregationRequestMemberImageLayerAggregation ¶
type AggregationRequestMemberImageLayerAggregation struct { Value ImageLayerAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on container image layers.
type AggregationRequestMemberLambdaFunctionAggregation ¶ added in v1.9.0
type AggregationRequestMemberLambdaFunctionAggregation struct { Value LambdaFunctionAggregation // contains filtered or unexported fields }
Returns an object with findings aggregated by Amazon Web Services Lambda function.
type AggregationRequestMemberLambdaLayerAggregation ¶ added in v1.9.0
type AggregationRequestMemberLambdaLayerAggregation struct { Value LambdaLayerAggregation // contains filtered or unexported fields }
Returns an object with findings aggregated by Amazon Web Services Lambda layer.
type AggregationRequestMemberPackageAggregation ¶
type AggregationRequestMemberPackageAggregation struct { Value PackageAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on operating system package type.
type AggregationRequestMemberRepositoryAggregation ¶
type AggregationRequestMemberRepositoryAggregation struct { Value RepositoryAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on Amazon ECR repositories.
type AggregationRequestMemberTitleAggregation ¶
type AggregationRequestMemberTitleAggregation struct { Value TitleAggregation // contains filtered or unexported fields }
An object that contains details about an aggregation request based on finding title.
type AggregationResourceType ¶
type AggregationResourceType string
const ( AggregationResourceTypeAwsEc2Instance AggregationResourceType = "AWS_EC2_INSTANCE" AggregationResourceTypeAwsEcrContainerImage AggregationResourceType = "AWS_ECR_CONTAINER_IMAGE" AggregationResourceTypeAwsLambdaFunction AggregationResourceType = "AWS_LAMBDA_FUNCTION" AggregationResourceTypeCodeRepository AggregationResourceType = "CODE_REPOSITORY" )
Enum values for AggregationResourceType
func (AggregationResourceType) Values ¶
func (AggregationResourceType) Values() []AggregationResourceType
Values returns all known values for AggregationResourceType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AggregationResponse ¶
type AggregationResponse interface {
// contains filtered or unexported methods
}
A structure that contains details about the results of an aggregation type.
The following types satisfy this interface:
AggregationResponseMemberAccountAggregation AggregationResponseMemberAmiAggregation AggregationResponseMemberAwsEcrContainerAggregation AggregationResponseMemberCodeRepositoryAggregation AggregationResponseMemberEc2InstanceAggregation AggregationResponseMemberFindingTypeAggregation AggregationResponseMemberImageLayerAggregation AggregationResponseMemberLambdaFunctionAggregation AggregationResponseMemberLambdaLayerAggregation AggregationResponseMemberPackageAggregation AggregationResponseMemberRepositoryAggregation AggregationResponseMemberTitleAggregation
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.AggregationResponse // type switches can be used to check the union value switch v := union.(type) { case *types.AggregationResponseMemberAccountAggregation: _ = v.Value // Value is types.AccountAggregationResponse case *types.AggregationResponseMemberAmiAggregation: _ = v.Value // Value is types.AmiAggregationResponse case *types.AggregationResponseMemberAwsEcrContainerAggregation: _ = v.Value // Value is types.AwsEcrContainerAggregationResponse case *types.AggregationResponseMemberCodeRepositoryAggregation: _ = v.Value // Value is types.CodeRepositoryAggregationResponse case *types.AggregationResponseMemberEc2InstanceAggregation: _ = v.Value // Value is types.Ec2InstanceAggregationResponse case *types.AggregationResponseMemberFindingTypeAggregation: _ = v.Value // Value is types.FindingTypeAggregationResponse case *types.AggregationResponseMemberImageLayerAggregation: _ = v.Value // Value is types.ImageLayerAggregationResponse case *types.AggregationResponseMemberLambdaFunctionAggregation: _ = v.Value // Value is types.LambdaFunctionAggregationResponse case *types.AggregationResponseMemberLambdaLayerAggregation: _ = v.Value // Value is types.LambdaLayerAggregationResponse case *types.AggregationResponseMemberPackageAggregation: _ = v.Value // Value is types.PackageAggregationResponse case *types.AggregationResponseMemberRepositoryAggregation: _ = v.Value // Value is types.RepositoryAggregationResponse case *types.AggregationResponseMemberTitleAggregation: _ = v.Value // Value is types.TitleAggregationResponse case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type AggregationResponseMemberAccountAggregation ¶
type AggregationResponseMemberAccountAggregation struct { Value AccountAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon Web Services account IDs.
type AggregationResponseMemberAmiAggregation ¶
type AggregationResponseMemberAmiAggregation struct { Value AmiAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon Machine Images (AMIs).
type AggregationResponseMemberAwsEcrContainerAggregation ¶
type AggregationResponseMemberAwsEcrContainerAggregation struct { Value AwsEcrContainerAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon ECR container images.
type AggregationResponseMemberCodeRepositoryAggregation ¶ added in v1.38.0
type AggregationResponseMemberCodeRepositoryAggregation struct { Value CodeRepositoryAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on code repositories.
type AggregationResponseMemberEc2InstanceAggregation ¶
type AggregationResponseMemberEc2InstanceAggregation struct { Value Ec2InstanceAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon EC2 instances.
type AggregationResponseMemberFindingTypeAggregation ¶
type AggregationResponseMemberFindingTypeAggregation struct { Value FindingTypeAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on finding types.
type AggregationResponseMemberImageLayerAggregation ¶
type AggregationResponseMemberImageLayerAggregation struct { Value ImageLayerAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on container image layers.
type AggregationResponseMemberLambdaFunctionAggregation ¶ added in v1.9.0
type AggregationResponseMemberLambdaFunctionAggregation struct { Value LambdaFunctionAggregationResponse // contains filtered or unexported fields }
An aggregation of findings by Amazon Web Services Lambda function.
type AggregationResponseMemberLambdaLayerAggregation ¶ added in v1.9.0
type AggregationResponseMemberLambdaLayerAggregation struct { Value LambdaLayerAggregationResponse // contains filtered or unexported fields }
An aggregation of findings by Amazon Web Services Lambda layer.
type AggregationResponseMemberPackageAggregation ¶
type AggregationResponseMemberPackageAggregation struct { Value PackageAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on operating system package type.
type AggregationResponseMemberRepositoryAggregation ¶
type AggregationResponseMemberRepositoryAggregation struct { Value RepositoryAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on Amazon ECR repositories.
type AggregationResponseMemberTitleAggregation ¶
type AggregationResponseMemberTitleAggregation struct { Value TitleAggregationResponse // contains filtered or unexported fields }
An object that contains details about an aggregation response based on finding title.
type AggregationType ¶
type AggregationType string
const ( AggregationTypeFindingType AggregationType = "FINDING_TYPE" AggregationTypePackage AggregationType = "PACKAGE" AggregationTypeTitle AggregationType = "TITLE" AggregationTypeRepository AggregationType = "REPOSITORY" AggregationTypeAmi AggregationType = "AMI" AggregationTypeAwsEc2Instance AggregationType = "AWS_EC2_INSTANCE" AggregationTypeAwsEcrContainer AggregationType = "AWS_ECR_CONTAINER" AggregationTypeImageLayer AggregationType = "IMAGE_LAYER" AggregationTypeAccount AggregationType = "ACCOUNT" AggregationTypeAwsLambdaFunction AggregationType = "AWS_LAMBDA_FUNCTION" AggregationTypeLambdaLayer AggregationType = "LAMBDA_LAYER" AggregationTypeCodeRepository AggregationType = "CODE_REPOSITORY" )
Enum values for AggregationType
func (AggregationType) Values ¶
func (AggregationType) Values() []AggregationType
Values returns all known values for AggregationType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AmiAggregation ¶
type AmiAggregation struct { // The IDs of AMIs to aggregate findings for. Amis []StringFilter // The value to sort results by. SortBy AmiSortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on Amazon machine images (AMIs).
type AmiAggregationResponse ¶
type AmiAggregationResponse struct { // The ID of the AMI that findings were aggregated for. // // This member is required. Ami *string // The Amazon Web Services account ID for the AMI. AccountId *string // The IDs of Amazon EC2 instances using this AMI. AffectedInstances *int64 // An object that contains the count of matched findings per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding aggregation by AMI.
type AmiSortBy ¶
type AmiSortBy string
type Architecture ¶ added in v1.9.0
type Architecture string
const ( ArchitectureX8664 Architecture = "X86_64" ArchitectureArm64 Architecture = "ARM64" )
Enum values for Architecture
func (Architecture) Values ¶ added in v1.9.0
func (Architecture) Values() []Architecture
Values returns all known values for Architecture. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AssociateConfigurationRequest ¶ added in v1.38.0
type AssociateConfigurationRequest struct { // Identifies a specific resource in a code repository that will be scanned. // // This member is required. Resource CodeSecurityResource // The Amazon Resource Name (ARN) of the scan configuration. // // This member is required. ScanConfigurationArn *string // contains filtered or unexported fields }
Contains details about a request to associate a code repository with a scan configuration.
type AssociationResultStatusCode ¶ added in v1.38.0
type AssociationResultStatusCode string
const ( AssociationResultStatusCodeInternalError AssociationResultStatusCode = "INTERNAL_ERROR" AssociationResultStatusCodeAccessDenied AssociationResultStatusCode = "ACCESS_DENIED" AssociationResultStatusCodeScanConfigurationNotFound AssociationResultStatusCode = "SCAN_CONFIGURATION_NOT_FOUND" AssociationResultStatusCodeInvalidInput AssociationResultStatusCode = "INVALID_INPUT" AssociationResultStatusCodeResourceNotFound AssociationResultStatusCode = "RESOURCE_NOT_FOUND" AssociationResultStatusCodeQuotaExceeded AssociationResultStatusCode = "QUOTA_EXCEEDED" )
Enum values for AssociationResultStatusCode
func (AssociationResultStatusCode) Values ¶ added in v1.38.0
func (AssociationResultStatusCode) Values() []AssociationResultStatusCode
Values returns all known values for AssociationResultStatusCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AtigData ¶ added in v1.13.0
type AtigData struct { // The date and time this vulnerability was first observed. FirstSeen *time.Time // The date and time this vulnerability was last observed. LastSeen *time.Time // The commercial sectors this vulnerability targets. Targets []string // The [MITRE ATT&CK] tactics, techniques, and procedures (TTPs) associated with vulnerability. // // [MITRE ATT&CK]: https://attack.mitre.org/ Ttps []string // contains filtered or unexported fields }
The Amazon Web Services Threat Intel Group (ATIG) details for a specific vulnerability.
type AutoEnable ¶
type AutoEnable struct { // Represents whether Amazon EC2 scans are automatically enabled for new members // of your Amazon Inspector organization. // // This member is required. Ec2 *bool // Represents whether Amazon ECR scans are automatically enabled for new members // of your Amazon Inspector organization. // // This member is required. Ecr *bool // Represents whether code repository scans are automatically enabled for new // members of your Amazon Inspector organization. CodeRepository *bool // Represents whether Amazon Web Services Lambda standard scans are automatically // enabled for new members of your Amazon Inspector organization. Lambda *bool // Represents whether Lambda code scans are automatically enabled for new members // of your Amazon Inspector organization. LambdaCode *bool // contains filtered or unexported fields }
Represents which scan types are automatically enabled for new members of your Amazon Inspector organization.
type AwsEc2InstanceDetails ¶
type AwsEc2InstanceDetails struct { // The IAM instance profile ARN of the Amazon EC2 instance. IamInstanceProfileArn *string // The image ID of the Amazon EC2 instance. ImageId *string // The IPv4 addresses of the Amazon EC2 instance. IpV4Addresses []string // The IPv6 addresses of the Amazon EC2 instance. IpV6Addresses []string // The name of the key pair used to launch the Amazon EC2 instance. KeyName *string // The date and time the Amazon EC2 instance was launched at. LaunchedAt *time.Time // The platform of the Amazon EC2 instance. Platform *string // The subnet ID of the Amazon EC2 instance. SubnetId *string // The type of the Amazon EC2 instance. Type *string // The VPC ID of the Amazon EC2 instance. VpcId *string // contains filtered or unexported fields }
Details of the Amazon EC2 instance involved in a finding.
type AwsEcrContainerAggregation ¶
type AwsEcrContainerAggregation struct { // The architecture of the containers. Architectures []StringFilter // The image SHA values. ImageShas []StringFilter // The image tags. ImageTags []StringFilter // The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR // container image is in use. InUseCount []NumberFilter // The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS // pod. LastInUseAt []DateFilter // The container repositories. Repositories []StringFilter // The container resource IDs. ResourceIds []StringFilter // The value to sort by. SortBy AwsEcrContainerSortBy // The sort order (ascending or descending). SortOrder SortOrder // contains filtered or unexported fields }
An aggregation of information about Amazon ECR containers.
type AwsEcrContainerAggregationResponse ¶
type AwsEcrContainerAggregationResponse struct { // The resource ID of the container. // // This member is required. ResourceId *string // The Amazon Web Services account ID of the account that owns the container. AccountId *string // The architecture of the container. Architecture *string // The SHA value of the container image. ImageSha *string // The container image stags. ImageTags []string // The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR // container image is in use. InUseCount *int64 // The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS // pod. LastInUseAt *time.Time // The container repository. Repository *string // The number of finding by severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
An aggregation of information about Amazon ECR containers.
type AwsEcrContainerImageDetails ¶
type AwsEcrContainerImageDetails struct { // The image hash of the Amazon ECR container image. // // This member is required. ImageHash *string // The registry for the Amazon ECR container image. // // This member is required. Registry *string // The name of the repository the Amazon ECR container image resides in. // // This member is required. RepositoryName *string // The architecture of the Amazon ECR container image. Architecture *string // The image author of the Amazon ECR container image. Author *string // The image tags attached to the Amazon ECR container image. ImageTags []string // The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR // container image is in use. InUseCount *int64 // The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS // pod. LastInUseAt *time.Time // The platform of the Amazon ECR container image. Platform *string // The date and time the Amazon ECR container image was pushed. PushedAt *time.Time // contains filtered or unexported fields }
The image details of the Amazon ECR container image.
type AwsEcrContainerSortBy ¶
type AwsEcrContainerSortBy string
const ( AwsEcrContainerSortByCritical AwsEcrContainerSortBy = "CRITICAL" AwsEcrContainerSortByHigh AwsEcrContainerSortBy = "HIGH" AwsEcrContainerSortByAll AwsEcrContainerSortBy = "ALL" )
Enum values for AwsEcrContainerSortBy
func (AwsEcrContainerSortBy) Values ¶
func (AwsEcrContainerSortBy) Values() []AwsEcrContainerSortBy
Values returns all known values for AwsEcrContainerSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type AwsEcsMetadataDetails ¶ added in v1.37.0
type AwsEcsMetadataDetails struct { // The details group information for a task in a cluster. // // This member is required. DetailsGroup *string // The task definition ARN. // // This member is required. TaskDefinitionArn *string // contains filtered or unexported fields }
Metadata about tasks where an image was in use.
type AwsEksMetadataDetails ¶ added in v1.37.0
type AwsEksMetadataDetails struct { // The namespace for an Amazon EKS cluster. Namespace *string // The list of workloads. WorkloadInfoList []AwsEksWorkloadInfo // contains filtered or unexported fields }
The metadata for an Amazon EKS pod where an Amazon ECR image is in use.
type AwsEksWorkloadInfo ¶ added in v1.37.0
type AwsEksWorkloadInfo struct { // The name of the workload. // // This member is required. Name *string // The workload type. // // This member is required. Type *string // contains filtered or unexported fields }
Information about the workload.
type AwsLambdaFunctionDetails ¶ added in v1.9.0
type AwsLambdaFunctionDetails struct { // The SHA256 hash of the Amazon Web Services Lambda function's deployment package. // // This member is required. CodeSha256 *string // The Amazon Web Services Lambda function's execution role. // // This member is required. ExecutionRoleArn *string // The name of the Amazon Web Services Lambda function. // // This member is required. FunctionName *string // The runtime environment for the Amazon Web Services Lambda function. // // This member is required. Runtime Runtime // The version of the Amazon Web Services Lambda function. // // This member is required. Version *string // The instruction set architecture that the Amazon Web Services Lambda function // supports. Architecture is a string array with one of the valid values. The // default architecture value is x86_64 . Architectures []Architecture // The date and time that a user last updated the configuration, in [ISO 8601 format] // // [ISO 8601 format]: https://www.iso.org/iso-8601-date-and-time-format.html LastModifiedAt *time.Time // The Amazon Web Services Lambda function's [layers]. A Lambda function can have up to // five layers. // // [layers]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html Layers []string // The type of deployment package. Set to Image for container image and set Zip // for .zip file archive. PackageType PackageType // The Amazon Web Services Lambda function's networking configuration. VpcConfig *LambdaVpcConfig // contains filtered or unexported fields }
A summary of information about the Amazon Web Services Lambda function.
type BadRequestException ¶
type BadRequestException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
One or more tags submitted as part of the request is not valid.
func (*BadRequestException) Error ¶
func (e *BadRequestException) Error() string
func (*BadRequestException) ErrorCode ¶
func (e *BadRequestException) ErrorCode() string
func (*BadRequestException) ErrorFault ¶
func (e *BadRequestException) ErrorFault() smithy.ErrorFault
func (*BadRequestException) ErrorMessage ¶
func (e *BadRequestException) ErrorMessage() string
type CisCheckAggregation ¶ added in v1.21.0
type CisCheckAggregation struct { // The scan ARN for the CIS check scan ARN. // // This member is required. ScanArn *string // The account ID for the CIS check. AccountId *string // The description for the CIS check. CheckDescription *string // The check ID for the CIS check. CheckId *string // The CIS check level. Level CisSecurityLevel // The CIS check platform. Platform *string // The CIS check status counts. StatusCounts *StatusCounts // The CIS check title. Title *string // contains filtered or unexported fields }
A CIS check.
type CisDateFilter ¶ added in v1.21.0
type CisDateFilter struct { // The CIS date filter's earliest scan start time. EarliestScanStartTime *time.Time // The CIS date filter's latest scan start time. LatestScanStartTime *time.Time // contains filtered or unexported fields }
The CIS date filter.
type CisFindingStatus ¶ added in v1.21.0
type CisFindingStatus string
const ( CisFindingStatusPassed CisFindingStatus = "PASSED" CisFindingStatusFailed CisFindingStatus = "FAILED" CisFindingStatusSkipped CisFindingStatus = "SKIPPED" )
Enum values for CisFindingStatus
func (CisFindingStatus) Values ¶ added in v1.21.0
func (CisFindingStatus) Values() []CisFindingStatus
Values returns all known values for CisFindingStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisFindingStatusComparison ¶ added in v1.21.0
type CisFindingStatusComparison string
const (
CisFindingStatusComparisonEquals CisFindingStatusComparison = "EQUALS"
)
Enum values for CisFindingStatusComparison
func (CisFindingStatusComparison) Values ¶ added in v1.21.0
func (CisFindingStatusComparison) Values() []CisFindingStatusComparison
Values returns all known values for CisFindingStatusComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisFindingStatusFilter ¶ added in v1.21.0
type CisFindingStatusFilter struct { // The comparison value of the CIS finding status filter. // // This member is required. Comparison CisFindingStatusComparison // The value of the CIS finding status filter. // // This member is required. Value CisFindingStatus // contains filtered or unexported fields }
The CIS finding status filter.
type CisNumberFilter ¶ added in v1.21.0
type CisNumberFilter struct { // The CIS number filter's lower inclusive. LowerInclusive *int32 // The CIS number filter's upper inclusive. UpperInclusive *int32 // contains filtered or unexported fields }
The CIS number filter.
type CisReportFormat ¶ added in v1.26.0
type CisReportFormat string
const ( CisReportFormatPdf CisReportFormat = "PDF" CisReportFormatCsv CisReportFormat = "CSV" )
Enum values for CisReportFormat
func (CisReportFormat) Values ¶ added in v1.26.0
func (CisReportFormat) Values() []CisReportFormat
Values returns all known values for CisReportFormat. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisReportStatus ¶ added in v1.21.0
type CisReportStatus string
const ( CisReportStatusSucceeded CisReportStatus = "SUCCEEDED" CisReportStatusFailed CisReportStatus = "FAILED" CisReportStatusInProgress CisReportStatus = "IN_PROGRESS" )
Enum values for CisReportStatus
func (CisReportStatus) Values ¶ added in v1.21.0
func (CisReportStatus) Values() []CisReportStatus
Values returns all known values for CisReportStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisResultStatus ¶ added in v1.21.0
type CisResultStatus string
const ( CisResultStatusPassed CisResultStatus = "PASSED" CisResultStatusFailed CisResultStatus = "FAILED" CisResultStatusSkipped CisResultStatus = "SKIPPED" )
Enum values for CisResultStatus
func (CisResultStatus) Values ¶ added in v1.21.0
func (CisResultStatus) Values() []CisResultStatus
Values returns all known values for CisResultStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisResultStatusComparison ¶ added in v1.21.0
type CisResultStatusComparison string
const (
CisResultStatusComparisonEquals CisResultStatusComparison = "EQUALS"
)
Enum values for CisResultStatusComparison
func (CisResultStatusComparison) Values ¶ added in v1.21.0
func (CisResultStatusComparison) Values() []CisResultStatusComparison
Values returns all known values for CisResultStatusComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisResultStatusFilter ¶ added in v1.21.0
type CisResultStatusFilter struct { // The comparison value of the CIS result status filter. // // This member is required. Comparison CisResultStatusComparison // The value of the CIS result status filter. // // This member is required. Value CisResultStatus // contains filtered or unexported fields }
The CIS result status filter.
type CisRuleStatus ¶ added in v1.21.0
type CisRuleStatus string
const ( CisRuleStatusFailed CisRuleStatus = "FAILED" CisRuleStatusPassed CisRuleStatus = "PASSED" CisRuleStatusNotEvaluated CisRuleStatus = "NOT_EVALUATED" CisRuleStatusInformational CisRuleStatus = "INFORMATIONAL" CisRuleStatusUnknown CisRuleStatus = "UNKNOWN" CisRuleStatusNotApplicable CisRuleStatus = "NOT_APPLICABLE" CisRuleStatusError CisRuleStatus = "ERROR" )
Enum values for CisRuleStatus
func (CisRuleStatus) Values ¶ added in v1.21.0
func (CisRuleStatus) Values() []CisRuleStatus
Values returns all known values for CisRuleStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScan ¶ added in v1.21.0
type CisScan struct { // The CIS scan's ARN. // // This member is required. ScanArn *string // The CIS scan's configuration ARN. // // This member is required. ScanConfigurationArn *string // The CIS scan's failed checks. FailedChecks *int32 // The CIS scan's date. ScanDate *time.Time // The the name of the scan configuration that's associated with this scan. ScanName *string // The account or organization that schedules the CIS scan. ScheduledBy *string // The security level for the CIS scan. Security level refers to the Benchmark // levels that CIS assigns to a profile. SecurityLevel CisSecurityLevel // The CIS scan's status. Status CisScanStatus // The CIS scan's targets. Targets *CisTargets // The CIS scan's total checks. TotalChecks *int32 // contains filtered or unexported fields }
The CIS scan.
type CisScanConfiguration ¶ added in v1.21.0
type CisScanConfiguration struct { // The CIS scan configuration's scan configuration ARN. // // This member is required. ScanConfigurationArn *string // The CIS scan configuration's owner ID. OwnerId *string // The name of the CIS scan configuration. ScanName *string // The CIS scan configuration's schedule. Schedule Schedule // The CIS scan configuration's security level. SecurityLevel CisSecurityLevel // The CIS scan configuration's tags. Tags map[string]string // The CIS scan configuration's targets. Targets *CisTargets // contains filtered or unexported fields }
The CIS scan configuration.
type CisScanConfigurationsSortBy ¶ added in v1.21.0
type CisScanConfigurationsSortBy string
const ( CisScanConfigurationsSortByScanName CisScanConfigurationsSortBy = "SCAN_NAME" CisScanConfigurationsSortByScanConfigurationArn CisScanConfigurationsSortBy = "SCAN_CONFIGURATION_ARN" )
Enum values for CisScanConfigurationsSortBy
func (CisScanConfigurationsSortBy) Values ¶ added in v1.21.0
func (CisScanConfigurationsSortBy) Values() []CisScanConfigurationsSortBy
Values returns all known values for CisScanConfigurationsSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanResultDetails ¶ added in v1.21.0
type CisScanResultDetails struct { // The CIS scan result details' scan ARN. // // This member is required. ScanArn *string // The CIS scan result details' account ID. AccountId *string // The account ID that's associated with the CIS scan result details. CheckDescription *string // The CIS scan result details' check ID. CheckId *string // The CIS scan result details' finding ARN. FindingArn *string // The CIS scan result details' level. Level CisSecurityLevel // The CIS scan result details' platform. Platform *string // The CIS scan result details' remediation. Remediation *string // The CIS scan result details' status. Status CisFindingStatus // The CIS scan result details' status reason. StatusReason *string // The CIS scan result details' target resource ID. TargetResourceId *string // The CIS scan result details' title. Title *string // contains filtered or unexported fields }
The CIS scan result details.
type CisScanResultDetailsFilterCriteria ¶ added in v1.21.0
type CisScanResultDetailsFilterCriteria struct { // The criteria's check ID filters. CheckIdFilters []CisStringFilter // The criteria's finding ARN filters. FindingArnFilters []CisStringFilter // The criteria's finding status filters. FindingStatusFilters []CisFindingStatusFilter // The criteria's security level filters. . Security level refers to the // Benchmark levels that CIS assigns to a profile. SecurityLevelFilters []CisSecurityLevelFilter // The criteria's title filters. TitleFilters []CisStringFilter // contains filtered or unexported fields }
The CIS scan result details filter criteria.
type CisScanResultDetailsSortBy ¶ added in v1.21.0
type CisScanResultDetailsSortBy string
const ( CisScanResultDetailsSortByCheckId CisScanResultDetailsSortBy = "CHECK_ID" CisScanResultDetailsSortByStatus CisScanResultDetailsSortBy = "STATUS" )
Enum values for CisScanResultDetailsSortBy
func (CisScanResultDetailsSortBy) Values ¶ added in v1.21.0
func (CisScanResultDetailsSortBy) Values() []CisScanResultDetailsSortBy
Values returns all known values for CisScanResultDetailsSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanResultsAggregatedByChecksFilterCriteria ¶ added in v1.21.0
type CisScanResultsAggregatedByChecksFilterCriteria struct { // The criteria's account ID filters. AccountIdFilters []CisStringFilter // The criteria's check ID filters. CheckIdFilters []CisStringFilter // The criteria's failed resources filters. FailedResourcesFilters []CisNumberFilter // The criteria's platform filters. PlatformFilters []CisStringFilter // The criteria's security level filters. SecurityLevelFilters []CisSecurityLevelFilter // The criteria's title filters. TitleFilters []CisStringFilter // contains filtered or unexported fields }
The scan results aggregated by checks filter criteria.
type CisScanResultsAggregatedByChecksSortBy ¶ added in v1.21.0
type CisScanResultsAggregatedByChecksSortBy string
const ( CisScanResultsAggregatedByChecksSortByCheckId CisScanResultsAggregatedByChecksSortBy = "CHECK_ID" CisScanResultsAggregatedByChecksSortByTitle CisScanResultsAggregatedByChecksSortBy = "TITLE" CisScanResultsAggregatedByChecksSortByPlatform CisScanResultsAggregatedByChecksSortBy = "PLATFORM" CisScanResultsAggregatedByChecksSortByFailedCounts CisScanResultsAggregatedByChecksSortBy = "FAILED_COUNTS" CisScanResultsAggregatedByChecksSortBySecurityLevel CisScanResultsAggregatedByChecksSortBy = "SECURITY_LEVEL" )
Enum values for CisScanResultsAggregatedByChecksSortBy
func (CisScanResultsAggregatedByChecksSortBy) Values ¶ added in v1.21.0
func (CisScanResultsAggregatedByChecksSortBy) Values() []CisScanResultsAggregatedByChecksSortBy
Values returns all known values for CisScanResultsAggregatedByChecksSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanResultsAggregatedByTargetResourceFilterCriteria ¶ added in v1.21.0
type CisScanResultsAggregatedByTargetResourceFilterCriteria struct { // The criteria's account ID filters. AccountIdFilters []CisStringFilter // The criteria's check ID filters. CheckIdFilters []CisStringFilter // The criteria's failed checks filters. FailedChecksFilters []CisNumberFilter // The criteria's platform filters. PlatformFilters []CisStringFilter // The criteria's status filter. StatusFilters []CisResultStatusFilter // The criteria's target resource ID filters. TargetResourceIdFilters []CisStringFilter // The criteria's target resource tag filters. TargetResourceTagFilters []TagFilter // The criteria's target status filters. TargetStatusFilters []CisTargetStatusFilter // The criteria's target status reason filters. TargetStatusReasonFilters []CisTargetStatusReasonFilter // contains filtered or unexported fields }
The scan results aggregated by target resource filter criteria.
type CisScanResultsAggregatedByTargetResourceSortBy ¶ added in v1.21.0
type CisScanResultsAggregatedByTargetResourceSortBy string
const ( CisScanResultsAggregatedByTargetResourceSortByResourceId CisScanResultsAggregatedByTargetResourceSortBy = "RESOURCE_ID" CisScanResultsAggregatedByTargetResourceSortByFailedCounts CisScanResultsAggregatedByTargetResourceSortBy = "FAILED_COUNTS" CisScanResultsAggregatedByTargetResourceSortByAccountId CisScanResultsAggregatedByTargetResourceSortBy = "ACCOUNT_ID" CisScanResultsAggregatedByTargetResourceSortByPlatform CisScanResultsAggregatedByTargetResourceSortBy = "PLATFORM" CisScanResultsAggregatedByTargetResourceSortByTargetStatus CisScanResultsAggregatedByTargetResourceSortBy = "TARGET_STATUS" CisScanResultsAggregatedByTargetResourceSortByTargetStatusReason CisScanResultsAggregatedByTargetResourceSortBy = "TARGET_STATUS_REASON" )
Enum values for CisScanResultsAggregatedByTargetResourceSortBy
func (CisScanResultsAggregatedByTargetResourceSortBy) Values ¶ added in v1.21.0
func (CisScanResultsAggregatedByTargetResourceSortBy) Values() []CisScanResultsAggregatedByTargetResourceSortBy
Values returns all known values for CisScanResultsAggregatedByTargetResourceSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanStatus ¶ added in v1.21.0
type CisScanStatus string
const ( CisScanStatusFailed CisScanStatus = "FAILED" CisScanStatusCompleted CisScanStatus = "COMPLETED" CisScanStatusCancelled CisScanStatus = "CANCELLED" CisScanStatusInProgress CisScanStatus = "IN_PROGRESS" )
Enum values for CisScanStatus
func (CisScanStatus) Values ¶ added in v1.21.0
func (CisScanStatus) Values() []CisScanStatus
Values returns all known values for CisScanStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanStatusComparison ¶ added in v1.21.0
type CisScanStatusComparison string
const (
CisScanStatusComparisonEquals CisScanStatusComparison = "EQUALS"
)
Enum values for CisScanStatusComparison
func (CisScanStatusComparison) Values ¶ added in v1.21.0
func (CisScanStatusComparison) Values() []CisScanStatusComparison
Values returns all known values for CisScanStatusComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisScanStatusFilter ¶ added in v1.21.0
type CisScanStatusFilter struct { // The filter comparison value. // // This member is required. Comparison CisScanStatusComparison // The filter value. // // This member is required. Value CisScanStatus // contains filtered or unexported fields }
The CIS scan status filter.
type CisSecurityLevel ¶ added in v1.21.0
type CisSecurityLevel string
const ( CisSecurityLevelLevel1 CisSecurityLevel = "LEVEL_1" CisSecurityLevelLevel2 CisSecurityLevel = "LEVEL_2" )
Enum values for CisSecurityLevel
func (CisSecurityLevel) Values ¶ added in v1.21.0
func (CisSecurityLevel) Values() []CisSecurityLevel
Values returns all known values for CisSecurityLevel. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisSecurityLevelComparison ¶ added in v1.21.0
type CisSecurityLevelComparison string
const (
CisSecurityLevelComparisonEquals CisSecurityLevelComparison = "EQUALS"
)
Enum values for CisSecurityLevelComparison
func (CisSecurityLevelComparison) Values ¶ added in v1.21.0
func (CisSecurityLevelComparison) Values() []CisSecurityLevelComparison
Values returns all known values for CisSecurityLevelComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisSecurityLevelFilter ¶ added in v1.21.0
type CisSecurityLevelFilter struct { // The CIS security filter comparison value. // // This member is required. Comparison CisSecurityLevelComparison // The CIS security filter value. // // This member is required. Value CisSecurityLevel // contains filtered or unexported fields }
The CIS security level filter. Security level refers to the Benchmark levels
that CIS assigns to a profile.
type CisSessionMessage ¶ added in v1.21.0
type CisSessionMessage struct { // The CIS rule details for the CIS session message. // // This member is required. CisRuleDetails []byte // The rule ID for the CIS session message. // // This member is required. RuleId *string // The status of the CIS session message. // // This member is required. Status CisRuleStatus // contains filtered or unexported fields }
The CIS session message.
type CisSortOrder ¶ added in v1.21.0
type CisSortOrder string
const ( CisSortOrderAsc CisSortOrder = "ASC" CisSortOrderDesc CisSortOrder = "DESC" )
Enum values for CisSortOrder
func (CisSortOrder) Values ¶ added in v1.21.0
func (CisSortOrder) Values() []CisSortOrder
Values returns all known values for CisSortOrder. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisStringComparison ¶ added in v1.21.0
type CisStringComparison string
const ( CisStringComparisonEquals CisStringComparison = "EQUALS" CisStringComparisonPrefix CisStringComparison = "PREFIX" CisStringComparisonNotEquals CisStringComparison = "NOT_EQUALS" )
Enum values for CisStringComparison
func (CisStringComparison) Values ¶ added in v1.21.0
func (CisStringComparison) Values() []CisStringComparison
Values returns all known values for CisStringComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisStringFilter ¶ added in v1.21.0
type CisStringFilter struct { // The comparison value of the CIS string filter. // // This member is required. Comparison CisStringComparison // The value of the CIS string filter. // // This member is required. Value *string // contains filtered or unexported fields }
The CIS string filter.
type CisTargetResourceAggregation ¶ added in v1.21.0
type CisTargetResourceAggregation struct { // The scan ARN for the CIS target resource. // // This member is required. ScanArn *string // The account ID for the CIS target resource. AccountId *string // The platform for the CIS target resource. Platform *string // The target resource status counts. StatusCounts *StatusCounts // The ID of the target resource. TargetResourceId *string // The tag for the target resource. TargetResourceTags map[string][]string // The status of the target resource. TargetStatus CisTargetStatus // The reason for the target resource. TargetStatusReason CisTargetStatusReason // contains filtered or unexported fields }
The CIS target resource aggregation.
type CisTargetStatus ¶ added in v1.21.0
type CisTargetStatus string
const ( CisTargetStatusTimedOut CisTargetStatus = "TIMED_OUT" CisTargetStatusCancelled CisTargetStatus = "CANCELLED" CisTargetStatusCompleted CisTargetStatus = "COMPLETED" )
Enum values for CisTargetStatus
func (CisTargetStatus) Values ¶ added in v1.21.0
func (CisTargetStatus) Values() []CisTargetStatus
Values returns all known values for CisTargetStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisTargetStatusComparison ¶ added in v1.21.0
type CisTargetStatusComparison string
const (
CisTargetStatusComparisonEquals CisTargetStatusComparison = "EQUALS"
)
Enum values for CisTargetStatusComparison
func (CisTargetStatusComparison) Values ¶ added in v1.21.0
func (CisTargetStatusComparison) Values() []CisTargetStatusComparison
Values returns all known values for CisTargetStatusComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisTargetStatusFilter ¶ added in v1.21.0
type CisTargetStatusFilter struct { // The comparison value of the CIS target status filter. // // This member is required. Comparison CisTargetStatusComparison // The value of the CIS target status filter. // // This member is required. Value CisTargetStatus // contains filtered or unexported fields }
The CIS target status filter.
type CisTargetStatusReason ¶ added in v1.21.0
type CisTargetStatusReason string
const ( CisTargetStatusReasonScanInProgress CisTargetStatusReason = "SCAN_IN_PROGRESS" CisTargetStatusReasonUnsupportedOs CisTargetStatusReason = "UNSUPPORTED_OS" CisTargetStatusReasonSsmUnmanaged CisTargetStatusReason = "SSM_UNMANAGED" )
Enum values for CisTargetStatusReason
func (CisTargetStatusReason) Values ¶ added in v1.21.0
func (CisTargetStatusReason) Values() []CisTargetStatusReason
Values returns all known values for CisTargetStatusReason. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CisTargetStatusReasonFilter ¶ added in v1.21.0
type CisTargetStatusReasonFilter struct { // The comparison value of the CIS target status reason filter. // // This member is required. Comparison CisTargetStatusComparison // The value of the CIS target status reason filter. // // This member is required. Value CisTargetStatusReason // contains filtered or unexported fields }
The CIS target status reason filter.
type CisTargets ¶ added in v1.21.0
type CisTargets struct { // The CIS target account ids. AccountIds []string // The CIS target resource tags. TargetResourceTags map[string][]string // contains filtered or unexported fields }
The CIS targets.
type CisaData ¶ added in v1.13.0
type CisaData struct { // The remediation action recommended by CISA for this vulnerability. Action *string // The date and time CISA added this vulnerability to their catalogue. DateAdded *time.Time // The date and time CISA expects a fix to have been provided vulnerability. DateDue *time.Time // contains filtered or unexported fields }
The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.
type ClusterDetails ¶ added in v1.37.0
type ClusterDetails struct { // The metadata for a cluster. // // This member is required. ClusterMetadata ClusterMetadata // The last timestamp when Amazon Inspector recorded the image in use in the task // or pod in the cluster. // // This member is required. LastInUse *time.Time // The number of tasks or pods where an image was running on the cluster. RunningUnitCount *int64 // The number of tasks or pods where an image was stopped on the cluster in the // last 24 hours. StoppedUnitCount *int64 // contains filtered or unexported fields }
Details about the task or pod in the cluster.
type ClusterForImageFilterCriteria ¶ added in v1.37.0
type ClusterForImageFilterCriteria struct { // The resource Id to be used in the filter criteria. // // This member is required. ResourceId *string // contains filtered or unexported fields }
The filter criteria to be used.
type ClusterInformation ¶ added in v1.37.0
type ClusterInformation struct { // The cluster ARN. // // This member is required. ClusterArn *string // Details about the cluster. ClusterDetails []ClusterDetails // contains filtered or unexported fields }
Information about the cluster.
type ClusterMetadata ¶ added in v1.37.0
type ClusterMetadata interface {
// contains filtered or unexported methods
}
The metadata for a cluster.
The following types satisfy this interface:
ClusterMetadataMemberAwsEcsMetadataDetails ClusterMetadataMemberAwsEksMetadataDetails
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.ClusterMetadata // type switches can be used to check the union value switch v := union.(type) { case *types.ClusterMetadataMemberAwsEcsMetadataDetails: _ = v.Value // Value is types.AwsEcsMetadataDetails case *types.ClusterMetadataMemberAwsEksMetadataDetails: _ = v.Value // Value is types.AwsEksMetadataDetails case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type ClusterMetadataMemberAwsEcsMetadataDetails ¶ added in v1.37.0
type ClusterMetadataMemberAwsEcsMetadataDetails struct { Value AwsEcsMetadataDetails // contains filtered or unexported fields }
The details for an Amazon ECS cluster in the cluster metadata.
type ClusterMetadataMemberAwsEksMetadataDetails ¶ added in v1.37.0
type ClusterMetadataMemberAwsEksMetadataDetails struct { Value AwsEksMetadataDetails // contains filtered or unexported fields }
The details for an Amazon EKS cluster in the cluster metadata.
type CodeFilePath ¶ added in v1.15.0
type CodeFilePath struct { // The line number of the last line of code that a vulnerability was found in. // // This member is required. EndLine *int32 // The name of the file the code vulnerability was found in. // // This member is required. FileName *string // The file path to the code that a vulnerability was found in. // // This member is required. FilePath *string // The line number of the first line of code that a vulnerability was found in. // // This member is required. StartLine *int32 // contains filtered or unexported fields }
Contains information on where a code vulnerability is located in your Lambda function.
type CodeLine ¶ added in v1.15.0
type CodeLine struct { // The content of a line of code // // This member is required. Content *string // The line number that a section of code is located at. // // This member is required. LineNumber *int32 // contains filtered or unexported fields }
Contains information on the lines of code associated with a code snippet.
type CodeRepositoryAggregation ¶ added in v1.38.0
type CodeRepositoryAggregation struct { // The project names to include in the aggregation results. ProjectNames []StringFilter // The repository provider types to include in the aggregation results. ProviderTypes []StringFilter // The resource IDs to include in the aggregation results. ResourceIds []StringFilter // The value to sort results by in the code repository aggregation. SortBy CodeRepositorySortBy // The order to sort results by (ascending or descending) in the code repository // aggregation. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on code repositories.
type CodeRepositoryAggregationResponse ¶ added in v1.38.0
type CodeRepositoryAggregationResponse struct { // The names of the projects associated with the code repository. // // This member is required. ProjectNames *string // The Amazon Web Services account ID associated with the code repository. AccountId *string // The number of active findings that have an exploit available for the code // repository. ExploitAvailableActiveFindingsCount *int64 // The number of active findings that have a fix available for the code repository. FixAvailableActiveFindingsCount *int64 // The type of repository provider for the code repository. ProviderType *string // The resource ID of the code repository. ResourceId *string // An object that contains the counts of aggregated finding per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding aggregation by code repository.
type CodeRepositoryDetails ¶ added in v1.38.0
type CodeRepositoryDetails struct { // The Amazon Resource Name (ARN) of the code security integration associated with // the repository. IntegrationArn *string // The name of the project in the code repository. ProjectName *string // The type of repository provider (such as GitHub, GitLab, etc.). ProviderType CodeRepositoryProviderType // contains filtered or unexported fields }
Contains details about a code repository associated with a finding.
type CodeRepositoryMetadata ¶ added in v1.38.0
type CodeRepositoryMetadata struct { // The name of the project in the code repository. // // This member is required. ProjectName *string // The type of repository provider (such as GitHub, GitLab, etc.). // // This member is required. ProviderType *string // The visibility setting of the repository (public or private). // // This member is required. ProviderTypeVisibility *string // The Amazon Resource Name (ARN) of the code security integration associated with // the repository. IntegrationArn *string // The ID of the last commit that was scanned in the repository. LastScannedCommitId *string // Information about on-demand scans performed on the repository. OnDemandScan *CodeRepositoryOnDemandScan // The scan configuration settings applied to the code repository. ScanConfiguration *ProjectCodeSecurityScanConfiguration // contains filtered or unexported fields }
Contains metadata information about a code repository that is being scanned by Amazon Inspector.
type CodeRepositoryOnDemandScan ¶ added in v1.38.0
type CodeRepositoryOnDemandScan struct { // The timestamp when the last on-demand scan was performed. LastScanAt *time.Time // The ID of the last commit that was scanned during an on-demand scan. LastScannedCommitId *string // The status of the scan. ScanStatus *ScanStatus // contains filtered or unexported fields }
Contains information about on-demand scans performed on a code repository.
type CodeRepositoryProviderType ¶ added in v1.38.0
type CodeRepositoryProviderType string
const ( CodeRepositoryProviderTypeGithub CodeRepositoryProviderType = "GITHUB" CodeRepositoryProviderTypeGitlabSelfManaged CodeRepositoryProviderType = "GITLAB_SELF_MANAGED" )
Enum values for CodeRepositoryProviderType
func (CodeRepositoryProviderType) Values ¶ added in v1.38.0
func (CodeRepositoryProviderType) Values() []CodeRepositoryProviderType
Values returns all known values for CodeRepositoryProviderType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CodeRepositorySortBy ¶ added in v1.38.0
type CodeRepositorySortBy string
const ( CodeRepositorySortByCritical CodeRepositorySortBy = "CRITICAL" CodeRepositorySortByHigh CodeRepositorySortBy = "HIGH" CodeRepositorySortByAll CodeRepositorySortBy = "ALL" )
Enum values for CodeRepositorySortBy
func (CodeRepositorySortBy) Values ¶ added in v1.38.0
func (CodeRepositorySortBy) Values() []CodeRepositorySortBy
Values returns all known values for CodeRepositorySortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CodeScanStatus ¶ added in v1.38.0
type CodeScanStatus string
const ( CodeScanStatusInProgress CodeScanStatus = "IN_PROGRESS" CodeScanStatusSuccessful CodeScanStatus = "SUCCESSFUL" CodeScanStatusFailed CodeScanStatus = "FAILED" CodeScanStatusSkipped CodeScanStatus = "SKIPPED" )
Enum values for CodeScanStatus
func (CodeScanStatus) Values ¶ added in v1.38.0
func (CodeScanStatus) Values() []CodeScanStatus
Values returns all known values for CodeScanStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CodeSecurityIntegrationSummary ¶ added in v1.38.0
type CodeSecurityIntegrationSummary struct { // The timestamp when the code security integration was created. // // This member is required. CreatedOn *time.Time // The Amazon Resource Name (ARN) of the code security integration. // // This member is required. IntegrationArn *string // The timestamp when the code security integration was last updated. // // This member is required. LastUpdateOn *time.Time // The name of the code security integration. // // This member is required. Name *string // The current status of the code security integration. // // This member is required. Status IntegrationStatus // The reason for the current status of the code security integration. // // This member is required. StatusReason *string // The type of repository provider for the integration. // // This member is required. Type IntegrationType // The tags associated with the code security integration. Tags map[string]string // contains filtered or unexported fields }
A summary of information about a code security integration.
type CodeSecurityResource ¶ added in v1.38.0
type CodeSecurityResource interface {
// contains filtered or unexported methods
}
Identifies a specific resource in a code repository that will be scanned.
The following types satisfy this interface:
CodeSecurityResourceMemberProjectId
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.CodeSecurityResource // type switches can be used to check the union value switch v := union.(type) { case *types.CodeSecurityResourceMemberProjectId: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type CodeSecurityResourceMemberProjectId ¶ added in v1.38.0
type CodeSecurityResourceMemberProjectId struct { Value string // contains filtered or unexported fields }
The unique identifier of the project in the code repository.
type CodeSecurityScanConfiguration ¶ added in v1.38.0
type CodeSecurityScanConfiguration struct { // The categories of security rules to be applied during the scan. // // This member is required. RuleSetCategories []RuleSetCategory // Configuration settings for continuous integration scans that run automatically // when code changes are made. ContinuousIntegrationScanConfiguration *ContinuousIntegrationScanConfiguration // Configuration settings for periodic scans that run on a scheduled basis. PeriodicScanConfiguration *PeriodicScanConfiguration // contains filtered or unexported fields }
Contains the configuration settings for code security scans.
type CodeSecurityScanConfigurationAssociationSummary ¶ added in v1.38.0
type CodeSecurityScanConfigurationAssociationSummary struct { // Identifies a specific resource in a code repository that will be scanned. Resource CodeSecurityResource // contains filtered or unexported fields }
A summary of an association between a code repository and a scan configuration.
type CodeSecurityScanConfigurationSummary ¶ added in v1.38.0
type CodeSecurityScanConfigurationSummary struct { // The name of the scan configuration. // // This member is required. Name *string // The Amazon Web Services account ID that owns the scan configuration. // // This member is required. OwnerAccountId *string // The categories of security rules applied during the scan. // // This member is required. RuleSetCategories []RuleSetCategory // The Amazon Resource Name (ARN) of the scan configuration. // // This member is required. ScanConfigurationArn *string // The repository events that trigger continuous integration scans. ContinuousIntegrationScanSupportedEvents []ContinuousIntegrationScanEvent // The schedule expression for periodic scans, in cron format. FrequencyExpression *string // The frequency at which periodic scans are performed. PeriodicScanFrequency PeriodicScanFrequency // The scope settings that define which repositories will be scanned. If the // ScopeSetting parameter is ALL the scan configuration applies to all existing // and future projects imported into Amazon Inspector. ScopeSettings *ScopeSettings // The tags associated with the scan configuration. Tags map[string]string // contains filtered or unexported fields }
A summary of information about a code security scan configuration.
type CodeSnippetError ¶ added in v1.15.0
type CodeSnippetError struct { // The error code for the error that prevented a code snippet from being retrieved. // // This member is required. ErrorCode CodeSnippetErrorCode // The error message received when Amazon Inspector failed to retrieve a code // snippet. // // This member is required. ErrorMessage *string // The ARN of the finding that a code snippet couldn't be retrieved for. // // This member is required. FindingArn *string // contains filtered or unexported fields }
Contains information about any errors encountered while trying to retrieve a code snippet.
type CodeSnippetErrorCode ¶ added in v1.15.0
type CodeSnippetErrorCode string
const ( CodeSnippetErrorCodeInternalError CodeSnippetErrorCode = "INTERNAL_ERROR" CodeSnippetErrorCodeAccessDenied CodeSnippetErrorCode = "ACCESS_DENIED" CodeSnippetErrorCodeCodeSnippetNotFound CodeSnippetErrorCode = "CODE_SNIPPET_NOT_FOUND" CodeSnippetErrorCodeInvalidInput CodeSnippetErrorCode = "INVALID_INPUT" )
Enum values for CodeSnippetErrorCode
func (CodeSnippetErrorCode) Values ¶ added in v1.15.0
func (CodeSnippetErrorCode) Values() []CodeSnippetErrorCode
Values returns all known values for CodeSnippetErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CodeSnippetResult ¶ added in v1.15.0
type CodeSnippetResult struct { // Contains information on the retrieved code snippet. CodeSnippet []CodeLine // The line number of the last line of a code snippet. EndLine *int32 // The ARN of a finding that the code snippet is associated with. FindingArn *string // The line number of the first line of a code snippet. StartLine *int32 // Details of a suggested code fix. SuggestedFixes []SuggestedFix // contains filtered or unexported fields }
Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability finding.
type CodeVulnerabilityDetails ¶ added in v1.15.0
type CodeVulnerabilityDetails struct { // The Common Weakness Enumeration (CWE) item associated with the detected // vulnerability. // // This member is required. Cwes []string // The ID for the Amazon CodeGuru detector associated with the finding. For more // information on detectors see [Amazon CodeGuru Detector Library]. // // [Amazon CodeGuru Detector Library]: https://docs.aws.amazon.com/codeguru/detector-library // // This member is required. DetectorId *string // The name of the detector used to identify the code vulnerability. For more // information on detectors see [CodeGuru Detector Library]. // // [CodeGuru Detector Library]: https://docs.aws.amazon.com/codeguru/detector-library // // This member is required. DetectorName *string // Contains information on where the code vulnerability is located in your code. // // This member is required. FilePath *CodeFilePath // The detector tag associated with the vulnerability. Detector tags group related // vulnerabilities by common themes or tactics. For a list of available tags by // programming language, see [Java tags], or [Python tags]. // // [Python tags]: https://docs.aws.amazon.com/codeguru/detector-library/python/tags/ // [Java tags]: https://docs.aws.amazon.com/codeguru/detector-library/java/tags/ DetectorTags []string // A URL containing supporting documentation about the code vulnerability detected. ReferenceUrls []string // The identifier for a rule that was used to detect the code vulnerability. RuleId *string // The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability // was detected in. SourceLambdaLayerArn *string // contains filtered or unexported fields }
Contains information on the code vulnerability identified in your Lambda function.
type ComputePlatform ¶ added in v1.21.0
type ComputePlatform struct { // The compute platform product. Product *string // The compute platform vendor. Vendor *string // The compute platform version. Version *string // contains filtered or unexported fields }
A compute platform.
type ConfigurationLevel ¶ added in v1.38.0
type ConfigurationLevel string
const ( ConfigurationLevelOrganization ConfigurationLevel = "ORGANIZATION" ConfigurationLevelAccount ConfigurationLevel = "ACCOUNT" )
Enum values for ConfigurationLevel
func (ConfigurationLevel) Values ¶ added in v1.38.0
func (ConfigurationLevel) Values() []ConfigurationLevel
Values returns all known values for ConfigurationLevel. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ConflictException ¶
type ConflictException struct { Message *string ErrorCodeOverride *string ResourceId *string ResourceType *string // contains filtered or unexported fields }
A conflict occurred. This exception occurs when the same resource is being modified by concurrent requests.
func (*ConflictException) Error ¶
func (e *ConflictException) Error() string
func (*ConflictException) ErrorCode ¶
func (e *ConflictException) ErrorCode() string
func (*ConflictException) ErrorFault ¶
func (e *ConflictException) ErrorFault() smithy.ErrorFault
func (*ConflictException) ErrorMessage ¶
func (e *ConflictException) ErrorMessage() string
type ContinuousIntegrationScanConfiguration ¶ added in v1.38.0
type ContinuousIntegrationScanConfiguration struct { // The repository events that trigger continuous integration scans, such as pull // requests or commits. // // This member is required. SupportedEvents []ContinuousIntegrationScanEvent // contains filtered or unexported fields }
Configuration settings for continuous integration scans that run automatically when code changes are made.
type ContinuousIntegrationScanEvent ¶ added in v1.38.0
type ContinuousIntegrationScanEvent string
const ( ContinuousIntegrationScanEventPullRequest ContinuousIntegrationScanEvent = "PULL_REQUEST" ContinuousIntegrationScanEventPush ContinuousIntegrationScanEvent = "PUSH" )
Enum values for ContinuousIntegrationScanEvent
func (ContinuousIntegrationScanEvent) Values ¶ added in v1.38.0
func (ContinuousIntegrationScanEvent) Values() []ContinuousIntegrationScanEvent
Values returns all known values for ContinuousIntegrationScanEvent. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Counts ¶
type Counts struct { // The number of resources. Count int64 // The key associated with this group GroupKey GroupKey // contains filtered or unexported fields }
a structure that contains information on the count of resources within a group.
type CoverageDateFilter ¶ added in v1.14.0
type CoverageDateFilter struct { // A timestamp representing the end of the time period to filter results by. EndInclusive *time.Time // A timestamp representing the start of the time period to filter results by. StartInclusive *time.Time // contains filtered or unexported fields }
Contains details of a coverage date filter.
type CoverageFilterCriteria ¶
type CoverageFilterCriteria struct { // An array of Amazon Web Services account IDs to return coverage statistics for. AccountId []CoverageStringFilter // Filter criteria for code repositories based on project name. CodeRepositoryProjectName []CoverageStringFilter // Filter criteria for code repositories based on provider type (such as GitHub, // GitLab, etc.). CodeRepositoryProviderType []CoverageStringFilter // Filter criteria for code repositories based on visibility setting (public or // private). CodeRepositoryProviderTypeVisibility []CoverageStringFilter // The Amazon EC2 instance tags to filter on. Ec2InstanceTags []CoverageMapFilter // The number of Amazon ECR images in use. EcrImageInUseCount []CoverageNumberFilter // The Amazon ECR image that was last in use. EcrImageLastInUseAt []CoverageDateFilter // The Amazon ECR image tags to filter on. EcrImageTags []CoverageStringFilter // The Amazon ECR repository name to filter on. EcrRepositoryName []CoverageStringFilter // The date an image was last pulled at. ImagePulledAt []CoverageDateFilter // Returns coverage statistics for Amazon Web Services Lambda functions filtered // by function names. LambdaFunctionName []CoverageStringFilter // Returns coverage statistics for Amazon Web Services Lambda functions filtered // by runtime. LambdaFunctionRuntime []CoverageStringFilter // Returns coverage statistics for Amazon Web Services Lambda functions filtered // by tag. LambdaFunctionTags []CoverageMapFilter // Filters Amazon Web Services resources based on whether Amazon Inspector has // checked them for vulnerabilities within the specified time range. LastScannedAt []CoverageDateFilter // Filter criteria for code repositories based on the ID of the last scanned // commit. LastScannedCommitId []CoverageStringFilter // An array of Amazon Web Services resource IDs to return coverage statistics for. ResourceId []CoverageStringFilter // An array of Amazon Web Services resource types to return coverage statistics // for. The values can be AWS_EC2_INSTANCE , AWS_LAMBDA_FUNCTION , // AWS_ECR_CONTAINER_IMAGE , AWS_ECR_REPOSITORY or AWS_ACCOUNT . ResourceType []CoverageStringFilter // The filter to search for Amazon EC2 instance coverage by scan mode. Valid // values are EC2_SSM_AGENT_BASED and EC2_AGENTLESS . ScanMode []CoverageStringFilter // The scan status code to filter on. Valid values are: ValidationException , // InternalServerException , ResourceNotFoundException , BadRequestException , and // ThrottlingException . ScanStatusCode []CoverageStringFilter // The scan status reason to filter on. ScanStatusReason []CoverageStringFilter // An array of Amazon Inspector scan types to return coverage statistics for. ScanType []CoverageStringFilter // contains filtered or unexported fields }
A structure that identifies filter criteria for GetCoverageStatistics .
type CoverageMapComparison ¶
type CoverageMapComparison string
const (
CoverageMapComparisonEquals CoverageMapComparison = "EQUALS"
)
Enum values for CoverageMapComparison
func (CoverageMapComparison) Values ¶
func (CoverageMapComparison) Values() []CoverageMapComparison
Values returns all known values for CoverageMapComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CoverageMapFilter ¶
type CoverageMapFilter struct { // The operator to compare coverage on. // // This member is required. Comparison CoverageMapComparison // The tag key associated with the coverage map filter. // // This member is required. Key *string // The tag value associated with the coverage map filter. Value *string // contains filtered or unexported fields }
Contains details of a coverage map filter.
type CoverageNumberFilter ¶ added in v1.37.0
type CoverageNumberFilter struct { // The lower inclusive for the coverage number. LowerInclusive *int64 // The upper inclusive for the coverage number.> UpperInclusive *int64 // contains filtered or unexported fields }
The coverage number to be used in the filter.
type CoverageResourceType ¶
type CoverageResourceType string
const ( CoverageResourceTypeAwsEc2Instance CoverageResourceType = "AWS_EC2_INSTANCE" CoverageResourceTypeAwsEcrContainerImage CoverageResourceType = "AWS_ECR_CONTAINER_IMAGE" CoverageResourceTypeAwsEcrRepository CoverageResourceType = "AWS_ECR_REPOSITORY" CoverageResourceTypeAwsLambdaFunction CoverageResourceType = "AWS_LAMBDA_FUNCTION" CoverageResourceTypeCodeRepository CoverageResourceType = "CODE_REPOSITORY" )
Enum values for CoverageResourceType
func (CoverageResourceType) Values ¶
func (CoverageResourceType) Values() []CoverageResourceType
Values returns all known values for CoverageResourceType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CoverageStringComparison ¶
type CoverageStringComparison string
const ( CoverageStringComparisonEquals CoverageStringComparison = "EQUALS" CoverageStringComparisonNotEquals CoverageStringComparison = "NOT_EQUALS" )
Enum values for CoverageStringComparison
func (CoverageStringComparison) Values ¶
func (CoverageStringComparison) Values() []CoverageStringComparison
Values returns all known values for CoverageStringComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type CoverageStringFilter ¶
type CoverageStringFilter struct { // The operator to compare strings on. // // This member is required. Comparison CoverageStringComparison // The value to compare strings on. // // This member is required. Value *string // contains filtered or unexported fields }
Contains details of a coverage string filter.
type CoveredResource ¶
type CoveredResource struct { // The Amazon Web Services account ID of the covered resource. // // This member is required. AccountId *string // The ID of the covered resource. // // This member is required. ResourceId *string // The type of the covered resource. // // This member is required. ResourceType CoverageResourceType // The Amazon Inspector scan type covering the resource. // // This member is required. ScanType ScanType // The date and time the resource was last checked for vulnerabilities. LastScannedAt *time.Time // An object that contains details about the metadata. ResourceMetadata *ResourceScanMetadata // The scan method that is applied to the instance. ScanMode ScanMode // The status of the scan covering the resource. ScanStatus *ScanStatus // contains filtered or unexported fields }
An object that contains details about a resource covered by Amazon Inspector.
type CreateCisTargets ¶ added in v1.21.0
type CreateCisTargets struct { // The CIS target account ids. // // This member is required. AccountIds []string // The CIS target resource tags. // // This member is required. TargetResourceTags map[string][]string // contains filtered or unexported fields }
Creates CIS targets.
type CreateGitLabSelfManagedIntegrationDetail ¶ added in v1.38.0
type CreateGitLabSelfManagedIntegrationDetail struct { // The personal access token used to authenticate with the self-managed GitLab // instance. // // This member is required. AccessToken *string // The URL of the self-managed GitLab instance. // // This member is required. InstanceUrl *string // contains filtered or unexported fields }
Contains details required to create an integration with a self-managed GitLab instance.
type CreateIntegrationDetail ¶ added in v1.38.0
type CreateIntegrationDetail interface {
// contains filtered or unexported methods
}
Contains details required to create a code security integration with a specific repository provider.
The following types satisfy this interface:
CreateIntegrationDetailMemberGitlabSelfManaged
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.CreateIntegrationDetail // type switches can be used to check the union value switch v := union.(type) { case *types.CreateIntegrationDetailMemberGitlabSelfManaged: _ = v.Value // Value is types.CreateGitLabSelfManagedIntegrationDetail case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type CreateIntegrationDetailMemberGitlabSelfManaged ¶ added in v1.38.0
type CreateIntegrationDetailMemberGitlabSelfManaged struct { Value CreateGitLabSelfManagedIntegrationDetail // contains filtered or unexported fields }
Details specific to creating an integration with a self-managed GitLab instance.
type Currency ¶
type Currency string
const (
CurrencyUsd Currency = "USD"
)
Enum values for Currency
type Cvss2 ¶ added in v1.13.0
type Cvss2 struct { // The CVSS v2 base score for the vulnerability. BaseScore float64 // The scoring vector associated with the CVSS v2 score. ScoringVector *string // contains filtered or unexported fields }
The Common Vulnerability Scoring System (CVSS) version 2 details for the vulnerability.
type Cvss3 ¶ added in v1.13.0
type Cvss3 struct { // The CVSS v3 base score for the vulnerability. BaseScore float64 // The scoring vector associated with the CVSS v3 score. ScoringVector *string // contains filtered or unexported fields }
The Common Vulnerability Scoring System (CVSS) version 3 details for the vulnerability.
type Cvss4 ¶ added in v1.43.0
type Cvss4 struct { // The base CVSS v4 score for the vulnerability finding, which rates the severity // of the vulnerability on a scale from 0 to 10. BaseScore float64 // The CVSS v4 scoring vector, which contains the metrics and measurements that // were used to calculate the base score. ScoringVector *string // contains filtered or unexported fields }
The Common Vulnerability Scoring System (CVSS) version 4 details for the vulnerability.
type CvssScore ¶
type CvssScore struct { // The base CVSS score used for the finding. // // This member is required. BaseScore *float64 // The vector string of the CVSS score. // // This member is required. ScoringVector *string // The source of the CVSS score. // // This member is required. Source *string // The version of CVSS used for the score. // // This member is required. Version *string // contains filtered or unexported fields }
The CVSS score for a finding.
type CvssScoreAdjustment ¶
type CvssScoreAdjustment struct { // The metric used to adjust the CVSS score. // // This member is required. Metric *string // The reason the CVSS score has been adjustment. // // This member is required. Reason *string // contains filtered or unexported fields }
Details on adjustments Amazon Inspector made to the CVSS score for a finding.
type CvssScoreDetails ¶
type CvssScoreDetails struct { // The CVSS score. // // This member is required. Score *float64 // The source for the CVSS score. // // This member is required. ScoreSource *string // The vector for the CVSS score. // // This member is required. ScoringVector *string // The CVSS version used in scoring. // // This member is required. Version *string // An object that contains details about adjustment Amazon Inspector made to the // CVSS score. Adjustments []CvssScoreAdjustment // The source of the CVSS data. CvssSource *string // contains filtered or unexported fields }
Information about the CVSS score.
type DailySchedule ¶ added in v1.21.0
type DailySchedule struct { // The schedule start time. // // This member is required. StartTime *Time // contains filtered or unexported fields }
A daily schedule.
type DateFilter ¶
type DateFilter struct { // A timestamp representing the end of the time period filtered on. EndInclusive *time.Time // A timestamp representing the start of the time period filtered on. StartInclusive *time.Time // contains filtered or unexported fields }
Contains details on the time range used to filter findings.
type Day ¶ added in v1.21.0
type Day string
type DelegatedAdmin ¶
type DelegatedAdmin struct { // The Amazon Web Services account ID of the Amazon Inspector delegated // administrator for your organization. AccountId *string // The status of the Amazon Inspector delegated administrator. RelationshipStatus RelationshipStatus // contains filtered or unexported fields }
Details of the Amazon Inspector delegated administrator for your organization.
type DelegatedAdminAccount ¶
type DelegatedAdminAccount struct { // The Amazon Web Services account ID of the Amazon Inspector delegated // administrator for your organization. AccountId *string // The status of the Amazon Inspector delegated administrator. Status DelegatedAdminStatus // contains filtered or unexported fields }
Details of the Amazon Inspector delegated administrator for your organization.
type DelegatedAdminStatus ¶
type DelegatedAdminStatus string
const ( DelegatedAdminStatusEnabled DelegatedAdminStatus = "ENABLED" DelegatedAdminStatusDisableInProgress DelegatedAdminStatus = "DISABLE_IN_PROGRESS" )
Enum values for DelegatedAdminStatus
func (DelegatedAdminStatus) Values ¶
func (DelegatedAdminStatus) Values() []DelegatedAdminStatus
Values returns all known values for DelegatedAdminStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Destination ¶
type Destination struct { // The name of the Amazon S3 bucket to export findings to. // // This member is required. BucketName *string // The ARN of the KMS key used to encrypt data when exporting findings. // // This member is required. KmsKeyArn *string // The prefix that the findings will be written under. KeyPrefix *string // contains filtered or unexported fields }
Contains details of the Amazon S3 bucket and KMS key used to export findings.
type DisassociateConfigurationRequest ¶ added in v1.38.0
type DisassociateConfigurationRequest struct { // Identifies a specific resource in a code repository that will be scanned. // // This member is required. Resource CodeSecurityResource // The Amazon Resource Name (ARN) of the scan configuration to disassociate from a // code repository. // // This member is required. ScanConfigurationArn *string // contains filtered or unexported fields }
Contains details about a request to disassociate a code repository from a scan configuration.
type Ec2Configuration ¶ added in v1.25.0
type Ec2Configuration struct { // The scan method that is applied to the instance. // // This member is required. ScanMode Ec2ScanMode // contains filtered or unexported fields }
Enables agent-based scanning, which scans instances that are not managed by SSM.
type Ec2ConfigurationState ¶ added in v1.25.0
type Ec2ConfigurationState struct { // An object that contains details about the state of the Amazon EC2 scan mode. ScanModeState *Ec2ScanModeState // contains filtered or unexported fields }
Details about the state of the EC2 scan configuration for your environment.
type Ec2DeepInspectionStatus ¶ added in v1.12.0
type Ec2DeepInspectionStatus string
const ( Ec2DeepInspectionStatusActivated Ec2DeepInspectionStatus = "ACTIVATED" Ec2DeepInspectionStatusDeactivated Ec2DeepInspectionStatus = "DEACTIVATED" Ec2DeepInspectionStatusPending Ec2DeepInspectionStatus = "PENDING" Ec2DeepInspectionStatusFailed Ec2DeepInspectionStatus = "FAILED" )
Enum values for Ec2DeepInspectionStatus
func (Ec2DeepInspectionStatus) Values ¶ added in v1.12.0
func (Ec2DeepInspectionStatus) Values() []Ec2DeepInspectionStatus
Values returns all known values for Ec2DeepInspectionStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Ec2InstanceAggregation ¶
type Ec2InstanceAggregation struct { // The AMI IDs associated with the Amazon EC2 instances to aggregate findings for. Amis []StringFilter // The Amazon EC2 instance IDs to aggregate findings for. InstanceIds []StringFilter // The Amazon EC2 instance tags to aggregate findings for. InstanceTags []MapFilter // The operating system types to aggregate findings for. Valid values must be // uppercase and underscore separated, examples are ORACLE_LINUX_7 and // ALPINE_LINUX_3_8 . OperatingSystems []StringFilter // The value to sort results by. SortBy Ec2InstanceSortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on Amazon EC2 instances.
type Ec2InstanceAggregationResponse ¶
type Ec2InstanceAggregationResponse struct { // The Amazon EC2 instance ID. // // This member is required. InstanceId *string // The Amazon Web Services account for the Amazon EC2 instance. AccountId *string // The Amazon Machine Image (AMI) of the Amazon EC2 instance. Ami *string // The tags attached to the instance. InstanceTags map[string]string // The number of network findings for the Amazon EC2 instance. NetworkFindings *int64 // The operating system of the Amazon EC2 instance. OperatingSystem *string // An object that contains the count of matched findings per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding aggregation by Amazon EC2 instance.
type Ec2InstanceSortBy ¶
type Ec2InstanceSortBy string
const ( Ec2InstanceSortByNetworkFindings Ec2InstanceSortBy = "NETWORK_FINDINGS" Ec2InstanceSortByCritical Ec2InstanceSortBy = "CRITICAL" Ec2InstanceSortByHigh Ec2InstanceSortBy = "HIGH" Ec2InstanceSortByAll Ec2InstanceSortBy = "ALL" )
Enum values for Ec2InstanceSortBy
func (Ec2InstanceSortBy) Values ¶
func (Ec2InstanceSortBy) Values() []Ec2InstanceSortBy
Values returns all known values for Ec2InstanceSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Ec2Metadata ¶
type Ec2Metadata struct { // The ID of the Amazon Machine Image (AMI) used to launch the instance. AmiId *string // The platform of the instance. Platform Ec2Platform // The tags attached to the instance. Tags map[string]string // contains filtered or unexported fields }
Meta data details of an Amazon EC2 instance.
type Ec2Platform ¶
type Ec2Platform string
const ( Ec2PlatformWindows Ec2Platform = "WINDOWS" Ec2PlatformLinux Ec2Platform = "LINUX" Ec2PlatformUnknown Ec2Platform = "UNKNOWN" Ec2PlatformMacos Ec2Platform = "MACOS" )
Enum values for Ec2Platform
func (Ec2Platform) Values ¶
func (Ec2Platform) Values() []Ec2Platform
Values returns all known values for Ec2Platform. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Ec2ScanMode ¶ added in v1.25.0
type Ec2ScanMode string
const ( Ec2ScanModeEc2SsmAgentBased Ec2ScanMode = "EC2_SSM_AGENT_BASED" Ec2ScanModeEc2Hybrid Ec2ScanMode = "EC2_HYBRID" )
Enum values for Ec2ScanMode
func (Ec2ScanMode) Values ¶ added in v1.25.0
func (Ec2ScanMode) Values() []Ec2ScanMode
Values returns all known values for Ec2ScanMode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Ec2ScanModeState ¶ added in v1.25.0
type Ec2ScanModeState struct { // The scan method that is applied to the instance. ScanMode Ec2ScanMode // The status of the Amazon EC2 scan mode setting. ScanModeStatus Ec2ScanModeStatus // contains filtered or unexported fields }
The state of your Amazon EC2 scan mode configuration.
type Ec2ScanModeStatus ¶ added in v1.25.0
type Ec2ScanModeStatus string
const ( Ec2ScanModeStatusSuccess Ec2ScanModeStatus = "SUCCESS" Ec2ScanModeStatusPending Ec2ScanModeStatus = "PENDING" )
Enum values for Ec2ScanModeStatus
func (Ec2ScanModeStatus) Values ¶ added in v1.25.0
func (Ec2ScanModeStatus) Values() []Ec2ScanModeStatus
Values returns all known values for Ec2ScanModeStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type EcrConfiguration ¶ added in v1.7.0
type EcrConfiguration struct { // The rescan duration configured for image push date. // // This member is required. RescanDuration EcrRescanDuration // The rescan duration configured for image pull date. PullDateRescanDuration EcrPullDateRescanDuration // The pull date for the re-scan mode. PullDateRescanMode EcrPullDateRescanMode // contains filtered or unexported fields }
Details about the ECR automated re-scan duration setting for your environment.
type EcrConfigurationState ¶ added in v1.7.0
type EcrConfigurationState struct { // An object that contains details about the state of the ECR re-scan settings. RescanDurationState *EcrRescanDurationState // contains filtered or unexported fields }
Details about the state of the ECR scans for your environment.
type EcrContainerImageMetadata ¶
type EcrContainerImageMetadata struct { // The date an image was last pulled at. ImagePulledAt *time.Time // The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR // container image is in use. InUseCount *int64 // The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS // pod. LastInUseAt *time.Time // Tags associated with the Amazon ECR image metadata. Tags []string // contains filtered or unexported fields }
Information on the Amazon ECR image metadata associated with a finding.
type EcrPullDateRescanDuration ¶ added in v1.22.0
type EcrPullDateRescanDuration string
const ( EcrPullDateRescanDurationDays14 EcrPullDateRescanDuration = "DAYS_14" EcrPullDateRescanDurationDays30 EcrPullDateRescanDuration = "DAYS_30" EcrPullDateRescanDurationDays60 EcrPullDateRescanDuration = "DAYS_60" EcrPullDateRescanDurationDays90 EcrPullDateRescanDuration = "DAYS_90" EcrPullDateRescanDurationDays180 EcrPullDateRescanDuration = "DAYS_180" )
Enum values for EcrPullDateRescanDuration
func (EcrPullDateRescanDuration) Values ¶ added in v1.22.0
func (EcrPullDateRescanDuration) Values() []EcrPullDateRescanDuration
Values returns all known values for EcrPullDateRescanDuration. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type EcrPullDateRescanMode ¶ added in v1.37.0
type EcrPullDateRescanMode string
const ( EcrPullDateRescanModeLastPullDate EcrPullDateRescanMode = "LAST_PULL_DATE" EcrPullDateRescanModeLastInUseAt EcrPullDateRescanMode = "LAST_IN_USE_AT" )
Enum values for EcrPullDateRescanMode
func (EcrPullDateRescanMode) Values ¶ added in v1.37.0
func (EcrPullDateRescanMode) Values() []EcrPullDateRescanMode
Values returns all known values for EcrPullDateRescanMode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type EcrRepositoryMetadata ¶
type EcrRepositoryMetadata struct { // The name of the Amazon ECR repository. Name *string // The frequency of scans. ScanFrequency EcrScanFrequency // contains filtered or unexported fields }
Information on the Amazon ECR repository metadata associated with a finding.
type EcrRescanDuration ¶ added in v1.7.0
type EcrRescanDuration string
const ( EcrRescanDurationLifetime EcrRescanDuration = "LIFETIME" EcrRescanDurationDays30 EcrRescanDuration = "DAYS_30" EcrRescanDurationDays180 EcrRescanDuration = "DAYS_180" EcrRescanDurationDays14 EcrRescanDuration = "DAYS_14" EcrRescanDurationDays60 EcrRescanDuration = "DAYS_60" EcrRescanDurationDays90 EcrRescanDuration = "DAYS_90" )
Enum values for EcrRescanDuration
func (EcrRescanDuration) Values ¶ added in v1.7.0
func (EcrRescanDuration) Values() []EcrRescanDuration
Values returns all known values for EcrRescanDuration. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type EcrRescanDurationState ¶ added in v1.7.0
type EcrRescanDurationState struct { // The rescan duration configured for image pull date. PullDateRescanDuration EcrPullDateRescanDuration // The pull date for the re-scan mode. PullDateRescanMode EcrPullDateRescanMode // The rescan duration configured for image push date. RescanDuration EcrRescanDuration // The status of changes to the ECR automated re-scan duration. Status EcrRescanDurationStatus // A timestamp representing when the last time the ECR scan duration setting was // changed. UpdatedAt *time.Time // contains filtered or unexported fields }
Details about the state of your ECR re-scan duration settings. The ECR re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the duration configured for image pull date, and the duration configured for image pull date, the monitoring state of that image becomes inactive and all associated findings are scheduled for closure.
type EcrRescanDurationStatus ¶ added in v1.7.0
type EcrRescanDurationStatus string
const ( EcrRescanDurationStatusSuccess EcrRescanDurationStatus = "SUCCESS" EcrRescanDurationStatusPending EcrRescanDurationStatus = "PENDING" EcrRescanDurationStatusFailed EcrRescanDurationStatus = "FAILED" )
Enum values for EcrRescanDurationStatus
func (EcrRescanDurationStatus) Values ¶ added in v1.7.0
func (EcrRescanDurationStatus) Values() []EcrRescanDurationStatus
Values returns all known values for EcrRescanDurationStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type EcrScanFrequency ¶
type EcrScanFrequency string
const ( EcrScanFrequencyManual EcrScanFrequency = "MANUAL" EcrScanFrequencyScanOnPush EcrScanFrequency = "SCAN_ON_PUSH" EcrScanFrequencyContinuousScan EcrScanFrequency = "CONTINUOUS_SCAN" )
Enum values for EcrScanFrequency
func (EcrScanFrequency) Values ¶
func (EcrScanFrequency) Values() []EcrScanFrequency
Values returns all known values for EcrScanFrequency. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Epss ¶ added in v1.13.0
type Epss struct { // The Exploit Prediction Scoring System (EPSS) score. Score float64 // contains filtered or unexported fields }
Details about the Exploit Prediction Scoring System (EPSS) score.
type EpssDetails ¶ added in v1.15.0
type EpssDetails struct { // The EPSS score. Score float64 // contains filtered or unexported fields }
Details about the Exploit Prediction Scoring System (EPSS) score for a finding.
type ErrorCode ¶
type ErrorCode string
const ( ErrorCodeAlreadyEnabled ErrorCode = "ALREADY_ENABLED" ErrorCodeEnableInProgress ErrorCode = "ENABLE_IN_PROGRESS" ErrorCodeDisableInProgress ErrorCode = "DISABLE_IN_PROGRESS" ErrorCodeSuspendInProgress ErrorCode = "SUSPEND_IN_PROGRESS" ErrorCodeResourceNotFound ErrorCode = "RESOURCE_NOT_FOUND" ErrorCodeAccessDenied ErrorCode = "ACCESS_DENIED" ErrorCodeInternalError ErrorCode = "INTERNAL_ERROR" ErrorCodeSsmThrottled ErrorCode = "SSM_THROTTLED" ErrorCodeEventbridgeThrottled ErrorCode = "EVENTBRIDGE_THROTTLED" ErrorCodeResourceScanNotDisabled ErrorCode = "RESOURCE_SCAN_NOT_DISABLED" ErrorCodeDisassociateAllMembers ErrorCode = "DISASSOCIATE_ALL_MEMBERS" ErrorCodeAccountIsIsolated ErrorCode = "ACCOUNT_IS_ISOLATED" ErrorCodeEc2SsmResourceDataSyncLimitExceeded ErrorCode = "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED" ErrorCodeEc2SsmAssociationVersionLimitExceeded ErrorCode = "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED" )
Enum values for ErrorCode
type Evidence ¶ added in v1.16.0
type Evidence struct { // The evidence details. EvidenceDetail *string // The evidence rule. EvidenceRule *string // The evidence severity. Severity *string // contains filtered or unexported fields }
Details of the evidence for a vulnerability identified in a finding.
type ExploitAvailable ¶ added in v1.9.0
type ExploitAvailable string
const ( ExploitAvailableYes ExploitAvailable = "YES" ExploitAvailableNo ExploitAvailable = "NO" )
Enum values for ExploitAvailable
func (ExploitAvailable) Values ¶ added in v1.9.0
func (ExploitAvailable) Values() []ExploitAvailable
Values returns all known values for ExploitAvailable. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ExploitObserved ¶ added in v1.13.0
type ExploitObserved struct { // The date an time when the exploit was first seen. FirstSeen *time.Time // The date an time when the exploit was last seen. LastSeen *time.Time // contains filtered or unexported fields }
Contains information on when this exploit was observed.
type ExploitabilityDetails ¶ added in v1.9.0
type ExploitabilityDetails struct { // The date and time of the last exploit associated with a finding discovered in // your environment. LastKnownExploitAt *time.Time // contains filtered or unexported fields }
The details of an exploit available for a finding discovered in your environment.
type ExternalReportStatus ¶
type ExternalReportStatus string
const ( ExternalReportStatusSucceeded ExternalReportStatus = "SUCCEEDED" ExternalReportStatusInProgress ExternalReportStatus = "IN_PROGRESS" ExternalReportStatusCancelled ExternalReportStatus = "CANCELLED" ExternalReportStatusFailed ExternalReportStatus = "FAILED" )
Enum values for ExternalReportStatus
func (ExternalReportStatus) Values ¶
func (ExternalReportStatus) Values() []ExternalReportStatus
Values returns all known values for ExternalReportStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FailedAccount ¶
type FailedAccount struct { // The Amazon Web Services account ID. // // This member is required. AccountId *string // The error code explaining why the account failed to enable Amazon Inspector. // // This member is required. ErrorCode ErrorCode // The error message received when the account failed to enable Amazon Inspector. // // This member is required. ErrorMessage *string // An object detailing which resources Amazon Inspector is enabled to scan for the // account. ResourceStatus *ResourceStatus // The status of Amazon Inspector for the account. Status Status // contains filtered or unexported fields }
An object with details on why an account failed to enable Amazon Inspector.
type FailedAssociationResult ¶ added in v1.38.0
type FailedAssociationResult struct { // Identifies a specific resource in a code repository that will be scanned. Resource CodeSecurityResource // The Amazon Resource Name (ARN) of the scan configuration that failed to be // associated or disassociated. ScanConfigurationArn *string // The status code indicating why the association or disassociation failed. StatusCode AssociationResultStatusCode // A message explaining why the association or disassociation failed. StatusMessage *string // contains filtered or unexported fields }
Details about a failed attempt to associate or disassociate a code repository with a scan configuration.
type FailedMemberAccountEc2DeepInspectionStatusState ¶ added in v1.12.0
type FailedMemberAccountEc2DeepInspectionStatusState struct { // The unique identifier for the Amazon Web Services account of the organization // member that failed to activate Amazon Inspector deep inspection. // // This member is required. AccountId *string // The status of EC2 scanning in the account that failed to activate Amazon // Inspector deep inspection. Ec2ScanStatus Status // The error message explaining why the account failed to activate Amazon // Inspector deep inspection. ErrorMessage *string // contains filtered or unexported fields }
An object that contains details about a member account in your organization that failed to activate Amazon Inspector deep inspection.
type Filter ¶
type Filter struct { // The action that is to be applied to the findings that match the filter. // // This member is required. Action FilterAction // The Amazon Resource Number (ARN) associated with this filter. // // This member is required. Arn *string // The date and time this filter was created at. // // This member is required. CreatedAt *time.Time // Details on the filter criteria associated with this filter. // // This member is required. Criteria *FilterCriteria // The name of the filter. // // This member is required. Name *string // The Amazon Web Services account ID of the account that created the filter. // // This member is required. OwnerId *string // The date and time the filter was last updated at. // // This member is required. UpdatedAt *time.Time // A description of the filter. Description *string // The reason for the filter. Reason *string // The tags attached to the filter. Tags map[string]string // contains filtered or unexported fields }
Details about a filter.
type FilterAction ¶
type FilterAction string
const ( FilterActionNone FilterAction = "NONE" FilterActionSuppress FilterAction = "SUPPRESS" )
Enum values for FilterAction
func (FilterAction) Values ¶
func (FilterAction) Values() []FilterAction
Values returns all known values for FilterAction. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FilterCriteria ¶
type FilterCriteria struct { // Details of the Amazon Web Services account IDs used to filter findings. AwsAccountId []StringFilter // Filter criteria for findings based on the project name in a code repository. CodeRepositoryProjectName []StringFilter // Filter criteria for findings based on the repository provider type (such as // GitHub, GitLab, etc.). CodeRepositoryProviderType []StringFilter // The name of the detector used to identify a code vulnerability in a Lambda // function used to filter findings. CodeVulnerabilityDetectorName []StringFilter // The detector type tag associated with the vulnerability used to filter // findings. Detector tags group related vulnerabilities by common themes or // tactics. For a list of available tags by programming language, see [Java tags], or [Python tags]. // // [Python tags]: https://docs.aws.amazon.com/codeguru/detector-library/python/tags/ // [Java tags]: https://docs.aws.amazon.com/codeguru/detector-library/java/tags/ CodeVulnerabilityDetectorTags []StringFilter // The file path to the file in a Lambda function that contains a code // vulnerability used to filter findings. CodeVulnerabilityFilePath []StringFilter // Details of the component IDs used to filter findings. ComponentId []StringFilter // Details of the component types used to filter findings. ComponentType []StringFilter // Details of the Amazon EC2 instance image IDs used to filter findings. Ec2InstanceImageId []StringFilter // Details of the Amazon EC2 instance subnet IDs used to filter findings. Ec2InstanceSubnetId []StringFilter // Details of the Amazon EC2 instance VPC IDs used to filter findings. Ec2InstanceVpcId []StringFilter // Details of the Amazon ECR image architecture types used to filter findings. EcrImageArchitecture []StringFilter // Details of the Amazon ECR image hashes used to filter findings. EcrImageHash []StringFilter // Filter criteria indicating when details for an Amazon ECR image include when an // Amazon ECR image is in use. EcrImageInUseCount []NumberFilter // Filter criteria indicating when an Amazon ECR image was last used in an Amazon // ECS cluster task or Amazon EKS cluster pod. EcrImageLastInUseAt []DateFilter // Details on the Amazon ECR image push date and time used to filter findings. EcrImagePushedAt []DateFilter // Details on the Amazon ECR registry used to filter findings. EcrImageRegistry []StringFilter // Details on the name of the Amazon ECR repository used to filter findings. EcrImageRepositoryName []StringFilter // The tags attached to the Amazon ECR container image. EcrImageTags []StringFilter // The EPSS score used to filter findings. EpssScore []NumberFilter // Filters the list of Amazon Web Services Lambda findings by the availability of // exploits. ExploitAvailable []StringFilter // Details on the finding ARNs used to filter findings. FindingArn []StringFilter // Details on the finding status types used to filter findings. FindingStatus []StringFilter // Details on the finding types used to filter findings. FindingType []StringFilter // Details on the date and time a finding was first seen used to filter findings. FirstObservedAt []DateFilter // Details on whether a fix is available through a version update. This value can // be YES , NO , or PARTIAL . A PARTIAL fix means that some, but not all, of the // packages identified in the finding have fixes available through updated // versions. FixAvailable []StringFilter // The Amazon Inspector score to filter on. InspectorScore []NumberFilter // Filters the list of Amazon Web Services Lambda functions by execution role. LambdaFunctionExecutionRoleArn []StringFilter // Filters the list of Amazon Web Services Lambda functions by the date and time // that a user last updated the configuration, in [ISO 8601 format] // // [ISO 8601 format]: https://www.iso.org/iso-8601-date-and-time-format.html LambdaFunctionLastModifiedAt []DateFilter // Filters the list of Amazon Web Services Lambda functions by the function's [layers]. A // Lambda function can have up to five layers. // // [layers]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html LambdaFunctionLayers []StringFilter // Filters the list of Amazon Web Services Lambda functions by the name of the // function. LambdaFunctionName []StringFilter // Filters the list of Amazon Web Services Lambda functions by the runtime // environment for the Lambda function. LambdaFunctionRuntime []StringFilter // Details on the date and time a finding was last seen used to filter findings. LastObservedAt []DateFilter // Details on network protocol used to filter findings. NetworkProtocol []StringFilter // Details on the port ranges used to filter findings. PortRange []PortRangeFilter // Details on the related vulnerabilities used to filter findings. RelatedVulnerabilities []StringFilter // Details on the resource IDs used to filter findings. ResourceId []StringFilter // Details on the resource tags used to filter findings. ResourceTags []MapFilter // Details on the resource types used to filter findings. ResourceType []StringFilter // Details on the severity used to filter findings. Severity []StringFilter // Details on the finding title used to filter findings. Title []StringFilter // Details on the date and time a finding was last updated at used to filter // findings. UpdatedAt []DateFilter // Details on the vendor severity used to filter findings. VendorSeverity []StringFilter // Details on the vulnerability ID used to filter findings. VulnerabilityId []StringFilter // Details on the vulnerability type used to filter findings. VulnerabilitySource []StringFilter // Details on the vulnerable packages used to filter findings. VulnerablePackages []PackageFilter // contains filtered or unexported fields }
Details on the criteria used to define the filter.
type Finding ¶
type Finding struct { // The Amazon Web Services account ID associated with the finding. // // This member is required. AwsAccountId *string // The description of the finding. // // This member is required. Description *string // The Amazon Resource Number (ARN) of the finding. // // This member is required. FindingArn *string // The date and time that the finding was first observed. // // This member is required. FirstObservedAt *time.Time // The date and time the finding was last observed. This timestamp for this field // remains unchanged until a finding is updated. // // This member is required. LastObservedAt *time.Time // An object that contains the details about how to remediate a finding. // // This member is required. Remediation *Remediation // Contains information on the resources involved in a finding. The resource value // determines the valid values for type in your request. For more information, see [Finding types] // in the Amazon Inspector user guide. // // [Finding types]: https://docs.aws.amazon.com/inspector/latest/user/findings-types.html // // This member is required. Resources []Resource // The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type // findings that the vendor has not assigned a severity yet. For more information, // see [Severity levels for findings]in the Amazon Inspector user guide. // // [Severity levels for findings]: https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html // // This member is required. Severity Severity // The status of the finding. // // This member is required. Status FindingStatus // The type of the finding. The type value determines the valid values for resource // in your request. For more information, see [Finding types]in the Amazon Inspector user guide. // // [Finding types]: https://docs.aws.amazon.com/inspector/latest/user/findings-types.html // // This member is required. Type FindingType // Details about the code vulnerability identified in a Lambda function used to // filter findings. CodeVulnerabilityDetails *CodeVulnerabilityDetails // The finding's EPSS score. Epss *EpssDetails // If a finding discovered in your environment has an exploit available. ExploitAvailable ExploitAvailable // The details of an exploit available for a finding discovered in your // environment. ExploitabilityDetails *ExploitabilityDetails // Details on whether a fix is available through a version update. This value can // be YES , NO , or PARTIAL . A PARTIAL fix means that some, but not all, of the // packages identified in the finding have fixes available through updated // versions. FixAvailable FixAvailable // The Amazon Inspector score given to the finding. InspectorScore *float64 // An object that contains details of the Amazon Inspector score. InspectorScoreDetails *InspectorScoreDetails // An object that contains the details of a network reachability finding. NetworkReachabilityDetails *NetworkReachabilityDetails // An object that contains the details of a package vulnerability finding. PackageVulnerabilityDetails *PackageVulnerabilityDetails // The title of the finding. Title *string // The date and time the finding was last updated at. UpdatedAt *time.Time // contains filtered or unexported fields }
Details about an Amazon Inspector finding.
type FindingDetail ¶ added in v1.16.0
type FindingDetail struct { // The Cybersecurity and Infrastructure Security Agency (CISA) details for a // specific vulnerability. CisaData *CisaData // The Common Weakness Enumerations (CWEs) associated with the vulnerability. Cwes []string // The Exploit Prediction Scoring System (EPSS) score of the vulnerability. EpssScore *float64 // Information on the evidence of the vulnerability. Evidences []Evidence // Contains information on when this exploit was observed. ExploitObserved *ExploitObserved // The finding ARN that the vulnerability details are associated with. FindingArn *string // The reference URLs for the vulnerability data. ReferenceUrls []string // The risk score of the vulnerability. RiskScore *int32 // The known malware tools or kits that can exploit the vulnerability. Tools []string // The MITRE adversary tactics, techniques, or procedures (TTPs) associated with // the vulnerability. Ttps []string // contains filtered or unexported fields }
Details of the vulnerability identified in a finding.
type FindingDetailsError ¶ added in v1.16.0
type FindingDetailsError struct { // The error code. // // This member is required. ErrorCode FindingDetailsErrorCode // The error message. // // This member is required. ErrorMessage *string // The finding ARN that returned an error. // // This member is required. FindingArn *string // contains filtered or unexported fields }
Details about an error encountered when trying to return vulnerability data for a finding.
type FindingDetailsErrorCode ¶ added in v1.16.0
type FindingDetailsErrorCode string
const ( FindingDetailsErrorCodeInternalError FindingDetailsErrorCode = "INTERNAL_ERROR" FindingDetailsErrorCodeAccessDenied FindingDetailsErrorCode = "ACCESS_DENIED" FindingDetailsErrorCodeFindingDetailsNotFound FindingDetailsErrorCode = "FINDING_DETAILS_NOT_FOUND" FindingDetailsErrorCodeInvalidInput FindingDetailsErrorCode = "INVALID_INPUT" )
Enum values for FindingDetailsErrorCode
func (FindingDetailsErrorCode) Values ¶ added in v1.16.0
func (FindingDetailsErrorCode) Values() []FindingDetailsErrorCode
Values returns all known values for FindingDetailsErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FindingStatus ¶
type FindingStatus string
const ( FindingStatusActive FindingStatus = "ACTIVE" FindingStatusSuppressed FindingStatus = "SUPPRESSED" FindingStatusClosed FindingStatus = "CLOSED" )
Enum values for FindingStatus
func (FindingStatus) Values ¶
func (FindingStatus) Values() []FindingStatus
Values returns all known values for FindingStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FindingType ¶
type FindingType string
const ( FindingTypeNetworkReachability FindingType = "NETWORK_REACHABILITY" FindingTypePackageVulnerability FindingType = "PACKAGE_VULNERABILITY" FindingTypeCodeVulnerability FindingType = "CODE_VULNERABILITY" )
Enum values for FindingType
func (FindingType) Values ¶
func (FindingType) Values() []FindingType
Values returns all known values for FindingType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FindingTypeAggregation ¶
type FindingTypeAggregation struct { // The finding type to aggregate. FindingType AggregationFindingType // The resource type to aggregate. ResourceType AggregationResourceType // The value to sort results by. SortBy FindingTypeSortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on finding type.
type FindingTypeAggregationResponse ¶
type FindingTypeAggregationResponse struct { // The ID of the Amazon Web Services account associated with the findings. AccountId *string // The number of findings that have an exploit available. ExploitAvailableCount *int64 // Details about the number of fixes. FixAvailableCount *int64 // The value to sort results by. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding type aggregation.
type FindingTypeSortBy ¶
type FindingTypeSortBy string
const ( FindingTypeSortByCritical FindingTypeSortBy = "CRITICAL" FindingTypeSortByHigh FindingTypeSortBy = "HIGH" FindingTypeSortByAll FindingTypeSortBy = "ALL" )
Enum values for FindingTypeSortBy
func (FindingTypeSortBy) Values ¶
func (FindingTypeSortBy) Values() []FindingTypeSortBy
Values returns all known values for FindingTypeSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FixAvailable ¶ added in v1.8.0
type FixAvailable string
const ( FixAvailableYes FixAvailable = "YES" FixAvailableNo FixAvailable = "NO" FixAvailablePartial FixAvailable = "PARTIAL" )
Enum values for FixAvailable
func (FixAvailable) Values ¶ added in v1.8.0
func (FixAvailable) Values() []FixAvailable
Values returns all known values for FixAvailable. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FreeTrialAccountInfo ¶
type FreeTrialAccountInfo struct { // The account associated with the Amazon Inspector free trial information. // // This member is required. AccountId *string // Contains information about the Amazon Inspector free trial for an account. // // This member is required. FreeTrialInfo []FreeTrialInfo // contains filtered or unexported fields }
Information about the Amazon Inspector free trial for an account.
type FreeTrialInfo ¶
type FreeTrialInfo struct { // The date and time that the Amazon Inspector free trail ends for a given account. // // This member is required. End *time.Time // The date and time that the Amazon Inspector free trail started for a given // account. // // This member is required. Start *time.Time // The order to sort results by. // // This member is required. Status FreeTrialStatus // The type of scan covered by the Amazon Inspector free trail. // // This member is required. Type FreeTrialType // contains filtered or unexported fields }
An object that contains information about the Amazon Inspector free trial for an account.
type FreeTrialInfoError ¶
type FreeTrialInfoError struct { // The account associated with the Amazon Inspector free trial information. // // This member is required. AccountId *string // The error code. // // This member is required. Code FreeTrialInfoErrorCode // The error message returned. // // This member is required. Message *string // contains filtered or unexported fields }
Information about an error received while accessing free trail data for an account.
type FreeTrialInfoErrorCode ¶
type FreeTrialInfoErrorCode string
const ( FreeTrialInfoErrorCodeAccessDenied FreeTrialInfoErrorCode = "ACCESS_DENIED" FreeTrialInfoErrorCodeInternalError FreeTrialInfoErrorCode = "INTERNAL_ERROR" )
Enum values for FreeTrialInfoErrorCode
func (FreeTrialInfoErrorCode) Values ¶
func (FreeTrialInfoErrorCode) Values() []FreeTrialInfoErrorCode
Values returns all known values for FreeTrialInfoErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FreeTrialStatus ¶
type FreeTrialStatus string
const ( FreeTrialStatusActive FreeTrialStatus = "ACTIVE" FreeTrialStatusInactive FreeTrialStatus = "INACTIVE" )
Enum values for FreeTrialStatus
func (FreeTrialStatus) Values ¶
func (FreeTrialStatus) Values() []FreeTrialStatus
Values returns all known values for FreeTrialStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type FreeTrialType ¶
type FreeTrialType string
const ( FreeTrialTypeEc2 FreeTrialType = "EC2" FreeTrialTypeEcr FreeTrialType = "ECR" FreeTrialTypeLambda FreeTrialType = "LAMBDA" FreeTrialTypeLambdaCode FreeTrialType = "LAMBDA_CODE" FreeTrialTypeCodeRepository FreeTrialType = "CODE_REPOSITORY" )
Enum values for FreeTrialType
func (FreeTrialType) Values ¶
func (FreeTrialType) Values() []FreeTrialType
Values returns all known values for FreeTrialType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type GroupKey ¶
type GroupKey string
type ImageLayerAggregation ¶
type ImageLayerAggregation struct { // The hashes associated with the layers. LayerHashes []StringFilter // The repository associated with the container image hosting the layers. Repositories []StringFilter // The ID of the container image layer. ResourceIds []StringFilter // The value to sort results by. SortBy ImageLayerSortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on container image layers.
type ImageLayerAggregationResponse ¶
type ImageLayerAggregationResponse struct { // The ID of the Amazon Web Services account that owns the container image hosting // the layer image. // // This member is required. AccountId *string // The layer hash. // // This member is required. LayerHash *string // The repository the layer resides in. // // This member is required. Repository *string // The resource ID of the container image layer. // // This member is required. ResourceId *string // An object that represents the count of matched findings per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding aggregation by image layer.
type ImageLayerSortBy ¶
type ImageLayerSortBy string
const ( ImageLayerSortByCritical ImageLayerSortBy = "CRITICAL" ImageLayerSortByHigh ImageLayerSortBy = "HIGH" ImageLayerSortByAll ImageLayerSortBy = "ALL" )
Enum values for ImageLayerSortBy
func (ImageLayerSortBy) Values ¶
func (ImageLayerSortBy) Values() []ImageLayerSortBy
Values returns all known values for ImageLayerSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type InspectorScoreDetails ¶
type InspectorScoreDetails struct { // An object that contains details about the CVSS score given to a finding. AdjustedCvss *CvssScoreDetails // contains filtered or unexported fields }
Information about the Amazon Inspector score given to a finding.
type IntegrationStatus ¶ added in v1.38.0
type IntegrationStatus string
const ( IntegrationStatusPending IntegrationStatus = "PENDING" IntegrationStatusInProgress IntegrationStatus = "IN_PROGRESS" IntegrationStatusActive IntegrationStatus = "ACTIVE" IntegrationStatusInactive IntegrationStatus = "INACTIVE" IntegrationStatusDisabling IntegrationStatus = "DISABLING" )
Enum values for IntegrationStatus
func (IntegrationStatus) Values ¶ added in v1.38.0
func (IntegrationStatus) Values() []IntegrationStatus
Values returns all known values for IntegrationStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type IntegrationType ¶ added in v1.38.0
type IntegrationType string
const ( IntegrationTypeGitlabSelfManaged IntegrationType = "GITLAB_SELF_MANAGED" IntegrationTypeGithub IntegrationType = "GITHUB" )
Enum values for IntegrationType
func (IntegrationType) Values ¶ added in v1.38.0
func (IntegrationType) Values() []IntegrationType
Values returns all known values for IntegrationType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type InternalServerException ¶
type InternalServerException struct { Message *string ErrorCodeOverride *string RetryAfterSeconds *int32 // contains filtered or unexported fields }
The request has failed due to an internal failure of the Amazon Inspector service.
func (*InternalServerException) Error ¶
func (e *InternalServerException) Error() string
func (*InternalServerException) ErrorCode ¶
func (e *InternalServerException) ErrorCode() string
func (*InternalServerException) ErrorFault ¶
func (e *InternalServerException) ErrorFault() smithy.ErrorFault
func (*InternalServerException) ErrorMessage ¶
func (e *InternalServerException) ErrorMessage() string
type LambdaFunctionAggregation ¶ added in v1.9.0
type LambdaFunctionAggregation struct { // The Amazon Web Services Lambda function names to include in the aggregation // results. FunctionNames []StringFilter // The tags to include in the aggregation results. FunctionTags []MapFilter // The resource IDs to include in the aggregation results. ResourceIds []StringFilter // Returns findings aggregated by Amazon Web Services Lambda function runtime // environments. Runtimes []StringFilter // The finding severity to use for sorting the results. SortBy LambdaFunctionSortBy // The order to use for sorting the results. SortOrder SortOrder // contains filtered or unexported fields }
The details that define a findings aggregation based on Amazon Web Services Lambda functions.
type LambdaFunctionAggregationResponse ¶ added in v1.9.0
type LambdaFunctionAggregationResponse struct { // The resource IDs included in the aggregation results. // // This member is required. ResourceId *string // The ID of the Amazon Web Services account that owns the Amazon Web Services // Lambda function. AccountId *string // The Amazon Web Services Lambda function names included in the aggregation // results. FunctionName *string // The tags included in the aggregation results. LambdaTags map[string]string // The date that the Amazon Web Services Lambda function included in the // aggregation results was last changed. LastModifiedAt *time.Time // The runtimes included in the aggregation results. Runtime *string // An object that contains the counts of aggregated finding per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of an Amazon Web Services Lambda function finding aggregation.
type LambdaFunctionMetadata ¶ added in v1.9.0
type LambdaFunctionMetadata struct { // The name of a function. FunctionName *string // The resource tags on an Amazon Web Services Lambda function. FunctionTags map[string]string // The layers for an Amazon Web Services Lambda function. A Lambda function can // have up to five layers. Layers []string // An Amazon Web Services Lambda function's runtime. Runtime Runtime // contains filtered or unexported fields }
The Amazon Web Services Lambda function metadata.
type LambdaFunctionSortBy ¶ added in v1.9.0
type LambdaFunctionSortBy string
const ( LambdaFunctionSortByCritical LambdaFunctionSortBy = "CRITICAL" LambdaFunctionSortByHigh LambdaFunctionSortBy = "HIGH" LambdaFunctionSortByAll LambdaFunctionSortBy = "ALL" )
Enum values for LambdaFunctionSortBy
func (LambdaFunctionSortBy) Values ¶ added in v1.9.0
func (LambdaFunctionSortBy) Values() []LambdaFunctionSortBy
Values returns all known values for LambdaFunctionSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type LambdaLayerAggregation ¶ added in v1.9.0
type LambdaLayerAggregation struct { // The names of the Amazon Web Services Lambda functions associated with the // layers. FunctionNames []StringFilter // The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function // layer. LayerArns []StringFilter // The resource IDs for the Amazon Web Services Lambda function layers. ResourceIds []StringFilter // The finding severity to use for sorting the results. SortBy LambdaLayerSortBy // The order to use for sorting the results. SortOrder SortOrder // contains filtered or unexported fields }
The details that define a findings aggregation based on an Amazon Web Services Lambda function's layers.
type LambdaLayerAggregationResponse ¶ added in v1.9.0
type LambdaLayerAggregationResponse struct { // The account ID of the Amazon Web Services Lambda function layer. // // This member is required. AccountId *string // The names of the Amazon Web Services Lambda functions associated with the // layers. // // This member is required. FunctionName *string // The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer. // // This member is required. LayerArn *string // The Resource ID of the Amazon Web Services Lambda function layer. // // This member is required. ResourceId *string // An object that contains the counts of aggregated finding per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of an Amazon Web Services Lambda function layer finding aggregation.
type LambdaLayerSortBy ¶ added in v1.9.0
type LambdaLayerSortBy string
const ( LambdaLayerSortByCritical LambdaLayerSortBy = "CRITICAL" LambdaLayerSortByHigh LambdaLayerSortBy = "HIGH" LambdaLayerSortByAll LambdaLayerSortBy = "ALL" )
Enum values for LambdaLayerSortBy
func (LambdaLayerSortBy) Values ¶ added in v1.9.0
func (LambdaLayerSortBy) Values() []LambdaLayerSortBy
Values returns all known values for LambdaLayerSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type LambdaVpcConfig ¶ added in v1.9.0
type LambdaVpcConfig struct { // The VPC security groups and subnets that are attached to an Amazon Web Services // Lambda function. For more information, see [VPC Settings]. // // [VPC Settings]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html SecurityGroupIds []string // A list of VPC subnet IDs. SubnetIds []string // The ID of the VPC. VpcId *string // contains filtered or unexported fields }
The VPC security groups and subnets that are attached to an Amazon Web Services Lambda function. For more information, see VPC Settings.
type ListCisScanConfigurationsFilterCriteria ¶ added in v1.21.0
type ListCisScanConfigurationsFilterCriteria struct { // The list of scan configuration ARN filters. ScanConfigurationArnFilters []CisStringFilter // The list of scan name filters. ScanNameFilters []CisStringFilter // The list of target resource tag filters. TargetResourceTagFilters []TagFilter // contains filtered or unexported fields }
A list of CIS scan configurations filter criteria.
type ListCisScansDetailLevel ¶ added in v1.21.0
type ListCisScansDetailLevel string
const ( ListCisScansDetailLevelOrganization ListCisScansDetailLevel = "ORGANIZATION" ListCisScansDetailLevelMember ListCisScansDetailLevel = "MEMBER" )
Enum values for ListCisScansDetailLevel
func (ListCisScansDetailLevel) Values ¶ added in v1.21.0
func (ListCisScansDetailLevel) Values() []ListCisScansDetailLevel
Values returns all known values for ListCisScansDetailLevel. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ListCisScansFilterCriteria ¶ added in v1.21.0
type ListCisScansFilterCriteria struct { // The list of failed checks filters. FailedChecksFilters []CisNumberFilter // The list of scan ARN filters. ScanArnFilters []CisStringFilter // The list of scan at filters. ScanAtFilters []CisDateFilter // The list of scan configuration ARN filters. ScanConfigurationArnFilters []CisStringFilter // The list of scan name filters. ScanNameFilters []CisStringFilter // The list of scan status filters. ScanStatusFilters []CisScanStatusFilter // The list of scheduled by filters. ScheduledByFilters []CisStringFilter // The list of target account ID filters. TargetAccountIdFilters []CisStringFilter // The list of target resource ID filters. TargetResourceIdFilters []CisStringFilter // The list of target resource tag filters. TargetResourceTagFilters []TagFilter // contains filtered or unexported fields }
A list of CIS scans filter criteria.
type ListCisScansSortBy ¶ added in v1.21.0
type ListCisScansSortBy string
const ( ListCisScansSortByStatus ListCisScansSortBy = "STATUS" ListCisScansSortByScheduledBy ListCisScansSortBy = "SCHEDULED_BY" ListCisScansSortByScanStartDate ListCisScansSortBy = "SCAN_START_DATE" ListCisScansSortByFailedChecks ListCisScansSortBy = "FAILED_CHECKS" )
Enum values for ListCisScansSortBy
func (ListCisScansSortBy) Values ¶ added in v1.21.0
func (ListCisScansSortBy) Values() []ListCisScansSortBy
Values returns all known values for ListCisScansSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type MapComparison ¶
type MapComparison string
const (
MapComparisonEquals MapComparison = "EQUALS"
)
Enum values for MapComparison
func (MapComparison) Values ¶
func (MapComparison) Values() []MapComparison
Values returns all known values for MapComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type MapFilter ¶
type MapFilter struct { // The operator to use when comparing values in the filter. // // This member is required. Comparison MapComparison // The tag key used in the filter. // // This member is required. Key *string // The tag value used in the filter. Value *string // contains filtered or unexported fields }
An object that describes details of a map filter.
type Member ¶
type Member struct { // The Amazon Web Services account ID of the member account. AccountId *string // The Amazon Web Services account ID of the Amazon Inspector delegated // administrator for this member account. DelegatedAdminAccountId *string // The status of the member account. RelationshipStatus RelationshipStatus // A timestamp showing when the status of this member was last updated. UpdatedAt *time.Time // contains filtered or unexported fields }
Details on a member account in your organization.
type MemberAccountEc2DeepInspectionStatus ¶ added in v1.12.0
type MemberAccountEc2DeepInspectionStatus struct { // The unique identifier for the Amazon Web Services account of the organization // member. // // This member is required. AccountId *string // Whether Amazon Inspector deep inspection is active in the account. If TRUE // Amazon Inspector deep inspection is active, if FALSE it is not active. // // This member is required. ActivateDeepInspection *bool // contains filtered or unexported fields }
An object that contains details about the status of Amazon Inspector deep inspection for a member account in your organization.
type MemberAccountEc2DeepInspectionStatusState ¶ added in v1.12.0
type MemberAccountEc2DeepInspectionStatusState struct { // The unique identifier for the Amazon Web Services account of the organization // member // // This member is required. AccountId *string // The error message explaining why the account failed to activate Amazon // Inspector deep inspection. ErrorMessage *string // The state of Amazon Inspector deep inspection in the member account. Status Ec2DeepInspectionStatus // contains filtered or unexported fields }
An object that contains details about the state of Amazon Inspector deep inspection for a member account.
type MonthlySchedule ¶ added in v1.21.0
type MonthlySchedule struct { // The monthly schedule's day. // // This member is required. Day Day // The monthly schedule's start time. // // This member is required. StartTime *Time // contains filtered or unexported fields }
A monthly schedule.
type NetworkPath ¶
type NetworkPath struct { // The details on the steps in the network path. Steps []Step // contains filtered or unexported fields }
Information on the network path associated with a finding.
type NetworkProtocol ¶
type NetworkProtocol string
const ( NetworkProtocolTcp NetworkProtocol = "TCP" NetworkProtocolUdp NetworkProtocol = "UDP" )
Enum values for NetworkProtocol
func (NetworkProtocol) Values ¶
func (NetworkProtocol) Values() []NetworkProtocol
Values returns all known values for NetworkProtocol. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type NetworkReachabilityDetails ¶
type NetworkReachabilityDetails struct { // An object that contains details about a network path associated with a finding. // // This member is required. NetworkPath *NetworkPath // An object that contains details about the open port range associated with a // finding. // // This member is required. OpenPortRange *PortRange // The protocol associated with a finding. // // This member is required. Protocol NetworkProtocol // contains filtered or unexported fields }
Contains the details of a network reachability finding.
type NumberFilter ¶
type NumberFilter struct { // The lowest number to be included in the filter. LowerInclusive *float64 // The highest number to be included in the filter. UpperInclusive *float64 // contains filtered or unexported fields }
An object that describes the details of a number filter.
type OneTimeSchedule ¶ added in v1.21.0
type OneTimeSchedule struct {
// contains filtered or unexported fields
}
A one time schedule.
type Operation ¶
type Operation string
type PackageAggregation ¶
type PackageAggregation struct { // The names of packages to aggregate findings on. PackageNames []StringFilter // The value to sort results by. SortBy PackageSortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on operating system package type.
type PackageAggregationResponse ¶
type PackageAggregationResponse struct { // The name of the operating system package. // // This member is required. PackageName *string // The ID of the Amazon Web Services account associated with the findings. AccountId *string // An object that contains the count of matched findings per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains the results of a finding aggregation by image layer.
type PackageFilter ¶
type PackageFilter struct { // An object that contains details on the package architecture type to filter on. Architecture *StringFilter // An object that contains details on the package epoch to filter on. Epoch *NumberFilter // An object that contains details on the package file path to filter on. FilePath *StringFilter // An object that contains details on the name of the package to filter on. Name *StringFilter // An object that contains details on the package release to filter on. Release *StringFilter // An object that describes the details of a string filter. SourceLambdaLayerArn *StringFilter // An object that contains details on the source layer hash to filter on. SourceLayerHash *StringFilter // The package version to filter on. Version *StringFilter // contains filtered or unexported fields }
Contains information on the details of a package filter.
type PackageManager ¶
type PackageManager string
const ( PackageManagerBundler PackageManager = "BUNDLER" PackageManagerCargo PackageManager = "CARGO" PackageManagerComposer PackageManager = "COMPOSER" PackageManagerNpm PackageManager = "NPM" PackageManagerNuget PackageManager = "NUGET" PackageManagerPipenv PackageManager = "PIPENV" PackageManagerPoetry PackageManager = "POETRY" PackageManagerYarn PackageManager = "YARN" PackageManagerGobinary PackageManager = "GOBINARY" PackageManagerGomod PackageManager = "GOMOD" PackageManagerJar PackageManager = "JAR" PackageManagerOs PackageManager = "OS" PackageManagerPip PackageManager = "PIP" PackageManagerPythonpkg PackageManager = "PYTHONPKG" PackageManagerNodepkg PackageManager = "NODEPKG" PackageManagerPom PackageManager = "POM" PackageManagerGemspec PackageManager = "GEMSPEC" PackageManagerDotnetCore PackageManager = "DOTNET_CORE" )
Enum values for PackageManager
func (PackageManager) Values ¶
func (PackageManager) Values() []PackageManager
Values returns all known values for PackageManager. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type PackageSortBy ¶
type PackageSortBy string
const ( PackageSortByCritical PackageSortBy = "CRITICAL" PackageSortByHigh PackageSortBy = "HIGH" PackageSortByAll PackageSortBy = "ALL" )
Enum values for PackageSortBy
func (PackageSortBy) Values ¶
func (PackageSortBy) Values() []PackageSortBy
Values returns all known values for PackageSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type PackageType ¶ added in v1.9.0
type PackageType string
const ( PackageTypeImage PackageType = "IMAGE" PackageTypeZip PackageType = "ZIP" )
Enum values for PackageType
func (PackageType) Values ¶ added in v1.9.0
func (PackageType) Values() []PackageType
Values returns all known values for PackageType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type PackageVulnerabilityDetails ¶
type PackageVulnerabilityDetails struct { // The source of the vulnerability information. // // This member is required. Source *string // The ID given to this vulnerability. // // This member is required. VulnerabilityId *string // An object that contains details about the CVSS score of a finding. Cvss []CvssScore // One or more URLs that contain details about this vulnerability type. ReferenceUrls []string // One or more vulnerabilities related to the one identified in this finding. RelatedVulnerabilities []string // A URL to the source of the vulnerability information. SourceUrl *string // The date and time that this vulnerability was first added to the vendor's // database. VendorCreatedAt *time.Time // The severity the vendor has given to this vulnerability type. VendorSeverity *string // The date and time the vendor last updated this vulnerability in their database. VendorUpdatedAt *time.Time // The packages impacted by this vulnerability. VulnerablePackages []VulnerablePackage // contains filtered or unexported fields }
Information about a package vulnerability finding.
type PeriodicScanConfiguration ¶ added in v1.38.0
type PeriodicScanConfiguration struct { // The frequency at which periodic scans are performed (such as weekly or monthly). // // If you don't provide the frequencyExpression Amazon Inspector chooses day for // the scan to run. If you provide the frequencyExpression , the schedule must // match the specified frequency . Frequency PeriodicScanFrequency // The schedule expression for periodic scans, in cron format. FrequencyExpression *string // contains filtered or unexported fields }
Configuration settings for periodic scans that run on a scheduled basis.
type PeriodicScanFrequency ¶ added in v1.38.0
type PeriodicScanFrequency string
const ( PeriodicScanFrequencyWeekly PeriodicScanFrequency = "WEEKLY" PeriodicScanFrequencyMonthly PeriodicScanFrequency = "MONTHLY" PeriodicScanFrequencyNever PeriodicScanFrequency = "NEVER" )
Enum values for PeriodicScanFrequency
func (PeriodicScanFrequency) Values ¶ added in v1.38.0
func (PeriodicScanFrequency) Values() []PeriodicScanFrequency
Values returns all known values for PeriodicScanFrequency. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Permission ¶
type Permission struct { // The operations that can be performed with the given permissions. // // This member is required. Operation Operation // The services that the permissions allow an account to perform the given // operations for. // // This member is required. Service Service // contains filtered or unexported fields }
Contains information on the permissions an account has within Amazon Inspector.
type PortRange ¶
type PortRange struct { // The beginning port in a port range. // // This member is required. Begin *int32 // The ending port in a port range. // // This member is required. End *int32 // contains filtered or unexported fields }
Details about the port range associated with a finding.
type PortRangeFilter ¶
type PortRangeFilter struct { // The port number the port range begins at. BeginInclusive *int32 // The port number the port range ends at. EndInclusive *int32 // contains filtered or unexported fields }
An object that describes the details of a port range filter.
type ProjectCodeSecurityScanConfiguration ¶ added in v1.38.0
type ProjectCodeSecurityScanConfiguration struct { // The continuous integration scan configurations applied to the project. ContinuousIntegrationScanConfigurations []ProjectContinuousIntegrationScanConfiguration // The periodic scan configurations applied to the project. PeriodicScanConfigurations []ProjectPeriodicScanConfiguration // contains filtered or unexported fields }
Contains the scan configuration settings applied to a specific project in a code repository.
type ProjectContinuousIntegrationScanConfiguration ¶ added in v1.38.0
type ProjectContinuousIntegrationScanConfiguration struct { // The categories of security rules applied during continuous integration scans // for the project. RuleSetCategories []RuleSetCategory // The repository event that triggers continuous integration scans for the project. SupportedEvent ContinuousIntegrationScanEvent // contains filtered or unexported fields }
Contains the continuous integration scan configuration settings applied to a specific project.
type ProjectPeriodicScanConfiguration ¶ added in v1.38.0
type ProjectPeriodicScanConfiguration struct { // The schedule expression for periodic scans, in cron format, applied to the // project. FrequencyExpression *string // The categories of security rules applied during periodic scans for the project. RuleSetCategories []RuleSetCategory // contains filtered or unexported fields }
Contains the periodic scan configuration settings applied to a specific project.
type ProjectSelectionScope ¶ added in v1.38.0
type ProjectSelectionScope string
const (
ProjectSelectionScopeAll ProjectSelectionScope = "ALL"
)
Enum values for ProjectSelectionScope
func (ProjectSelectionScope) Values ¶ added in v1.38.0
func (ProjectSelectionScope) Values() []ProjectSelectionScope
Values returns all known values for ProjectSelectionScope. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Recommendation ¶
type Recommendation struct { // The recommended course of action to remediate the finding. Text *string // The URL address to the CVE remediation recommendations. Url *string // contains filtered or unexported fields }
Details about the recommended course of action to remediate the finding.
type RelationshipStatus ¶
type RelationshipStatus string
const ( RelationshipStatusCreated RelationshipStatus = "CREATED" RelationshipStatusInvited RelationshipStatus = "INVITED" RelationshipStatusDisabled RelationshipStatus = "DISABLED" RelationshipStatusEnabled RelationshipStatus = "ENABLED" RelationshipStatusRemoved RelationshipStatus = "REMOVED" RelationshipStatusResigned RelationshipStatus = "RESIGNED" RelationshipStatusDeleted RelationshipStatus = "DELETED" RelationshipStatusEmailVerificationInProgress RelationshipStatus = "EMAIL_VERIFICATION_IN_PROGRESS" RelationshipStatusEmailVerificationFailed RelationshipStatus = "EMAIL_VERIFICATION_FAILED" RelationshipStatusRegionDisabled RelationshipStatus = "REGION_DISABLED" RelationshipStatusAccountSuspended RelationshipStatus = "ACCOUNT_SUSPENDED" RelationshipStatusCannotCreateDetectorInOrgMaster RelationshipStatus = "CANNOT_CREATE_DETECTOR_IN_ORG_MASTER" )
Enum values for RelationshipStatus
func (RelationshipStatus) Values ¶
func (RelationshipStatus) Values() []RelationshipStatus
Values returns all known values for RelationshipStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Remediation ¶
type Remediation struct { // An object that contains information about the recommended course of action to // remediate the finding. Recommendation *Recommendation // contains filtered or unexported fields }
Information on how to remediate a finding.
type ReportFormat ¶
type ReportFormat string
const ( ReportFormatCsv ReportFormat = "CSV" ReportFormatJson ReportFormat = "JSON" )
Enum values for ReportFormat
func (ReportFormat) Values ¶
func (ReportFormat) Values() []ReportFormat
Values returns all known values for ReportFormat. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ReportingErrorCode ¶
type ReportingErrorCode string
const ( ReportingErrorCodeInternalError ReportingErrorCode = "INTERNAL_ERROR" ReportingErrorCodeInvalidPermissions ReportingErrorCode = "INVALID_PERMISSIONS" ReportingErrorCodeNoFindingsFound ReportingErrorCode = "NO_FINDINGS_FOUND" ReportingErrorCodeBucketNotFound ReportingErrorCode = "BUCKET_NOT_FOUND" ReportingErrorCodeIncompatibleBucketRegion ReportingErrorCode = "INCOMPATIBLE_BUCKET_REGION" ReportingErrorCodeMalformedKmsKey ReportingErrorCode = "MALFORMED_KMS_KEY" )
Enum values for ReportingErrorCode
func (ReportingErrorCode) Values ¶
func (ReportingErrorCode) Values() []ReportingErrorCode
Values returns all known values for ReportingErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type RepositoryAggregation ¶
type RepositoryAggregation struct { // The names of repositories to aggregate findings on. Repositories []StringFilter // The value to sort results by. SortBy RepositorySortBy // The order to sort results by. SortOrder SortOrder // contains filtered or unexported fields }
The details that define an aggregation based on repository.
type RepositoryAggregationResponse ¶
type RepositoryAggregationResponse struct { // The name of the repository associated with the findings. // // This member is required. Repository *string // The ID of the Amazon Web Services account associated with the findings. AccountId *string // The number of container images impacted by the findings. AffectedImages *int64 // An object that represent the count of matched findings per severity. SeverityCounts *SeverityCounts // contains filtered or unexported fields }
A response that contains details on the results of a finding aggregation by repository.
type RepositorySortBy ¶
type RepositorySortBy string
const ( RepositorySortByCritical RepositorySortBy = "CRITICAL" RepositorySortByHigh RepositorySortBy = "HIGH" RepositorySortByAll RepositorySortBy = "ALL" RepositorySortByAffectedImages RepositorySortBy = "AFFECTED_IMAGES" )
Enum values for RepositorySortBy
func (RepositorySortBy) Values ¶
func (RepositorySortBy) Values() []RepositorySortBy
Values returns all known values for RepositorySortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Resource ¶
type Resource struct { // The ID of the resource. // // This member is required. Id *string // The type of resource. // // This member is required. Type ResourceType // An object that contains details about the resource involved in a finding. Details *ResourceDetails // The partition of the resource. Partition *string // The Amazon Web Services Region the impacted resource is located in. Region *string // The tags attached to the resource. Tags map[string]string // contains filtered or unexported fields }
Details about the resource involved in a finding.
type ResourceDetails ¶
type ResourceDetails struct { // An object that contains details about the Amazon EC2 instance involved in the // finding. AwsEc2Instance *AwsEc2InstanceDetails // An object that contains details about the Amazon ECR container image involved // in the finding. AwsEcrContainerImage *AwsEcrContainerImageDetails // A summary of the information about an Amazon Web Services Lambda function // affected by a finding. AwsLambdaFunction *AwsLambdaFunctionDetails // Contains details about a code repository resource associated with a finding. CodeRepository *CodeRepositoryDetails // contains filtered or unexported fields }
Contains details about the resource involved in the finding.
type ResourceFilterCriteria ¶ added in v1.15.0
type ResourceFilterCriteria struct { // The account IDs used as resource filter criteria. AccountId []ResourceStringFilter // The EC2 instance tags used as resource filter criteria. Ec2InstanceTags []ResourceMapFilter // The ECR image tags used as resource filter criteria. EcrImageTags []ResourceStringFilter // The ECR repository names used as resource filter criteria. EcrRepositoryName []ResourceStringFilter // The Amazon Web Services Lambda function name used as resource filter criteria. LambdaFunctionName []ResourceStringFilter // The Amazon Web Services Lambda function tags used as resource filter criteria. LambdaFunctionTags []ResourceMapFilter // The resource IDs used as resource filter criteria. ResourceId []ResourceStringFilter // The resource types used as resource filter criteria. ResourceType []ResourceStringFilter // contains filtered or unexported fields }
The resource filter criteria for a Software bill of materials (SBOM) report.
type ResourceMapComparison ¶ added in v1.15.0
type ResourceMapComparison string
const (
ResourceMapComparisonEquals ResourceMapComparison = "EQUALS"
)
Enum values for ResourceMapComparison
func (ResourceMapComparison) Values ¶ added in v1.15.0
func (ResourceMapComparison) Values() []ResourceMapComparison
Values returns all known values for ResourceMapComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ResourceMapFilter ¶ added in v1.15.0
type ResourceMapFilter struct { // The filter's comparison. // // This member is required. Comparison ResourceMapComparison // The filter's key. // // This member is required. Key *string // The filter's value. Value *string // contains filtered or unexported fields }
A resource map filter for a software bill of material report.
type ResourceNotFoundException ¶
type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
The operation tried to access an invalid resource. Make sure the resource is specified correctly.
func (*ResourceNotFoundException) Error ¶
func (e *ResourceNotFoundException) Error() string
func (*ResourceNotFoundException) ErrorCode ¶
func (e *ResourceNotFoundException) ErrorCode() string
func (*ResourceNotFoundException) ErrorFault ¶
func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
func (*ResourceNotFoundException) ErrorMessage ¶
func (e *ResourceNotFoundException) ErrorMessage() string
type ResourceScanMetadata ¶
type ResourceScanMetadata struct { // Contains metadata about scan coverage for a code repository resource. CodeRepository *CodeRepositoryMetadata // An object that contains metadata details for an Amazon EC2 instance. Ec2 *Ec2Metadata // An object that contains details about the container metadata for an Amazon ECR // image. EcrImage *EcrContainerImageMetadata // An object that contains details about the repository an Amazon ECR image // resides in. EcrRepository *EcrRepositoryMetadata // An object that contains metadata details for an Amazon Web Services Lambda // function. LambdaFunction *LambdaFunctionMetadata // contains filtered or unexported fields }
An object that contains details about the metadata for an Amazon ECR resource.
type ResourceScanType ¶
type ResourceScanType string
const ( ResourceScanTypeEc2 ResourceScanType = "EC2" ResourceScanTypeEcr ResourceScanType = "ECR" ResourceScanTypeLambda ResourceScanType = "LAMBDA" ResourceScanTypeLambdaCode ResourceScanType = "LAMBDA_CODE" ResourceScanTypeCodeRepository ResourceScanType = "CODE_REPOSITORY" )
Enum values for ResourceScanType
func (ResourceScanType) Values ¶
func (ResourceScanType) Values() []ResourceScanType
Values returns all known values for ResourceScanType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ResourceState ¶
type ResourceState struct { // An object detailing the state of Amazon Inspector scanning for Amazon EC2 // resources. // // This member is required. Ec2 *State // An object detailing the state of Amazon Inspector scanning for Amazon ECR // resources. // // This member is required. Ecr *State // An object that described the state of Amazon Inspector scans for an account. CodeRepository *State // An object that described the state of Amazon Inspector scans for an account. Lambda *State // An object that described the state of Amazon Inspector scans for an account. LambdaCode *State // contains filtered or unexported fields }
Details the state of Amazon Inspector for each resource type Amazon Inspector scans.
type ResourceStatus ¶
type ResourceStatus struct { // The status of Amazon Inspector scanning for Amazon EC2 resources. // // This member is required. Ec2 Status // The status of Amazon Inspector scanning for Amazon ECR resources. // // This member is required. Ecr Status // The status of Amazon Inspector scanning for code repositories. CodeRepository Status // The status of Amazon Inspector scanning for Amazon Web Services Lambda function. Lambda Status // The status of Amazon Inspector scanning for custom application code for Amazon // Web Services Lambda functions. LambdaCode Status // contains filtered or unexported fields }
Details the status of Amazon Inspector for each resource type Amazon Inspector scans.
type ResourceStringComparison ¶ added in v1.15.0
type ResourceStringComparison string
const ( ResourceStringComparisonEquals ResourceStringComparison = "EQUALS" ResourceStringComparisonNotEquals ResourceStringComparison = "NOT_EQUALS" )
Enum values for ResourceStringComparison
func (ResourceStringComparison) Values ¶ added in v1.15.0
func (ResourceStringComparison) Values() []ResourceStringComparison
Values returns all known values for ResourceStringComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ResourceStringFilter ¶ added in v1.15.0
type ResourceStringFilter struct { // The filter's comparison. // // This member is required. Comparison ResourceStringComparison // The filter's value. // // This member is required. Value *string // contains filtered or unexported fields }
A resource string filter for a software bill of materials report.
type ResourceType ¶
type ResourceType string
const ( ResourceTypeAwsEc2Instance ResourceType = "AWS_EC2_INSTANCE" ResourceTypeAwsEcrContainerImage ResourceType = "AWS_ECR_CONTAINER_IMAGE" ResourceTypeAwsEcrRepository ResourceType = "AWS_ECR_REPOSITORY" ResourceTypeAwsLambdaFunction ResourceType = "AWS_LAMBDA_FUNCTION" ResourceTypeCodeRepository ResourceType = "CODE_REPOSITORY" )
Enum values for ResourceType
func (ResourceType) Values ¶
func (ResourceType) Values() []ResourceType
Values returns all known values for ResourceType. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type RuleSetCategory ¶ added in v1.38.0
type RuleSetCategory string
const ( RuleSetCategorySast RuleSetCategory = "SAST" RuleSetCategoryIac RuleSetCategory = "IAC" RuleSetCategorySca RuleSetCategory = "SCA" )
Enum values for RuleSetCategory
func (RuleSetCategory) Values ¶ added in v1.38.0
func (RuleSetCategory) Values() []RuleSetCategory
Values returns all known values for RuleSetCategory. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Runtime ¶ added in v1.9.0
type Runtime string
const ( RuntimeNodejs Runtime = "NODEJS" RuntimeNodejs12X Runtime = "NODEJS_12_X" RuntimeNodejs14X Runtime = "NODEJS_14_X" RuntimeNodejs16X Runtime = "NODEJS_16_X" RuntimeJava8 Runtime = "JAVA_8" RuntimeJava8Al2 Runtime = "JAVA_8_AL2" RuntimeJava11 Runtime = "JAVA_11" RuntimePython37 Runtime = "PYTHON_3_7" RuntimePython38 Runtime = "PYTHON_3_8" RuntimePython39 Runtime = "PYTHON_3_9" RuntimeUnsupported Runtime = "UNSUPPORTED" RuntimeNodejs18X Runtime = "NODEJS_18_X" RuntimeGo1X Runtime = "GO_1_X" RuntimeJava17 Runtime = "JAVA_17" RuntimePython310 Runtime = "PYTHON_3_10" RuntimePython311 Runtime = "PYTHON_3_11" RuntimeDotnetcore31 Runtime = "DOTNETCORE_3_1" RuntimeDotnet6 Runtime = "DOTNET_6" RuntimeDotnet7 Runtime = "DOTNET_7" RuntimeRuby27 Runtime = "RUBY_2_7" RuntimeRuby32 Runtime = "RUBY_3_2" )
Enum values for Runtime
type SbomReportFormat ¶ added in v1.15.0
type SbomReportFormat string
const ( SbomReportFormatCyclonedx14 SbomReportFormat = "CYCLONEDX_1_4" SbomReportFormatSpdx23 SbomReportFormat = "SPDX_2_3" )
Enum values for SbomReportFormat
func (SbomReportFormat) Values ¶ added in v1.15.0
func (SbomReportFormat) Values() []SbomReportFormat
Values returns all known values for SbomReportFormat. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ScanMode ¶ added in v1.25.0
type ScanMode string
type ScanStatus ¶
type ScanStatus struct { // The scan status. Possible return values and descriptions are: // // ACCESS_DENIED - Resource access policy restricting Amazon Inspector access. // Please update the IAM policy. // // ACCESS_DENIED_TO_ENCRYPTION_KEY - The KMS key policy doesn't allow Amazon // Inspector access. Update the key policy. // // DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to // extract the package inventory because the package collection time exceeding the // maximum threshold of 15 minutes. // // DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't // send inventory to Amazon Inspector because the SSM quota for Inventory data // collected per instance per day has already been reached for this instance. // // DEEP_INSPECTION_NO_INVENTORY - The Amazon Inspector plugin hasn't yet been able // to collect an inventory of packages for this instance. This is usually the // result of a pending scan, however, if this status persists after 6 hours, use // SSM to ensure that the required Amazon Inspector associations exist and are // running for the instance. // // DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has exceeded // the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep // inspection for this instance you can try to adjust the custom paths associated // with the account. // // EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state, therefore, // Amazon Inspector will pause scanning. The existing findings will continue to // exist until the instance is terminated. Once the instance is re-started, // Inspector will automatically start scanning the instance again. Please note that // you will not be charged for this instance while it's in a stopped state. // // EXCLUDED_BY_TAG - This resource was not scanned because it has been excluded by // a tag. // // IMAGE_SIZE_EXCEEDED - Reserved for future use. // // INTEGRATION_CONNNECTION_LOST - Amazon Inspector couldn't communicate with the // source code management platform. // // INTERNAL_ERROR - Amazon Inspector has encountered an internal error for this // resource. Amazon Inspector service will automatically resolve the issue and // resume the scanning. No action required from the user. // // NO_INVENTORY - Amazon Inspector couldn't find software application inventory to // scan for vulnerabilities. This might be caused due to required Amazon Inspector // associations being deleted or failing to run on your resource. Please verify the // status of InspectorInventoryCollection-do-not-delete association in the SSM // console for the resource. Additionally, you can verify the instance's inventory // in the SSM Fleet Manager console. // // NO_RESOURCES_FOUND - Reserved for future use. // // NO_SCAN_CONFIGURATION_ASSOCIATED - The code repository resource doesn't have an // associated scan configuration. // // PENDING_DISABLE - This resource is pending cleanup during disablement. The // customer will not be billed while a resource is in the pending disable status. // // PENDING_INITIAL_SCAN - This resource has been identified for scanning, results // will be available soon. // // RESOURCE_TERMINATED - This resource has been terminated. The findings and // coverage associated with this resource are in the process of being cleaned up. // // SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this // image. // // SCAN_FREQUENCY_MANUAL - This image will not be covered by Amazon Inspector due // to the repository scan frequency configuration. // // SCAN_FREQUENCY_SCAN_ON_PUSH - This image will be scanned one time and will not // new findings because of the scan frequency configuration. // // SCAN_IN_PROGRESS - The resource is currently being scanned. // // STALE_INVENTORY - Amazon Inspector wasn't able to collect an updated software // application inventory in the last 7 days. Please confirm the required Amazon // Inspector associations still exist and you can still see an updated inventory in // the SSM console. // // SUCCESSFUL - The scan was successful. // // UNMANAGED_EC2_INSTANCE - The EC2 instance is not managed by SSM, please use the // following SSM automation to remediate the issue: [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html]. Once the instance becomes // managed by SSM, Inspector will automatically begin scanning this instance. // // UNSUPPORTED_CONFIG_FILE - Reserved for future use. // // UNSUPPORTED_LANGUAGE - The scan was unsuccessful because the repository // contains files in an unsupported programming language. // // UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media type. // // UNSUPPORTED_OS - Amazon Inspector does not support this OS, architecture, or // image manifest type at this time. To see a complete list of supported operating // systems see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html]. // // UNSUPPORTED_RUNTIME - The function was not scanned because it has an // unsupported runtime. To see a complete list of supported runtimes see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html]. // // [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html]: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html // [https://docs.aws.amazon.com/inspector/latest/user/supported.html]: https://docs.aws.amazon.com/inspector/latest/user/supported.html // // This member is required. Reason ScanStatusReason // The status code of the scan. // // This member is required. StatusCode ScanStatusCode // contains filtered or unexported fields }
The status of the scan.
type ScanStatusCode ¶
type ScanStatusCode string
const ( ScanStatusCodeActive ScanStatusCode = "ACTIVE" ScanStatusCodeInactive ScanStatusCode = "INACTIVE" )
Enum values for ScanStatusCode
func (ScanStatusCode) Values ¶
func (ScanStatusCode) Values() []ScanStatusCode
Values returns all known values for ScanStatusCode. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ScanStatusReason ¶
type ScanStatusReason string
const ( ScanStatusReasonPendingInitialScan ScanStatusReason = "PENDING_INITIAL_SCAN" ScanStatusReasonAccessDenied ScanStatusReason = "ACCESS_DENIED" ScanStatusReasonInternalError ScanStatusReason = "INTERNAL_ERROR" ScanStatusReasonUnmanagedEc2Instance ScanStatusReason = "UNMANAGED_EC2_INSTANCE" ScanStatusReasonUnsupportedOs ScanStatusReason = "UNSUPPORTED_OS" ScanStatusReasonScanEligibilityExpired ScanStatusReason = "SCAN_ELIGIBILITY_EXPIRED" ScanStatusReasonResourceTerminated ScanStatusReason = "RESOURCE_TERMINATED" ScanStatusReasonSuccessful ScanStatusReason = "SUCCESSFUL" ScanStatusReasonNoResourcesFound ScanStatusReason = "NO_RESOURCES_FOUND" ScanStatusReasonImageSizeExceeded ScanStatusReason = "IMAGE_SIZE_EXCEEDED" ScanStatusReasonScanFrequencyManual ScanStatusReason = "SCAN_FREQUENCY_MANUAL" ScanStatusReasonScanFrequencyScanOnPush ScanStatusReason = "SCAN_FREQUENCY_SCAN_ON_PUSH" ScanStatusReasonEc2InstanceStopped ScanStatusReason = "EC2_INSTANCE_STOPPED" ScanStatusReasonPendingDisable ScanStatusReason = "PENDING_DISABLE" ScanStatusReasonNoInventory ScanStatusReason = "NO_INVENTORY" ScanStatusReasonStaleInventory ScanStatusReason = "STALE_INVENTORY" ScanStatusReasonExcludedByTag ScanStatusReason = "EXCLUDED_BY_TAG" ScanStatusReasonUnsupportedRuntime ScanStatusReason = "UNSUPPORTED_RUNTIME" ScanStatusReasonUnsupportedMediaType ScanStatusReason = "UNSUPPORTED_MEDIA_TYPE" ScanStatusReasonUnsupportedConfigFile ScanStatusReason = "UNSUPPORTED_CONFIG_FILE" ScanStatusReasonDeepInspectionPackageCollectionLimitExceeded ScanStatusReason = "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED" ScanStatusReasonDeepInspectionDailySsmInventoryLimitExceeded ScanStatusReason = "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED" ScanStatusReasonDeepInspectionCollectionTimeLimitExceeded ScanStatusReason = "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED" ScanStatusReasonDeepInspectionNoInventory ScanStatusReason = "DEEP_INSPECTION_NO_INVENTORY" ScanStatusReasonAgentlessInstanceStorageLimitExceeded ScanStatusReason = "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED" ScanStatusReasonAgentlessInstanceCollectionTimeLimitExceeded ScanStatusReason = "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED" ScanStatusReasonPendingRevivalScan ScanStatusReason = "PENDING_REVIVAL_SCAN" ScanStatusReasonIntegrationConnectionLost ScanStatusReason = "INTEGRATION_CONNECTION_LOST" ScanStatusReasonAccessDeniedToEncryptionKey ScanStatusReason = "ACCESS_DENIED_TO_ENCRYPTION_KEY" ScanStatusReasonUnsupportedLanguage ScanStatusReason = "UNSUPPORTED_LANGUAGE" ScanStatusReasonNoScanConfigurationAssociated ScanStatusReason = "NO_SCAN_CONFIGURATION_ASSOCIATED" ScanStatusReasonScanInProgress ScanStatusReason = "SCAN_IN_PROGRESS" )
Enum values for ScanStatusReason
func (ScanStatusReason) Values ¶
func (ScanStatusReason) Values() []ScanStatusReason
Values returns all known values for ScanStatusReason. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type ScanType ¶
type ScanType string
type Schedule ¶ added in v1.21.0
type Schedule interface {
// contains filtered or unexported methods
}
A schedule.
The following types satisfy this interface:
ScheduleMemberDaily ScheduleMemberMonthly ScheduleMemberOneTime ScheduleMemberWeekly
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.Schedule // type switches can be used to check the union value switch v := union.(type) { case *types.ScheduleMemberDaily: _ = v.Value // Value is types.DailySchedule case *types.ScheduleMemberMonthly: _ = v.Value // Value is types.MonthlySchedule case *types.ScheduleMemberOneTime: _ = v.Value // Value is types.OneTimeSchedule case *types.ScheduleMemberWeekly: _ = v.Value // Value is types.WeeklySchedule case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type ScheduleMemberDaily ¶ added in v1.21.0
type ScheduleMemberDaily struct { Value DailySchedule // contains filtered or unexported fields }
The schedule's daily.
type ScheduleMemberMonthly ¶ added in v1.21.0
type ScheduleMemberMonthly struct { Value MonthlySchedule // contains filtered or unexported fields }
The schedule's monthly.
type ScheduleMemberOneTime ¶ added in v1.21.0
type ScheduleMemberOneTime struct { Value OneTimeSchedule // contains filtered or unexported fields }
The schedule's one time.
type ScheduleMemberWeekly ¶ added in v1.21.0
type ScheduleMemberWeekly struct { Value WeeklySchedule // contains filtered or unexported fields }
The schedule's weekly.
type ScopeSettings ¶ added in v1.38.0
type ScopeSettings struct { // The scope of projects to be selected for scanning within the integrated // repositories. Setting the value to ALL applies the scope settings to all // existing and future projects imported into Amazon Inspector. ProjectSelectionScope ProjectSelectionScope // contains filtered or unexported fields }
Defines the scope of repositories to be included in code security scans.
type SearchVulnerabilitiesFilterCriteria ¶ added in v1.13.0
type SearchVulnerabilitiesFilterCriteria struct { // The IDs for specific vulnerabilities. // // This member is required. VulnerabilityIds []string // contains filtered or unexported fields }
Details on the criteria used to define the filter for a vulnerability search.
type ServiceQuotaExceededException ¶
type ServiceQuotaExceededException struct { Message *string ErrorCodeOverride *string ResourceId *string // contains filtered or unexported fields }
You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
func (*ServiceQuotaExceededException) Error ¶
func (e *ServiceQuotaExceededException) Error() string
func (*ServiceQuotaExceededException) ErrorCode ¶
func (e *ServiceQuotaExceededException) ErrorCode() string
func (*ServiceQuotaExceededException) ErrorFault ¶
func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault
func (*ServiceQuotaExceededException) ErrorMessage ¶
func (e *ServiceQuotaExceededException) ErrorMessage() string
type Severity ¶
type Severity string
type SeverityCounts ¶
type SeverityCounts struct { // The total count of findings from all severities. All *int64 // The total count of critical severity findings. Critical *int64 // The total count of high severity findings. High *int64 // The total count of medium severity findings. Medium *int64 // contains filtered or unexported fields }
An object that contains the counts of aggregated finding per severity.
type SortCriteria ¶
type SortCriteria struct { // The finding detail field by which results are sorted. // // This member is required. Field SortField // The order by which findings are sorted. // // This member is required. SortOrder SortOrder // contains filtered or unexported fields }
Details about the criteria used to sort finding results.
type SortField ¶
type SortField string
const ( SortFieldAwsAccountId SortField = "AWS_ACCOUNT_ID" SortFieldFindingType SortField = "FINDING_TYPE" SortFieldSeverity SortField = "SEVERITY" SortFieldFirstObservedAt SortField = "FIRST_OBSERVED_AT" SortFieldLastObservedAt SortField = "LAST_OBSERVED_AT" SortFieldFindingStatus SortField = "FINDING_STATUS" SortFieldResourceType SortField = "RESOURCE_TYPE" SortFieldEcrImagePushedAt SortField = "ECR_IMAGE_PUSHED_AT" SortFieldEcrImageRepositoryName SortField = "ECR_IMAGE_REPOSITORY_NAME" SortFieldEcrImageRegistry SortField = "ECR_IMAGE_REGISTRY" SortFieldNetworkProtocol SortField = "NETWORK_PROTOCOL" SortFieldComponentType SortField = "COMPONENT_TYPE" SortFieldVulnerabilityId SortField = "VULNERABILITY_ID" SortFieldVulnerabilitySource SortField = "VULNERABILITY_SOURCE" SortFieldInspectorScore SortField = "INSPECTOR_SCORE" SortFieldVendorSeverity SortField = "VENDOR_SEVERITY" SortFieldEpssScore SortField = "EPSS_SCORE" )
Enum values for SortField
type StartCisSessionMessage ¶ added in v1.21.0
type StartCisSessionMessage struct { // The unique token that identifies the CIS session. // // This member is required. SessionToken *string // contains filtered or unexported fields }
The start CIS session message.
type State ¶
type State struct { // The error code explaining why the account failed to enable Amazon Inspector. // // This member is required. ErrorCode ErrorCode // The error message received when the account failed to enable Amazon Inspector. // // This member is required. ErrorMessage *string // The status of Amazon Inspector for the account. // // This member is required. Status Status // contains filtered or unexported fields }
An object that described the state of Amazon Inspector scans for an account.
type Status ¶
type Status string
type StatusCounts ¶ added in v1.21.0
type StatusCounts struct { // The number of checks that failed. Failed *int32 // The number of checks that passed. Passed *int32 // The number of checks that were skipped. Skipped *int32 // contains filtered or unexported fields }
The status counts.
type Step ¶
type Step struct { // The component ID. // // This member is required. ComponentId *string // The component type. // // This member is required. ComponentType *string // The component ARN. The ARN can be null and is not displayed in the Amazon Web // Services console. ComponentArn *string // contains filtered or unexported fields }
Details about the step associated with a finding.
type StopCisMessageProgress ¶ added in v1.21.0
type StopCisMessageProgress struct { // The progress' error checks. ErrorChecks int32 // The progress' failed checks. FailedChecks int32 // The progress' informational checks. InformationalChecks int32 // The progress' not applicable checks. NotApplicableChecks int32 // The progress' not evaluated checks. NotEvaluatedChecks int32 // The progress' successful checks. SuccessfulChecks int32 // The progress' total checks. TotalChecks int32 // The progress' unknown checks. UnknownChecks int32 // contains filtered or unexported fields }
The stop CIS message progress.
type StopCisSessionMessage ¶ added in v1.21.0
type StopCisSessionMessage struct { // The progress of the message. // // This member is required. Progress *StopCisMessageProgress // The status of the message. // // This member is required. Status StopCisSessionStatus // The message benchmark profile. BenchmarkProfile *string // The message benchmark version. BenchmarkVersion *string // The message compute platform. ComputePlatform *ComputePlatform // The reason for the message. Reason *string // contains filtered or unexported fields }
The stop CIS session message.
type StopCisSessionStatus ¶ added in v1.21.0
type StopCisSessionStatus string
const ( StopCisSessionStatusSuccess StopCisSessionStatus = "SUCCESS" StopCisSessionStatusFailed StopCisSessionStatus = "FAILED" StopCisSessionStatusInterrupted StopCisSessionStatus = "INTERRUPTED" StopCisSessionStatusUnsupportedOs StopCisSessionStatus = "UNSUPPORTED_OS" )
Enum values for StopCisSessionStatus
func (StopCisSessionStatus) Values ¶ added in v1.21.0
func (StopCisSessionStatus) Values() []StopCisSessionStatus
Values returns all known values for StopCisSessionStatus. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type StringComparison ¶
type StringComparison string
const ( StringComparisonEquals StringComparison = "EQUALS" StringComparisonPrefix StringComparison = "PREFIX" StringComparisonNotEquals StringComparison = "NOT_EQUALS" )
Enum values for StringComparison
func (StringComparison) Values ¶
func (StringComparison) Values() []StringComparison
Values returns all known values for StringComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type StringFilter ¶
type StringFilter struct { // The operator to use when comparing values in the filter. // // This member is required. Comparison StringComparison // The value to filter on. // // This member is required. Value *string // contains filtered or unexported fields }
An object that describes the details of a string filter.
type SuccessfulAssociationResult ¶ added in v1.38.0
type SuccessfulAssociationResult struct { // Identifies a specific resource in a code repository that will be scanned. Resource CodeSecurityResource // The Amazon Resource Name (ARN) of the scan configuration that was successfully // associated or disassociated. ScanConfigurationArn *string // contains filtered or unexported fields }
Details about a successful association or disassociation between a code repository and a scan configuration.
type SuggestedFix ¶ added in v1.15.0
type SuggestedFix struct { // The fix's code. Code *string // The fix's description. Description *string // contains filtered or unexported fields }
A suggested fix for a vulnerability in your Lambda function code.
type TagComparison ¶ added in v1.21.0
type TagComparison string
const (
TagComparisonEquals TagComparison = "EQUALS"
)
Enum values for TagComparison
func (TagComparison) Values ¶ added in v1.21.0
func (TagComparison) Values() []TagComparison
Values returns all known values for TagComparison. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type TagFilter ¶ added in v1.21.0
type TagFilter struct { // The tag filter comparison value. // // This member is required. Comparison TagComparison // The tag filter key. // // This member is required. Key *string // The tag filter value. // // This member is required. Value *string // contains filtered or unexported fields }
The tag filter.
type ThrottlingException ¶
type ThrottlingException struct { Message *string ErrorCodeOverride *string RetryAfterSeconds *int32 // contains filtered or unexported fields }
The limit on the number of requests per second was exceeded.
func (*ThrottlingException) Error ¶
func (e *ThrottlingException) Error() string
func (*ThrottlingException) ErrorCode ¶
func (e *ThrottlingException) ErrorCode() string
func (*ThrottlingException) ErrorFault ¶
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
func (*ThrottlingException) ErrorMessage ¶
func (e *ThrottlingException) ErrorMessage() string
type Time ¶ added in v1.21.0
type Time struct { // The time of day in 24-hour format (00:00). // // This member is required. TimeOfDay *string // The timezone. // // This member is required. Timezone *string // contains filtered or unexported fields }
The time.
type TitleAggregation ¶
type TitleAggregation struct { // The type of finding to aggregate on. FindingType AggregationFindingType // The resource type to aggregate on. ResourceType AggregationResourceType // The value to sort results by. SortBy TitleSortBy // The order to sort results by. SortOrder SortOrder // The finding titles to aggregate on. Titles []StringFilter // The vulnerability IDs of the findings. VulnerabilityIds []StringFilter // contains filtered or unexported fields }
The details that define an aggregation based on finding title.
type TitleAggregationResponse ¶
type TitleAggregationResponse struct { // The title that the findings were aggregated on. // // This member is required. Title *string // The ID of the Amazon Web Services account associated with the findings. AccountId *string // An object that represent the count of matched findings per severity. SeverityCounts *SeverityCounts // The vulnerability ID of the finding. VulnerabilityId *string // contains filtered or unexported fields }
A response that contains details on the results of a finding aggregation by title.
type TitleSortBy ¶
type TitleSortBy string
const ( TitleSortByCritical TitleSortBy = "CRITICAL" TitleSortByHigh TitleSortBy = "HIGH" TitleSortByAll TitleSortBy = "ALL" )
Enum values for TitleSortBy
func (TitleSortBy) Values ¶
func (TitleSortBy) Values() []TitleSortBy
Values returns all known values for TitleSortBy. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type UnknownUnionMember ¶
type UnknownUnionMember struct { Tag string Value []byte // contains filtered or unexported fields }
UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.
type UpdateCisTargets ¶ added in v1.21.0
type UpdateCisTargets struct { // The target account ids. AccountIds []string // The target resource tags. TargetResourceTags map[string][]string // contains filtered or unexported fields }
Updates CIS targets.
type UpdateGitHubIntegrationDetail ¶ added in v1.38.0
type UpdateGitHubIntegrationDetail struct { // The authorization code received from GitHub to update the integration. // // This member is required. Code *string // The installation ID of the GitHub App associated with the integration. // // This member is required. InstallationId *string // contains filtered or unexported fields }
Contains details required to update an integration with GitHub.
type UpdateGitLabSelfManagedIntegrationDetail ¶ added in v1.38.0
type UpdateGitLabSelfManagedIntegrationDetail struct { // The authorization code received from the self-managed GitLab instance to update // the integration. // // This member is required. AuthCode *string // contains filtered or unexported fields }
Contains details required to update an integration with a self-managed GitLab instance.
type UpdateIntegrationDetails ¶ added in v1.38.0
type UpdateIntegrationDetails interface {
// contains filtered or unexported methods
}
Contains details required to update a code security integration with a specific repository provider.
The following types satisfy this interface:
UpdateIntegrationDetailsMemberGithub UpdateIntegrationDetailsMemberGitlabSelfManaged
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/inspector2/types" ) func main() { var union types.UpdateIntegrationDetails // type switches can be used to check the union value switch v := union.(type) { case *types.UpdateIntegrationDetailsMemberGithub: _ = v.Value // Value is types.UpdateGitHubIntegrationDetail case *types.UpdateIntegrationDetailsMemberGitlabSelfManaged: _ = v.Value // Value is types.UpdateGitLabSelfManagedIntegrationDetail case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type UpdateIntegrationDetailsMemberGithub ¶ added in v1.38.0
type UpdateIntegrationDetailsMemberGithub struct { Value UpdateGitHubIntegrationDetail // contains filtered or unexported fields }
Details specific to updating an integration with GitHub.
type UpdateIntegrationDetailsMemberGitlabSelfManaged ¶ added in v1.38.0
type UpdateIntegrationDetailsMemberGitlabSelfManaged struct { Value UpdateGitLabSelfManagedIntegrationDetail // contains filtered or unexported fields }
Details specific to updating an integration with a self-managed GitLab instance.
type Usage ¶
type Usage struct { // The currency type used when calculating usage data. Currency Currency // The estimated monthly cost of Amazon Inspector. EstimatedMonthlyCost float64 // The total of usage. Total float64 // The type scan. Type UsageType // contains filtered or unexported fields }
Contains usage information about the cost of Amazon Inspector operation.
type UsageTotal ¶
type UsageTotal struct { // The account ID of the account that usage data was retrieved for. AccountId *string // An object representing the total usage for an account. Usage []Usage // contains filtered or unexported fields }
The total of usage for an account ID.
type UsageType ¶
type UsageType string
const ( UsageTypeEc2InstanceHours UsageType = "EC2_INSTANCE_HOURS" UsageTypeEcrInitialScan UsageType = "ECR_INITIAL_SCAN" UsageTypeEcrRescan UsageType = "ECR_RESCAN" UsageTypeLambdaFunctionHours UsageType = "LAMBDA_FUNCTION_HOURS" UsageTypeLambdaFunctionCodeHours UsageType = "LAMBDA_FUNCTION_CODE_HOURS" UsageTypeCodeRepositorySast UsageType = "CODE_REPOSITORY_SAST" UsageTypeCodeRepositoryIac UsageType = "CODE_REPOSITORY_IAC" UsageTypeCodeRepositorySca UsageType = "CODE_REPOSITORY_SCA" UsageTypeEc2AgentlessInstanceHours UsageType = "EC2_AGENTLESS_INSTANCE_HOURS" )
Enum values for UsageType
type ValidationException ¶
type ValidationException struct { Message *string ErrorCodeOverride *string Reason ValidationExceptionReason Fields []ValidationExceptionField // contains filtered or unexported fields }
The request has failed validation due to missing required fields or having invalid inputs.
func (*ValidationException) Error ¶
func (e *ValidationException) Error() string
func (*ValidationException) ErrorCode ¶
func (e *ValidationException) ErrorCode() string
func (*ValidationException) ErrorFault ¶
func (e *ValidationException) ErrorFault() smithy.ErrorFault
func (*ValidationException) ErrorMessage ¶
func (e *ValidationException) ErrorMessage() string
type ValidationExceptionField ¶
type ValidationExceptionField struct { // The validation exception message. // // This member is required. Message *string // The name of the validation exception. // // This member is required. Name *string // contains filtered or unexported fields }
An object that describes a validation exception.
type ValidationExceptionReason ¶
type ValidationExceptionReason string
const ( ValidationExceptionReasonCannotParse ValidationExceptionReason = "CANNOT_PARSE" ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" )
Enum values for ValidationExceptionReason
func (ValidationExceptionReason) Values ¶
func (ValidationExceptionReason) Values() []ValidationExceptionReason
Values returns all known values for ValidationExceptionReason. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type Vulnerability ¶ added in v1.13.0
type Vulnerability struct { // The ID for the specific vulnerability. // // This member is required. Id *string // An object that contains information about the Amazon Web Services Threat Intel // Group (ATIG) details for the vulnerability. AtigData *AtigData // An object that contains the Cybersecurity and Infrastructure Security Agency // (CISA) details for the vulnerability. CisaData *CisaData // An object that contains the Common Vulnerability Scoring System (CVSS) Version // 2 details for the vulnerability. Cvss2 *Cvss2 // An object that contains the Common Vulnerability Scoring System (CVSS) Version // 3 details for the vulnerability. Cvss3 *Cvss3 // An object that contains the Common Vulnerability Scoring System (CVSS) Version // 4 details for the vulnerability. Cvss4 *Cvss4 // The Common Weakness Enumeration (CWE) associated with the vulnerability. Cwes []string // A description of the vulnerability. Description *string // Platforms that the vulnerability can be detected on. DetectionPlatforms []string // An object that contains the Exploit Prediction Scoring System (EPSS) score for // a vulnerability. Epss *Epss // An object that contains details on when the exploit was observed. ExploitObserved *ExploitObserved // Links to various resources with more information on this vulnerability. ReferenceUrls []string // A list of related vulnerabilities. RelatedVulnerabilities []string // The source of the vulnerability information. Possible results are RHEL , // AMAZON_CVE , DEBIAN or NVD . Source VulnerabilitySource // A link to the official source material for this vulnerability. SourceUrl *string // The date and time when the vendor created this vulnerability. VendorCreatedAt *time.Time // The severity assigned by the vendor. VendorSeverity *string // The date and time when the vendor last updated this vulnerability. VendorUpdatedAt *time.Time // contains filtered or unexported fields }
Contains details about a specific vulnerability Amazon Inspector can detect.
type VulnerabilitySource ¶ added in v1.13.0
type VulnerabilitySource string
const (
VulnerabilitySourceNvd VulnerabilitySource = "NVD"
)
Enum values for VulnerabilitySource
func (VulnerabilitySource) Values ¶ added in v1.13.0
func (VulnerabilitySource) Values() []VulnerabilitySource
Values returns all known values for VulnerabilitySource. Note that this can be expanded in the future, and so it is only as up to date as the client.
The ordering of this slice is not guaranteed to be stable across updates.
type VulnerablePackage ¶
type VulnerablePackage struct { // The name of the vulnerable package. // // This member is required. Name *string // The version of the vulnerable package. // // This member is required. Version *string // The architecture of the vulnerable package. Arch *string // The epoch of the vulnerable package. Epoch int32 // The file path of the vulnerable package. FilePath *string // The version of the package that contains the vulnerability fix. FixedInVersion *string // The package manager of the vulnerable package. PackageManager PackageManager // The release of the vulnerable package. Release *string // The code to run in your environment to update packages with a fix available. Remediation *string // The Amazon Resource Number (ARN) of the Amazon Web Services Lambda function // affected by a finding. SourceLambdaLayerArn *string // The source layer hash of the vulnerable package. SourceLayerHash *string // contains filtered or unexported fields }
Information on the vulnerable package identified by a finding.
type WeeklySchedule ¶ added in v1.21.0
type WeeklySchedule struct { // The weekly schedule's days. // // This member is required. Days []Day // The weekly schedule's start time. // // This member is required. StartTime *Time // contains filtered or unexported fields }
A weekly schedule.