amazonka-cur-1.6.0: Amazon Cost and Usage Report Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CostAndUsageReport

Contents

Description

All public APIs for AWS Cost and Usage Report service

Synopsis

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

data AWSRegion Source #

Region of customer S3 bucket.

Instances

Bounded AWSRegion Source # 
Enum AWSRegion Source # 
Eq AWSRegion Source # 
Data AWSRegion Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AWSRegion -> c AWSRegion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AWSRegion #

toConstr :: AWSRegion -> Constr #

dataTypeOf :: AWSRegion -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AWSRegion) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AWSRegion) #

gmapT :: (forall b. Data b => b -> b) -> AWSRegion -> AWSRegion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AWSRegion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AWSRegion -> r #

gmapQ :: (forall d. Data d => d -> u) -> AWSRegion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AWSRegion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AWSRegion -> m AWSRegion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AWSRegion -> m AWSRegion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AWSRegion -> m AWSRegion #

Ord AWSRegion Source # 
Read AWSRegion Source # 
Show AWSRegion Source # 
Generic AWSRegion Source # 

Associated Types

type Rep AWSRegion :: * -> * #

Hashable AWSRegion Source # 
ToJSON AWSRegion Source # 
FromJSON AWSRegion Source # 
NFData AWSRegion Source # 

Methods

rnf :: AWSRegion -> () #

ToHeader AWSRegion Source # 
ToQuery AWSRegion Source # 
ToByteString AWSRegion Source # 

Methods

toBS :: AWSRegion -> ByteString #

FromText AWSRegion Source # 
ToText AWSRegion Source # 

Methods

toText :: AWSRegion -> Text #

type Rep AWSRegion Source # 
type Rep AWSRegion = D1 * (MetaData "AWSRegion" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "ApNortheast1" PrefixI False) (U1 *)) (C1 * (MetaCons "ApSoutheast1" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "ApSoutheast2" PrefixI False) (U1 *)) (C1 * (MetaCons "EuCentral1" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "EuWest1" PrefixI False) (U1 *)) (C1 * (MetaCons "UsEast1" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "UsWest1" PrefixI False) (U1 *)) (C1 * (MetaCons "UsWest2" PrefixI False) (U1 *)))))

AdditionalArtifact

data AdditionalArtifact Source #

Enable support for Redshift and/or QuickSight.

Constructors

Quicksight 
Redshift 

Instances

Bounded AdditionalArtifact Source # 
Enum AdditionalArtifact Source # 
Eq AdditionalArtifact Source # 
Data AdditionalArtifact Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdditionalArtifact -> c AdditionalArtifact #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdditionalArtifact #

toConstr :: AdditionalArtifact -> Constr #

dataTypeOf :: AdditionalArtifact -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdditionalArtifact) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdditionalArtifact) #

gmapT :: (forall b. Data b => b -> b) -> AdditionalArtifact -> AdditionalArtifact #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdditionalArtifact -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdditionalArtifact -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdditionalArtifact -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdditionalArtifact -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdditionalArtifact -> m AdditionalArtifact #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdditionalArtifact -> m AdditionalArtifact #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdditionalArtifact -> m AdditionalArtifact #

Ord AdditionalArtifact Source # 
Read AdditionalArtifact Source # 
Show AdditionalArtifact Source # 
Generic AdditionalArtifact Source # 
Hashable AdditionalArtifact Source # 
ToJSON AdditionalArtifact Source # 
FromJSON AdditionalArtifact Source # 
NFData AdditionalArtifact Source # 

Methods

rnf :: AdditionalArtifact -> () #

ToHeader AdditionalArtifact Source # 
ToQuery AdditionalArtifact Source # 
ToByteString AdditionalArtifact Source # 
FromText AdditionalArtifact Source # 
ToText AdditionalArtifact Source # 
type Rep AdditionalArtifact Source # 
type Rep AdditionalArtifact = D1 * (MetaData "AdditionalArtifact" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) ((:+:) * (C1 * (MetaCons "Quicksight" PrefixI False) (U1 *)) (C1 * (MetaCons "Redshift" PrefixI False) (U1 *)))

CompressionFormat

data CompressionFormat Source #

Preferred compression format for report.

Constructors

Gzip 
Zip 

Instances

