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.

ActiveViolation

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

type ActiveViolation struct { Behavior *Behavior `locationName:"behavior" type:"structure"` LastViolationTime *time.Time `locationName:"lastViolationTime" type:"timestamp"` LastViolationValue *MetricValue `locationName:"lastViolationValue" type:"structure"` SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"` ThingName *string `locationName:"thingName" min:"1" type:"string"` ViolationId *string `locationName:"violationId" min:"1" type:"string"` ViolationStartTime *time.Time `locationName:"violationStartTime" type:"timestamp"` }

Information about an active Device Defender security profile behavior violation.

Behavior

A Device Defender security profile behavior.

LastViolationTime

Type: *time.Time

The time the most recent violation occurred.

LastViolationValue

The value to be compared with the metric.

SecurityProfileName

Type: *string

The security profile whose behavior is in violation.

ThingName

Type: *string

The name of the thing responsible for the active violation.

ViolationId

Type: *string

The ID of the active violation.

ViolationStartTime

Type: *time.Time

The time the violation started.

Method

GoString

func (s ActiveViolation) GoString() string

GoString returns the string representation

SetBehavior

func (s *ActiveViolation) SetBehavior(v *Behavior) *ActiveViolation

SetBehavior sets the Behavior field's value.

SetLastViolationTime

func (s *ActiveViolation) SetLastViolationTime(v time.Time) *ActiveViolation

SetLastViolationTime sets the LastViolationTime field's value.

SetLastViolationValue

func (s *ActiveViolation) SetLastViolationValue(v *MetricValue) *ActiveViolation

SetLastViolationValue sets the LastViolationValue field's value.

SetSecurityProfileName

func (s *ActiveViolation) SetSecurityProfileName(v string) *ActiveViolation

SetSecurityProfileName sets the SecurityProfileName field's value.

SetThingName

func (s *ActiveViolation) SetThingName(v string) *ActiveViolation

SetThingName sets the ThingName field's value.

SetViolationId

func (s *ActiveViolation) SetViolationId(v string) *ActiveViolation

SetViolationId sets the ViolationId field's value.

SetViolationStartTime

func (s *ActiveViolation) SetViolationStartTime(v time.Time) *ActiveViolation

SetViolationStartTime sets the ViolationStartTime field's value.

String

func (s ActiveViolation) String() string

String returns the string representation

On this page: