OpenSearchActionProperty Struct
Describes an action that writes data to an Amazon OpenSearch Service domain.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
The endpoint of your OpenSearch domain.
The unique identifier for the document you are storing.
The OpenSearch index where you want to store your data.
The IAM role ARN that has access to OpenSearch.
The type of document you are storing.