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.

DurationRange

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

type DurationRange struct { MaxSeconds *int64 `locationName:"maxSeconds" min:"180" type:"integer"` MinSeconds *int64 `locationName:"minSeconds" min:"180" type:"integer"` }

This data type is used in the AssessmentTemplateFilter data type.

MaxSeconds

Type: *int64

The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

MinSeconds

Type: *int64

The minimum value of the duration range. Must be greater than zero.

Method

GoString

func (s DurationRange) GoString() string

GoString returns the string representation

SetMaxSeconds

func (s *DurationRange) SetMaxSeconds(v int64) *DurationRange

SetMaxSeconds sets the MaxSeconds field's value.

SetMinSeconds

func (s *DurationRange) SetMinSeconds(v int64) *DurationRange

SetMinSeconds sets the MinSeconds field's value.

String

func (s DurationRange) String() string

String returns the string representation

Validate

func (s *DurationRange) Validate() error

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

On this page: