Package com.pulumi.aws.resourceexplorer
Class View
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.resourceexplorer.View
-
public class View extends com.pulumi.resources.CustomResource
Provides a resource to manage a Resource Explorer view. ## Example Usage <!--Start PulumiCodeChooser -->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()); } }
-
-
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.Boolean>
defaultView()
com.pulumi.core.Output<java.util.Optional<ViewFilters>>
filters()
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.util.Optional<java.util.List<ViewIncludedProperty>>>
includedProperties()
com.pulumi.core.Output<java.lang.String>
name()
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()
-
-
-
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:
- Amazon Resource Name (ARN) of the Resource Explorer view.
-
defaultView
public com.pulumi.core.Output<java.lang.Boolean> defaultView()
- Returns:
- Specifies whether the view is the [_default view_](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-views-about.html#manage-views-about-default) for the AWS Region. Default: `false`.
-
filters
public com.pulumi.core.Output<java.util.Optional<ViewFilters>> filters()
- Returns:
- Specifies which resources are included in the results of queries made using this view. See Filters below for more details.
-
includedProperties
public com.pulumi.core.Output<java.util.Optional<java.util.List<ViewIncludedProperty>>> includedProperties()
- Returns:
- Optional fields to be included in search results from this view. See Included Properties below for more details.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- 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.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
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.
-
-