Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-samples/well-architected-iac-analyzer
/ functions
Functions
421 in github.com/aws-samples/well-architected-iac-analyzer
⨍
Functions
421
◇
Types & classes
147
↓ 2 callers
Method
storeOriginalContent
( userId: string, fileId: string, content: string | Buffer, fileType: string, )
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:1070
↓ 2 callers
Method
storePackedContent
* Stores the packed content in S3 * @param userId User ID * @param fileId File ID * @param content Packed content as string
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:599
↓ 2 callers
Function
store_lens_metadata
Store metadata about processed lens in DynamoDB
ecs_fargate_app/lambda_kb_synchronizer/kb_synchronizer.py:176
↓ 2 callers
Function
useHelpContent
()
ecs_fargate_app/frontend/src/components/utils/help-content.tsx:18
↓ 2 callers
Function
useHelpPanel
()
ecs_fargate_app/frontend/src/contexts/HelpPanelContext.tsx:36
↓ 2 callers
Function
validateFileContent
( buffer: Buffer, fileName: string, )
ecs_fargate_app/backend/src/shared/utils/file-validator.ts:56
↓ 2 callers
Function
withMeta
(bp: FlatBestPractice, x: number, y: number)
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:364
↓ 1 callers
Function
analyze
( fileId: string, workloadId: string, selectedPillars: string[], uploadMode?: FileUploadMode,
ecs_fargate_app/frontend/src/services/api.ts:64
↓ 1 callers
Method
analyze
( fileId: string, workloadId: string, selectedPillars: string[], uploadMode: F
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:898
↓ 1 callers
Method
analyzePdfFiles
* Analyzes PDF files against AWS Well-Architected best practices * @param pdfFiles Array of PDF files with filename and buffer * @param question The
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2724
↓ 1 callers
Method
analyzeQuestion
( fileContent: string | any, question: QuestionGroup, kbContexts: string[], fi
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2242
↓ 1 callers
Function
bestPracticeDocUrl
( item: FlatBestPractice, lensAlias: string, lensName: string, )
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:472
↓ 1 callers
Function
bootstrap
()
ecs_fargate_app/backend/src/main.ts:8
↓ 1 callers
Function
buildPillarColorMap
(pillarNames: string[])
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:162
↓ 1 callers
Method
cancelAnalysis
()
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:894
↓ 1 callers
Method
cancelIaCGeneration
()
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:1249
↓ 1 callers
Function
check_migration_needed
Checks if migration is needed by scanning the DynamoDB table Returns True if migration is needed, False otherwise
ecs_fargate_app/lambda_migration/migration.py:63
↓ 1 callers
Method
cleanJsonString
(jsonString: string)
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2332
↓ 1 callers
Function
cleanup_stale_temp_workloads
Periodically lists and removes temporary workloads that have been inactive for more than 24 hours to prevent resource accumulation.
ecs_fargate_app/lambda_kb_synchronizer/kb_synchronizer.py:513
↓ 1 callers
Function
computeDistribution
(results: AnalysisResult[] | null | undefined)
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:273
↓ 1 callers
Function
computeMatrixLayout
(items: FlatBestPractice[])
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:426
↓ 1 callers
Method
createBedrockAgentClient
()
ecs_fargate_app/backend/src/config/aws.config.ts:25
↓ 1 callers
Method
createMilestone
(workloadId: string, milestoneName: string)
ecs_fargate_app/backend/src/modules/well-architected/well-architected.service.ts:176
↓ 1 callers
Method
createWorkItem
( userId: string, fileName: string, fileType: string, fileBuffer: Buffer, uploadMode: File
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:661
↓ 1 callers
Method
createZipFromFiles
* Creates a zip file from multiple files * @param files Array of {filename, buffer, type} objects * @returns Buffer containing the zip file
ecs_fargate_app/backend/src/shared/utils/project-packer.ts:751
↓ 1 callers
Method
create_alb_auth_action
( self, auth_config: dict, alb_domain: str, existing_user_pool=None, e
ecs_fargate_app/wa_genai_stack.py:80
↓ 1 callers
Method
create_knowledge_base_with_opensearch
Create Knowledge Base with OpenSearch Serverless vector store (default option) Returns: tuple of (kb, kbDataSource, KB_ID)
local_development/kb_storage_stack.py:26
↓ 1 callers
Method
create_knowledge_base_with_opensearch
Create Knowledge Base with OpenSearch Serverless vector store (default option) Returns: tuple of (kb, kbDataSource, KB_ID)
ecs_fargate_app/wa_genai_stack.py:368
↓ 1 callers
Method
create_knowledge_base_with_s3_vectors
Create Knowledge Base with S3 Vectors store Returns: tuple of (kb_id, data_source_id, vector_bucket, vector_index, cfn_kb, cfn_data_s
local_development/kb_storage_stack.py:82
↓ 1 callers
Method
create_knowledge_base_with_s3_vectors
Create Knowledge Base with S3 Vectors store Returns: tuple of (kb_id, data_source_id, vector_bucket, vector_index)
ecs_fargate_app/wa_genai_stack.py:402
↓ 1 callers
Function
create_metadata_json
Creates metadata JSON content for a lens
ecs_fargate_app/lambda_kb_synchronizer/kb_synchronizer.py:20
↓ 1 callers
Method
create_stack_cleanup_resources
Create resources for automatic stack cleanup via EventBridge and Lambda
ecs_fargate_app/wa_genai_stack.py:190
↓ 1 callers
Method
deleteWorkItem
(userId: string, fileId: string)
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:872
↓ 1 callers
Function
deleteWorkload
(workloadId: string)
ecs_fargate_app/frontend/src/services/api.ts:185
↓ 1 callers
Function
detectType
(buffer: Buffer)
ecs_fargate_app/backend/src/shared/utils/file-validator.ts:121
↓ 1 callers
Function
determineFileType
(file: File)
ecs_fargate_app/frontend/src/components/SupportingDocumentUpload.tsx:127
↓ 1 callers
Method
disconnect
()
ecs_fargate_app/frontend/src/services/socket.ts:32
↓ 1 callers
Function
dotColor
(item: MatrixItem)
ecs_fargate_app/frontend/src/components/PrioritiesView.tsx:92
↓ 1 callers
Function
downloadRecommendations
(originalFileName: string = 'unknown_file', lensAlias?: string)
ecs_fargate_app/frontend/src/hooks/useAnalyzer.ts:331
↓ 1 callers
Method
ensureBase64Format
(fileContent: string, fileType: string)
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:872
↓ 1 callers
Method
executeWithTimeout
( operation: () => Promise<T>, timeoutMs: number = 30000 )
ecs_fargate_app/backend/src/shared/utils/project-packer.ts:562
↓ 1 callers
Function
fetchAuthConfig
()
ecs_fargate_app/frontend/src/contexts/AuthContext.tsx:18
↓ 1 callers
Function
fetchLensMetadata
()
ecs_fargate_app/frontend/src/components/LensSelector.tsx:27
↓ 1 callers
Function
fetchWorkloads
()
ecs_fargate_app/frontend/src/components/WorkloadIdInput.tsx:26
↓ 1 callers
Method
formatAsTree
* Formats file paths as a tree structure * @param files Array of file paths * @param basePath Base directory path * @returns Formatted
ecs_fargate_app/backend/src/shared/utils/project-packer.ts:353
↓ 1 callers
Function
formatDateTime
(dateStr: string)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:202
↓ 1 callers
Function
formatDateTime
(dateStr: string)
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:628
↓ 1 callers
Method
generateIacDocument
( fileId: string, recommendations: any[], templateType: IaCTemplateType, userI
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:1253
↓ 1 callers
Method
generateRandomString
(length: number)
ecs_fargate_app/backend/src/modules/well-architected/well-architected.service.ts:243
↓ 1 callers
Method
generateRecommendations
(@Body() results: any[])
ecs_fargate_app/backend/src/modules/report/report.controller.ts:32
↓ 1 callers
Method
generateRecommendationsCsv
(results: AnalysisResult[])
ecs_fargate_app/backend/src/modules/report/report.service.ts:47
↓ 1 callers
Function
generateReport
(workloadId: string, lensAliasArn?: string)
ecs_fargate_app/frontend/src/services/api.ts:152
↓ 1 callers
Method
generateReport
(workloadId: string, lensAliasArn?: string)
ecs_fargate_app/backend/src/modules/report/report.service.ts:31
↓ 1 callers
Function
getActionItems
(results: AnalysisResult[] | null | undefined)
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:254
↓ 1 callers
Function
getBadgeColor
(status?: WorkItemStatus)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:57
↓ 1 callers
Function
getBestPracticeCounts
(practices: EnhancedBestPractice[])
ecs_fargate_app/frontend/src/components/AnalysisResults.tsx:193
↓ 1 callers
Method
getChatHistory
( @Param('fileId') fileId: string, @Headers('x-amzn-oidc-data') userDataHeader: string, )
ecs_fargate_app/backend/src/modules/storage/storage.controller.ts:581
↓ 1 callers
Method
getExtensionFromTemplateType
(templateType: string)
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:1064
↓ 1 callers
Method
getFilesRecursively
* Recursively gets all files from a directory, excluding patterns * @param dirPath Directory path * @returns Array of file paths relative to
ecs_fargate_app/backend/src/shared/utils/project-packer.ts:264
↓ 1 callers
Method
getKnowledgeBaseModelArn
* Returns a model ARN suitable for the Bedrock Knowledge Base RetrieveAndGenerate API. * Some models (e.g. Claude Opus 4.7) are not supported by
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2124
↓ 1 callers
Function
getLanguage
(lang: string)
ecs_fargate_app/frontend/src/components/utils/CodeBlock.tsx:46
↓ 1 callers
Function
getLanguageName
(code: string)
ecs_fargate_app/backend/src/prompts/languages.ts:62
↓ 1 callers
Method
getLensMetadata
()
ecs_fargate_app/backend/src/modules/well-architected/well-architected.service.ts:40
↓ 1 callers
Method
getLensNameFromAlias
(lenses: LensInfo[], lensAlias: string)
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:364
↓ 1 callers
Method
getMoreDetails
( selectedItems: any[], userId: string, fileId: string, templateType?: IaCTemp
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:1563
↓ 1 callers
Function
getQuadrant
( criticality: CriticalityLevel | undefined, complexity: ComplexityLevel | undefined, )
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:197
↓ 1 callers
Function
getStringContent
(node: ReactNode)
ecs_fargate_app/frontend/src/components/utils/CodeBlock.tsx:17
↓ 1 callers
Method
getSupportingDocumentMetadataPath
(lensAlias: string, documentId: string)
ecs_fargate_app/backend/src/shared/interfaces/storage.interface.ts:106
↓ 1 callers
Function
get_custom_lenses_from_ssm
Retrieve custom lenses configuration from SSM Parameter Store
ecs_fargate_app/lambda_kb_synchronizer/kb_synchronizer.py:202
↓ 1 callers
Function
handleAiChatClick
(item: EnhancedBestPractice)
ecs_fargate_app/frontend/src/components/AnalysisResults.tsx:273
↓ 1 callers
Function
handleDelete
(item: WorkItem)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:179
↓ 1 callers
Function
handleDeleteChatHistory
(item: WorkItem, event: any)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:142
↓ 1 callers
Function
handleDeleteWorkload
(activeWorkItem?: any, activeLensAlias?: string, activeLensArn?: string)
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:404
↓ 1 callers
Function
handleDownload
(item: WorkItem, event: any)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:94
↓ 1 callers
Function
handleDownloadChatHistory
(item: WorkItem, event: any)
ecs_fargate_app/frontend/src/components/WorkSideNavigation.tsx:125
↓ 1 callers
Function
handleDownloadSupportingDocument
(supportingDocId: string, fileName: string)
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:490
↓ 1 callers
Function
handleFileChange
(files: File[])
ecs_fargate_app/frontend/src/components/FileUpload.tsx:82
↓ 1 callers
Function
handleFileChange
(files: File[])
ecs_fargate_app/frontend/src/components/SupportingDocumentUpload.tsx:43
↓ 1 callers
Function
handleGenerateReport
(specificWorkloadId?: string, specificLensAliasArn?: string)
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:514
↓ 1 callers
Method
handleMultipleFiles
* Handles multiple file uploads * @param userId User ID * @param files Array of files with filename, buffer, and mimetype * @returns Object c
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:505
↓ 1 callers
Function
handleOriginalFileDownload
(fileId: string, fileName: string)
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:611
↓ 1 callers
Method
handlePdfFiles
* Handles uploading PDF files * @param userId User ID * @param files Array of files with filename, buffer, and mimetype * @returns Object containin
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:1126
↓ 1 callers
Function
handleUpdate
(activeWorkItem?: any, specificWorkloadId?: string, specificLensAliasArn?: string, currentWorkloadProtected?:
ecs_fargate_app/frontend/src/components/WellArchitectedAnalyzer.tsx:382
↓ 1 callers
Method
handleZipFile
* Handles zip file upload * @param userId User ID * @param filename Original filename * @param buffer File buffer * @returns Object contai
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:443
↓ 1 callers
Function
hasPrioritizationData
(results: AnalysisResult[] | null | undefined)
ecs_fargate_app/frontend/src/components/utils/priority-matrix.ts:238
↓ 1 callers
Method
invokeBedrockModel
( prompt: string, systemPrompt: string, supportingDocContent?: string, support
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2494
↓ 1 callers
Method
invokeBedrockModelForIacGeneration
( imageData: string, mediaType: string, recommendations: any[], previousSectio
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2578
↓ 1 callers
Method
invokeBedrockModelWithImage
( prompt: string, systemPrompt: string, imageContent: string, supportingDocCon
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2390
↓ 1 callers
Method
invokeBedrockModelWithPdfs
* Invokes Bedrock model with PDF documents * @param prompt The prompt text for analysis * @param systemPrompt The system prompt for the mode
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2775
↓ 1 callers
Method
isFable5
()
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:358
↓ 1 callers
Function
isIaCFile
(file: File)
ecs_fargate_app/frontend/src/components/FileUpload.tsx:58
↓ 1 callers
Method
isImageFile
(fileType: string | undefined)
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:889
↓ 1 callers
Method
isOpus47
()
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:339
↓ 1 callers
Method
isOpus48
()
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:348
↓ 1 callers
Function
isPdfFile
(file: File)
ecs_fargate_app/frontend/src/components/FileUpload.tsx:46
↓ 1 callers
Method
isValidPathLength
* Checks if a file path length exceeds the maximum allowed length * @param filePath The file path to check * @returns True if path length is
ecs_fargate_app/backend/src/shared/utils/project-packer.ts:87
↓ 1 callers
Function
isZipFile
(file: File)
ecs_fargate_app/frontend/src/components/FileUpload.tsx:52
↓ 1 callers
Method
kbModelForbidsSamplingParams
* Returns whether the configured model forbids explicit sampling parameters * (temperature, top_p, top_k) in the KB generation inference config.
ecs_fargate_app/backend/src/modules/analyzer/analyzer.service.ts:2154
↓ 1 callers
Method
listAnswers
(workloadId: string, pillarId: string, lensAlias?: string)
ecs_fargate_app/backend/src/modules/well-architected/well-architected.service.ts:92
↓ 1 callers
Method
listWorkItems
(userId: string)
ecs_fargate_app/backend/src/modules/storage/storage.service.ts:847
← previous
next →
101–200 of 421, ranked by callers