ViewArgs

data class ViewArgs(val defaultView: Output<Boolean>? = null, val filters: Output<ViewFiltersArgs>? = null, val includedProperties: Output<List<ViewIncludedPropertyArgs>>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ViewArgs>

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

Constructors

Link copied to clipboard
fun ViewArgs(defaultView: Output<Boolean>? = null, filters: Output<ViewFiltersArgs>? = null, includedProperties: Output<List<ViewIncludedPropertyArgs>>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ViewArgs

Properties

Link copied to clipboard
val defaultView: Output<Boolean>? = null

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

Link copied to clipboard
val filters: Output<ViewFiltersArgs>? = null

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

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>? = null

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 tags: Output<Map<String, String>>? = null

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.