UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

224 lines (223 loc) • 7.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Billing View. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.billing.View("example", { * name: "example", * description: "example description", * sourceViews: ["arn:aws:billing::123456789012:billingview/example"], * }); * ``` * * ## Import * * Using `pulumi import`, import Billing View using the `arn`. For example: * * ```sh * $ pulumi import aws:billing/view:View example arn:aws:billing::123456789012:billing-view/example * ``` */ export declare class View extends pulumi.CustomResource { /** * Get an existing View resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ViewState, opts?: pulumi.CustomResourceOptions): View; /** * Returns true if the given object is an instance of View. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is View; /** * ARN of the View. */ readonly arn: pulumi.Output<string>; /** * Type of billing group. Valid values are PRIMARY|BILLING_GROUP|CUSTOM. */ readonly billingViewType: pulumi.Output<string>; /** * Timestamp when the billing view was created. */ readonly createdAt: pulumi.Output<string>; /** * Filter Cost Explorer APIs using the expression. Refer to the data-filter-expression block documentation for more details. */ readonly dataFilterExpression: pulumi.Output<outputs.billing.ViewDataFilterExpression | undefined>; /** * Number of billing views that use this billing view as a source. */ readonly derivedViewCount: pulumi.Output<number>; /** * Description of the custom billing view. */ readonly description: pulumi.Output<string | undefined>; /** * Name of the custom billing view to be created. */ readonly name: pulumi.Output<string>; /** * Account owner of the billing view. */ readonly ownerAccountId: pulumi.Output<string>; /** * AWS account ID that owns the source billing view, if this is a derived billing view. */ readonly sourceAccountId: pulumi.Output<string>; /** * Number of source views associated with this billing view. */ readonly sourceViewCount: pulumi.Output<number>; /** * List of ARNs of the source data views for the custom billing view. * * The following arguments are optional: */ readonly sourceViews: pulumi.Output<string[] | undefined>; /** * List of key value map specifying tags associated to the billing view being created. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * List of key value map specifying tags associated to the billing view. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output<outputs.billing.ViewTimeouts | undefined>; /** * Time when the billing view was last updated. */ readonly updatedAt: pulumi.Output<string>; /** * Timestamp of when the billing view definition was last updated. */ readonly viewDefinitionLastUpdatedAt: pulumi.Output<string>; /** * Create a View resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ViewArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering View resources. */ export interface ViewState { /** * ARN of the View. */ arn?: pulumi.Input<string>; /** * Type of billing group. Valid values are PRIMARY|BILLING_GROUP|CUSTOM. */ billingViewType?: pulumi.Input<string>; /** * Timestamp when the billing view was created. */ createdAt?: pulumi.Input<string>; /** * Filter Cost Explorer APIs using the expression. Refer to the data-filter-expression block documentation for more details. */ dataFilterExpression?: pulumi.Input<inputs.billing.ViewDataFilterExpression>; /** * Number of billing views that use this billing view as a source. */ derivedViewCount?: pulumi.Input<number>; /** * Description of the custom billing view. */ description?: pulumi.Input<string>; /** * Name of the custom billing view to be created. */ name?: pulumi.Input<string>; /** * Account owner of the billing view. */ ownerAccountId?: pulumi.Input<string>; /** * AWS account ID that owns the source billing view, if this is a derived billing view. */ sourceAccountId?: pulumi.Input<string>; /** * Number of source views associated with this billing view. */ sourceViewCount?: pulumi.Input<number>; /** * List of ARNs of the source data views for the custom billing view. * * The following arguments are optional: */ sourceViews?: pulumi.Input<pulumi.Input<string>[]>; /** * List of key value map specifying tags associated to the billing view being created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * List of key value map specifying tags associated to the billing view. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; timeouts?: pulumi.Input<inputs.billing.ViewTimeouts>; /** * Time when the billing view was last updated. */ updatedAt?: pulumi.Input<string>; /** * Timestamp of when the billing view definition was last updated. */ viewDefinitionLastUpdatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a View resource. */ export interface ViewArgs { /** * Filter Cost Explorer APIs using the expression. Refer to the data-filter-expression block documentation for more details. */ dataFilterExpression?: pulumi.Input<inputs.billing.ViewDataFilterExpression>; /** * Description of the custom billing view. */ description?: pulumi.Input<string>; /** * Name of the custom billing view to be created. */ name?: pulumi.Input<string>; /** * List of ARNs of the source data views for the custom billing view. * * The following arguments are optional: */ sourceViews?: pulumi.Input<pulumi.Input<string>[]>; /** * List of key value map specifying tags associated to the billing view being created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; timeouts?: pulumi.Input<inputs.billing.ViewTimeouts>; }