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.

CreateSecurityProfileInput

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

type CreateSecurityProfileInput struct { AdditionalMetricsToRetain []*string `locationName:"additionalMetricsToRetain" type:"list"` AlertTargets map[string]*AlertTarget `locationName:"alertTargets" type:"map"` Behaviors []*Behavior `locationName:"behaviors" type:"list"` SecurityProfileDescription *string `locationName:"securityProfileDescription" type:"string"` SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

AdditionalMetricsToRetain

Type: []*string

A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors but it is also retained for any metric specified here.

AlertTargets

Type: map[string]*AlertTarget

Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.

Behaviors

A Device Defender security profile behavior.

SecurityProfileDescription

Type: *string

A description of the security profile.

SecurityProfileName

Type: *string

The name you are giving to the security profile.

SecurityProfileName is a required field

Tags

A set of key/value pairs that are used to manage the resource.

Method

GoString

func (s CreateSecurityProfileInput) GoString() string

GoString returns the string representation

SetAdditionalMetricsToRetain

func (s *CreateSecurityProfileInput) SetAdditionalMetricsToRetain(v []*string) *CreateSecurityProfileInput

SetAdditionalMetricsToRetain sets the AdditionalMetricsToRetain field's value.

SetAlertTargets

func (s *CreateSecurityProfileInput) SetAlertTargets(v map[string]*AlertTarget) *CreateSecurityProfileInput

SetAlertTargets sets the AlertTargets field's value.

SetBehaviors

func (s *CreateSecurityProfileInput) SetBehaviors(v []*Behavior) *CreateSecurityProfileInput

SetBehaviors sets the Behaviors field's value.

SetSecurityProfileDescription

func (s *CreateSecurityProfileInput) SetSecurityProfileDescription(v string) *CreateSecurityProfileInput

SetSecurityProfileDescription sets the SecurityProfileDescription field's value.

SetSecurityProfileName

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

SetSecurityProfileName sets the SecurityProfileName field's value.

SetTags

func (s *CreateSecurityProfileInput) SetTags(v []*Tag) *CreateSecurityProfileInput

SetTags sets the Tags field's value.

String

func (s CreateSecurityProfileInput) String() string

String returns the string representation

Validate

func (s *CreateSecurityProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: