1var g=Object.defineProperty;var f=(i,o,t)=>o in i?g(i,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[o]=t;var l=(i,o,t)=>f(i,typeof o!="symbol"?o+"":o,t);import{r as j,j as e}from"./vendor-react-q_qiyTTa.js";import{I as c,b as w,M as d,G as s,l as u,e as h,R as m,C as v,H as b,A as p}from"./vendor-semantic-DUt9fbZG.js";import{a as y}from"./index-fVhe2Etc.js";import{p as C}from"./logo_cfn-B5imcAIv.js";import"./vendor-q0W-3L2j.js";import"./vendor-react-dom-CQNok9NA.js";import"./vendor-utils-Cep4RFcs.js";import"./main-CEjC89ce.js";import"./vendor-syntax-BW49hFqs.js";import"./vendor-router-BfyMGTt_.js";import"./vendor-redux-Bq68MXSv.js";import"./vendor-yaml-D_yuxGry.js";import"./vendor-toast-BkbVYhAd.js";const S="/assets/aws-icon-B3nKbGDQ.webp",k="/assets/logo_env-BUozvIxu.png",T="/assets/cfn_chat_howto-B0xJcO-A.gif",I="/assets/cfn_dropdown-DoPnfMTU.gif",A="/assets/cfn_ui_howto-BExQ9H89.gif",W="/assets/cfn_validate_edit_desc-DZN3nIIl.gif",H="/assets/kb_howto-CE533vGZ.gif",M="/assets/kb_filter-DienVRaw.gif",_="/assets/resource_howto-CvusjesD.gif";class Z extends j.Component{constructor(){super(...arguments);l(this,"state",{activeIndex:0});l(this,"content",{kb:[{gif:H,title:"Chat with AWS Documentation with Citations",content:e.jsxs("ul",{children:[e.jsx("li",{children:"Chat with the AWS documentation by asking anything and receive a trusted answer quickly"}),e.jsx("li",{children:"Send any follow-up questions you may have to the CloudAdvisor to continue the conversation"}),e.jsxs("li",{children:["Click on"," ",e.jsx(w,{basic:!0,color:"blue",children:"Sources"})," ","to view the AWS documentation sources that were evaluated for your answer"]})]})},{gif:M,title:"Use Filters to enhance accuracy",content:e.jsxs("ul",{children:[e.jsx("li",{children:"Filters can be used to select AWS services to include or to limit the sources evaluated based on the selected data sources. By narrowing the data sources evaluated, the AI can provide more accurate answers"}),e.jsxs("li",{children:["Disable ",e.jsx("strong",{children:"paraphrasing"})," to prevent the UI from changing the wording you provided (or from asking follow-up questions)"]})]})}],resource:[{gif:_,title:"Explore your environment with CloudAdvisor",content:e.jsxs("ul",{children:[e.jsx("li",{children:"Use natural language queries to find out about resources in your environment"}),e.jsx("li",{children:"When resource matches are found, you can expand each resource to learn more about its status, properties and any applicable security assessment checks"}),e.jsx("li",{children:"Where applicable, relevant data from your security assessment is also shown in the results"})]})}],cloudformation:[{gif:T,title:"Describe what you want to build",content:e.jsxs("ul",{children:[e.jsx("li",{children:"Use natural language to describe the AWS resources to add to the template"}),e.jsx("li",{children:"Describe modifications or updates to the resource properties that already exist in the template, or new resources to add"})]})},{gif:I,title:"Add from 1000+ available AWS resources",content:e.jsxs("ul",{children:[e.jsx("li",{children:"Use the dropdown to select from one of the 1000+ AWS resources available to add to the template"}),e.jsxs("li",{children:["Click the ",e.jsx(c,{name:"linkify",color:"blue"})," icon to go to the resource's AWS documentation page"]}),e.jsxs("li",{children:["Resources can be removed by clicking the ",e.jsx(c,{name:"trash"})," ","icon next to the resource title"]})]})},{gif:A,title:"Use the UI for quick updates",content:e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Edit Properties"})," under each resource can be used to add/remove resource properties as well as explore what properties are available"]}),e.jsxs("li",{children:["Editing properties in the left-side UI will update the template in real-time. Some edits will require the template to be regenerated, you will see the ",e.jsx("strong",{children:"Regenerate Template"})," button highlighted when that is the case"]})]})},{gif:W,title:"Automatic validation for CloudFormation templates",content:e.jsxs("ul",{children:[e.jsxs("li",{children:["Click the ",e.jsx(c,{name:"check"})," icon on top of the template to validate the syntax. Template validation is performed using"," ",e.jsx("a",{href:"https://github.com/aws-cloudformation/cfn-lint",target:"_blank",children:"AWS cfn-lint"})]}),e.jsxs("li",{children:["Edit the template description by clicking the ",e.jsx(c,{name:"edit"})," ","Icon and typing in your new description"]})]})}],cli:[]});l(this,"handleClick",(t,a)=>{const{index:n}=a,{activeIndex:r}=this.state,x=r===n?-1:n;this.setState({activeIndex:x})});l(this,"handleChangeSearchMode",(t,{value:a})=>{this.setState({activeIndex:0}),this.props.handleSelectMode(t,{value:a})})}render(){const{searchMode:t}=this.props,{activeIndex:a}=this.state;return e.jsxs(d,{trigger:e.jsx(y,{label:"Examples & How-To",icon:"video play"}),children:[e.jsx(d.Header,{children:e.jsx(s,{children:e.jsx(s.Row,{columns:3,children:e.jsx(s.Column,{width:16,textAlign:"center",children:e.jsxs(u,{compact:!0,icon:"labeled",stackable:!0,children:[e.jsxs(u.Item,{name:"kb",style:{width:"165px",fontSize:"1.2em"},value:"kb",active:t==="kb",onClick:this.handleChangeSearchMode,children:[e.jsx(h,{circular:!0,size:"mini",style:{marginBottom:"5px"},src:S}),e.jsx("span",{style:{marginTop:"5px",fontWeight:"550"},children:e.jsx(m,{label:"AWS Knowledgebase",style:{fontSize:"1em"},checked:t==="kb",value:"kb",onChange:this.handleChangeSearchMode})})]}),e.jsxs(u.Item,{name:"resource",style:{width:"165px",fontSize:"1.2em"},value:"resource",active:t==="resource",onClick:this.handleChangeSearchMode,children:[e.jsx(h,{style:{marginBottom:"5px",height:"35px"},src:k}),e.jsx("span",{style:{marginTop:"5px",fontWeight:"550"},children:e.jsx(m,{label:"My Environment",style:{fontSize:"1em"},value:"resource",checked:t==="resource",onChange:this.handleChangeSearchMode})})]}),e.jsxs(u.Item,{name:"cloudformation",style:{width:"165px",fontSize:"1.2em"},value:"cloudformation",active:t==="cloudformation",onClick:this.handleChangeSearchMode,children:[e.jsx(h,{circular:!0,size:"mini",style:{marginBottom:"5px"},src:C}),e.jsx("span",{style:{marginTop:"5px",fontWeight:"550"},children:e.jsx(m,{label:"CloudFormation",style:{fontSize:"1em"},value:"cloudformation",checked:t==="cloudformation",onChange:this.handleChangeSearchMode})})]})]})})})})}),e.jsx(d.Content,{scrolling:!0,children:e.jsxs(v,{children:[e.jsxs(b,{as:"h3",textAlign:"center",style:{fontStyle:"italic"},children:["Topics (",this.content[t].length,")"]}),e.jsx(p,{children:this.content[t].map((n,r)=>e.jsxs(e.Fragment,{children:[e.jsxs(p.Title,{active:a===r,index:r,onClick:this.handleClick,style:{fontSize:"1.5em",fontWeight:"bold",textAlign:"center"},children:[e.jsx(c,{name:"dropdown"}),n.title]}),e.jsx(p.Content,{active:a===r,children:e.jsx(s,{children:e.jsxs(s.Row,{columns:2,children:[e.jsxs(s.Column,{width:8,verticalAlign:"middle",style:{fontSize:"1.6em"},children:[" ",n.content]}
1),e.jsx(s.Column,{width:8,textAlign:"right",children:e.jsx(d,{trigger:e.jsx(h,{src:n.gif,style:{cursor:"pointer"}}),children:e.jsx(h,{src:n.gif,fluid:!0})})})]})})})]}))}),e.jsx(s,{})]})})]})}}export{Z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.