View

class View : KotlinCustomResource

Provides a resource to manage a Resource Explorer view.

Example Usage

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 exampleIndex = new Index("exampleIndex", IndexArgs.builder()
.type("LOCAL")
.build());
var exampleView = new View("exampleView", ViewArgs.builder()
.filters(ViewFiltersArgs.builder()
.filterString("resourcetype:ec2:instance")
.build())
.includedProperties(ViewIncludedPropertyArgs.builder()
.name("tags")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleIndex)
.build());
}
}

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