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.

UpdateDataRetentionInput

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

type UpdateDataRetentionInput struct { CurrentVersion *string `min:"1" type:"string" required:"true"` DataRetentionChangeInHours *int64 `min:"1" type:"integer" required:"true"` Operation *string `type:"string" required:"true" enum:"UpdateDataRetentionOperation"` StreamARN *string `min:"1" type:"string"` StreamName *string `min:"1" type:"string"` }

CurrentVersion

Type: *string

The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.

CurrentVersion is a required field

DataRetentionChangeInHours

Type: *int64

The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).

DataRetentionChangeInHours is a required field

Operation

Type: *string

Indicates whether you want to increase or decrease the retention period.

Operation is a required field

StreamARN

Type: *string

The Amazon Resource Name (ARN) of the stream whose retention period you want to change.

StreamName

Type: *string

The name of the stream whose retention period you want to change.

Method

GoString

func (s UpdateDataRetentionInput) GoString() string

GoString returns the string representation

SetCurrentVersion

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

SetCurrentVersion sets the CurrentVersion field's value.

SetDataRetentionChangeInHours

func (s *UpdateDataRetentionInput) SetDataRetentionChangeInHours(v int64) *UpdateDataRetentionInput

SetDataRetentionChangeInHours sets the DataRetentionChangeInHours field's value.

SetOperation

func (s *UpdateDataRetentionInput) SetOperation(v string) *UpdateDataRetentionInput

SetOperation sets the Operation field's value.

SetStreamARN

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

SetStreamARN sets the StreamARN field's value.

SetStreamName

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

SetStreamName sets the StreamName field's value.

String

func (s UpdateDataRetentionInput) String() string

String returns the string representation

Validate

func (s *UpdateDataRetentionInput) Validate() error

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

On this page: