// Creates an index object. See Indexing and search
// (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.html)
// for more information.
Creates an index object. See Indexing and search

for more information.
// Creates an index object . See Indexing and search // ( https : // docs . aws . amazon . com / clouddirectory / latest / developerguide / indexing_search . html ) // for more information .
func (c *Client) CreateIndex(ctx context.Context, params *CreateIndexInput, optFns ...func(*Options)) (*CreateIndexOutput, error) {
	if params == nil {
		params = &CreateIndexInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateIndex", params, optFns, addOperationCreateIndexMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateIndexOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateIndex ( ctx context . Context , params * CreateIndexInput , optFns ... func ( * Options ) ) ( * CreateIndexOutput , error ) { if params == nil { params = & CreateIndexInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateIndexMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateIndexOutput ) out . ResultMetadata = metadata return out , nil }
Creates an index object.
Creates an index object .