Class View


  • public class View
    extends com.pulumi.resources.CustomResource
    Manages an AWS Billing View. ## Example Usage ### Basic Usage
     
     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());
     
         }
     }
     
     
    ## 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 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      View​(java.lang.String name)  
      View​(java.lang.String name, ViewArgs args)  
      View​(java.lang.String name, ViewArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> billingViewType()  
      com.pulumi.core.Output<java.lang.String> createdAt()  
      com.pulumi.core.Output<java.util.Optional<ViewDataFilterExpression>> dataFilterExpression()  
      com.pulumi.core.Output<java.lang.Integer> derivedViewCount()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static View get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ViewState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> ownerAccountId()  
      com.pulumi.core.Output<java.lang.String> sourceAccountId()  
      com.pulumi.core.Output<java.lang.Integer> sourceViewCount()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> sourceViews()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.util.Optional<ViewTimeouts>> timeouts()  
      com.pulumi.core.Output<java.lang.String> updatedAt()  
      com.pulumi.core.Output<java.lang.String> viewDefinitionLastUpdatedAt()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • View

        public View​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • View

        public View​(java.lang.String name,
                    @Nullable
                    ViewArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • View

        public View​(java.lang.String name,
                    @Nullable
                    ViewArgs args,
                    @Nullable
                    com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the View.
      • billingViewType

        public com.pulumi.core.Output<java.lang.String> billingViewType()
        Returns:
        Type of billing group. Valid values are PRIMARY|BILLING_GROUP|CUSTOM.
      • createdAt

        public com.pulumi.core.Output<java.lang.String> createdAt()
        Returns:
        Timestamp when the billing view was created.
      • dataFilterExpression

        public com.pulumi.core.Output<java.util.Optional<ViewDataFilterExpression>> dataFilterExpression()
        Returns:
        Filter Cost Explorer APIs using the expression. See `dataFilterExpression` below for details.
      • derivedViewCount

        public com.pulumi.core.Output<java.lang.Integer> derivedViewCount()
        Returns:
        Number of billing views that use this billing view as a source.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the custom billing view.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the custom billing view to be created. The following arguments are optional:
      • ownerAccountId

        public com.pulumi.core.Output<java.lang.String> ownerAccountId()
        Returns:
        Account owner of the billing view.
      • sourceAccountId

        public com.pulumi.core.Output<java.lang.String> sourceAccountId()
        Returns:
        AWS account ID that owns the source billing view, if this is a derived billing view.
      • sourceViewCount

        public com.pulumi.core.Output<java.lang.Integer> sourceViewCount()
        Returns:
        Number of source views associated with this billing view.
      • sourceViews

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> sourceViews()
        Returns:
        List of ARNs of the source data views for the custom billing view.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value map of tags associated with the billing view being created.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        List of key value map specifying tags associated to the billing view.
      • timeouts

        public com.pulumi.core.Output<java.util.Optional<ViewTimeouts>> timeouts()
      • updatedAt

        public com.pulumi.core.Output<java.lang.String> updatedAt()
        Returns:
        Time when the billing view was last updated.
      • viewDefinitionLastUpdatedAt

        public com.pulumi.core.Output<java.lang.String> viewDefinitionLastUpdatedAt()
        Returns:
        Timestamp of when the billing view definition was last updated.
      • get

        public static View get​(java.lang.String name,
                               com.pulumi.core.Output<java.lang.String> id,
                               @Nullable
                               ViewState state,
                               @Nullable
                               com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.