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.

ReportDefinition

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

type ReportDefinition struct { AdditionalArtifacts []*string `type:"list"` AdditionalSchemaElements []*string `type:"list" required:"true"` Compression *string `type:"string" required:"true" enum:"CompressionFormat"` Format *string `type:"string" required:"true" enum:"ReportFormat"` RefreshClosedReports *bool `type:"boolean"` ReportName *string `type:"string" required:"true"` ReportVersioning *string `type:"string" enum:"ReportVersioning"` S3Bucket *string `type:"string" required:"true"` S3Prefix *string `type:"string" required:"true"` S3Region *string `type:"string" required:"true" enum:"AWSRegion"` TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"` }

The definition of AWS Cost and Usage Report. You can specify the report name, time unit, report format, compression format, S3 bucket, additional artifacts, and schema elements in the definition.

AdditionalArtifacts

Type: []*string

A list of manifests that you want Amazon Web Services to create for this report.

AdditionalSchemaElements

Type: []*string

A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.

AdditionalSchemaElements is a required field

Compression

Type: *string

The compression format that AWS uses for the report.

Compression is a required field

Format

Type: *string

The format that AWS saves the report in.

Format is a required field

RefreshClosedReports

Type: *bool

Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months. These charges can include refunds, credits, or support fees.

ReportName

Type: *string

The name of the report that you want to create. The name must be unique, is case sensitive, and can't include spaces.

ReportName is a required field

ReportVersioning

Type: *string

Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions.

S3Bucket

Type: *string

The S3 bucket where AWS delivers the report.

S3Bucket is a required field

S3Prefix

Type: *string

The prefix that AWS adds to the report name when AWS delivers the report. Your prefix can't include spaces.

S3Prefix is a required field

S3Region

Type: *string

The region of the S3 bucket that AWS delivers the report into.

S3Region is a required field

TimeUnit

Type: *string

The length of time covered by the report.

TimeUnit is a required field

Method

GoString

func (s ReportDefinition) GoString() string

GoString returns the string representation

SetAdditionalArtifacts

func (s *ReportDefinition) SetAdditionalArtifacts(v []*string) *ReportDefinition

SetAdditionalArtifacts sets the AdditionalArtifacts field's value.

SetAdditionalSchemaElements

func (s *ReportDefinition) SetAdditionalSchemaElements(v []*string) *ReportDefinition

SetAdditionalSchemaElements sets the AdditionalSchemaElements field's value.

SetCompression

func (s *ReportDefinition) SetCompression(v string) *ReportDefinition

SetCompression sets the Compression field's value.

SetFormat

func (s *ReportDefinition) SetFormat(v string) *ReportDefinition

SetFormat sets the Format field's value.

SetRefreshClosedReports

func (s *ReportDefinition) SetRefreshClosedReports(v bool) *ReportDefinition

SetRefreshClosedReports sets the RefreshClosedReports field's value.

SetReportName

func (s *ReportDefinition) SetReportName(v string) *ReportDefinition

SetReportName sets the ReportName field's value.

SetReportVersioning

func (s *ReportDefinition) SetReportVersioning(v string) *ReportDefinition

SetReportVersioning sets the ReportVersioning field's value.

SetS3Bucket

func (s *ReportDefinition) SetS3Bucket(v string) *ReportDefinition

SetS3Bucket sets the S3Bucket field's value.

SetS3Prefix

func (s *ReportDefinition) SetS3Prefix(v string) *ReportDefinition

SetS3Prefix sets the S3Prefix field's value.

SetS3Region

func (s *ReportDefinition) SetS3Region(v string) *ReportDefinition

SetS3Region sets the S3Region field's value.

SetTimeUnit

func (s *ReportDefinition) SetTimeUnit(v string) *ReportDefinition

SetTimeUnit sets the TimeUnit field's value.

String

func (s ReportDefinition) String() string

String returns the string representation

Validate

func (s *ReportDefinition) Validate() error

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

On this page: