Copyright | (c) 2013-2021 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 |
Derived from API version 2020-09-10
of the AWS service descriptions, licensed under Apache 2.0.
This reference provides descriptions of the AWS Application Cost Profiler API.
The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete application cost report definitions, as well as to import your usage data into the Application Cost Profiler service.
For more information about using this service, see the AWS Application Cost Profiler User Guide.
Synopsis
- defaultService :: Service
- _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
- _AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceQuotaExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError
- data ImportApplicationUsage = ImportApplicationUsage' SourceS3Location
- newImportApplicationUsage :: SourceS3Location -> ImportApplicationUsage
- data ImportApplicationUsageResponse = ImportApplicationUsageResponse' Int Text
- newImportApplicationUsageResponse :: Int -> Text -> ImportApplicationUsageResponse
- data PutReportDefinition = PutReportDefinition' Text Text ReportFrequency Format S3Location
- newPutReportDefinition :: Text -> Text -> ReportFrequency -> Format -> S3Location -> PutReportDefinition
- data PutReportDefinitionResponse = PutReportDefinitionResponse' (Maybe Text) Int
- newPutReportDefinitionResponse :: Int -> PutReportDefinitionResponse
- data DeleteReportDefinition = DeleteReportDefinition' Text
- newDeleteReportDefinition :: Text -> DeleteReportDefinition
- data DeleteReportDefinitionResponse = DeleteReportDefinitionResponse' (Maybe Text) Int
- newDeleteReportDefinitionResponse :: Int -> DeleteReportDefinitionResponse
- data UpdateReportDefinition = UpdateReportDefinition' Text Text ReportFrequency Format S3Location
- newUpdateReportDefinition :: Text -> Text -> ReportFrequency -> Format -> S3Location -> UpdateReportDefinition
- data UpdateReportDefinitionResponse = UpdateReportDefinitionResponse' (Maybe Text) Int
- newUpdateReportDefinitionResponse :: Int -> UpdateReportDefinitionResponse
- data GetReportDefinition = GetReportDefinition' Text
- newGetReportDefinition :: Text -> GetReportDefinition
- data GetReportDefinitionResponse = GetReportDefinitionResponse' Int Text Text ReportFrequency Format S3Location POSIX POSIX
- newGetReportDefinitionResponse :: Int -> Text -> Text -> ReportFrequency -> Format -> S3Location -> UTCTime -> UTCTime -> GetReportDefinitionResponse
- data ListReportDefinitions = ListReportDefinitions' (Maybe Text) (Maybe Natural)
- newListReportDefinitions :: ListReportDefinitions
- data ListReportDefinitionsResponse = ListReportDefinitionsResponse' (Maybe Text) (Maybe [ReportDefinition]) Int
- newListReportDefinitionsResponse :: Int -> ListReportDefinitionsResponse
- newtype Format where
- Format' {
- fromFormat :: Text
- pattern Format_CSV :: Format
- pattern Format_PARQUET :: Format
- Format' {
- newtype ReportFrequency where
- ReportFrequency' { }
- pattern ReportFrequency_ALL :: ReportFrequency
- pattern ReportFrequency_DAILY :: ReportFrequency
- pattern ReportFrequency_MONTHLY :: ReportFrequency
- newtype S3BucketRegion where
- S3BucketRegion' { }
- pattern S3BucketRegion_Af_south_1 :: S3BucketRegion
- pattern S3BucketRegion_Ap_east_1 :: S3BucketRegion
- pattern S3BucketRegion_Eu_south_1 :: S3BucketRegion
- pattern S3BucketRegion_Me_south_1 :: S3BucketRegion
- data ReportDefinition = ReportDefinition' (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe Format) (Maybe ReportFrequency) (Maybe Text) (Maybe S3Location)
- newReportDefinition :: ReportDefinition
- data S3Location = S3Location' Text Text
- newS3Location :: Text -> Text -> S3Location
- data SourceS3Location = SourceS3Location' (Maybe S3BucketRegion) Text Text
- newSourceS3Location :: Text -> Text -> SourceS3Location
Service Configuration
defaultService :: Service Source #
API version 2020-09-10
of the Amazon Application Cost Profiler 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 ApplicationCostProfiler
.
ValidationException
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The input fails to satisfy the constraints for the API.
AccessDeniedException
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
You do not have permission to perform this action.
ServiceQuotaExceededException
_ServiceQuotaExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Your request exceeds one or more of the service quotas.
ThrottlingException
_ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The calls to AWS Application Cost Profiler API are throttled. The request was denied.
InternalServerException
_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #
An internal server error occurred. Retry your request.
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.
ImportApplicationUsage
data ImportApplicationUsage Source #
See: newImportApplicationUsage
smart constructor.
Instances
newImportApplicationUsage Source #
Create a value of ImportApplicationUsage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sourceS3Location:ImportApplicationUsage'
, importApplicationUsage_sourceS3Location
- Amazon S3 location to import application usage data from.
data ImportApplicationUsageResponse Source #
See: newImportApplicationUsageResponse
smart constructor.
Instances
Eq ImportApplicationUsageResponse Source # | |
Read ImportApplicationUsageResponse Source # | |
Show ImportApplicationUsageResponse Source # | |
Generic ImportApplicationUsageResponse Source # | |
NFData ImportApplicationUsageResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.ImportApplicationUsage rnf :: ImportApplicationUsageResponse -> () # | |
type Rep ImportApplicationUsageResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.ImportApplicationUsage type Rep ImportApplicationUsageResponse = D1 ('MetaData "ImportApplicationUsageResponse" "Amazonka.ApplicationCostProfiler.ImportApplicationUsage" "libZSservicesZSamazonka-applicationcostprofilerZSamazonka-applicationcostprofiler" 'False) (C1 ('MetaCons "ImportApplicationUsageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "importId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newImportApplicationUsageResponse Source #
Create a value of ImportApplicationUsageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:ImportApplicationUsageResponse'
, importApplicationUsageResponse_httpStatus
- The response's http status code.
$sel:importId:ImportApplicationUsageResponse'
, importApplicationUsageResponse_importId
- ID of the import request.
PutReportDefinition
data PutReportDefinition Source #
See: newPutReportDefinition
smart constructor.
Instances
newPutReportDefinition Source #
:: Text | |
-> Text | |
-> ReportFrequency | |
-> Format | |
-> S3Location | |
-> PutReportDefinition |
Create a value of PutReportDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:PutReportDefinition'
, putReportDefinition_reportId
- Required. ID of the report. You can choose any valid string matching the
pattern for the ID.
$sel:reportDescription:PutReportDefinition'
, putReportDefinition_reportDescription
- Required. Description of the report.
$sel:reportFrequency:PutReportDefinition'
, putReportDefinition_reportFrequency
- Required. The cadence to generate the report.
$sel:format:PutReportDefinition'
, putReportDefinition_format
- Required. The format to use for the generated report.
$sel:destinationS3Location:PutReportDefinition'
, putReportDefinition_destinationS3Location
- Required. Amazon Simple Storage Service (Amazon S3) location where
Application Cost Profiler uploads the report.
data PutReportDefinitionResponse Source #
See: newPutReportDefinitionResponse
smart constructor.
Instances
newPutReportDefinitionResponse Source #
Create a value of PutReportDefinitionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:PutReportDefinition'
, putReportDefinitionResponse_reportId
- ID of the report.
$sel:httpStatus:PutReportDefinitionResponse'
, putReportDefinitionResponse_httpStatus
- The response's http status code.
DeleteReportDefinition
data DeleteReportDefinition Source #
See: newDeleteReportDefinition
smart constructor.
Instances
newDeleteReportDefinition Source #
Create a value of DeleteReportDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:DeleteReportDefinition'
, deleteReportDefinition_reportId
- Required. ID of the report to delete.
data DeleteReportDefinitionResponse Source #
See: newDeleteReportDefinitionResponse
smart constructor.
Instances
Eq DeleteReportDefinitionResponse Source # | |
Read DeleteReportDefinitionResponse Source # | |
Show DeleteReportDefinitionResponse Source # | |
Generic DeleteReportDefinitionResponse Source # | |
NFData DeleteReportDefinitionResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.DeleteReportDefinition rnf :: DeleteReportDefinitionResponse -> () # | |
type Rep DeleteReportDefinitionResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.DeleteReportDefinition type Rep DeleteReportDefinitionResponse = D1 ('MetaData "DeleteReportDefinitionResponse" "Amazonka.ApplicationCostProfiler.DeleteReportDefinition" "libZSservicesZSamazonka-applicationcostprofilerZSamazonka-applicationcostprofiler" 'False) (C1 ('MetaCons "DeleteReportDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reportId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteReportDefinitionResponse Source #
Create a value of DeleteReportDefinitionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:DeleteReportDefinition'
, deleteReportDefinitionResponse_reportId
- ID of the report that was deleted.
$sel:httpStatus:DeleteReportDefinitionResponse'
, deleteReportDefinitionResponse_httpStatus
- The response's http status code.
UpdateReportDefinition
data UpdateReportDefinition Source #
See: newUpdateReportDefinition
smart constructor.
Instances
newUpdateReportDefinition Source #
:: Text | |
-> Text | |
-> ReportFrequency | |
-> Format | |
-> S3Location | |
-> UpdateReportDefinition |
Create a value of UpdateReportDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:UpdateReportDefinition'
, updateReportDefinition_reportId
- Required. ID of the report to update.
$sel:reportDescription:UpdateReportDefinition'
, updateReportDefinition_reportDescription
- Required. Description of the report.
$sel:reportFrequency:UpdateReportDefinition'
, updateReportDefinition_reportFrequency
- Required. The cadence to generate the report.
$sel:format:UpdateReportDefinition'
, updateReportDefinition_format
- Required. The format to use for the generated report.
$sel:destinationS3Location:UpdateReportDefinition'
, updateReportDefinition_destinationS3Location
- Required. Amazon Simple Storage Service (Amazon S3) location where
Application Cost Profiler uploads the report.
data UpdateReportDefinitionResponse Source #
See: newUpdateReportDefinitionResponse
smart constructor.
Instances
Eq UpdateReportDefinitionResponse Source # | |
Read UpdateReportDefinitionResponse Source # | |
Show UpdateReportDefinitionResponse Source # | |
Generic UpdateReportDefinitionResponse Source # | |
NFData UpdateReportDefinitionResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.UpdateReportDefinition rnf :: UpdateReportDefinitionResponse -> () # | |
type Rep UpdateReportDefinitionResponse Source # | |
Defined in Amazonka.ApplicationCostProfiler.UpdateReportDefinition type Rep UpdateReportDefinitionResponse = D1 ('MetaData "UpdateReportDefinitionResponse" "Amazonka.ApplicationCostProfiler.UpdateReportDefinition" "libZSservicesZSamazonka-applicationcostprofilerZSamazonka-applicationcostprofiler" 'False) (C1 ('MetaCons "UpdateReportDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reportId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateReportDefinitionResponse Source #
Create a value of UpdateReportDefinitionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:UpdateReportDefinition'
, updateReportDefinitionResponse_reportId
- ID of the report.
$sel:httpStatus:UpdateReportDefinitionResponse'
, updateReportDefinitionResponse_httpStatus
- The response's http status code.
GetReportDefinition
data GetReportDefinition Source #
See: newGetReportDefinition
smart constructor.
Instances
newGetReportDefinition Source #
Create a value of GetReportDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reportId:GetReportDefinition'
, getReportDefinition_reportId
- ID of the report to retrieve.
data GetReportDefinitionResponse Source #
See: newGetReportDefinitionResponse
smart constructor.
Instances
newGetReportDefinitionResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> ReportFrequency | |
-> Format | |
-> S3Location | |
-> UTCTime | |
-> UTCTime | |
-> GetReportDefinitionResponse |
Create a value of GetReportDefinitionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetReportDefinitionResponse'
, getReportDefinitionResponse_httpStatus
- The response's http status code.
$sel:reportId:GetReportDefinition'
, getReportDefinitionResponse_reportId
- ID of the report retrieved.
$sel:reportDescription:GetReportDefinitionResponse'
, getReportDefinitionResponse_reportDescription
- Description of the report.
$sel:reportFrequency:GetReportDefinitionResponse'
, getReportDefinitionResponse_reportFrequency
- Cadence used to generate the report.
$sel:format:GetReportDefinitionResponse'
, getReportDefinitionResponse_format
- Format of the generated report.
$sel:destinationS3Location:GetReportDefinitionResponse'
, getReportDefinitionResponse_destinationS3Location
- Amazon Simple Storage Service (Amazon S3) location where the report is
uploaded.
$sel:createdAt:GetReportDefinitionResponse'
, getReportDefinitionResponse_createdAt
- Timestamp (milliseconds) when this report definition was created.
$sel:lastUpdated:GetReportDefinitionResponse'
, getReportDefinitionResponse_lastUpdated
- Timestamp (milliseconds) when this report definition was last updated.
ListReportDefinitions (Paginated)
data ListReportDefinitions Source #
See: newListReportDefinitions
smart constructor.
Instances
newListReportDefinitions :: ListReportDefinitions Source #
Create a value of ListReportDefinitions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListReportDefinitions'
, listReportDefinitions_nextToken
- The token value from a previous call to access the next page of results.
$sel:maxResults:ListReportDefinitions'
, listReportDefinitions_maxResults
- The maximum number of results to return.
data ListReportDefinitionsResponse Source #
See: newListReportDefinitionsResponse
smart constructor.
Instances
newListReportDefinitionsResponse Source #
Create a value of ListReportDefinitionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListReportDefinitions'
, listReportDefinitionsResponse_nextToken
- The value of the next token, if it exists. Null if there are no more
results.
$sel:reportDefinitions:ListReportDefinitionsResponse'
, listReportDefinitionsResponse_reportDefinitions
- The retrieved reports.
$sel:httpStatus:ListReportDefinitionsResponse'
, listReportDefinitionsResponse_httpStatus
- The response's http status code.
Types
Format
pattern Format_CSV :: Format | |
pattern Format_PARQUET :: Format |
Instances
ReportFrequency
newtype ReportFrequency Source #
pattern ReportFrequency_ALL :: ReportFrequency | |
pattern ReportFrequency_DAILY :: ReportFrequency | |
pattern ReportFrequency_MONTHLY :: ReportFrequency |
Instances
S3BucketRegion
newtype S3BucketRegion Source #
pattern S3BucketRegion_Af_south_1 :: S3BucketRegion | |
pattern S3BucketRegion_Ap_east_1 :: S3BucketRegion | |
pattern S3BucketRegion_Eu_south_1 :: S3BucketRegion | |
pattern S3BucketRegion_Me_south_1 :: S3BucketRegion |
Instances
ReportDefinition
data ReportDefinition Source #
The configuration of a report in AWS Application Cost Profiler.
See: newReportDefinition
smart constructor.
ReportDefinition' (Maybe POSIX) (Maybe POSIX) (Maybe Text) (Maybe Format) (Maybe ReportFrequency) (Maybe Text) (Maybe S3Location) |
Instances
newReportDefinition :: ReportDefinition Source #
Create a value of ReportDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastUpdatedAt:ReportDefinition'
, reportDefinition_lastUpdatedAt
- Timestamp (milliseconds) when this report definition was last updated.
$sel:createdAt:ReportDefinition'
, reportDefinition_createdAt
- Timestamp (milliseconds) when this report definition was created.
$sel:reportId:ReportDefinition'
, reportDefinition_reportId
- The ID of the report.
$sel:format:ReportDefinition'
, reportDefinition_format
- The format used for the generated reports.
$sel:reportFrequency:ReportDefinition'
, reportDefinition_reportFrequency
- The cadence at which the report is generated.
$sel:reportDescription:ReportDefinition'
, reportDefinition_reportDescription
- Description of the report
$sel:destinationS3Location:ReportDefinition'
, reportDefinition_destinationS3Location
- The location in Amazon Simple Storage Service (Amazon S3) the reports
should be saved to.
S3Location
data S3Location Source #
Represents the Amazon Simple Storage Service (Amazon S3) location where AWS Application Cost Profiler reports are generated and then written to.
See: newS3Location
smart constructor.
Instances
Create a value of S3Location
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bucket:S3Location'
, s3Location_bucket
- Name of the S3 bucket.
$sel:prefix:S3Location'
, s3Location_prefix
- Prefix for the location to write to.
SourceS3Location
data SourceS3Location Source #
Represents the Amazon Simple Storage Service (Amazon S3) location where usage data is read from.
See: newSourceS3Location
smart constructor.
Instances
Create a value of SourceS3Location
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:region:SourceS3Location'
, sourceS3Location_region
- Region of the bucket. Only required for Regions that are disabled by
default. For more infomration about Regions that are disabled by
default, see
Enabling a Region
in the AWS General Reference guide.
$sel:bucket:SourceS3Location'
, sourceS3Location_bucket
- Name of the bucket.
$sel:key:SourceS3Location'
, sourceS3Location_key
- Key of the object.