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.

ProvisionedThroughput

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

type ProvisionedThroughput struct { ReadCapacityUnits *int64 `min:"1" type:"long" required:"true"` WriteCapacityUnits *int64 `min:"1" type:"long" required:"true"` }

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.

ReadCapacityUnits

Type: *int64

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) in the Amazon DynamoDB Developer Guide.

If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

ReadCapacityUnits is a required field

WriteCapacityUnits

Type: *int64

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) in the Amazon DynamoDB Developer Guide.

If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

WriteCapacityUnits is a required field

Method

GoString

func (s ProvisionedThroughput) GoString() string

GoString returns the string representation

SetReadCapacityUnits

func (s *ProvisionedThroughput) SetReadCapacityUnits(v int64) *ProvisionedThroughput

SetReadCapacityUnits sets the ReadCapacityUnits field's value.

SetWriteCapacityUnits

func (s *ProvisionedThroughput) SetWriteCapacityUnits(v int64) *ProvisionedThroughput

SetWriteCapacityUnits sets the WriteCapacityUnits field's value.

String

func (s ProvisionedThroughput) String() string

String returns the string representation

Validate

func (s *ProvisionedThroughput) Validate() error

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

On this page: