/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { EuiSpacer, EuiButton, // @ts-ignore EuiCodeEditor, EuiText, // @ts-ignore EuiCopy, EuiLink, EuiIcon, } from "@elastic/eui"; import { ContentPanel } from "../../../../components/ContentPanel"; import "brace/theme/github"; import "brace/mode/json"; import { DarkModeConsumer } from "../../../../components/DarkMode"; import { DOCUMENTATION_URL } from "../../../../utils/constants"; interface DefinePolicyProps { jsonString: string; hasJSONError: boolean; onChange: (value: string) => void; onAutoIndent: () => void; } // TODO: Add custom autocomplete for Policy syntax const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: DefinePolicyProps) => ( {(copy: () => void) => ( Copy )} , Auto indent , ]} >

You can think of policies as state machines. "Actions" are the operations ISM performs when an index is in a certain state. "Transitions" define when to move from one state to another.{" "} Learn more

{(isDarkMode) => ( )}
); export default DefinePolicy;