Bounded CompressionFormat Source # 
Enum CompressionFormat Source # 
Eq CompressionFormat Source # 
Data CompressionFormat Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CompressionFormat -> c CompressionFormat #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CompressionFormat #

toConstr :: CompressionFormat -> Constr #

dataTypeOf :: CompressionFormat -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CompressionFormat) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CompressionFormat) #

gmapT :: (forall b. Data b => b -> b) -> CompressionFormat -> CompressionFormat #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CompressionFormat -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CompressionFormat -> r #

gmapQ :: (forall d. Data d => d -> u) -> CompressionFormat -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CompressionFormat -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CompressionFormat -> m CompressionFormat #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CompressionFormat -> m CompressionFormat #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CompressionFormat -> m CompressionFormat #

Ord CompressionFormat Source # 
Read CompressionFormat Source # 
Show CompressionFormat Source # 
Generic CompressionFormat Source # 
Hashable CompressionFormat Source # 
ToJSON CompressionFormat Source # 
FromJSON CompressionFormat Source # 
NFData CompressionFormat Source # 

Methods

rnf :: CompressionFormat -> () #

ToHeader CompressionFormat Source # 
ToQuery CompressionFormat Source # 
ToByteString CompressionFormat Source # 
FromText CompressionFormat Source # 
ToText CompressionFormat Source # 
type Rep CompressionFormat Source # 
type Rep CompressionFormat = D1 * (MetaData "CompressionFormat" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) ((:+:) * (C1 * (MetaCons "Gzip" PrefixI False) (U1 *)) (C1 * (MetaCons "Zip" PrefixI False) (U1 *)))

ReportFormat

data ReportFormat Source #

Preferred format for report.

Constructors

TextORcsv 

Instances

Bounded ReportFormat Source # 
Enum ReportFormat Source # 
Eq ReportFormat Source # 
Data ReportFormat Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReportFormat -> c ReportFormat #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReportFormat #

toConstr :: ReportFormat -> Constr #

dataTypeOf :: ReportFormat -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ReportFormat) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReportFormat) #

gmapT :: (forall b. Data b => b -> b) -> ReportFormat -> ReportFormat #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReportFormat -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReportFormat -> r #

gmapQ :: (forall d. Data d => d -> u) -> ReportFormat -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ReportFormat -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReportFormat -> m ReportFormat #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReportFormat -> m ReportFormat #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReportFormat -> m ReportFormat #

Ord ReportFormat Source # 
Read ReportFormat Source # 
Show ReportFormat Source # 
Generic ReportFormat Source # 

Associated Types

type Rep ReportFormat :: * -> * #

Hashable ReportFormat Source # 
ToJSON ReportFormat Source # 
FromJSON ReportFormat Source # 
NFData ReportFormat Source # 

Methods

rnf :: ReportFormat -> () #

ToHeader ReportFormat Source # 
ToQuery ReportFormat Source # 
ToByteString ReportFormat Source # 
FromText ReportFormat Source # 
ToText ReportFormat Source # 

Methods

toText :: ReportFormat -> Text #

type Rep ReportFormat Source # 
type Rep ReportFormat = D1 * (MetaData "ReportFormat" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) (C1 * (MetaCons "TextORcsv" PrefixI False) (U1 *))

SchemaElement

data SchemaElement Source #

Preference of including Resource IDs. You can include additional details about individual resource IDs in your report.

Constructors

Resources 

Instances

Bounded SchemaElement Source # 
Enum SchemaElement Source # 
Eq SchemaElement Source # 
Data SchemaElement Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaElement -> c SchemaElement #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaElement #

toConstr :: SchemaElement -> Constr #

dataTypeOf :: SchemaElement -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SchemaElement) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaElement) #

gmapT :: (forall b. Data b => b -> b) -> SchemaElement -> SchemaElement #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaElement -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaElement -> r #

gmapQ :: (forall d. Data d => d -> u) -> SchemaElement -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaElement -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaElement -> m SchemaElement #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaElement -> m SchemaElement #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaElement -> m SchemaElement #

Ord SchemaElement Source # 
Read SchemaElement Source # 
Show SchemaElement Source # 
Generic SchemaElement Source # 

Associated Types

