GetReportDefinition
Use this data source to get information on an AWS Cost and Usage Report Definition.
NOTE: The AWS Cost and Usage Report service is only available in
us-east-1currently.NOTE: If AWS Organizations is enabled, only the master account can use this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var reportDefinition = Output.Create(Aws.Cur.GetReportDefinition.InvokeAsync(new Aws.Cur.GetReportDefinitionArgs
{
ReportName = "example",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/cur"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cur.LookupReportDefinition(ctx, &cur.LookupReportDefinitionArgs{
ReportName: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
report_definition = aws.cur.get_report_definition(report_name="example")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const reportDefinition = pulumi.output(aws.cur.getReportDefinition({
reportName: "example",
}, { async: true }));Using GetReportDefinition
function getReportDefinition(args: GetReportDefinitionArgs, opts?: InvokeOptions): Promise<GetReportDefinitionResult>function get_report_definition(report_name=None, opts=None)func LookupReportDefinition(ctx *Context, args *LookupReportDefinitionArgs, opts ...InvokeOption) (*LookupReportDefinitionResult, error)Note: This function is named
LookupReportDefinitionin the Go SDK.
public static class GetReportDefinition {
public static Task<GetReportDefinitionResult> InvokeAsync(GetReportDefinitionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Report
Name string The name of the report definition to match.
- Report
Name string The name of the report definition to match.
- report
Name string The name of the report definition to match.
- report_
name str The name of the report definition to match.
GetReportDefinition Result
The following output properties are available:
- Additional
Artifacts List<string> A list of additional artifacts.
- Additional
Schema List<string>Elements A list of schema elements.
- Compression string
Preferred format for report.
- Format string
Preferred compression format for report.
- Id string
The provider-assigned unique ID for this managed resource.
- Report
Name string - S3Bucket string
Name of customer S3 bucket.
- S3Prefix string
Preferred report path prefix.
- S3Region string
Region of customer S3 bucket.
- Time
Unit string The frequency on which report data are measured and displayed.
- Additional
Artifacts []string A list of additional artifacts.
- Additional
Schema []stringElements A list of schema elements.
- Compression string
Preferred format for report.
- Format string
Preferred compression format for report.
- Id string
The provider-assigned unique ID for this managed resource.
- Report
Name string - S3Bucket string
Name of customer S3 bucket.
- S3Prefix string
Preferred report path prefix.
- S3Region string
Region of customer S3 bucket.
- Time
Unit string The frequency on which report data are measured and displayed.
- additional
Artifacts string[] A list of additional artifacts.
- additional
Schema string[]Elements A list of schema elements.
- compression string
Preferred format for report.
- format string
Preferred compression format for report.
- id string
The provider-assigned unique ID for this managed resource.
- report
Name string - s3Bucket string
Name of customer S3 bucket.
- s3Prefix string
Preferred report path prefix.
- s3Region string
Region of customer S3 bucket.
- time
Unit string The frequency on which report data are measured and displayed.
- additional_
artifacts List[str] A list of additional artifacts.
- additional_
schema_ List[str]elements A list of schema elements.
- compression str
Preferred format for report.
- format str
Preferred compression format for report.
- id str
The provider-assigned unique ID for this managed resource.
- report_
name str - s3_
bucket str Name of customer S3 bucket.
- s3_
prefix str Preferred report path prefix.
- s3_
region str Region of customer S3 bucket.
- time_
unit str The frequency on which report data are measured and displayed.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.