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.

CreateStreamInput

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

type CreateStreamInput struct { Description *string `locationName:"description" type:"string"` Files []*StreamFile `locationName:"files" min:"1" type:"list" required:"true"` RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` StreamId *string `location:"uri" locationName:"streamId" min:"1" type:"string" required:"true"` }

Description

Type: *string

A description of the stream.

Files

Represents a file to stream.

RoleArn

Type: *string

An IAM role that allows the IoT service principal assumes to access your S3 files.

RoleArn is a required field

StreamId

Type: *string

The stream ID.

StreamId is a required field

Method

GoString

func (s CreateStreamInput) GoString() string

GoString returns the string representation

SetDescription

func (s *CreateStreamInput) SetDescription(v string) *CreateStreamInput

SetDescription sets the Description field's value.

SetFiles

func (s *CreateStreamInput) SetFiles(v []*StreamFile) *CreateStreamInput

SetFiles sets the Files field's value.

SetRoleArn

func (s *CreateStreamInput) SetRoleArn(v string) *CreateStreamInput

SetRoleArn sets the RoleArn field's value.

SetStreamId

func (s *CreateStreamInput) SetStreamId(v string) *CreateStreamInput

SetStreamId sets the StreamId field's value.

String

func (s CreateStreamInput) String() string

String returns the string representation

Validate

func (s *CreateStreamInput) Validate() error

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

On this page: