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.

ViolationEvent

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

type ViolationEvent struct { Behavior *Behavior `locationName:"behavior" type:"structure"` MetricValue *MetricValue `locationName:"metricValue" type:"structure"` SecurityProfileName *string `locationName:"securityProfileName" min:"1" type:"string"` ThingName *string `locationName:"thingName" min:"1" type:"string"` ViolationEventTime *time.Time `locationName:"violationEventTime" type:"timestamp"` ViolationEventType *string `locationName:"violationEventType" type:"string" enum:"ViolationEventType"` ViolationId *string `locationName:"violationId" min:"1" type:"string"` }

Information about a Device Defender security profile behavior violation.

Behavior

A Device Defender security profile behavior.

MetricValue

The value to be compared with the metric.

SecurityProfileName

Type: *string

The name of the security profile whose behavior was violated.

ThingName

Type: *string

The name of the thing responsible for the violation event.

ViolationEventTime

Type: *time.Time

The time the violation event occurred.

ViolationEventType

Type: *string

The type of violation event.

ViolationId

Type: *string

The ID of the violation event.

Method

GoString

func (s ViolationEvent) GoString() string

GoString returns the string representation

SetBehavior

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

SetBehavior sets the Behavior field's value.

SetMetricValue

func (s *ViolationEvent) SetMetricValue(v *MetricValue) *ViolationEvent

SetMetricValue sets the MetricValue field's value.

SetSecurityProfileName

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

SetSecurityProfileName sets the SecurityProfileName field's value.

SetThingName

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

SetThingName sets the ThingName field's value.

SetViolationEventTime

func (s *ViolationEvent) SetViolationEventTime(v time.Time) *ViolationEvent

SetViolationEventTime sets the ViolationEventTime field's value.

SetViolationEventType

func (s *ViolationEvent) SetViolationEventType(v string) *ViolationEvent

SetViolationEventType sets the ViolationEventType field's value.

SetViolationId

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

SetViolationId sets the ViolationId field's value.

String

func (s ViolationEvent) String() string

String returns the string representation

On this page: