AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

AssessmentRun

import "github.com/aws/aws-sdk-go/service/inspector"

type AssessmentRun struct { Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` AssessmentTemplateArn *string `locationName:"assessmentTemplateArn" min:"1" type:"string" required:"true"` CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` DataCollected *bool `locationName:"dataCollected" type:"boolean" required:"true"` DurationInSeconds *int64 `locationName:"durationInSeconds" min:"180" type:"integer" required:"true"` FindingCounts map[string]*int64 `locationName:"findingCounts" type:"map" required:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"` Notifications []*AssessmentRunNotification `locationName:"notifications" type:"list" required:"true"` RulesPackageArns []*string `locationName:"rulesPackageArns" min:"1" type:"list" required:"true"` StartedAt *time.Time `locationName:"startedAt" type:"timestamp"` State *string `locationName:"state" type:"string" required:"true" enum:"AssessmentRunState"` StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" required:"true"` StateChanges []*AssessmentRunStateChange `locationName:"stateChanges" type:"list" required:"true"` UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list" required:"true"` }

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.

Arn

Type: *string

The ARN of the assessment run.

Arn is a required field

AssessmentTemplateArn

Type: *string

The ARN of the assessment template that is associated with the assessment run.

AssessmentTemplateArn is a required field

CompletedAt

Type: *time.Time

The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

CreatedAt

Type: *time.Time

The time when StartAssessmentRun was called.

CreatedAt is a required field

DataCollected

Type: *bool

A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

DataCollected is a required field

DurationInSeconds

Type: *int64

The duration of the assessment run.

DurationInSeconds is a required field

FindingCounts

Type: map[string]*int64

Provides a total count of generated findings per severity.

FindingCounts is a required field

Name

Type: *string

The auto-generated name for the assessment run.

Name is a required field

Notifications

Used as one of the elements of the AssessmentRun data type.

RulesPackageArns

Type: []*string

The rules packages selected for the assessment run.

RulesPackageArns is a required field

StartedAt

Type: *time.Time

The time when StartAssessmentRun was called.

State

Type: *string

The state of the assessment run.

State is a required field

StateChangedAt

Type: *time.Time

The last time when the assessment run's state changed.

StateChangedAt is a required field

StateChanges

Used as one of the elements of the AssessmentRun data type.

UserAttributesForFindings

This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.

Method

GoString

func (s AssessmentRun) GoString() string

GoString returns the string representation

SetArn

func (s *AssessmentRun) SetArn(v string) *AssessmentRun

SetArn sets the Arn field's value.

SetAssessmentTemplateArn

func (s *AssessmentRun) SetAssessmentTemplateArn(v string) *AssessmentRun

SetAssessmentTemplateArn sets the AssessmentTemplateArn field's value.

SetCompletedAt

func (s *AssessmentRun) SetCompletedAt(v time.Time) *AssessmentRun

SetCompletedAt sets the CompletedAt field's value.

SetCreatedAt

func (s *AssessmentRun) SetCreatedAt(v time.Time) *AssessmentRun

SetCreatedAt sets the CreatedAt field's value.

SetDataCollected

func (s *AssessmentRun) SetDataCollected(v bool) *AssessmentRun

SetDataCollected sets the DataCollected field's value.

SetDurationInSeconds

func (s *AssessmentRun) SetDurationInSeconds(v int64) *AssessmentRun

SetDurationInSeconds sets the DurationInSeconds field's value.

SetFindingCounts

func (s *AssessmentRun) SetFindingCounts(v map[string]*int64) *AssessmentRun

SetFindingCounts sets the FindingCounts field's value.

SetName

func (s *AssessmentRun) SetName(v string) *AssessmentRun

SetName sets the Name field's value.

SetNotifications

func (s *AssessmentRun) SetNotifications(v []*AssessmentRunNotification) *AssessmentRun

SetNotifications sets the Notifications field's value.

SetRulesPackageArns

func (s *AssessmentRun) SetRulesPackageArns(v []*string) *AssessmentRun

SetRulesPackageArns sets the RulesPackageArns field's value.

SetStartedAt

func (s *AssessmentRun) SetStartedAt(v time.Time) *AssessmentRun

SetStartedAt sets the StartedAt field's value.

SetState

func (s *AssessmentRun) SetState(v string) *AssessmentRun

SetState sets the State field's value.

SetStateChangedAt

func (s *AssessmentRun) SetStateChangedAt(v time.Time) *AssessmentRun

SetStateChangedAt sets the StateChangedAt field's value.

SetStateChanges

func (s *AssessmentRun) SetStateChanges(v []*AssessmentRunStateChange) *AssessmentRun

SetStateChanges sets the StateChanges field's value.

SetUserAttributesForFindings

func (s *AssessmentRun) SetUserAttributesForFindings(v []*Attribute) *AssessmentRun

SetUserAttributesForFindings sets the UserAttributesForFindings field's value.

String

func (s AssessmentRun) String() string

String returns the string representation

On this page: