View

class View : KotlinCustomResource

Provides a resource to manage a Resource Explorer view.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.resourceexplorer.Index("example", {type: "LOCAL"});
const exampleView = new aws.resourceexplorer.View("example", {
name: "exampleview",
filters: {
filterString: "resourcetype:ec2:instance",
},
includedProperties: [{
name: "tags",
}],
}, {
dependsOn: [example],
});
import pulumi
import pulumi_aws as aws
example = aws.resourceexplorer.Index("example", type="LOCAL")
example_view = aws.resourceexplorer.View("example",
name="exampleview",
filters={
"filter_string": "resourcetype:ec2:instance",
},
included_properties=[{
"name": "tags",
}],
opts = pulumi.ResourceOptions(depends_on=[example]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ResourceExplorer.Index("example", new()
{
Type = "LOCAL",
});
var exampleView = new Aws.ResourceExplorer.View("example", new()
{
Name = "exampleview",
Filters = new Aws.ResourceExplorer.Inputs.ViewFiltersArgs
{
FilterString = "resourcetype:ec2:instance",
},
IncludedProperties = new[]
{
new Aws.ResourceExplorer.Inputs.ViewIncludedPropertyArgs
{
Name = "tags",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/resourceexplorer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := resourceexplorer.NewIndex(ctx, "example", &resourceexplorer.IndexArgs{
Type: pulumi.String("LOCAL"),
})
if err != nil {
return err
}
_, err = resourceexplorer.NewView(ctx, "example", &resourceexplorer.ViewArgs{
Name: pulumi.String("exampleview"),
Filters: &resourceexplorer.ViewFiltersArgs{
FilterString: pulumi.String("resourcetype:ec2:instance"),
},
IncludedProperties: resourceexplorer.ViewIncludedPropertyArray{
&resourceexplorer.ViewIncludedPropertyArgs{
Name: pulumi.String("tags"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resourceexplorer.Index;
import com.pulumi.aws.resourceexplorer.IndexArgs;
import com.pulumi.aws.resourceexplorer.View;
import com.pulumi.aws.resourceexplorer.ViewArgs;
import com.pulumi.aws.resourceexplorer.inputs.ViewFiltersArgs;
import com.pulumi.aws.resourceexplorer.inputs.ViewIncludedPropertyArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
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 Index("example", IndexArgs.builder()
.type("LOCAL")
.build());
var exampleView = new View("exampleView", ViewArgs.builder()
.name("exampleview")
.filters(ViewFiltersArgs.builder()
.filterString("resourcetype:ec2:instance")
.build())
.includedProperties(ViewIncludedPropertyArgs.builder()
.name("tags")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
}
}
resources:
example:
type: aws:resourceexplorer:Index
properties:
type: LOCAL
exampleView:
type: aws:resourceexplorer:View
name: example
properties:
name: exampleview
filters:
filterString: resourcetype:ec2:instance
includedProperties:
- name: tags
options:
dependsOn:
- ${example}

Import

Using pulumi import, import Resource Explorer views using the arn. For example:

$ pulumi import aws:resourceexplorer/view:View example arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the Resource Explorer view.

Link copied to clipboard
val defaultView: Output<Boolean>

Specifies whether the view is the default view for the AWS Region. Default: false.

Link copied to clipboard
val filters: Output<ViewFilters>?

Specifies which resources are included in the results of queries made using this view. See Filters below for more details.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Optional fields to be included in search results from this view. See Included Properties below for more details.

Link copied to clipboard
val name: Output<String>

The name of the view. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its AWS Region.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: Output<String>

The root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty, the default is account.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>