Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
All public APIs for AWS Cost and Usage Report service
- costAndUsageReport :: Service
- _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError
- _DuplicateReportNameException :: AsError a => Getting (First ServiceError) a ServiceError
- _ReportLimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError
- module Network.AWS.CostAndUsageReport.PutReportDefinition
- module Network.AWS.CostAndUsageReport.DeleteReportDefinition
- module Network.AWS.CostAndUsageReport.DescribeReportDefinitions
- data AWSRegion
- data AdditionalArtifact
- data CompressionFormat
- data ReportFormat = TextORcsv
- data SchemaElement = Resources
- data TimeUnit
- data ReportDefinition
- reportDefinition :: Text -> TimeUnit -> ReportFormat -> CompressionFormat -> Text -> Text -> AWSRegion -> ReportDefinition
- rdAdditionalArtifacts :: Lens' ReportDefinition [AdditionalArtifact]
- rdReportName :: Lens' ReportDefinition Text
- rdTimeUnit :: Lens' ReportDefinition TimeUnit
- rdFormat :: Lens' ReportDefinition ReportFormat
- rdCompression :: Lens' ReportDefinition CompressionFormat
- rdAdditionalSchemaElements :: Lens' ReportDefinition [SchemaElement]
- rdS3Bucket :: Lens' ReportDefinition Text
- rdS3Prefix :: Lens' ReportDefinition Text
- rdS3Region :: Lens' ReportDefinition AWSRegion
Service Configuration
costAndUsageReport :: Service Source #
API version 2017-01-06
of the Amazon Cost and Usage Report Service SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by CostAndUsageReport
.
ValidationException
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when providing an invalid input. eg. Put a report preference with an invalid report name, or Delete a report preference with an empty report name.
InternalErrorException
_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown on a known dependency failure.
DuplicateReportNameException
_DuplicateReportNameException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when putting a report preference with a name that already exists.
ReportLimitReachedException
_ReportLimitReachedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the number of report preference reaches max limit. The max number is 5.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
PutReportDefinition
DeleteReportDefinition
DescribeReportDefinitions (Paginated)
Types
AWSRegion
Region of customer S3 bucket.
AdditionalArtifact
data AdditionalArtifact Source #
Enable support for Redshift and/or QuickSight.
CompressionFormat
data CompressionFormat Source #
Preferred compression format for report.
ReportFormat
data ReportFormat Source #
Preferred format for report.
SchemaElement
data SchemaElement Source #
Preference of including Resource IDs. You can include additional details about individual resource IDs in your report.
TimeUnit
The frequency on which report data are measured and displayed.
ReportDefinition
data ReportDefinition Source #
The definition of AWS Cost and Usage Report. Customer can specify the report name, time unit, report format, compression format, S3 bucket and additional artifacts and schema elements in the definition.
See: reportDefinition
smart constructor.
:: Text | |
-> TimeUnit | |
-> ReportFormat | |
-> CompressionFormat | |
-> Text | |
-> Text | |
-> AWSRegion | |
-> ReportDefinition |
Creates a value of ReportDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rdAdditionalArtifacts
- Undocumented member.rdReportName
- Undocumented member.rdTimeUnit
- Undocumented member.rdFormat
- Undocumented member.rdCompression
- Undocumented member.rdAdditionalSchemaElements
- Undocumented member.rdS3Bucket
- Undocumented member.rdS3Prefix
- Undocumented member.rdS3Region
- Undocumented member.
rdAdditionalArtifacts :: Lens' ReportDefinition [AdditionalArtifact] Source #
Undocumented member.
rdReportName :: Lens' ReportDefinition Text Source #
Undocumented member.
rdTimeUnit :: Lens' ReportDefinition TimeUnit Source #
Undocumented member.
rdFormat :: Lens' ReportDefinition ReportFormat Source #
Undocumented member.
rdCompression :: Lens' ReportDefinition CompressionFormat Source #
Undocumented member.
rdAdditionalSchemaElements :: Lens' ReportDefinition [SchemaElement] Source #
Undocumented member.
rdS3Bucket :: Lens' ReportDefinition Text Source #
Undocumented member.
rdS3Prefix :: Lens' ReportDefinition Text Source #
Undocumented member.
rdS3Region :: Lens' ReportDefinition AWSRegion Source #
Undocumented member.