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-1 currently.

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 LookupReportDefinition in the Go SDK.

public static class GetReportDefinition {
    public static Task<GetReportDefinitionResult> InvokeAsync(GetReportDefinitionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ReportName string

The name of the report definition to match.

ReportName string

The name of the report definition to match.

reportName 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:

AdditionalArtifacts List<string>

A list of additional artifacts.

AdditionalSchemaElements List<string>

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.

ReportName string
S3Bucket string

Name of customer S3 bucket.

S3Prefix string

Preferred report path prefix.

S3Region string

Region of customer S3 bucket.

TimeUnit string

The frequency on which report data are measured and displayed.

AdditionalArtifacts []string

A list of additional artifacts.

AdditionalSchemaElements []string

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.

ReportName string
S3Bucket string

Name of customer S3 bucket.

S3Prefix string

Preferred report path prefix.

S3Region string

Region of customer S3 bucket.

TimeUnit string

The frequency on which report data are measured and displayed.

additionalArtifacts string[]

A list of additional artifacts.

additionalSchemaElements string[]

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.

reportName string
s3Bucket string

Name of customer S3 bucket.

s3Prefix string

Preferred report path prefix.

s3Region string

Region of customer S3 bucket.

timeUnit string

The frequency on which report data are measured and displayed.

additional_artifacts List[str]

A list of additional artifacts.

additional_schema_elements List[str]

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 aws Terraform Provider.