type Rep SchemaElement :: * -> * #

Hashable SchemaElement Source # 
ToJSON SchemaElement Source # 
FromJSON SchemaElement Source # 
NFData SchemaElement Source # 

Methods

rnf :: SchemaElement -> () #

ToHeader SchemaElement Source # 
ToQuery SchemaElement Source # 
ToByteString SchemaElement Source # 
FromText SchemaElement Source # 
ToText SchemaElement Source # 

Methods

toText :: SchemaElement -> Text #

type Rep SchemaElement Source # 
type Rep SchemaElement = D1 * (MetaData "SchemaElement" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) (C1 * (MetaCons "Resources" PrefixI False) (U1 *))

TimeUnit

data TimeUnit Source #

The frequency on which report data are measured and displayed.

Constructors

Daily 
Hourly 

Instances

Bounded TimeUnit Source # 
Enum TimeUnit Source # 
Eq TimeUnit Source # 
Data TimeUnit Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TimeUnit -> c TimeUnit #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TimeUnit #

toConstr :: TimeUnit -> Constr #

dataTypeOf :: TimeUnit -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TimeUnit) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TimeUnit) #

gmapT :: (forall b. Data b => b -> b) -> TimeUnit -> TimeUnit #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TimeUnit -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TimeUnit -> r #

gmapQ :: (forall d. Data d => d -> u) -> TimeUnit -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TimeUnit -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TimeUnit -> m TimeUnit #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TimeUnit -> m TimeUnit #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TimeUnit -> m TimeUnit #

Ord TimeUnit Source # 
Read TimeUnit Source # 
Show TimeUnit Source # 
Generic TimeUnit Source # 

Associated Types

type Rep TimeUnit :: * -> * #

Methods

from :: TimeUnit -> Rep TimeUnit x #

to :: Rep TimeUnit x -> TimeUnit #

Hashable TimeUnit Source # 

Methods

hashWithSalt :: Int -> TimeUnit -> Int #

hash :: TimeUnit -> Int #

ToJSON TimeUnit Source # 
FromJSON TimeUnit Source # 
NFData TimeUnit Source # 

Methods

rnf :: TimeUnit -> () #

ToHeader TimeUnit Source # 

Methods

toHeader :: HeaderName -> TimeUnit -> [Header] #

ToQuery TimeUnit Source # 
ToByteString TimeUnit Source # 

Methods

toBS :: TimeUnit -> ByteString #

FromText TimeUnit Source # 
ToText TimeUnit Source # 

Methods

toText :: TimeUnit -> Text #

type Rep TimeUnit Source # 
type Rep TimeUnit = D1 * (MetaData "TimeUnit" "Network.AWS.CostAndUsageReport.Types.Sum" "amazonka-cur-1.6.0-ESNqb1Rxkx6EIB4M2lpTCI" False) ((:+:) * (C1 * (MetaCons "Daily" PrefixI False) (U1 *)) (C1 * (MetaCons "Hourly" PrefixI False) (U1 *)))

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.

Instances

Eq ReportDefinition Source # 
Data ReportDefinition Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReportDefinition -> c ReportDefinition #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReportDefinition #

toConstr :: ReportDefinition -> Constr #

dataTypeOf :: ReportDefinition -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ReportDefinition) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReportDefinition) #

gmapT :: (forall b. Data b => b -> b) -> ReportDefinition -> ReportDefinition #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReportDefinition -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReportDefinition -> r #

gmapQ :: (forall d. Data d => d -> u) -> ReportDefinition -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ReportDefinition -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReportDefinition -> m ReportDefinition #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReportDefinition -> m ReportDefinition #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReportDefinition -> m ReportDefinition #

Read ReportDefinition Source # 
Show ReportDefinition Source # 
Generic ReportDefinition Source # 
Hashable ReportDefinition Source # 
ToJSON ReportDefinition Source # 
FromJSON ReportDefinition Source # 
NFData ReportDefinition Source # 

Methods

rnf :: ReportDefinition -> () #

type Rep ReportDefinition Source # 

reportDefinition Source #

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:

rdS3Bucket :: Lens' ReportDefinition Text Source #

Undocumented member.

rdS3Prefix :: Lens' ReportDefinition Text Source #

Undocumented member.