# OpenSearchActionProperty

Describes an action that writes data to an Amazon OpenSearch Service domain.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const openSearchActionProperty: iot.CfnTopicRule.OpenSearchActionProperty = {
  endpoint: 'endpoint',
  id: 'id',
  index: 'index',
  roleArn: 'roleArn',
  type: 'type',
};
```

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_iot as iot

open_search_action_property = iot.CfnTopicRule.OpenSearchActionProperty(
    endpoint="endpoint",
    id="id",
    index="index",
    role_arn="roleArn",
    type="type"
)
```

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.iot.*;

OpenSearchActionProperty openSearchActionProperty = OpenSearchActionProperty.builder()
        .endpoint("endpoint")
        .id("id")
        .index("index")
        .roleArn("roleArn")
        .type("type")
        .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.IoT;

var openSearchActionProperty = new OpenSearchActionProperty {
    Endpoint = "endpoint",
    Id = "id",
    Index = "index",
    RoleArn = "roleArn",
    Type = "type"
};
```

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"

openSearchActionProperty := &OpenSearchActionProperty{
	Endpoint: jsii.String("endpoint"),
	Id: jsii.String("id"),
	Index: jsii.String("index"),
	RoleArn: jsii.String("roleArn"),
	Type: jsii.String("type"),
}
```

## Properties

- `endpoint`: string (required) — The endpoint of your OpenSearch domain.

- `id`: string (required) — The unique identifier for the document you are storing.

- `index`: string (required) — The OpenSearch index where you want to store your data.

- `roleArn`: string (required) — The IAM role ARN that has access to OpenSearch.

- `type`: string (required) — The type of document you are storing.
