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.

Coverage

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

type Coverage struct { CoverageCost *CoverageCost `type:"structure"` CoverageHours *CoverageHours `type:"structure"` CoverageNormalizedUnits *CoverageNormalizedUnits `type:"structure"` }

The amount of instance usage that a reservation covered.

CoverageCost

How much it cost to run an instance.

CoverageHours

How long a running instance either used a reservation or was On-Demand.

CoverageNormalizedUnits

The amount of instance usage, in normalized units. Normalized units enable you to see your EC2 usage for multiple sizes of instances in a uniform way. For example, suppose you run an xlarge instance and a 2xlarge instance. If you run both instances for the same amount of time, the 2xlarge instance uses twice as much of your reservation as the xlarge instance, even though both instances show only one instance-hour. Using normalized units instead of instance-hours, the xlarge instance used 8 normalized units, and the 2xlarge instance used 16 normalized units.

For more information, see Modifying Reserved Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

Method

GoString

func (s Coverage) GoString() string

GoString returns the string representation

SetCoverageCost

func (s *Coverage) SetCoverageCost(v *CoverageCost) *Coverage

SetCoverageCost sets the CoverageCost field's value.

SetCoverageHours

func (s *Coverage) SetCoverageHours(v *CoverageHours) *Coverage

SetCoverageHours sets the CoverageHours field's value.

SetCoverageNormalizedUnits

func (s *Coverage) SetCoverageNormalizedUnits(v *CoverageNormalizedUnits) *Coverage

SetCoverageNormalizedUnits sets the CoverageNormalizedUnits field's value.

String

func (s Coverage) String() string

String returns the string representation

On this page: