# AWS::ResourceExplorer2 Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as resourceexplorer2 from 'aws-cdk-lib/aws-resourceexplorer2';
```

Python:

```python
import aws_cdk.aws_resourceexplorer2 as resourceexplorer2
```

Java:

```java
import software.amazon.awscdk.services.resourceexplorer2.*;
```

C# / .NET:

```csharp
using Amazon.CDK.AWS.ResourceExplorer2;
```

Golang:

```go
import resourceexplorer2 "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for ResourceExplorer2 construct libraries](https://constructs.dev/search?q=resourceexplorer2)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::ResourceExplorer2 resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ResourceExplorer2.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::ResourceExplorer2](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ResourceExplorer2.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnDefaultViewAssociation`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnDefaultViewAssociation.html) Construct (L1) Sets the specified view as the default for the AWS Region in which you call this operation.
- [`CfnIndex`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnIndex.html) Construct (L1) Turns on Resource Explorer in the AWS Region in which you called this operation by creating an index.
- [`CfnView`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnView.html) Construct (L1) Creates a view that users can query by using the [Search](https://docs.aws.amazon.com/resource-explorer/latest/apireference/API_Search.html) operation. Results from queries that you make using this view include only resources that match the view's `Filters` .

### Structs

- [`CfnDefaultViewAssociationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnDefaultViewAssociationProps.html) Struct Properties for defining a `CfnDefaultViewAssociation`.
- [`CfnIndexProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnIndexProps.html) Struct Properties for defining a `CfnIndex`.
- [`CfnView.FiltersProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnView.FiltersProperty.html) Struct
- [`CfnView.IncludedPropertyProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnView.IncludedPropertyProperty.html) Struct Information about an additional property that describes a resource, that you can optionally include in a view.
- [`CfnView.SearchFilterProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnView.SearchFilterProperty.html) Struct A search filter defines which resources can be part of a search query result set.
- [`CfnViewProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnViewProps.html) Struct Properties for defining a `CfnView`.
