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.

DateInterval

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

type DateInterval struct { End *string `type:"string" required:"true"` Start *string `type:"string" required:"true"` }

The time period that you want the usage and costs for.

End

Type: *string

The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

End is a required field

Start

Type: *string

The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.

Start is a required field

Method

GoString

func (s DateInterval) GoString() string

GoString returns the string representation

SetEnd

func (s *DateInterval) SetEnd(v string) *DateInterval

SetEnd sets the End field's value.

SetStart

func (s *DateInterval) SetStart(v string) *DateInterval

SetStart sets the Start field's value.

String

func (s DateInterval) String() string

String returns the string representation

Validate

func (s *DateInterval) Validate() error

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

On this page: