# CfnIndexProps

Properties for defining a `CfnIndex`.

Used as props by: [CfnIndex](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_resourceexplorer2.CfnIndex.html)

- Source: Generated at build time
- Type last changed: v2.51.0 · 18 Nov 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_resourceexplorer2 as resourceexplorer2 } from 'aws-cdk-lib';
const cfnIndexProps: resourceexplorer2.CfnIndexProps = {
  type: 'type',

  // the properties below are optional
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_resourceexplorer2 as resourceexplorer2

cfn_index_props = resourceexplorer2.CfnIndexProps(
    type="type",

    # the properties below are optional
    tags={
        "tags_key": "tags"
    }
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resourceexplorer2.*;

CfnIndexProps cfnIndexProps = CfnIndexProps.builder()
        .type("type")

        // the properties below are optional
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ResourceExplorer2;

var cfnIndexProps = new CfnIndexProps {
    Type = "type",

    // the properties below are optional
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnIndexProps := &CfnIndexProps{
	Type: jsii.String("type"),

	// the properties below are optional
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `tags`: { [key: string]: string } — The specified tags are attached to only the index created in this AWS Region .

  The tags don't attach to any of the resources listed in the index.

- `type`: string (required) — Specifies the type of the index in this Region.

  For information about the aggregator index and how it differs from a local index, see [Turning on cross-Region search by creating an aggregator index](https://docs.aws.amazon.com/resource-explorer/latest/userguide/manage-aggregator-region.html) in the *AWS Resource Explorer User Guide.* .
