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.

Channel

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

type Channel struct { Arn *string `locationName:"arn" type:"string"` CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"` Name *string `locationName:"name" min:"1" type:"string"` RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` Status *string `locationName:"status" type:"string" enum:"ChannelStatus"` }

A collection of data from an MQTT topic. Channels archive the raw, unprocessed messages before publishing the data to a pipeline.

Arn

Type: *string

The ARN of the channel.

CreationTime

Type: *time.Time

When the channel was created.

LastUpdateTime

Type: *time.Time

When the channel was last updated.

Name

Type: *string

The name of the channel.

RetentionPeriod

How long, in days, message data is kept.

Status

Type: *string

The status of the channel.

Method

GoString

func (s Channel) GoString() string

GoString returns the string representation

SetArn

func (s *Channel) SetArn(v string) *Channel

SetArn sets the Arn field's value.

SetCreationTime

func (s *Channel) SetCreationTime(v time.Time) *Channel

SetCreationTime sets the CreationTime field's value.

SetLastUpdateTime

func (s *Channel) SetLastUpdateTime(v time.Time) *Channel

SetLastUpdateTime sets the LastUpdateTime field's value.

SetName

func (s *Channel) SetName(v string) *Channel

SetName sets the Name field's value.

SetRetentionPeriod

func (s *Channel) SetRetentionPeriod(v *RetentionPeriod) *Channel

SetRetentionPeriod sets the RetentionPeriod field's value.

SetStatus

func (s *Channel) SetStatus(v string) *Channel

SetStatus sets the Status field's value.

String

func (s Channel) String() string

String returns the string representation

On this page: