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.

ListAuditTasksInput

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

type ListAuditTasksInput struct { EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" required:"true"` MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" required:"true"` TaskStatus *string `location:"querystring" locationName:"taskStatus" type:"string" enum:"AuditTaskStatus"` TaskType *string `location:"querystring" locationName:"taskType" type:"string" enum:"AuditTaskType"` }

EndTime

Type: *time.Time

The end of the time period.

EndTime is a required field

MaxResults

Type: *int64

The maximum number of results to return at one time. The default is 25.

NextToken

Type: *string

The token for the next set of results.

StartTime

Type: *time.Time

The beginning of the time period. Note that audit information is retained for a limited time (180 days). Requesting a start time prior to what is retained results in an "InvalidRequestException".

StartTime is a required field

TaskStatus

Type: *string

A filter to limit the output to audits with the specified completion status: can be one of "IN_PROGRESS", "COMPLETED", "FAILED" or "CANCELED".

TaskType

Type: *string

A filter to limit the output to the specified type of audit: can be one of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED__AUDIT_TASK".

Method

GoString

func (s ListAuditTasksInput) GoString() string

GoString returns the string representation

SetEndTime

func (s *ListAuditTasksInput) SetEndTime(v time.Time) *ListAuditTasksInput

SetEndTime sets the EndTime field's value.

SetMaxResults

func (s *ListAuditTasksInput) SetMaxResults(v int64) *ListAuditTasksInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *ListAuditTasksInput) SetNextToken(v string) *ListAuditTasksInput

SetNextToken sets the NextToken field's value.

SetStartTime

func (s *ListAuditTasksInput) SetStartTime(v time.Time) *ListAuditTasksInput

SetStartTime sets the StartTime field's value.

SetTaskStatus

func (s *ListAuditTasksInput) SetTaskStatus(v string) *ListAuditTasksInput

SetTaskStatus sets the TaskStatus field's value.

SetTaskType

func (s *ListAuditTasksInput) SetTaskType(v string) *ListAuditTasksInput

SetTaskType sets the TaskType field's value.

String

func (s ListAuditTasksInput) String() string

String returns the string representation

Validate

func (s *ListAuditTasksInput) Validate() error

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

On this page: