View class

Manages an AWS Billing View.

Example Usage

Basic Usage

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 pulumi
import pulumi_aws as aws

example = aws.billing.View("example",
    name="example",
    description="example description",
    source_views=["arn:aws:billing::123456789012:billingview/example"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.Billing.View("example", new()
    {
        Name = "example",
        Description = "example description",
        SourceViews = new[]
        {
            "arn:aws:billing::123456789012:billingview/example",
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/billing"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := billing.NewView(ctx, "example", &billing.ViewArgs{
			Name:        pulumi.String("example"),
			Description: pulumi.String("example description"),
			SourceViews: pulumi.StringArray{
				pulumi.String("arn:aws:billing::123456789012:billingview/example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_billing_view" "example" {
  name         = "example"
  description  = "example description"
  source_views = ["arn:aws:billing::123456789012:billingview/example"]
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.billing.View;
import com.pulumi.aws.billing.ViewArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new View("example", ViewArgs.builder()
            .name("example")
            .description("example description")
            .sourceViews("arn:aws:billing::123456789012:billingview/example")
            .build());

    }
}
resources:
  example:
    type: aws:billing:View
    properties:
      name: example
      description: example description
      sourceViews:
        - arn:aws:billing::123456789012:billingview/example

Import

Using pulumi import, import Billing View using the arn. For example:

$ pulumi import aws:billing/view:View example arn:aws:billing::123456789012:billing-view/example

Constructors

View(String name, {ViewArgs? args, CustomResourceOptions? options})
Creates a new View. name The Pulumi resource name. args Arguments used to configure this View. The set of arguments for View. options Resource options controlling this resource's behavior.
View.reference(String urn)
Creates a typed reference to an existing View resource.

Properties

arn ↔ Output<String>
ARN of the View.
latefinal
billingViewType ↔ Output<String>
Type of billing group. Valid values are PRIMARY|BILLING_GROUP|CUSTOM.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
createdAt ↔ Output<String>
Timestamp when the billing view was created.
latefinal
dataFilterExpression ↔ Output<ViewDataFilterExpression?>
Filter Cost Explorer APIs using the expression. Refer to the data-filter-expression block documentation for more details.
latefinal
derivedViewCount ↔ Output<int>
Number of billing views that use this billing view as a source.
latefinal
description ↔ Output<String?>
Description of the custom billing view.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
name ↔ Output<String>
Name of the custom billing view to be created.
latefinal
ownerAccountId ↔ Output<String>
Account owner of the billing view.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceAccountId ↔ Output<String>
AWS account ID that owns the source billing view, if this is a derived billing view.
latefinal
sourceViewCount ↔ Output<int>
Number of source views associated with this billing view.
latefinal
sourceViews ↔ Output<List<String>?>
List of ARNs of the source data views for the custom billing view.
latefinal
tags ↔ Output<Map<String, String>?>
List of key value map specifying tags associated to the billing view being created.
latefinal
tagsAll ↔ Output<Map<String, String>>
List of key value map specifying tags associated to the billing view.
latefinal
timeouts ↔ Output<ViewTimeouts?>
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
updatedAt ↔ Output<String>
Time when the billing view was last updated.
latefinal
urn ↔ Output<String>
latefinalinherited
viewDefinitionLastUpdatedAt ↔ Output<String>
Timestamp of when the billing view definition was last updated.
latefinal

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {ViewState? state, CustomResourceOptions? options}) → View
Gets an existing View resource's state with the given name and id.