package types
import "github.com/aws/aws-sdk-go-v2/service/inspector/types"
Index ¶
- type AccessDeniedErrorCode
- type AccessDeniedException
- func (e *AccessDeniedException) Error() string
- func (e *AccessDeniedException) ErrorCode() string
- func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
- func (e *AccessDeniedException) ErrorMessage() string
- type AgentAlreadyRunningAssessment
- type AgentFilter
- type AgentHealth
- type AgentHealthCode
- type AgentPreview
- type AgentsAlreadyRunningAssessmentException
- func (e *AgentsAlreadyRunningAssessmentException) Error() string
- func (e *AgentsAlreadyRunningAssessmentException) ErrorCode() string
- func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault
- func (e *AgentsAlreadyRunningAssessmentException) ErrorMessage() string
- type AssessmentRun
- type AssessmentRunAgent
- type AssessmentRunFilter
- type AssessmentRunInProgressException
- func (e *AssessmentRunInProgressException) Error() string
- func (e *AssessmentRunInProgressException) ErrorCode() string
- func (e *AssessmentRunInProgressException) ErrorFault() smithy.ErrorFault
- func (e *AssessmentRunInProgressException) ErrorMessage() string
- type AssessmentRunNotification
- type AssessmentRunNotificationSnsStatusCode
- type AssessmentRunState
- type AssessmentRunStateChange
- type AssessmentTarget
- type AssessmentTargetFilter
- type AssessmentTemplate
- type AssessmentTemplateFilter
- type AssetAttributes
- type AssetType
- type Attribute
- type DurationRange
- type EventSubscription
- type Exclusion
- type ExclusionPreview
- type FailedItemDetails
- type FailedItemErrorCode
- type Finding
- type FindingFilter
- type InspectorEvent
- type InspectorServiceAttributes
- type InternalException
- func (e *InternalException) Error() string
- func (e *InternalException) ErrorCode() string
- func (e *InternalException) ErrorFault() smithy.ErrorFault
- func (e *InternalException) ErrorMessage() string
- type InvalidCrossAccountRoleErrorCode
- type InvalidCrossAccountRoleException
- func (e *InvalidCrossAccountRoleException) Error() string
- func (e *InvalidCrossAccountRoleException) ErrorCode() string
- func (e *InvalidCrossAccountRoleException) ErrorFault() smithy.ErrorFault
- func (e *InvalidCrossAccountRoleException) ErrorMessage() string
- type InvalidInputErrorCode
- type InvalidInputException
- func (e *InvalidInputException) Error() string
- func (e *InvalidInputException) ErrorCode() string
- func (e *InvalidInputException) ErrorFault() smithy.ErrorFault
- func (e *InvalidInputException) ErrorMessage() string
- type LimitExceededErrorCode
- type LimitExceededException
- func (e *LimitExceededException) Error() string
- func (e *LimitExceededException) ErrorCode() string
- func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
- func (e *LimitExceededException) ErrorMessage() string
- type Locale
- type NetworkInterface
- type NoSuchEntityErrorCode
- type NoSuchEntityException
- func (e *NoSuchEntityException) Error() string
- func (e *NoSuchEntityException) ErrorCode() string
- func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault
- func (e *NoSuchEntityException) ErrorMessage() string
- type PreviewGenerationInProgressException
- func (e *PreviewGenerationInProgressException) Error() string
- func (e *PreviewGenerationInProgressException) ErrorCode() string
- func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault
- func (e *PreviewGenerationInProgressException) ErrorMessage() string
- type PreviewStatus
- type PrivateIp
- type ReportFileFormat
- type ReportStatus
- type ReportType
- type ResourceGroup
- type ResourceGroupTag
- type RulesPackage
- type Scope
- type ScopeType
- type SecurityGroup
- type ServiceTemporarilyUnavailableException
- func (e *ServiceTemporarilyUnavailableException) Error() string
- func (e *ServiceTemporarilyUnavailableException) ErrorCode() string
- func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault
- func (e *ServiceTemporarilyUnavailableException) ErrorMessage() string
- type Severity
- type StopAction
- type Subscription
- type Tag
- type TelemetryMetadata
- type TimestampRange
- type UnsupportedFeatureException
Types ¶
type AccessDeniedErrorCode ¶
type AccessDeniedErrorCode string
const ( AccessDeniedErrorCodeAccess_denied_to_assessment_target AccessDeniedErrorCode = "ACCESS_DENIED_TO_ASSESSMENT_TARGET" AccessDeniedErrorCodeAccess_denied_to_assessment_template AccessDeniedErrorCode = "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE" AccessDeniedErrorCodeAccess_denied_to_assessment_run AccessDeniedErrorCode = "ACCESS_DENIED_TO_ASSESSMENT_RUN" AccessDeniedErrorCodeAccess_denied_to_finding AccessDeniedErrorCode = "ACCESS_DENIED_TO_FINDING" AccessDeniedErrorCodeAccess_denied_to_resource_group AccessDeniedErrorCode = "ACCESS_DENIED_TO_RESOURCE_GROUP" AccessDeniedErrorCodeAccess_denied_to_rules_package AccessDeniedErrorCode = "ACCESS_DENIED_TO_RULES_PACKAGE" AccessDeniedErrorCodeAccess_denied_to_sns_topic AccessDeniedErrorCode = "ACCESS_DENIED_TO_SNS_TOPIC" AccessDeniedErrorCodeAccess_denied_to_iam_role AccessDeniedErrorCode = "ACCESS_DENIED_TO_IAM_ROLE" )
Enum values for AccessDeniedErrorCode
type AccessDeniedException ¶
type AccessDeniedException struct { Message *string CanRetry *bool ErrorCode_ AccessDeniedErrorCode }
You do not have required permissions to access the requested resource.
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 AgentAlreadyRunningAssessment ¶
type AgentAlreadyRunningAssessment struct { // ID of the agent that is running on an EC2 instance that is already participating // in another started assessment run. // // This member is required. AgentId *string // The ARN of the assessment run that has already been started. // // This member is required. AssessmentRunArn *string }
Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.
type AgentFilter ¶
type AgentFilter struct { // The detailed health state of the agent. Values can be set to IDLE, RUNNING, // SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN. // // This member is required. AgentHealthCodes []AgentHealthCode // The current health state of the agent. Values can be set to HEALTHY or // UNHEALTHY. // // This member is required. AgentHealths []AgentHealth }
Contains information about an Amazon Inspector agent. This data type is used as a request parameter in the ListAssessmentRunAgents action.
type AgentHealth ¶
type AgentHealth string
const ( AgentHealthHealthy AgentHealth = "HEALTHY" AgentHealthUnhealthy AgentHealth = "UNHEALTHY" AgentHealthUnknown AgentHealth = "UNKNOWN" )
Enum values for AgentHealth
type AgentHealthCode ¶
type AgentHealthCode string
const ( AgentHealthCodeIdle AgentHealthCode = "IDLE" AgentHealthCodeRunning AgentHealthCode = "RUNNING" AgentHealthCodeShutdown AgentHealthCode = "SHUTDOWN" AgentHealthCodeUnhealthy AgentHealthCode = "UNHEALTHY" AgentHealthCodeThrottled AgentHealthCode = "THROTTLED" AgentHealthCodeUnknown AgentHealthCode = "UNKNOWN" )
Enum values for AgentHealthCode
type AgentPreview ¶
type AgentPreview struct { // The ID of the EC2 instance where the agent is installed. // // This member is required. AgentId *string // The health status of the Amazon Inspector Agent. AgentHealth AgentHealth // The version of the Amazon Inspector Agent. AgentVersion *string // The Auto Scaling group for the EC2 instance where the agent is installed. AutoScalingGroup *string // The hostname of the EC2 instance on which the Amazon Inspector Agent is // installed. Hostname *string // The IP address of the EC2 instance on which the Amazon Inspector Agent is // installed. Ipv4Address *string // The kernel version of the operating system running on the EC2 instance on which // the Amazon Inspector Agent is installed. KernelVersion *string // The operating system running on the EC2 instance on which the Amazon Inspector // Agent is installed. OperatingSystem *string }
Used as a response element in the PreviewAgents action.
type AgentsAlreadyRunningAssessmentException ¶
type AgentsAlreadyRunningAssessmentException struct { Message *string Agents []*AgentAlreadyRunningAssessment AgentsTruncated *bool CanRetry *bool }
You started an assessment run, but one of the instances is already participating in another assessment run.
func (*AgentsAlreadyRunningAssessmentException) Error ¶
func (e *AgentsAlreadyRunningAssessmentException) Error() string
func (*AgentsAlreadyRunningAssessmentException) ErrorCode ¶
func (e *AgentsAlreadyRunningAssessmentException) ErrorCode() string
func (*AgentsAlreadyRunningAssessmentException) ErrorFault ¶
func (e *AgentsAlreadyRunningAssessmentException) ErrorFault() smithy.ErrorFault
func (*AgentsAlreadyRunningAssessmentException) ErrorMessage ¶
func (e *AgentsAlreadyRunningAssessmentException) ErrorMessage() string
type AssessmentRun ¶
type AssessmentRun struct { // The ARN of the assessment run. // // This member is required. Arn *string // The ARN of the assessment template that is associated with the assessment run. // // This member is required. AssessmentTemplateArn *string // The time when StartAssessmentRun was called. // // This member is required. CreatedAt *time.Time // A Boolean value (true or false) that specifies whether the process of collecting // data from the agents is completed. // // This member is required. DataCollected *bool // The duration of the assessment run. // // This member is required. DurationInSeconds *int32 // Provides a total count of generated findings per severity. // // This member is required. FindingCounts map[string]*int32 // The auto-generated name for the assessment run. // // This member is required. Name *string // A list of notifications for the event subscriptions. A notification about a // particular generated finding is added to this list only once. // // This member is required. Notifications []*AssessmentRunNotification // The rules packages selected for the assessment run. // // This member is required. RulesPackageArns []*string // The state of the assessment run. // // This member is required. State AssessmentRunState // The last time when the assessment run's state changed. // // This member is required. StateChangedAt *time.Time // A list of the assessment run state changes. // // This member is required. StateChanges []*AssessmentRunStateChange // The user-defined attributes that are assigned to every generated finding. // // This member is required. UserAttributesForFindings []*Attribute // The assessment run completion time that corresponds to the rules packages // evaluation completion time or failure. CompletedAt *time.Time // The time when StartAssessmentRun was called. StartedAt *time.Time }
A snapshot of an Amazon Inspector assessment run that contains the findings of the assessment run . Used as the response element in the DescribeAssessmentRuns action.
type AssessmentRunAgent ¶
type AssessmentRunAgent struct { // The current health state of the agent. // // This member is required. AgentHealth AgentHealth // The detailed health state of the agent. // // This member is required. AgentHealthCode AgentHealthCode // The AWS account of the EC2 instance where the agent is installed. // // This member is required. AgentId *string // The ARN of the assessment run that is associated with the agent. // // This member is required. AssessmentRunArn *string // The Amazon Inspector application data metrics that are collected by the agent. // // This member is required. TelemetryMetadata []*TelemetryMetadata // The description for the agent health code. AgentHealthDetails *string // The Auto Scaling group of the EC2 instance that is specified by the agent ID. AutoScalingGroup *string }
Contains information about an Amazon Inspector agent. This data type is used as a response element in the ListAssessmentRunAgents action.
type AssessmentRunFilter ¶
type AssessmentRunFilter struct { // For a record to match a filter, the value that is specified for this data type // property must inclusively match any value between the specified minimum and // maximum values of the completedAt property of the AssessmentRun data type. CompletionTimeRange *TimestampRange // For a record to match a filter, the value that is specified for this data type // property must inclusively match any value between the specified minimum and // maximum values of the durationInSeconds property of the AssessmentRun data type. DurationRange *DurationRange // For a record to match a filter, an explicit value or a string containing a // wildcard that is specified for this data type property must match the value of // the assessmentRunName property of the AssessmentRun data type. NamePattern *string // For a record to match a filter, the value that is specified for this data type // property must be contained in the list of values of the rulesPackages property // of the AssessmentRun data type. RulesPackageArns []*string // For a record to match a filter, the value that is specified for this data type // property must inclusively match any value between the specified minimum and // maximum values of the startTime property of the AssessmentRun data type. StartTimeRange *TimestampRange // For a record to match a filter, the value that is specified for this data type // property must match the stateChangedAt property of the AssessmentRun data type. StateChangeTimeRange *TimestampRange // For a record to match a filter, one of the values specified for this data type // property must be the exact match of the value of the assessmentRunState property // of the AssessmentRun data type. States []AssessmentRunState }
Used as the request parameter in the ListAssessmentRuns action.
type AssessmentRunInProgressException ¶
type AssessmentRunInProgressException struct { Message *string AssessmentRunArns []*string AssessmentRunArnsTruncated *bool CanRetry *bool }
You cannot perform a specified action if an assessment run is currently in progress.
func (*AssessmentRunInProgressException) Error ¶
func (e *AssessmentRunInProgressException) Error() string
func (*AssessmentRunInProgressException) ErrorCode ¶
func (e *AssessmentRunInProgressException) ErrorCode() string
func (*AssessmentRunInProgressException) ErrorFault ¶
func (e *AssessmentRunInProgressException) ErrorFault() smithy.ErrorFault
func (*AssessmentRunInProgressException) ErrorMessage ¶
func (e *AssessmentRunInProgressException) ErrorMessage() string
type AssessmentRunNotification ¶
type AssessmentRunNotification struct { // The date of the notification. // // This member is required. Date *time.Time // The Boolean value that specifies whether the notification represents an error. // // This member is required. Error *bool // The event for which a notification is sent. // // This member is required. Event InspectorEvent // The message included in the notification. Message *string // The status code of the SNS notification. SnsPublishStatusCode AssessmentRunNotificationSnsStatusCode // The SNS topic to which the SNS notification is sent. SnsTopicArn *string }
Used as one of the elements of the AssessmentRun data type.
type AssessmentRunNotificationSnsStatusCode ¶
type AssessmentRunNotificationSnsStatusCode string
const ( AssessmentRunNotificationSnsStatusCodeSuccess AssessmentRunNotificationSnsStatusCode = "SUCCESS" AssessmentRunNotificationSnsStatusCodeTopic_does_not_exist AssessmentRunNotificationSnsStatusCode = "TOPIC_DOES_NOT_EXIST" AssessmentRunNotificationSnsStatusCodeAccess_denied AssessmentRunNotificationSnsStatusCode = "ACCESS_DENIED" AssessmentRunNotificationSnsStatusCodeInternal_error AssessmentRunNotificationSnsStatusCode = "INTERNAL_ERROR" )
Enum values for AssessmentRunNotificationSnsStatusCode
type AssessmentRunState ¶
type AssessmentRunState string
const ( AssessmentRunStateCreated AssessmentRunState = "CREATED" AssessmentRunStateStart_data_collection_pending AssessmentRunState = "START_DATA_COLLECTION_PENDING" AssessmentRunStateStart_data_collection_in_progress AssessmentRunState = "START_DATA_COLLECTION_IN_PROGRESS" AssessmentRunStateCollecting_data AssessmentRunState = "COLLECTING_DATA" AssessmentRunStateStop_data_collection_pending AssessmentRunState = "STOP_DATA_COLLECTION_PENDING" AssessmentRunStateData_collected AssessmentRunState = "DATA_COLLECTED" AssessmentRunStateStart_evaluating_rules_pending AssessmentRunState = "START_EVALUATING_RULES_PENDING" AssessmentRunStateEvaluating_rules AssessmentRunState = "EVALUATING_RULES" AssessmentRunStateFailed AssessmentRunState = "FAILED" AssessmentRunStateError AssessmentRunState = "ERROR" AssessmentRunStateCompleted AssessmentRunState = "COMPLETED" AssessmentRunStateCompleted_with_errors AssessmentRunState = "COMPLETED_WITH_ERRORS" AssessmentRunStateCanceled AssessmentRunState = "CANCELED" )
Enum values for AssessmentRunState
type AssessmentRunStateChange ¶
type AssessmentRunStateChange struct { // The assessment run state. // // This member is required. State AssessmentRunState // The last time the assessment run state changed. // // This member is required. StateChangedAt *time.Time }
Used as one of the elements of the AssessmentRun data type.
type AssessmentTarget ¶
type AssessmentTarget struct { // The ARN that specifies the Amazon Inspector assessment target. // // This member is required. Arn *string // The time at which the assessment target is created. // // This member is required. CreatedAt *time.Time // The name of the Amazon Inspector assessment target. // // This member is required. Name *string // The time at which UpdateAssessmentTarget is called. // // This member is required. UpdatedAt *time.Time // The ARN that specifies the resource group that is associated with the assessment // target. ResourceGroupArn *string }
Contains information about an Amazon Inspector application. This data type is used as the response element in the DescribeAssessmentTargets action.
type AssessmentTargetFilter ¶
type AssessmentTargetFilter struct { // For a record to match a filter, an explicit value or a string that contains a // wildcard that is specified for this data type property must match the value of // the assessmentTargetName property of the AssessmentTarget data type. AssessmentTargetNamePattern *string }
Used as the request parameter in the ListAssessmentTargets action.
type AssessmentTemplate ¶
type AssessmentTemplate struct { // The ARN of the assessment template. // // This member is required. Arn *string // The number of existing assessment runs associated with this assessment template. // This value can be zero or a positive integer. // // This member is required. AssessmentRunCount *int32 // The ARN of the assessment target that corresponds to this assessment template. // // This member is required. AssessmentTargetArn *string // The time at which the assessment template is created. // // This member is required. CreatedAt *time.Time // The duration in seconds specified for this assessment template. The default // value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day). // // This member is required. DurationInSeconds *int32 // The name of the assessment template. // // This member is required. Name *string // The rules packages that are specified for this assessment template. // // This member is required. RulesPackageArns []*string // The user-defined attributes that are assigned to every generated finding from // the assessment run that uses this assessment template. // // This member is required. UserAttributesForFindings []*Attribute // The Amazon Resource Name (ARN) of the most recent assessment run associated with // this assessment template. This value exists only when the value of // assessmentRunCount is greaterpa than zero. LastAssessmentRunArn *string }
Contains information about an Amazon Inspector assessment template. This data type is used as the response element in the DescribeAssessmentTemplates action.
type AssessmentTemplateFilter ¶
type AssessmentTemplateFilter struct { // For a record to match a filter, the value specified for this data type property // must inclusively match any value between the specified minimum and maximum // values of the durationInSeconds property of the AssessmentTemplate data type. DurationRange *DurationRange // For a record to match a filter, an explicit value or a string that contains a // wildcard that is specified for this data type property must match the value of // the assessmentTemplateName property of the AssessmentTemplate data type. NamePattern *string // For a record to match a filter, the values that are specified for this data type // property must be contained in the list of values of the rulesPackageArns // property of the AssessmentTemplate data type. RulesPackageArns []*string }
Used as the request parameter in the ListAssessmentTemplates action.
type AssetAttributes ¶
type AssetAttributes struct { // The schema version of this data type. // // This member is required. SchemaVersion *int32 // The ID of the agent that is installed on the EC2 instance where the finding is // generated. AgentId *string // The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance // where the finding is generated. AmiId *string // The Auto Scaling group of the EC2 instance where the finding is generated. AutoScalingGroup *string // The hostname of the EC2 instance where the finding is generated. Hostname *string // The list of IP v4 addresses of the EC2 instance where the finding is generated. Ipv4Addresses []*string // An array of the network interfaces interacting with the EC2 instance where the // finding is generated. NetworkInterfaces []*NetworkInterface // The tags related to the EC2 instance where the finding is generated. Tags []*Tag }
A collection of attributes of the host from which the finding is generated.
type AssetType ¶
type AssetType string
const ( AssetTypeEc2_instance AssetType = "ec2-instance" )
Enum values for AssetType
type Attribute ¶
type Attribute struct { // The attribute key. // // This member is required. Key *string // The value assigned to the attribute key. Value *string }
This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.
type DurationRange ¶
type DurationRange struct { // The maximum value of the duration range. Must be less than or equal to 604800 // seconds (1 week). MaxSeconds *int32 // The minimum value of the duration range. Must be greater than zero. MinSeconds *int32 }
This data type is used in the AssessmentTemplateFilter data type.
type EventSubscription ¶
type EventSubscription struct { // The event for which Amazon Simple Notification Service (SNS) notifications are // sent. // // This member is required. Event InspectorEvent // The time at which SubscribeToEvent is called. // // This member is required. SubscribedAt *time.Time }
This data type is used in the Subscription data type.
type Exclusion ¶
type Exclusion struct { // The ARN that specifies the exclusion. // // This member is required. Arn *string // The description of the exclusion. // // This member is required. Description *string // The recommendation for the exclusion. // // This member is required. Recommendation *string // The AWS resources for which the exclusion pertains. // // This member is required. Scopes []*Scope // The name of the exclusion. // // This member is required. Title *string // The system-defined attributes for the exclusion. Attributes []*Attribute }
Contains information about what was excluded from an assessment run.
type ExclusionPreview ¶
type ExclusionPreview struct { // The description of the exclusion preview. // // This member is required. Description *string // The recommendation for the exclusion preview. // // This member is required. Recommendation *string // The AWS resources for which the exclusion preview pertains. // // This member is required. Scopes []*Scope // The name of the exclusion preview. // // This member is required. Title *string // The system-defined attributes for the exclusion preview. Attributes []*Attribute }
Contains information about what is excluded from an assessment run given the current state of the assessment template.
type FailedItemDetails ¶
type FailedItemDetails struct { // The status code of a failed item. // // This member is required. FailureCode FailedItemErrorCode // Indicates whether you can immediately retry a request for this item for a // specified resource. // // This member is required. Retryable *bool }
Includes details about the failed items.
type FailedItemErrorCode ¶
type FailedItemErrorCode string
const ( FailedItemErrorCodeInvalid_arn FailedItemErrorCode = "INVALID_ARN" FailedItemErrorCodeDuplicate_arn FailedItemErrorCode = "DUPLICATE_ARN" FailedItemErrorCodeItem_does_not_exist FailedItemErrorCode = "ITEM_DOES_NOT_EXIST" FailedItemErrorCodeAccess_denied FailedItemErrorCode = "ACCESS_DENIED" FailedItemErrorCodeLimit_exceeded FailedItemErrorCode = "LIMIT_EXCEEDED" FailedItemErrorCodeInternal_error FailedItemErrorCode = "INTERNAL_ERROR" )
Enum values for FailedItemErrorCode
type Finding ¶
type Finding struct { // The ARN that specifies the finding. // // This member is required. Arn *string // The system-defined attributes for the finding. // // This member is required. Attributes []*Attribute // The time when the finding was generated. // // This member is required. CreatedAt *time.Time // The time when AddAttributesToFindings is called. // // This member is required. UpdatedAt *time.Time // The user-defined attributes that are assigned to the finding. // // This member is required. UserAttributes []*Attribute // A collection of attributes of the host from which the finding is generated. AssetAttributes *AssetAttributes // The type of the host from which the finding is generated. AssetType AssetType // This data element is currently not used. Confidence *int32 // The description of the finding. Description *string // The ID of the finding. Id *string // This data element is currently not used. IndicatorOfCompromise *bool // The numeric value of the finding severity. NumericSeverity *float64 // The recommendation for the finding. Recommendation *string // The schema version of this data type. SchemaVersion *int32 // The data element is set to "Inspector". Service *string // This data type is used in the Finding data type. ServiceAttributes *InspectorServiceAttributes // The finding severity. Values can be set to High, Medium, Low, and Informational. Severity Severity // The name of the finding. Title *string }
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
type FindingFilter ¶
type FindingFilter struct { // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the agentId property // of the Finding data type. AgentIds []*string // For a record to match a filter, the list of values that are specified for this // data type property must be contained in the list of values of the attributes // property of the Finding data type. Attributes []*Attribute // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the autoScalingGroup // property of the Finding data type. AutoScalingGroups []*string // The time range during which the finding is generated. CreationTimeRange *TimestampRange // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the ruleName property // of the Finding data type. RuleNames []*string // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the rulesPackageArn // property of the Finding data type. RulesPackageArns []*string // For a record to match a filter, one of the values that is specified for this // data type property must be the exact match of the value of the severity property // of the Finding data type. Severities []Severity // For a record to match a filter, the value that is specified for this data type // property must be contained in the list of values of the userAttributes property // of the Finding data type. UserAttributes []*Attribute }
This data type is used as a request parameter in the ListFindings action.
type InspectorEvent ¶
type InspectorEvent string
const ( InspectorEventAssessment_run_started InspectorEvent = "ASSESSMENT_RUN_STARTED" InspectorEventAssessment_run_completed InspectorEvent = "ASSESSMENT_RUN_COMPLETED" InspectorEventAssessment_run_state_changed InspectorEvent = "ASSESSMENT_RUN_STATE_CHANGED" InspectorEventFinding_reported InspectorEvent = "FINDING_REPORTED" InspectorEventOther InspectorEvent = "OTHER" )
Enum values for InspectorEvent
type InspectorServiceAttributes ¶
type InspectorServiceAttributes struct { // The schema version of this data type. // // This member is required. SchemaVersion *int32 // The ARN of the assessment run during which the finding is generated. AssessmentRunArn *string // The ARN of the rules package that is used to generate the finding. RulesPackageArn *string }
This data type is used in the Finding data type.
type InternalException ¶
Internal server error.
func (*InternalException) Error ¶
func (e *InternalException) Error() string
func (*InternalException) ErrorCode ¶
func (e *InternalException) ErrorCode() string
func (*InternalException) ErrorFault ¶
func (e *InternalException) ErrorFault() smithy.ErrorFault
func (*InternalException) ErrorMessage ¶
func (e *InternalException) ErrorMessage() string
type InvalidCrossAccountRoleErrorCode ¶
type InvalidCrossAccountRoleErrorCode string
const ( InvalidCrossAccountRoleErrorCodeRole_does_not_exist_or_invalid_trust_relationship InvalidCrossAccountRoleErrorCode = "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP" InvalidCrossAccountRoleErrorCodeRole_does_not_have_correct_policy InvalidCrossAccountRoleErrorCode = "ROLE_DOES_NOT_HAVE_CORRECT_POLICY" )
Enum values for InvalidCrossAccountRoleErrorCode
type InvalidCrossAccountRoleException ¶
type InvalidCrossAccountRoleException struct { Message *string ErrorCode_ InvalidCrossAccountRoleErrorCode CanRetry *bool }
Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
func (*InvalidCrossAccountRoleException) Error ¶
func (e *InvalidCrossAccountRoleException) Error() string
func (*InvalidCrossAccountRoleException) ErrorCode ¶
func (e *InvalidCrossAccountRoleException) ErrorCode() string
func (*InvalidCrossAccountRoleException) ErrorFault ¶
func (e *InvalidCrossAccountRoleException) ErrorFault() smithy.ErrorFault
func (*InvalidCrossAccountRoleException) ErrorMessage ¶
func (e *InvalidCrossAccountRoleException) ErrorMessage() string
type InvalidInputErrorCode ¶
type InvalidInputErrorCode string
const ( InvalidInputErrorCodeInvalid_assessment_target_arn InvalidInputErrorCode = "INVALID_ASSESSMENT_TARGET_ARN" InvalidInputErrorCodeInvalid_assessment_template_arn InvalidInputErrorCode = "INVALID_ASSESSMENT_TEMPLATE_ARN" InvalidInputErrorCodeInvalid_assessment_run_arn InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_ARN" InvalidInputErrorCodeInvalid_finding_arn InvalidInputErrorCode = "INVALID_FINDING_ARN" InvalidInputErrorCodeInvalid_resource_group_arn InvalidInputErrorCode = "INVALID_RESOURCE_GROUP_ARN" InvalidInputErrorCodeInvalid_rules_package_arn InvalidInputErrorCode = "INVALID_RULES_PACKAGE_ARN" InvalidInputErrorCodeInvalid_resource_arn InvalidInputErrorCode = "INVALID_RESOURCE_ARN" InvalidInputErrorCodeInvalid_sns_topic_arn InvalidInputErrorCode = "INVALID_SNS_TOPIC_ARN" InvalidInputErrorCodeInvalid_iam_role_arn InvalidInputErrorCode = "INVALID_IAM_ROLE_ARN" InvalidInputErrorCodeInvalid_assessment_target_name InvalidInputErrorCode = "INVALID_ASSESSMENT_TARGET_NAME" InvalidInputErrorCodeInvalid_assessment_target_name_pattern InvalidInputErrorCode = "INVALID_ASSESSMENT_TARGET_NAME_PATTERN" InvalidInputErrorCodeInvalid_assessment_template_name InvalidInputErrorCode = "INVALID_ASSESSMENT_TEMPLATE_NAME" InvalidInputErrorCodeInvalid_assessment_template_name_pattern InvalidInputErrorCode = "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN" InvalidInputErrorCodeInvalid_assessment_template_duration InvalidInputErrorCode = "INVALID_ASSESSMENT_TEMPLATE_DURATION" InvalidInputErrorCodeInvalid_assessment_template_duration_range InvalidInputErrorCode = "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE" InvalidInputErrorCodeInvalid_assessment_run_duration_range InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_DURATION_RANGE" InvalidInputErrorCodeInvalid_assessment_run_start_time_range InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_START_TIME_RANGE" InvalidInputErrorCodeInvalid_assessment_run_completion_time_range InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE" InvalidInputErrorCodeInvalid_assessment_run_state_change_time_range InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE" InvalidInputErrorCodeInvalid_assessment_run_state InvalidInputErrorCode = "INVALID_ASSESSMENT_RUN_STATE" InvalidInputErrorCodeInvalid_tag InvalidInputErrorCode = "INVALID_TAG" InvalidInputErrorCodeInvalid_tag_key InvalidInputErrorCode = "INVALID_TAG_KEY" InvalidInputErrorCodeInvalid_tag_value InvalidInputErrorCode = "INVALID_TAG_VALUE" InvalidInputErrorCodeInvalid_resource_group_tag_key InvalidInputErrorCode = "INVALID_RESOURCE_GROUP_TAG_KEY" InvalidInputErrorCodeInvalid_resource_group_tag_value InvalidInputErrorCode = "INVALID_RESOURCE_GROUP_TAG_VALUE" InvalidInputErrorCodeInvalid_attribute InvalidInputErrorCode = "INVALID_ATTRIBUTE" InvalidInputErrorCodeInvalid_user_attribute InvalidInputErrorCode = "INVALID_USER_ATTRIBUTE" InvalidInputErrorCodeInvalid_user_attribute_key InvalidInputErrorCode = "INVALID_USER_ATTRIBUTE_KEY" InvalidInputErrorCodeInvalid_user_attribute_value InvalidInputErrorCode = "INVALID_USER_ATTRIBUTE_VALUE" InvalidInputErrorCodeInvalid_pagination_token InvalidInputErrorCode = "INVALID_PAGINATION_TOKEN" InvalidInputErrorCodeInvalid_max_results InvalidInputErrorCode = "INVALID_MAX_RESULTS" InvalidInputErrorCodeInvalid_agent_id InvalidInputErrorCode = "INVALID_AGENT_ID" InvalidInputErrorCodeInvalid_auto_scaling_group InvalidInputErrorCode = "INVALID_AUTO_SCALING_GROUP" InvalidInputErrorCodeInvalid_rule_name InvalidInputErrorCode = "INVALID_RULE_NAME" InvalidInputErrorCodeInvalid_severity InvalidInputErrorCode = "INVALID_SEVERITY" InvalidInputErrorCodeInvalid_locale InvalidInputErrorCode = "INVALID_LOCALE" InvalidInputErrorCodeInvalid_event InvalidInputErrorCode = "INVALID_EVENT" InvalidInputErrorCodeAssessment_target_name_already_taken InvalidInputErrorCode = "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN" InvalidInputErrorCodeAssessment_template_name_already_taken InvalidInputErrorCode = "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN" InvalidInputErrorCodeInvalid_number_of_assessment_target_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS" InvalidInputErrorCodeInvalid_number_of_assessment_template_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS" InvalidInputErrorCodeInvalid_number_of_assessment_run_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS" InvalidInputErrorCodeInvalid_number_of_finding_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_FINDING_ARNS" InvalidInputErrorCodeInvalid_number_of_resource_group_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS" InvalidInputErrorCodeInvalid_number_of_rules_package_arns InvalidInputErrorCode = "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS" InvalidInputErrorCodeInvalid_number_of_assessment_run_states InvalidInputErrorCode = "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES" InvalidInputErrorCode = "INVALID_NUMBER_OF_TAGS" InvalidInputErrorCode = "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS" InvalidInputErrorCodeInvalid_number_of_attributes InvalidInputErrorCode = "INVALID_NUMBER_OF_ATTRIBUTES" InvalidInputErrorCodeInvalid_number_of_user_attributes InvalidInputErrorCode = "INVALID_NUMBER_OF_USER_ATTRIBUTES" InvalidInputErrorCodeInvalid_number_of_agent_ids InvalidInputErrorCode = "INVALID_NUMBER_OF_AGENT_IDS" InvalidInputErrorCodeInvalid_number_of_auto_scaling_groups InvalidInputErrorCode = "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS" InvalidInputErrorCodeInvalid_number_of_rule_names InvalidInputErrorCode = "INVALID_NUMBER_OF_RULE_NAMES" InvalidInputErrorCodeInvalid_number_of_severities InvalidInputErrorCode = "INVALID_NUMBER_OF_SEVERITIES" )
Enum values for InvalidInputErrorCode
type InvalidInputException ¶
type InvalidInputException struct { Message *string CanRetry *bool ErrorCode_ InvalidInputErrorCode }
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
func (*InvalidInputException) Error ¶
func (e *InvalidInputException) Error() string
func (*InvalidInputException) ErrorCode ¶
func (e *InvalidInputException) ErrorCode() string
func (*InvalidInputException) ErrorFault ¶
func (e *InvalidInputException) ErrorFault() smithy.ErrorFault
func (*InvalidInputException) ErrorMessage ¶
func (e *InvalidInputException) ErrorMessage() string
type LimitExceededErrorCode ¶
type LimitExceededErrorCode string
const ( LimitExceededErrorCodeAssessment_target_limit_exceeded LimitExceededErrorCode = "ASSESSMENT_TARGET_LIMIT_EXCEEDED" LimitExceededErrorCodeAssessment_template_limit_exceeded LimitExceededErrorCode = "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED" LimitExceededErrorCodeAssessment_run_limit_exceeded LimitExceededErrorCode = "ASSESSMENT_RUN_LIMIT_EXCEEDED" LimitExceededErrorCodeResource_group_limit_exceeded LimitExceededErrorCode = "RESOURCE_GROUP_LIMIT_EXCEEDED" LimitExceededErrorCodeEvent_subscription_limit_exceeded LimitExceededErrorCode = "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED" )
Enum values for LimitExceededErrorCode
type LimitExceededException ¶
type LimitExceededException struct { Message *string ErrorCode_ LimitExceededErrorCode CanRetry *bool }
The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.
func (*LimitExceededException) Error ¶
func (e *LimitExceededException) Error() string
func (*LimitExceededException) ErrorCode ¶
func (e *LimitExceededException) ErrorCode() string
func (*LimitExceededException) ErrorFault ¶
func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
func (*LimitExceededException) ErrorMessage ¶
func (e *LimitExceededException) ErrorMessage() string
type Locale ¶
type Locale string
const ( LocaleEn_us Locale = "EN_US" )
Enum values for Locale
type NetworkInterface ¶
type NetworkInterface struct { // The IP addresses associated with the network interface. Ipv6Addresses []*string // The ID of the network interface. NetworkInterfaceId *string // The name of a private DNS associated with the network interface. PrivateDnsName *string // The private IP address associated with the network interface. PrivateIpAddress *string // A list of the private IP addresses associated with the network interface. // Includes the privateDnsName and privateIpAddress. PrivateIpAddresses []*PrivateIp // The name of a public DNS associated with the network interface. PublicDnsName *string // The public IP address from which the network interface is reachable. PublicIp *string // A list of the security groups associated with the network interface. Includes // the groupId and groupName. SecurityGroups []*SecurityGroup // The ID of a subnet associated with the network interface. SubnetId *string // The ID of a VPC associated with the network interface. VpcId *string }
Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.
type NoSuchEntityErrorCode ¶
type NoSuchEntityErrorCode string
const ( NoSuchEntityErrorCodeAssessment_target_does_not_exist NoSuchEntityErrorCode = "ASSESSMENT_TARGET_DOES_NOT_EXIST" NoSuchEntityErrorCodeAssessment_template_does_not_exist NoSuchEntityErrorCode = "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST" NoSuchEntityErrorCodeAssessment_run_does_not_exist NoSuchEntityErrorCode = "ASSESSMENT_RUN_DOES_NOT_EXIST" NoSuchEntityErrorCodeFinding_does_not_exist NoSuchEntityErrorCode = "FINDING_DOES_NOT_EXIST" NoSuchEntityErrorCodeResource_group_does_not_exist NoSuchEntityErrorCode = "RESOURCE_GROUP_DOES_NOT_EXIST" NoSuchEntityErrorCodeRules_package_does_not_exist NoSuchEntityErrorCode = "RULES_PACKAGE_DOES_NOT_EXIST" NoSuchEntityErrorCodeSns_topic_does_not_exist NoSuchEntityErrorCode = "SNS_TOPIC_DOES_NOT_EXIST" NoSuchEntityErrorCodeIam_role_does_not_exist NoSuchEntityErrorCode = "IAM_ROLE_DOES_NOT_EXIST" )
Enum values for NoSuchEntityErrorCode
type NoSuchEntityException ¶
type NoSuchEntityException struct { Message *string CanRetry *bool ErrorCode_ NoSuchEntityErrorCode }
The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
func (*NoSuchEntityException) Error ¶
func (e *NoSuchEntityException) Error() string
func (*NoSuchEntityException) ErrorCode ¶
func (e *NoSuchEntityException) ErrorCode() string
func (*NoSuchEntityException) ErrorFault ¶
func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault
func (*NoSuchEntityException) ErrorMessage ¶
func (e *NoSuchEntityException) ErrorMessage() string
type PreviewGenerationInProgressException ¶
type PreviewGenerationInProgressException struct { Message *string }
The request is rejected. The specified assessment template is currently generating an exclusions preview.
func (*PreviewGenerationInProgressException) Error ¶
func (e *PreviewGenerationInProgressException) Error() string
func (*PreviewGenerationInProgressException) ErrorCode ¶
func (e *PreviewGenerationInProgressException) ErrorCode() string
func (*PreviewGenerationInProgressException) ErrorFault ¶
func (e *PreviewGenerationInProgressException) ErrorFault() smithy.ErrorFault
func (*PreviewGenerationInProgressException) ErrorMessage ¶
func (e *PreviewGenerationInProgressException) ErrorMessage() string
type PreviewStatus ¶
type PreviewStatus string
const ( PreviewStatusWork_in_progress PreviewStatus = "WORK_IN_PROGRESS" PreviewStatusCompleted PreviewStatus = "COMPLETED" )
Enum values for PreviewStatus
type PrivateIp ¶
type PrivateIp struct { // The DNS name of the private IP address. PrivateDnsName *string // The full IP address of the network inteface. PrivateIpAddress *string }
Contains information about a private IP address associated with a network interface. This data type is used as a response element in the DescribeFindings action.
type ReportFileFormat ¶
type ReportFileFormat string
const ( ReportFileFormatHtml ReportFileFormat = "HTML" ReportFileFormatPdf ReportFileFormat = "PDF" )
Enum values for ReportFileFormat
type ReportStatus ¶
type ReportStatus string
const ( ReportStatusWork_in_progress ReportStatus = "WORK_IN_PROGRESS" ReportStatusFailed ReportStatus = "FAILED" ReportStatusCompleted ReportStatus = "COMPLETED" )
Enum values for ReportStatus
type ReportType ¶
type ReportType string
const ( ReportTypeFinding ReportType = "FINDING" ReportTypeFull ReportType = "FULL" )
Enum values for ReportType
type ResourceGroup ¶
type ResourceGroup struct { // The ARN of the resource group. // // This member is required. Arn *string // The time at which resource group is created. // // This member is required. CreatedAt *time.Time // The tags (key and value pairs) of the resource group. This data type property is // used in the CreateResourceGroup action. // // This member is required. Tags []*ResourceGroupTag }
Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target. This data type is used as the response element in the DescribeResourceGroups action.
type ResourceGroupTag ¶
type ResourceGroupTag struct { // A tag key. // // This member is required. Key *string // The value assigned to a tag key. Value *string }
This data type is used as one of the elements of the ResourceGroup data type.
type RulesPackage ¶
type RulesPackage struct { // The ARN of the rules package. // // This member is required. Arn *string // The name of the rules package. // // This member is required. Name *string // The provider of the rules package. // // This member is required. Provider *string // The version ID of the rules package. // // This member is required. Version *string // The description of the rules package. Description *string }
Contains information about an Amazon Inspector rules package. This data type is used as the response element in the DescribeRulesPackages action.
type Scope ¶
type Scope struct { // The type of the scope. Key ScopeType // The resource identifier for the specified scope type. Value *string }
This data type contains key-value pairs that identify various Amazon resources.
type ScopeType ¶
type ScopeType string
const ( ScopeTypeInstance_id ScopeType = "INSTANCE_ID" ScopeTypeRules_package_arn ScopeType = "RULES_PACKAGE_ARN" )
Enum values for ScopeType
type SecurityGroup ¶
type SecurityGroup struct { // The ID of the security group. GroupId *string // The name of the security group. GroupName *string }
Contains information about a security group associated with a network interface. This data type is used as one of the elements of the NetworkInterface data type.
type ServiceTemporarilyUnavailableException ¶
The serice is temporary unavailable.
func (*ServiceTemporarilyUnavailableException) Error ¶
func (e *ServiceTemporarilyUnavailableException) Error() string
func (*ServiceTemporarilyUnavailableException) ErrorCode ¶
func (e *ServiceTemporarilyUnavailableException) ErrorCode() string
func (*ServiceTemporarilyUnavailableException) ErrorFault ¶
func (e *ServiceTemporarilyUnavailableException) ErrorFault() smithy.ErrorFault
func (*ServiceTemporarilyUnavailableException) ErrorMessage ¶
func (e *ServiceTemporarilyUnavailableException) ErrorMessage() string
type Severity ¶
type Severity string
const ( SeverityLow Severity = "Low" SeverityMedium Severity = "Medium" SeverityHigh Severity = "High" SeverityInformational Severity = "Informational" SeverityUndefined Severity = "Undefined" )
Enum values for Severity
type StopAction ¶
type StopAction string
const ( StopActionStart_evaluation StopAction = "START_EVALUATION" StopActionSkip_evaluation StopAction = "SKIP_EVALUATION" )
Enum values for StopAction
type Subscription ¶
type Subscription struct { // The list of existing event subscriptions. // // This member is required. EventSubscriptions []*EventSubscription // The ARN of the assessment template that is used during the event for which the // SNS notification is sent. // // This member is required. ResourceArn *string // The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS // notifications are sent. // // This member is required. TopicArn *string }
This data type is used as a response element in the ListEventSubscriptions action.
type Tag ¶
type Tag struct { // A tag key. // // This member is required. Key *string // A value assigned to a tag key. Value *string }
A key and value pair. This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.
type TelemetryMetadata ¶
type TelemetryMetadata struct { // The count of messages that the agent sends to the Amazon Inspector service. // // This member is required. Count *int64 // A specific type of behavioral data that is collected by the agent. // // This member is required. MessageType *string // The data size of messages that the agent sends to the Amazon Inspector service. DataSize *int64 }
The metadata about the Amazon Inspector application data metrics collected by the agent. This data type is used as the response element in the GetTelemetryMetadata action.
type TimestampRange ¶
type TimestampRange struct { // The minimum value of the timestamp range. BeginDate *time.Time // The maximum value of the timestamp range. EndDate *time.Time }
This data type is used in the AssessmentRunFilter data type.
type UnsupportedFeatureException ¶
Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.
func (*UnsupportedFeatureException) Error ¶
func (e *UnsupportedFeatureException) Error() string
func (*UnsupportedFeatureException) ErrorCode ¶
func (e *UnsupportedFeatureException) ErrorCode() string
func (*UnsupportedFeatureException) ErrorFault ¶
func (e *UnsupportedFeatureException) ErrorFault() smithy.ErrorFault
func (*UnsupportedFeatureException) ErrorMessage ¶
func (e *UnsupportedFeatureException) ErrorMessage() string
Source Files ¶
- Version
- v0.27.0
- Published
- Oct 17, 2020
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 8 hours ago –
Tools for package owners.