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.CustomResourceProvides a resource to manage a Resource Explorer view. ## Example Usage
## Import ### Identity Schema #### Required - `arn` (String) ARN of the Resource Explorer view. Using `pulumi import`, import Resource Explorer views using the `arn`. For example: ```sh $ pulumi import aws:resourceexplorer/view:View example arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421 ```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.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 Index("example", 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()) .name("exampleview") .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 Viewget(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.lang.String>region()com.pulumi.core.Output<java.lang.String>scope()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:
- 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.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
scope
public com.pulumi.core.Output<java.lang.String> scope()
- Returns:
- The root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty, the default is account.
-
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 `defaultTags` 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 `defaultTags` 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.
-
-