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.

UpdateStreamInput

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

type UpdateStreamInput struct { CurrentVersion *string `min:"1" type:"string" required:"true"` DeviceName *string `min:"1" type:"string"` MediaType *string `min:"1" type:"string"` StreamARN *string `min:"1" type:"string"` StreamName *string `min:"1" type:"string"` }

CurrentVersion

Type: *string

The version of the stream whose metadata you want to update.

CurrentVersion is a required field

DeviceName

Type: *string

The name of the device that is writing to the stream.

In the current implementation, Kinesis Video Streams does not use this name.

MediaType

Type: *string

The stream's media type. Use MediaType to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types (http://www.iana.org/assignments/media-types/media-types.xhtml). If you choose to specify the MediaType, see Naming Requirements (https://tools.ietf.org/html/rfc6838#section-4.2).

To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify video/h264 as the MediaType.

StreamARN

Type: *string

The ARN of the stream whose metadata you want to update.

StreamName

Type: *string

The name of the stream whose metadata you want to update.

The stream name is an identifier for the stream, and must be unique for each account and region.

Method

GoString

func (s UpdateStreamInput) GoString() string

GoString returns the string representation

SetCurrentVersion

func (s *UpdateStreamInput) SetCurrentVersion(v string) *UpdateStreamInput

SetCurrentVersion sets the CurrentVersion field's value.

SetDeviceName

func (s *UpdateStreamInput) SetDeviceName(v string) *UpdateStreamInput

SetDeviceName sets the DeviceName field's value.

SetMediaType

func (s *UpdateStreamInput) SetMediaType(v string) *UpdateStreamInput

SetMediaType sets the MediaType field's value.

SetStreamARN

func (s *UpdateStreamInput) SetStreamARN(v string) *UpdateStreamInput

SetStreamARN sets the StreamARN field's value.

SetStreamName

func (s *UpdateStreamInput) SetStreamName(v string) *UpdateStreamInput

SetStreamName sets the StreamName field's value.

String

func (s UpdateStreamInput) String() string

String returns the string representation

Validate

func (s *UpdateStreamInput) Validate() error

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

On this page: