AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ElasticsearchAction

import "github.com/aws/aws-sdk-go/service/iot"

type ElasticsearchAction struct { Endpoint *string `locationName:"endpoint" type:"string" required:"true"` Id *string `locationName:"id" type:"string" required:"true"` Index *string `locationName:"index" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` Type *string `locationName:"type" type:"string" required:"true"` }

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

Endpoint

Type: *string

The endpoint of your Elasticsearch domain.

Endpoint is a required field

Id

Type: *string

The unique identifier for the document you are storing.

Id is a required field

Index

Type: *string

The Elasticsearch index where you want to store your data.

Index is a required field

RoleArn

Type: *string

The IAM role ARN that has access to Elasticsearch.

RoleArn is a required field

Type

Type: *string

The type of document you are storing.

Type is a required field

Method

GoString

func (s ElasticsearchAction) GoString() string

GoString returns the string representation

SetEndpoint

func (s *ElasticsearchAction) SetEndpoint(v string) *ElasticsearchAction

SetEndpoint sets the Endpoint field's value.

SetId

func (s *ElasticsearchAction) SetId(v string) *ElasticsearchAction

SetId sets the Id field's value.

SetIndex

func (s *ElasticsearchAction) SetIndex(v string) *ElasticsearchAction

SetIndex sets the Index field's value.

SetRoleArn

func (s *ElasticsearchAction) SetRoleArn(v string) *ElasticsearchAction

SetRoleArn sets the RoleArn field's value.

SetType

func (s *ElasticsearchAction) SetType(v string) *ElasticsearchAction

SetType sets the Type field's value.

String

func (s ElasticsearchAction) String() string

String returns the string representation

Validate

func (s *ElasticsearchAction) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: