CostandUsageReportService
public struct CostandUsageReportService
Client object for interacting with AWS CostandUsageReportService service.
The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions. AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API. Service Endpoint The AWS Cost and Usage Report API provides the following endpoint: cur.us-east-1.amazonaws.com
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the CostandUsageReportService client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Deletes the specified report.
Declaration
Swift
public func deleteReportDefinition(_ input: DeleteReportDefinitionRequest) -> EventLoopFuture<DeleteReportDefinitionResponse>
-
Lists the AWS Cost and Usage reports available to this account.
Declaration
Swift
public func describeReportDefinitions(_ input: DescribeReportDefinitionsRequest) -> EventLoopFuture<DescribeReportDefinitionsResponse>
-
Allows you to programatically update your report preferences.
Declaration
Swift
public func modifyReportDefinition(_ input: ModifyReportDefinitionRequest) -> EventLoopFuture<ModifyReportDefinitionResponse>
-
Creates a new report using the description that you provide.
Declaration
Swift
public func putReportDefinition(_ input: PutReportDefinitionRequest) -> EventLoopFuture<PutReportDefinitionResponse>
-
Lists the AWS Cost and Usage reports available to this account.
Declaration
Swift
public func describeReportDefinitionsPaginator(_ input: DescribeReportDefinitionsRequest, onPage: @escaping (DescribeReportDefinitionsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct DescribeReportDefinitionsRequest : AWSShape
extension CostandUsageReportService.DescribeReportDefinitionsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum AWSRegion : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum AdditionalArtifact : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum CompressionFormat : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ReportFormat : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ReportVersioning : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum SchemaElement : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum TimeUnit : String, CustomStringConvertible, Codable