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.

ConsumedCapacity

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

type ConsumedCapacity struct { CapacityUnits *float64 `type:"double"` GlobalSecondaryIndexes map[string]*Capacity `type:"map"` LocalSecondaryIndexes map[string]*Capacity `type:"map"` ReadCapacityUnits *float64 `type:"double"` Table *Capacity `type:"structure"` TableName *string `min:"3" type:"string"` WriteCapacityUnits *float64 `type:"double"` }

The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) in the Amazon DynamoDB Developer Guide.

CapacityUnits

Type: *float64

The total number of capacity units consumed by the operation.

GlobalSecondaryIndexes

Type: map[string]*Capacity

The amount of throughput consumed on each global index affected by the operation.

LocalSecondaryIndexes

Type: map[string]*Capacity

The amount of throughput consumed on each local index affected by the operation.

ReadCapacityUnits

Type: *float64

The total number of read capacity units consumed by the operation.

Table

Represents the amount of provisioned throughput capacity consumed on a table or an index.

TableName

Type: *string

The name of the table that was affected by the operation.

WriteCapacityUnits

Type: *float64

The total number of write capacity units consumed by the operation.

Method

GoString

func (s ConsumedCapacity) GoString() string

GoString returns the string representation

SetCapacityUnits

func (s *ConsumedCapacity) SetCapacityUnits(v float64) *ConsumedCapacity

SetCapacityUnits sets the CapacityUnits field's value.

SetGlobalSecondaryIndexes

func (s *ConsumedCapacity) SetGlobalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity

SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value.

SetLocalSecondaryIndexes

func (s *ConsumedCapacity) SetLocalSecondaryIndexes(v map[string]*Capacity) *ConsumedCapacity

SetLocalSecondaryIndexes sets the LocalSecondaryIndexes field's value.

SetReadCapacityUnits

func (s *ConsumedCapacity) SetReadCapacityUnits(v float64) *ConsumedCapacity

SetReadCapacityUnits sets the ReadCapacityUnits field's value.

SetTable

func (s *ConsumedCapacity) SetTable(v *Capacity) *ConsumedCapacity

SetTable sets the Table field's value.

SetTableName

func (s *ConsumedCapacity) SetTableName(v string) *ConsumedCapacity

SetTableName sets the TableName field's value.

SetWriteCapacityUnits

func (s *ConsumedCapacity) SetWriteCapacityUnits(v float64) *ConsumedCapacity

SetWriteCapacityUnits sets the WriteCapacityUnits field's value.

String

func (s ConsumedCapacity) String() string

String returns the string representation

On this page: