diff --git a/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json b/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json index a930962b361..464d0e7570f 100644 --- a/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json +++ b/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json @@ -1,2368 +1,2989 @@ { - "version": "2.0", - "metadata": { - "apiVersion": "2022-11-11", - "auth": ["smithy.api#httpBearerAuth"], - "endpointPrefix": "amazoncodewhispererservice", - "jsonVersion": "1.0", - "protocol": "json", - "protocols": ["json"], - "serviceFullName": "Amazon CodeWhisperer", - "serviceId": "CodeWhispererRuntime", - "signatureVersion": "bearer", - "signingName": "amazoncodewhispererservice", - "targetPrefix": "AmazonCodeWhispererService", - "uid": "codewhispererruntime-2022-11-11" + "version":"2.0", + "metadata":{ + "apiVersion":"2022-11-11", + "auth":["smithy.api#httpBearerAuth"], + "endpointPrefix":"amazoncodewhispererservice", + "jsonVersion":"1.0", + "protocol":"json", + "protocols":["json"], + "serviceFullName":"Amazon CodeWhisperer", + "serviceId":"CodeWhispererRuntime", + "signatureVersion":"bearer", + "signingName":"amazoncodewhispererservice", + "targetPrefix":"AmazonCodeWhispererService", + "uid":"codewhispererruntime-2022-11-11" }, - "operations": { - "CreateArtifactUploadUrl": { - "name": "CreateArtifactUploadUrl", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "CreateUploadUrlRequest" }, - "output": { "shape": "CreateUploadUrlResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ], - "idempotent": true - }, - "CreateTaskAssistConversation": { - "name": "CreateTaskAssistConversation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "CreateTaskAssistConversationRequest" }, - "output": { "shape": "CreateTaskAssistConversationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "operations":{ + "CreateArtifactUploadUrl":{ + "name":"CreateArtifactUploadUrl", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateUploadUrlRequest"}, + "output":{"shape":"CreateUploadUrlResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"
Creates a pre-signed, S3 write URL for uploading a repository zip archive.
", + "idempotent":true + }, + "CreateTaskAssistConversation":{ + "name":"CreateTaskAssistConversation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTaskAssistConversationRequest"}, + "output":{"shape":"CreateTaskAssistConversationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to create task assist conversation.
" + }, + "CreateUploadUrl":{ + "name":"CreateUploadUrl", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateUploadUrlRequest"}, + "output":{"shape":"CreateUploadUrlResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Creates a pre-signed, S3 write URL for uploading a repository zip archive.
", + "idempotent":true + }, + "DeleteTaskAssistConversation":{ + "name":"DeleteTaskAssistConversation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTaskAssistConversationRequest"}, + "output":{"shape":"DeleteTaskAssistConversationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to delete task assist conversation.
" + }, + "GenerateCompletions":{ + "name":"GenerateCompletions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateCompletionsRequest"}, + "output":{"shape":"GenerateCompletionsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Generate completions based on the provided file context in a paginated response.
" + }, + "GetCodeAnalysis":{ + "name":"GetCodeAnalysis", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCodeAnalysisRequest"}, + "output":{"shape":"GetCodeAnalysisResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Gets the metadata of a code analysis job.
" + }, + "GetCodeFixJob":{ + "name":"GetCodeFixJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCodeFixJobRequest"}, + "output":{"shape":"GetCodeFixJobResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ] + }, + "GetTaskAssistCodeGeneration":{ + "name":"GetTaskAssistCodeGeneration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTaskAssistCodeGenerationRequest"}, + "output":{"shape":"GetTaskAssistCodeGenerationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to get status of task assist code generation.
" + }, + "GetTestGeneration":{ + "name":"GetTestGeneration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTestGenerationRequest"}, + "output":{"shape":"GetTestGenerationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to get test generation job.
" + }, + "GetTransformation":{ + "name":"GetTransformation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTransformationRequest"}, + "output":{"shape":"GetTransformationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to get code transformation status.
" + }, + "GetTransformationPlan":{ + "name":"GetTransformationPlan", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTransformationPlanRequest"}, + "output":{"shape":"GetTransformationPlanResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to get code transformation status.
" + }, + "ListAvailableCustomizations":{ + "name":"ListAvailableCustomizations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAvailableCustomizationsRequest"}, + "output":{"shape":"ListAvailableCustomizationsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ] + }, + "ListCodeAnalysisFindings":{ + "name":"ListCodeAnalysisFindings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCodeAnalysisFindingsRequest"}, + "output":{"shape":"ListCodeAnalysisFindingsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Lists the findings from a particular code analysis job.
" + }, + "ListFeatureEvaluations":{ + "name":"ListFeatureEvaluations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListFeatureEvaluationsRequest"}, + "output":{"shape":"ListFeatureEvaluationsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Return configruations for each feature that has been setup for A/B testing.
" + }, + "ResumeTransformation":{ + "name":"ResumeTransformation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResumeTransformationRequest"}, + "output":{"shape":"ResumeTransformationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to resume transformation job.
" + }, + "SendTelemetryEvent":{ + "name":"SendTelemetryEvent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendTelemetryEventRequest"}, + "output":{"shape":"SendTelemetryEventResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to record telemetry events.
", + "idempotent":true + }, + "StartCodeAnalysis":{ + "name":"StartCodeAnalysis", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartCodeAnalysisRequest"}, + "output":{"shape":"StartCodeAnalysisResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"Starts a code analysis job
", + "idempotent":true + }, + "StartCodeFixJob":{ + "name":"StartCodeFixJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartCodeFixJobRequest"}, + "output":{"shape":"StartCodeFixJobResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ] + }, + "StartTaskAssistCodeGeneration":{ + "name":"StartTaskAssistCodeGeneration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartTaskAssistCodeGenerationRequest"}, + "output":{"shape":"StartTaskAssistCodeGenerationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to start task assist code generation.
" + }, + "StartTestGeneration":{ + "name":"StartTestGeneration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartTestGenerationRequest"}, + "output":{"shape":"StartTestGenerationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to start test generation.
", + "idempotent":true + }, + "StartTransformation":{ + "name":"StartTransformation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartTransformationRequest"}, + "output":{"shape":"StartTransformationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to start code translation.
" + }, + "StopTransformation":{ + "name":"StopTransformation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopTransformationRequest"}, + "output":{"shape":"StopTransformationResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"API to stop code transformation status.
" + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "reason":{"shape":"AccessDeniedExceptionReason"} + }, + "documentation":"This exception is thrown when the user does not have sufficient access to perform this action.
", + "exception":true + }, + "AccessDeniedExceptionReason":{ + "type":"string", + "documentation":"Reason for AccessDeniedException
", + "enum":["UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS"] + }, + "AppStudioState":{ + "type":"structure", + "required":[ + "namespace", + "propertyName", + "propertyContext" + ], + "members":{ + "namespace":{ + "shape":"AppStudioStateNamespaceString", + "documentation":"The namespace of the context. Examples: 'ui.Button', 'ui.Table.DataSource', 'ui.Table.RowActions.Button', 'logic.invokeAWS', 'logic.JavaScript'
" + }, + "propertyName":{ + "shape":"AppStudioStatePropertyNameString", + "documentation":"The name of the property. Examples: 'visibility', 'disability', 'value', 'code'
" + }, + "propertyValue":{ + "shape":"AppStudioStatePropertyValueString", + "documentation":"The value of the property.
" + }, + "propertyContext":{ + "shape":"AppStudioStatePropertyContextString", + "documentation":"Context about how the property is used
" + } + }, + "documentation":"Description of a user's context when they are calling Q Chat from AppStudio
" + }, + "AppStudioStateNamespaceString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "AppStudioStatePropertyContextString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "AppStudioStatePropertyNameString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "AppStudioStatePropertyValueString":{ + "type":"string", + "max":10240, + "min":0, + "sensitive":true + }, + "ArtifactId":{ + "type":"string", + "max":126, + "min":1, + "pattern":"[a-zA-Z0-9-_]+" + }, + "ArtifactMap":{ + "type":"map", + "key":{"shape":"ArtifactType"}, + "value":{"shape":"UploadId"}, + "max":64, + "min":1 + }, + "ArtifactType":{ + "type":"string", + "enum":[ + "SourceCode", + "BuiltJars" + ] + }, + "AssistantResponseMessage":{ + "type":"structure", + "required":["content"], + "members":{ + "messageId":{"shape":"MessageId"}, + "content":{ + "shape":"AssistantResponseMessageContentString", + "documentation":"The content of the text message in markdown format.
" + }, + "supplementaryWebLinks":{ + "shape":"SupplementaryWebLinks", + "documentation":"Web References
" + }, + "references":{ + "shape":"References", + "documentation":"Code References
" + }, + "followupPrompt":{ + "shape":"FollowupPrompt", + "documentation":"Followup Prompt
" + } + }, + "documentation":"Markdown text message.
" + }, + "AssistantResponseMessageContentString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "Base64EncodedPaginationToken":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?" + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ChatAddMessageEvent":{ + "type":"structure", + "required":[ + "conversationId", + "messageId" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "messageId":{"shape":"MessageId"}, + "customizationArn":{"shape":"CustomizationArn"}, + "userIntent":{"shape":"UserIntent"}, + "hasCodeSnippet":{"shape":"Boolean"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "activeEditorTotalCharacters":{"shape":"Integer"}, + "timeToFirstChunkMilliseconds":{"shape":"Double"}, + "timeBetweenChunks":{"shape":"timeBetweenChunks"}, + "fullResponselatency":{"shape":"Double"}, + "requestLength":{"shape":"Integer"}, + "responseLength":{"shape":"Integer"}, + "numberOfCodeBlocks":{"shape":"Integer"}, + "hasProjectLevelContext":{"shape":"Boolean"} + } + }, + "ChatHistory":{ + "type":"list", + "member":{"shape":"ChatMessage"}, + "documentation":"Indicates Participant in Chat conversation
", + "max":10, + "min":0 + }, + "ChatInteractWithMessageEvent":{ + "type":"structure", + "required":[ + "conversationId", + "messageId" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "messageId":{"shape":"MessageId"}, + "customizationArn":{"shape":"CustomizationArn"}, + "interactionType":{"shape":"ChatMessageInteractionType"}, + "interactionTarget":{"shape":"ChatInteractWithMessageEventInteractionTargetString"}, + "acceptedCharacterCount":{"shape":"Integer"}, + "acceptedLineCount":{"shape":"Integer"}, + "acceptedSnippetHasReference":{"shape":"Boolean"}, + "hasProjectLevelContext":{"shape":"Boolean"}, + "userIntent":{"shape":"UserIntent"} + } + }, + "ChatInteractWithMessageEventInteractionTargetString":{ + "type":"string", + "max":1024, + "min":1 + }, + "ChatMessage":{ + "type":"structure", + "members":{ + "userInputMessage":{"shape":"UserInputMessage"}, + "assistantResponseMessage":{"shape":"AssistantResponseMessage"} + }, + "union":true + }, + "ChatMessageInteractionType":{ + "type":"string", + "documentation":"Chat Message Interaction Type
", + "enum":[ + "INSERT_AT_CURSOR", + "COPY_SNIPPET", + "COPY", + "CLICK_LINK", + "CLICK_BODY_LINK", + "CLICK_FOLLOW_UP", + "HOVER_REFERENCE", + "UPVOTE", + "DOWNVOTE" + ] + }, + "ChatTriggerType":{ + "type":"string", + "documentation":"Trigger Reason for Chat
", + "enum":[ + "MANUAL", + "DIAGNOSTIC", + "INLINE_CHAT" + ] + }, + "ChatUserModificationEvent":{ + "type":"structure", + "required":[ + "conversationId", + "messageId", + "modificationPercentage" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "customizationArn":{"shape":"CustomizationArn"}, + "messageId":{"shape":"MessageId"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "modificationPercentage":{"shape":"Double"}, + "hasProjectLevelContext":{"shape":"Boolean"} + } + }, + "CodeAnalysisFindingsSchema":{ + "type":"string", + "enum":["codeanalysis/findings/1.0"] + }, + "CodeAnalysisScope":{ + "type":"string", + "enum":[ + "FILE", + "PROJECT" + ] + }, + "CodeAnalysisStatus":{ + "type":"string", + "enum":[ + "Completed", + "Pending", + "Failed" + ] + }, + "CodeAnalysisUploadContext":{ + "type":"structure", + "required":["codeScanName"], + "members":{ + "codeScanName":{"shape":"CodeScanName"} + } + }, + "CodeCoverageEvent":{ + "type":"structure", + "required":[ + "programmingLanguage", + "acceptedCharacterCount", + "totalCharacterCount", + "timestamp" + ], + "members":{ + "customizationArn":{"shape":"CustomizationArn"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "acceptedCharacterCount":{"shape":"PrimitiveInteger"}, + "totalCharacterCount":{"shape":"PrimitiveInteger"}, + "timestamp":{"shape":"Timestamp"}, + "unmodifiedAcceptedCharacterCount":{"shape":"PrimitiveInteger"}, + "totalNewCodeCharacterCount":{"shape":"PrimitiveInteger"}, + "totalNewCodeLineCount":{"shape":"PrimitiveInteger"} + } + }, + "CodeFixAcceptanceEvent":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{"shape":"String"}, + "ruleId":{"shape":"String"}, + "detectorId":{"shape":"String"}, + "findingId":{"shape":"String"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "linesOfCodeAccepted":{"shape":"Integer"}, + "charsOfCodeAccepted":{"shape":"Integer"} + } + }, + "CodeFixGenerationEvent":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{"shape":"String"}, + "ruleId":{"shape":"String"}, + "detectorId":{"shape":"String"}, + "findingId":{"shape":"String"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "linesOfCodeGenerated":{"shape":"Integer"}, + "charsOfCodeGenerated":{"shape":"Integer"} + } + }, + "CodeFixJobStatus":{ + "type":"string", + "enum":[ + "Succeeded", + "InProgress", + "Failed" + ] + }, + "CodeFixName":{ + "type":"string", + "documentation":"Code fix name
", + "max":128, + "min":1 + }, + "CodeFixUploadContext":{ + "type":"structure", + "required":["codeFixName"], + "members":{ + "codeFixName":{"shape":"CodeFixName"} + } + }, + "CodeGenerationId":{ + "type":"string", + "documentation":"ID which represents a single code generation in a conversation
", + "max":128, + "min":1 + }, + "CodeGenerationStatus":{ + "type":"structure", + "required":[ + "status", + "currentStage" + ], + "members":{ + "status":{"shape":"CodeGenerationWorkflowStatus"}, + "currentStage":{"shape":"CodeGenerationWorkflowStage"} + } + }, + "CodeGenerationStatusDetail":{ + "type":"string", + "documentation":"Detailed message about the code generation status
", + "sensitive":true + }, + "CodeGenerationWorkflowStage":{ + "type":"string", + "enum":[ + "InitialCodeGeneration", + "CodeRefinement" + ] + }, + "CodeGenerationWorkflowStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Complete", + "Failed" + ] + }, + "CodeScanEvent":{ + "type":"structure", + "required":[ + "programmingLanguage", + "codeScanJobId", + "timestamp" + ], + "members":{ + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "codeScanJobId":{"shape":"CodeScanJobId"}, + "timestamp":{"shape":"Timestamp"}, + "codeAnalysisScope":{"shape":"CodeAnalysisScope"} + }, + "documentation":"Published when a security scan or code review starts
" + }, + "CodeScanFailedEvent":{ + "type":"structure", + "required":[ + "programmingLanguage", + "codeScanJobId", + "timestamp" + ], + "members":{ + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "codeScanJobId":{"shape":"CodeScanJobId"}, + "timestamp":{"shape":"Timestamp"}, + "codeAnalysisScope":{"shape":"CodeAnalysisScope"} + }, + "documentation":"Published when a security scan or code review fails
" + }, + "CodeScanJobId":{ + "type":"string", + "max":128, + "min":1 + }, + "CodeScanName":{ + "type":"string", + "documentation":"Code analysis scan name
", + "max":128, + "min":1 + }, + "CodeScanRemediationsEvent":{ + "type":"structure", + "members":{ + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "CodeScanRemediationsEventType":{"shape":"CodeScanRemediationsEventType"}, + "timestamp":{"shape":"Timestamp"}, + "detectorId":{"shape":"String"}, + "findingId":{"shape":"String"}, + "ruleId":{"shape":"String"}, + "component":{"shape":"String"}, + "reason":{"shape":"String"}, + "result":{"shape":"String"}, + "includesFix":{"shape":"Boolean"} + } + }, + "CodeScanRemediationsEventType":{ + "type":"string", + "documentation":"Code Scan Remediations Interaction Type
", + "enum":[ + "CODESCAN_ISSUE_HOVER", + "CODESCAN_ISSUE_APPLY_FIX", + "CODESCAN_ISSUE_VIEW_DETAILS" + ] + }, + "CodeScanSucceededEvent":{ + "type":"structure", + "required":[ + "programmingLanguage", + "codeScanJobId", + "timestamp", + "numberOfFindings" + ], + "members":{ + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "codeScanJobId":{"shape":"CodeScanJobId"}, + "timestamp":{"shape":"Timestamp"}, + "numberOfFindings":{"shape":"PrimitiveInteger"}, + "codeAnalysisScope":{"shape":"CodeAnalysisScope"} + }, + "documentation":"Published when a security scan or code review completes successfully
" + }, + "Completion":{ + "type":"structure", + "required":["content"], + "members":{ + "content":{"shape":"CompletionContentString"}, + "references":{"shape":"References"}, + "mostRelevantMissingImports":{"shape":"Imports"} + } + }, + "CompletionContentString":{ + "type":"string", + "max":5120, + "min":1, + "sensitive":true + }, + "CompletionType":{ + "type":"string", + "enum":[ + "BLOCK", + "LINE" + ] + }, + "Completions":{ + "type":"list", + "member":{"shape":"Completion"}, + "max":10, + "min":0 + }, + "ConflictException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "reason":{"shape":"ConflictExceptionReason"} + }, + "documentation":"This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
", + "exception":true + }, + "ConflictExceptionReason":{ + "type":"string", + "documentation":"Reason for ConflictException
", + "enum":[ + "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY", + "CUSTOMER_KMS_KEY_DISABLED", + "MISMATCHED_KMS_KEY" + ] + }, + "ConsoleState":{ + "type":"structure", + "members":{ + "region":{"shape":"String"}, + "consoleUrl":{"shape":"SensitiveString"}, + "serviceId":{"shape":"String"}, + "serviceConsolePage":{"shape":"String"}, + "serviceSubconsolePage":{"shape":"String"}, + "taskName":{"shape":"SensitiveString"} + }, + "documentation":"Information about the state of the AWS management console page from which the user is calling
" + }, + "ContentChecksumType":{ + "type":"string", + "enum":["SHA_256"] + }, + "ContextTruncationScheme":{ + "type":"string", + "documentation":"Workspace context truncation schemes based on usecase
", + "enum":[ + "ANALYSIS", + "GUMBY" + ] + }, + "ConversationId":{ + "type":"string", + "documentation":"ID which represents a multi-turn conversation
", + "max":128, + "min":1 + }, + "ConversationState":{ + "type":"structure", + "required":[ + "currentMessage", + "chatTriggerType" + ], + "members":{ + "conversationId":{ + "shape":"ConversationId", + "documentation":"Unique identifier for the chat conversation stream
" + }, + "history":{ + "shape":"ChatHistory", + "documentation":"Holds the history of chat messages.
" + }, + "currentMessage":{ + "shape":"ChatMessage", + "documentation":"Holds the current message being processed or displayed.
" + }, + "chatTriggerType":{ + "shape":"ChatTriggerType", + "documentation":"Trigger Reason for Chat
" + }, + "customizationArn":{"shape":"ResourceArn"} + }, + "documentation":"Structure to represent the current state of a chat conversation.
" + }, + "CreateTaskAssistConversationRequest":{ + "type":"structure", + "members":{ + }, + "documentation":"Structure to represent bootstrap conversation request.
" + }, + "CreateTaskAssistConversationResponse":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"} + }, + "documentation":"Structure to represent bootstrap conversation response.
" + }, + "CreateUploadUrlRequest":{ + "type":"structure", + "members":{ + "contentMd5":{"shape":"CreateUploadUrlRequestContentMd5String"}, + "contentChecksum":{"shape":"CreateUploadUrlRequestContentChecksumString"}, + "contentChecksumType":{"shape":"ContentChecksumType"}, + "contentLength":{"shape":"CreateUploadUrlRequestContentLengthLong"}, + "artifactType":{"shape":"ArtifactType"}, + "uploadIntent":{"shape":"UploadIntent"}, + "uploadContext":{"shape":"UploadContext"}, + "uploadId":{"shape":"UploadId"} + } + }, + "CreateUploadUrlRequestContentChecksumString":{ + "type":"string", + "max":512, + "min":1, + "sensitive":true + }, + "CreateUploadUrlRequestContentLengthLong":{ + "type":"long", + "box":true, + "min":1 + }, + "CreateUploadUrlRequestContentMd5String":{ + "type":"string", + "max":128, + "min":1, + "sensitive":true + }, + "CreateUploadUrlResponse":{ + "type":"structure", + "required":[ + "uploadId", + "uploadUrl" + ], + "members":{ + "uploadId":{"shape":"UploadId"}, + "uploadUrl":{"shape":"PreSignedUrl"}, + "kmsKeyArn":{"shape":"ResourceArn"}, + "requestHeaders":{"shape":"RequestHeaders"} + } + }, + "CursorState":{ + "type":"structure", + "members":{ + "position":{ + "shape":"Position", + "documentation":"Represents a cursor position in a Text Document
" + }, + "range":{ + "shape":"Range", + "documentation":"Represents a text selection in a Text Document
" + } + }, + "documentation":"Represents the state of the Cursor in an Editor
", + "union":true + }, + "Customization":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{"shape":"CustomizationArn"}, + "name":{"shape":"CustomizationName"}, + "description":{"shape":"Description"} + } + }, + "CustomizationArn":{ + "type":"string", + "max":950, + "min":0, + "pattern":"arn:[-.a-z0-9]{1,63}:codewhisperer:([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}" + }, + "CustomizationName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[a-zA-Z][a-zA-Z0-9_-]*" + }, + "Customizations":{ + "type":"list", + "member":{"shape":"Customization"} + }, + "DeleteTaskAssistConversationRequest":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"} + }, + "documentation":"Structure to represent bootstrap conversation request.
" + }, + "DeleteTaskAssistConversationResponse":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"} + }, + "documentation":"Structure to represent bootstrap conversation response.
" + }, + "Description":{ + "type":"string", + "max":256, + "min":0, + "pattern":"[\\sa-zA-Z0-9_-]*" + }, + "Diagnostic":{ + "type":"structure", + "members":{ + "textDocumentDiagnostic":{ + "shape":"TextDocumentDiagnostic", + "documentation":"Diagnostics originating from a TextDocument
" + }, + "runtimeDiagnostic":{ + "shape":"RuntimeDiagnostic", + "documentation":"Diagnostics originating from a Runtime
" + } + }, + "documentation":"Represents a Diagnostic message
", + "union":true + }, + "DiagnosticSeverity":{ + "type":"string", + "documentation":"Diagnostic Error types
", + "enum":[ + "ERROR", + "WARNING", + "INFORMATION", + "HINT" + ] + }, + "Dimension":{ + "type":"structure", + "members":{ + "name":{"shape":"DimensionNameString"}, + "value":{"shape":"DimensionValueString"} + } + }, + "DimensionList":{ + "type":"list", + "member":{"shape":"Dimension"}, + "max":30, + "min":0 + }, + "DimensionNameString":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "DimensionValueString":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "DocGenerationEvent":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "numberOfAddChars":{"shape":"PrimitiveInteger"}, + "numberOfAddLines":{"shape":"PrimitiveInteger"}, + "numberOfAddFiles":{"shape":"PrimitiveInteger"}, + "userDecision":{"shape":"DocGenerationUserDecision"}, + "interactionType":{"shape":"DocGenerationInteractionType"}, + "userIdentity":{"shape":"String"}, + "numberOfNavigation":{"shape":"PrimitiveInteger"}, + "folderLevel":{"shape":"DocGenerationFolderLevel"} + } + }, + "DocGenerationFolderLevel":{ + "type":"string", + "documentation":"Doc Generation Folder Level
", + "enum":[ + "SUB_FOLDER", + "ENTIRE_WORKSPACE" + ] + }, + "DocGenerationInteractionType":{ + "type":"string", + "documentation":"Doc Generation Interaction Type
", + "enum":[ + "GENERATE_README", + "UPDATE_README", + "EDIT_README" + ] + }, + "DocGenerationUserDecision":{ + "type":"string", + "enum":[ + "ACCEPT", + "REJECT" + ] + }, + "DocumentSymbol":{ + "type":"structure", + "required":[ + "name", + "type" + ], + "members":{ + "name":{ + "shape":"DocumentSymbolNameString", + "documentation":"Name of the Document Symbol
" + }, + "type":{ + "shape":"SymbolType", + "documentation":"Symbol type - DECLARATION / USAGE
" + }, + "source":{ + "shape":"DocumentSymbolSourceString", + "documentation":"Symbol package / source for FullyQualified names
" + } + } + }, + "DocumentSymbolNameString":{ + "type":"string", + "max":256, + "min":1 + }, + "DocumentSymbolSourceString":{ + "type":"string", + "max":256, + "min":1 + }, + "DocumentSymbols":{ + "type":"list", + "member":{"shape":"DocumentSymbol"}, + "max":1000, + "min":0 + }, + "DocumentationIntentContext":{ + "type":"structure", + "required":["type"], + "members":{ + "scope":{"shape":"DocumentationIntentContextScopeString"}, + "type":{"shape":"DocumentationType"} + } + }, + "DocumentationIntentContextScopeString":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, + "DocumentationType":{ + "type":"string", + "enum":["README"] + }, + "Double":{ + "type":"double", + "box":true + }, + "EditorState":{ + "type":"structure", + "members":{ + "document":{ + "shape":"TextDocument", + "documentation":"Represents currently edited file
" + }, + "cursorState":{ + "shape":"CursorState", + "documentation":"Position of the cursor
" + }, + "relevantDocuments":{ + "shape":"RelevantDocumentList", + "documentation":"Represents IDE provided relevant files
" + }, + "useRelevantDocuments":{ + "shape":"Boolean", + "documentation":"Whether service should use relevant document in prompt
" + } + }, + "documentation":"Represents the state of an Editor
" + }, + "EnvState":{ + "type":"structure", + "members":{ + "operatingSystem":{ + "shape":"EnvStateOperatingSystemString", + "documentation":"The name of the operating system in use
" + }, + "currentWorkingDirectory":{ + "shape":"EnvStateCurrentWorkingDirectoryString", + "documentation":"The current working directory of the environment
" + }, + "environmentVariables":{ + "shape":"EnvironmentVariables", + "documentation":"The environment variables set in the current environment
" + }, + "timezoneOffset":{ + "shape":"EnvStateTimezoneOffsetInteger", + "documentation":"Local timezone offset of the client. For more information, see documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset
" + } + }, + "documentation":"State related to the user's environment
" + }, + "EnvStateCurrentWorkingDirectoryString":{ + "type":"string", + "max":256, + "min":1, + "sensitive":true + }, + "EnvStateOperatingSystemString":{ + "type":"string", + "max":32, + "min":1, + "pattern":"(macos|linux|windows)" + }, + "EnvStateTimezoneOffsetInteger":{ + "type":"integer", + "box":true, + "max":1440, + "min":-1440 + }, + "EnvironmentVariable":{ + "type":"structure", + "members":{ + "key":{ + "shape":"EnvironmentVariableKeyString", + "documentation":"The key of an environment variable
" + }, + "value":{ + "shape":"EnvironmentVariableValueString", + "documentation":"The value of an environment variable
" + } + }, + "documentation":"An environment variable
" + }, + "EnvironmentVariableKeyString":{ + "type":"string", + "max":256, + "min":1, + "sensitive":true + }, + "EnvironmentVariableValueString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "EnvironmentVariables":{ + "type":"list", + "member":{"shape":"EnvironmentVariable"}, + "documentation":"A list of environment variables
", + "max":100, + "min":0 + }, + "FeatureDevCodeAcceptanceEvent":{ + "type":"structure", + "required":[ + "conversationId", + "linesOfCodeAccepted", + "charactersOfCodeAccepted" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "linesOfCodeAccepted":{"shape":"FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger"}, + "charactersOfCodeAccepted":{"shape":"FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"} + } + }, + "FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger":{ + "type":"integer", + "min":0 + }, + "FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger":{ + "type":"integer", + "min":0 + }, + "FeatureDevCodeGenerationEvent":{ + "type":"structure", + "required":[ + "conversationId", + "linesOfCodeGenerated", + "charactersOfCodeGenerated" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "linesOfCodeGenerated":{"shape":"FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger"}, + "charactersOfCodeGenerated":{"shape":"FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"} + } + }, + "FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger":{ + "type":"integer", + "min":0 + }, + "FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger":{ + "type":"integer", + "min":0 + }, + "FeatureDevEvent":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"} + } + }, + "FeatureEvaluation":{ + "type":"structure", + "required":[ + "feature", + "variation", + "value" + ], + "members":{ + "feature":{"shape":"FeatureName"}, + "variation":{"shape":"FeatureVariation"}, + "value":{"shape":"FeatureValue"} + } + }, + "FeatureEvaluationsList":{ + "type":"list", + "member":{"shape":"FeatureEvaluation"}, + "max":50, + "min":0 + }, + "FeatureName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "FeatureValue":{ + "type":"structure", + "members":{ + "boolValue":{"shape":"Boolean"}, + "doubleValue":{"shape":"Double"}, + "longValue":{"shape":"Long"}, + "stringValue":{"shape":"FeatureValueStringType"} + }, + "union":true + }, + "FeatureValueStringType":{ + "type":"string", + "max":512, + "min":0 + }, + "FeatureVariation":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "FileContext":{ + "type":"structure", + "required":[ + "leftFileContent", + "rightFileContent", + "filename", + "programmingLanguage" + ], + "members":{ + "leftFileContent":{"shape":"FileContextLeftFileContentString"}, + "rightFileContent":{"shape":"FileContextRightFileContentString"}, + "filename":{"shape":"FileContextFilenameString"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"} + } + }, + "FileContextFilenameString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "FileContextLeftFileContentString":{ + "type":"string", + "max":10240, + "min":0, + "sensitive":true + }, + "FileContextRightFileContentString":{ + "type":"string", + "max":10240, + "min":0, + "sensitive":true + }, + "FollowupPrompt":{ + "type":"structure", + "required":["content"], + "members":{ + "content":{ + "shape":"FollowupPromptContentString", + "documentation":"The content of the text message in markdown format.
" + }, + "userIntent":{ + "shape":"UserIntent", + "documentation":"User Intent
" + } + }, + "documentation":"Followup Prompt for the Assistant Response
" + }, + "FollowupPromptContentString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "GenerateCompletionsRequest":{ + "type":"structure", + "required":["fileContext"], + "members":{ + "fileContext":{"shape":"FileContext"}, + "maxResults":{"shape":"GenerateCompletionsRequestMaxResultsInteger"}, + "nextToken":{"shape":"GenerateCompletionsRequestNextTokenString"}, + "referenceTrackerConfiguration":{"shape":"ReferenceTrackerConfiguration"}, + "supplementalContexts":{"shape":"SupplementalContextList"}, + "customizationArn":{"shape":"CustomizationArn"}, + "optOutPreference":{"shape":"OptOutPreference"}, + "userContext":{"shape":"UserContext"}, + "profileArn":{"shape":"ProfileArn"} + } + }, + "GenerateCompletionsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":10, + "min":1 + }, + "GenerateCompletionsRequestNextTokenString":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?", + "sensitive":true + }, + "GenerateCompletionsResponse":{ + "type":"structure", + "members":{ + "completions":{"shape":"Completions"}, + "nextToken":{"shape":"SensitiveString"} + } + }, + "GetCodeAnalysisRequest":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{"shape":"GetCodeAnalysisRequestJobIdString"} + } + }, + "GetCodeAnalysisRequestJobIdString":{ + "type":"string", + "max":256, + "min":1 + }, + "GetCodeAnalysisResponse":{ + "type":"structure", + "required":["status"], + "members":{ + "status":{"shape":"CodeAnalysisStatus"}, + "errorMessage":{"shape":"SensitiveString"} + } + }, + "GetCodeFixJobRequest":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{"shape":"GetCodeFixJobRequestJobIdString"} + } + }, + "GetCodeFixJobRequestJobIdString":{ + "type":"string", + "max":256, + "min":1, + "pattern":".*[A-Za-z0-9-:]+.*" + }, + "GetCodeFixJobResponse":{ + "type":"structure", + "members":{ + "jobStatus":{"shape":"CodeFixJobStatus"}, + "suggestedFix":{"shape":"SuggestedFix"} + } + }, + "GetTaskAssistCodeGenerationRequest":{ + "type":"structure", + "required":[ + "conversationId", + "codeGenerationId" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "codeGenerationId":{"shape":"CodeGenerationId"} + }, + "documentation":"Request for getting task assist code generation.
" + }, + "GetTaskAssistCodeGenerationResponse":{ + "type":"structure", + "required":[ + "conversationId", + "codeGenerationStatus" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "codeGenerationStatus":{"shape":"CodeGenerationStatus"}, + "codeGenerationStatusDetail":{"shape":"CodeGenerationStatusDetail"}, + "codeGenerationRemainingIterationCount":{"shape":"Integer"}, + "codeGenerationTotalIterationCount":{"shape":"Integer"} + }, + "documentation":"Response for getting task assist code generation status.
" + }, + "GetTestGenerationRequest":{ + "type":"structure", + "required":[ + "testGenerationJobGroupName", + "testGenerationJobId" + ], + "members":{ + "testGenerationJobGroupName":{"shape":"TestGenerationJobGroupName"}, + "testGenerationJobId":{"shape":"UUID"} + }, + "documentation":"Structure to represent get test generation request.
" + }, + "GetTestGenerationResponse":{ + "type":"structure", + "members":{ + "testGenerationJob":{"shape":"TestGenerationJob"} + }, + "documentation":"Structure to represent get test generation response.
" + }, + "GetTransformationPlanRequest":{ + "type":"structure", + "required":["transformationJobId"], + "members":{ + "transformationJobId":{"shape":"TransformationJobId"} + }, + "documentation":"Structure to represent get code transformation plan request.
" + }, + "GetTransformationPlanResponse":{ + "type":"structure", + "required":["transformationPlan"], + "members":{ + "transformationPlan":{"shape":"TransformationPlan"} + }, + "documentation":"Structure to represent get code transformation plan response.
" + }, + "GetTransformationRequest":{ + "type":"structure", + "required":["transformationJobId"], + "members":{ + "transformationJobId":{"shape":"TransformationJobId"} + }, + "documentation":"Structure to represent get code transformation request.
" + }, + "GetTransformationResponse":{ + "type":"structure", + "required":["transformationJob"], + "members":{ + "transformationJob":{"shape":"TransformationJob"} + }, + "documentation":"Structure to represent get code transformation response.
" + }, + "GitState":{ + "type":"structure", + "members":{ + "status":{ + "shape":"GitStateStatusString", + "documentation":"The output of the command git status --porcelain=v1 -b
State related to the Git VSC
" + }, + "GitStateStatusString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "IdeCategory":{ + "type":"string", + "enum":[ + "JETBRAINS", + "VSCODE", + "CLI", + "JUPYTER_MD", + "JUPYTER_SM", + "ECLIPSE", + "VISUAL_STUDIO" + ], + "max":64, + "min":1 + }, + "IdempotencyToken":{ + "type":"string", + "max":256, + "min":1 + }, + "Import":{ + "type":"structure", + "members":{ + "statement":{"shape":"ImportStatementString"} + } + }, + "ImportStatementString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "Imports":{ + "type":"list", + "member":{"shape":"Import"}, + "max":10, + "min":0 + }, + "InlineChatEvent":{ + "type":"structure", + "required":[ + "requestId", + "timestamp" + ], + "members":{ + "requestId":{"shape":"UUID"}, + "timestamp":{"shape":"Timestamp"}, + "inputLength":{"shape":"PrimitiveInteger"}, + "numSelectedLines":{"shape":"PrimitiveInteger"}, + "numSuggestionAddChars":{"shape":"PrimitiveInteger"}, + "numSuggestionAddLines":{"shape":"PrimitiveInteger"}, + "numSuggestionDelChars":{"shape":"PrimitiveInteger"}, + "numSuggestionDelLines":{"shape":"PrimitiveInteger"}, + "codeIntent":{"shape":"Boolean"}, + "userDecision":{"shape":"InlineChatUserDecision"}, + "responseStartLatency":{"shape":"Double"}, + "responseEndLatency":{"shape":"Double"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"} + } + }, + "InlineChatUserDecision":{ + "type":"string", + "enum":[ + "ACCEPT", + "REJECT", + "DISMISS" + ] + }, + "Integer":{ + "type":"integer", + "box":true + }, + "Intent":{ + "type":"string", + "enum":[ + "DEV", + "DOC" + ] + }, + "IntentContext":{ + "type":"structure", + "members":{ + "documentation":{"shape":"DocumentationIntentContext"} + }, + "union":true + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"This exception is thrown when an unexpected error occurred during the processing of a request.
", + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "LineRangeList":{ + "type":"list", + "member":{"shape":"Range"} + }, + "ListAvailableCustomizationsRequest":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"ListAvailableCustomizationsRequestMaxResultsInteger"}, + "nextToken":{"shape":"Base64EncodedPaginationToken"} + } + }, + "ListAvailableCustomizationsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListAvailableCustomizationsResponse":{ + "type":"structure", + "required":["customizations"], + "members":{ + "customizations":{"shape":"Customizations"}, + "nextToken":{"shape":"Base64EncodedPaginationToken"} + } + }, + "ListCodeAnalysisFindingsRequest":{ + "type":"structure", + "required":[ + "jobId", + "codeAnalysisFindingsSchema" + ], + "members":{ + "jobId":{"shape":"ListCodeAnalysisFindingsRequestJobIdString"}, + "nextToken":{"shape":"PaginationToken"}, + "codeAnalysisFindingsSchema":{"shape":"CodeAnalysisFindingsSchema"} + } + }, + "ListCodeAnalysisFindingsRequestJobIdString":{ + "type":"string", + "max":256, + "min":1 + }, + "ListCodeAnalysisFindingsResponse":{ + "type":"structure", + "required":["codeAnalysisFindings"], + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "codeAnalysisFindings":{"shape":"SensitiveString"} + } + }, + "ListFeatureEvaluationsRequest":{ + "type":"structure", + "required":["userContext"], + "members":{ + "userContext":{"shape":"UserContext"} + } + }, + "ListFeatureEvaluationsResponse":{ + "type":"structure", + "required":["featureEvaluations"], + "members":{ + "featureEvaluations":{"shape":"FeatureEvaluationsList"} + } + }, + "Long":{ + "type":"long", + "box":true + }, + "MessageId":{ + "type":"string", + "documentation":"Unique identifier for the chat message
", + "max":128, + "min":0 + }, + "MetricData":{ + "type":"structure", + "required":[ + "metricName", + "metricValue", + "timestamp", + "product" + ], + "members":{ + "metricName":{"shape":"MetricDataMetricNameString"}, + "metricValue":{"shape":"Double"}, + "timestamp":{"shape":"Timestamp"}, + "product":{"shape":"MetricDataProductString"}, + "dimensions":{"shape":"DimensionList"} + } + }, + "MetricDataMetricNameString":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "MetricDataProductString":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "OperatingSystem":{ + "type":"string", + "enum":[ + "MAC", + "WINDOWS", + "LINUX" + ], + "max":64, + "min":1 + }, + "OptOutPreference":{ + "type":"string", + "enum":[ + "OPTIN", + "OPTOUT" + ] + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"\\S+" + }, + "Position":{ + "type":"structure", + "required":[ + "line", + "character" + ], + "members":{ + "line":{ + "shape":"Integer", + "documentation":"Line position in a document.
" + }, + "character":{ + "shape":"Integer", + "documentation":"Character offset on a line in a document (zero-based)
" + } + }, + "documentation":"Indicates Cursor postion in a Text Document
" + }, + "PreSignedUrl":{ + "type":"string", + "max":2048, + "min":1, + "sensitive":true + }, + "PrimitiveInteger":{"type":"integer"}, + "ProfileArn":{ + "type":"string", + "max":950, + "min":0, + "pattern":"arn:aws:codewhisperer:[-.a-z0-9]{1,63}:\\d{12}:profile/([a-zA-Z0-9]){12}" + }, + "ProgrammingLanguage":{ + "type":"structure", + "required":["languageName"], + "members":{ + "languageName":{"shape":"ProgrammingLanguageLanguageNameString"} + }, + "documentation":"Programming Languages supported by CodeWhisperer
" + }, + "ProgrammingLanguageLanguageNameString":{ + "type":"string", + "max":128, + "min":1, + "pattern":"(python|javascript|java|csharp|typescript|c|cpp|go|kotlin|php|ruby|rust|scala|shell|sql|json|yaml|vue|tf|tsx|jsx|plaintext|systemverilog|dart|lua|swift|powershell|r)" + }, + "ProgressUpdates":{ + "type":"list", + "member":{"shape":"TransformationProgressUpdate"} + }, + "Range":{ + "type":"structure", + "required":[ + "start", + "end" + ], + "members":{ + "start":{ + "shape":"Position", + "documentation":"The range's start position.
" + }, + "end":{ + "shape":"Position", + "documentation":"The range's end position.
" + } + }, + "documentation":"Indicates Range / Span in a Text Document
" + }, + "RecommendationsWithReferencesPreference":{ + "type":"string", + "documentation":"Recommendations with references setting for CodeWhisperer
", + "enum":[ + "BLOCK", + "ALLOW" ] }, - "CreateUploadUrl": { - "name": "CreateUploadUrl", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "CreateUploadUrlRequest" }, - "output": { "shape": "CreateUploadUrlResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ], - "idempotent": true - }, - "DeleteTaskAssistConversation": { - "name": "DeleteTaskAssistConversation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "DeleteTaskAssistConversationRequest" }, - "output": { "shape": "DeleteTaskAssistConversationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "Reference":{ + "type":"structure", + "members":{ + "licenseName":{ + "shape":"ReferenceLicenseNameString", + "documentation":"License name
" + }, + "repository":{ + "shape":"ReferenceRepositoryString", + "documentation":"Code Repsitory for the associated reference
" + }, + "url":{ + "shape":"ReferenceUrlString", + "documentation":"Respository URL
" + }, + "recommendationContentSpan":{ + "shape":"Span", + "documentation":"Span / Range for the Reference
" + } + }, + "documentation":"Code Reference / Repository details
" + }, + "ReferenceLicenseNameString":{ + "type":"string", + "max":1024, + "min":1 + }, + "ReferenceRepositoryString":{ + "type":"string", + "max":1024, + "min":1 + }, + "ReferenceTrackerConfiguration":{ + "type":"structure", + "required":["recommendationsWithReferences"], + "members":{ + "recommendationsWithReferences":{"shape":"RecommendationsWithReferencesPreference"} + } + }, + "ReferenceUrlString":{ + "type":"string", + "max":1024, + "min":1 + }, + "References":{ + "type":"list", + "member":{"shape":"Reference"}, + "max":10, + "min":0 + }, + "RelevantDocumentList":{ + "type":"list", + "member":{"shape":"RelevantTextDocument"}, + "max":5, + "min":0 + }, + "RelevantTextDocument":{ + "type":"structure", + "required":["relativeFilePath"], + "members":{ + "relativeFilePath":{ + "shape":"RelevantTextDocumentRelativeFilePathString", + "documentation":"Filepath relative to the root of the workspace
" + }, + "programmingLanguage":{ + "shape":"ProgrammingLanguage", + "documentation":"The text document's language identifier.
" + }, + "text":{ + "shape":"RelevantTextDocumentTextString", + "documentation":"Content of the text document
" + }, + "documentSymbols":{ + "shape":"DocumentSymbols", + "documentation":"DocumentSymbols parsed from a text document
" + } + }, + "documentation":"Represents an IDE retrieved relevant Text Document / File
" + }, + "RelevantTextDocumentRelativeFilePathString":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, + "RelevantTextDocumentTextString":{ + "type":"string", + "max":10240, + "min":0, + "sensitive":true + }, + "RequestHeaderKey":{ + "type":"string", + "max":64, + "min":1 + }, + "RequestHeaderValue":{ + "type":"string", + "max":256, + "min":1 + }, + "RequestHeaders":{ + "type":"map", + "key":{"shape":"RequestHeaderKey"}, + "value":{"shape":"RequestHeaderValue"}, + "max":16, + "min":1, + "sensitive":true + }, + "ResourceArn":{ + "type":"string", + "max":1224, + "min":0, + "pattern":"arn:([-.a-z0-9]{1,63}:){2}([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}" + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"This exception is thrown when describing a resource that does not exist.
", + "exception":true + }, + "ResumeTransformationRequest":{ + "type":"structure", + "required":["transformationJobId"], + "members":{ + "transformationJobId":{"shape":"TransformationJobId"}, + "userActionStatus":{"shape":"TransformationUserActionStatus"} + }, + "documentation":"Structure to represent stop code transformation request.
" + }, + "ResumeTransformationResponse":{ + "type":"structure", + "required":["transformationStatus"], + "members":{ + "transformationStatus":{"shape":"TransformationStatus"} + }, + "documentation":"Structure to represent stop code transformation response.
" + }, + "RuntimeDiagnostic":{ + "type":"structure", + "required":[ + "source", + "severity", + "message" + ], + "members":{ + "source":{ + "shape":"RuntimeDiagnosticSourceString", + "documentation":"A human-readable string describing the source of the diagnostic
" + }, + "severity":{ + "shape":"DiagnosticSeverity", + "documentation":"Diagnostic Error type
" + }, + "message":{ + "shape":"RuntimeDiagnosticMessageString", + "documentation":"The diagnostic's message.
" + } + }, + "documentation":"Structure to represent metadata about a Runtime Diagnostics
" + }, + "RuntimeDiagnosticMessageString":{ + "type":"string", + "max":1024, + "min":0, + "sensitive":true + }, + "RuntimeDiagnosticSourceString":{ + "type":"string", + "max":1024, + "min":0, + "sensitive":true + }, + "SendTelemetryEventRequest":{ + "type":"structure", + "required":["telemetryEvent"], + "members":{ + "clientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "telemetryEvent":{"shape":"TelemetryEvent"}, + "optOutPreference":{"shape":"OptOutPreference"}, + "userContext":{"shape":"UserContext"}, + "profileArn":{"shape":"ProfileArn"} + } + }, + "SendTelemetryEventResponse":{ + "type":"structure", + "members":{ + } + }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"This exception is thrown when request was denied due to caller exceeding their usage limits
", + "exception":true + }, + "ShellHistory":{ + "type":"list", + "member":{"shape":"ShellHistoryEntry"}, + "documentation":"A list of shell history entries
", + "max":20, + "min":0 + }, + "ShellHistoryEntry":{ + "type":"structure", + "required":["command"], + "members":{ + "command":{ + "shape":"ShellHistoryEntryCommandString", + "documentation":"The shell command that was run
" + }, + "directory":{ + "shape":"ShellHistoryEntryDirectoryString", + "documentation":"The directory the command was ran in
" + }, + "exitCode":{ + "shape":"Integer", + "documentation":"The exit code of the command after it finished
" + }, + "stdout":{ + "shape":"ShellHistoryEntryStdoutString", + "documentation":"The stdout from the command
" + }, + "stderr":{ + "shape":"ShellHistoryEntryStderrString", + "documentation":"The stderr from the command
" + } + }, + "documentation":"An single entry in the shell history
" + }, + "ShellHistoryEntryCommandString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "ShellHistoryEntryDirectoryString":{ + "type":"string", + "max":256, + "min":1, + "sensitive":true + }, + "ShellHistoryEntryStderrString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "ShellHistoryEntryStdoutString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "ShellState":{ + "type":"structure", + "required":["shellName"], + "members":{ + "shellName":{ + "shape":"ShellStateShellNameString", + "documentation":"The name of the current shell
" + }, + "shellHistory":{ + "shape":"ShellHistory", + "documentation":"The history previous shell commands for the current shell
" + } + }, + "documentation":"Represents the state of a shell
" + }, + "ShellStateShellNameString":{ + "type":"string", + "max":32, + "min":1, + "pattern":"(zsh|bash|fish|pwsh|nu)" + }, + "Span":{ + "type":"structure", + "members":{ + "start":{"shape":"SpanStartInteger"}, + "end":{"shape":"SpanEndInteger"} + }, + "documentation":"Represents span in a text
" + }, + "SpanEndInteger":{ + "type":"integer", + "box":true, + "min":0 + }, + "SpanStartInteger":{ + "type":"integer", + "box":true, + "min":0 + }, + "StartCodeAnalysisRequest":{ + "type":"structure", + "required":[ + "artifacts", + "programmingLanguage" + ], + "members":{ + "artifacts":{"shape":"ArtifactMap"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "clientToken":{ + "shape":"StartCodeAnalysisRequestClientTokenString", + "idempotencyToken":true + }, + "scope":{"shape":"CodeAnalysisScope"}, + "codeScanName":{"shape":"CodeScanName"} + } + }, + "StartCodeAnalysisRequestClientTokenString":{ + "type":"string", + "max":256, + "min":1 + }, + "StartCodeAnalysisResponse":{ + "type":"structure", + "required":[ + "jobId", + "status" + ], + "members":{ + "jobId":{"shape":"StartCodeAnalysisResponseJobIdString"}, + "status":{"shape":"CodeAnalysisStatus"}, + "errorMessage":{"shape":"SensitiveString"} + } + }, + "StartCodeAnalysisResponseJobIdString":{ + "type":"string", + "max":256, + "min":1 + }, + "StartCodeFixJobRequest":{ + "type":"structure", + "required":[ + "snippetRange", + "uploadId" + ], + "members":{ + "snippetRange":{"shape":"Range"}, + "uploadId":{"shape":"UploadId"}, + "description":{"shape":"StartCodeFixJobRequestDescriptionString"}, + "ruleId":{"shape":"StartCodeFixJobRequestRuleIdString"}, + "codeFixName":{"shape":"CodeFixName"} + } + }, + "StartCodeFixJobRequestDescriptionString":{ + "type":"string", + "max":2000, + "min":1 + }, + "StartCodeFixJobRequestRuleIdString":{ + "type":"string", + "max":256, + "min":1, + "pattern":".*[A-Za-z0-9-]+.*" + }, + "StartCodeFixJobResponse":{ + "type":"structure", + "members":{ + "jobId":{"shape":"StartCodeFixJobResponseJobIdString"}, + "status":{"shape":"CodeFixJobStatus"} + } + }, + "StartCodeFixJobResponseJobIdString":{ + "type":"string", + "max":256, + "min":1, + "pattern":".*[A-Za-z0-9-:]+.*" + }, + "StartTaskAssistCodeGenerationRequest":{ + "type":"structure", + "required":[ + "conversationState", + "workspaceState" + ], + "members":{ + "conversationState":{"shape":"ConversationState"}, + "workspaceState":{"shape":"WorkspaceState"}, + "taskAssistPlan":{"shape":"TaskAssistPlan"}, + "codeGenerationId":{"shape":"CodeGenerationId"}, + "currentCodeGenerationId":{"shape":"CodeGenerationId"}, + "intent":{"shape":"Intent"}, + "intentContext":{"shape":"IntentContext"} + }, + "documentation":"Structure to represent start code generation request.
" + }, + "StartTaskAssistCodeGenerationResponse":{ + "type":"structure", + "required":[ + "conversationId", + "codeGenerationId" + ], + "members":{ + "conversationId":{"shape":"ConversationId"}, + "codeGenerationId":{"shape":"CodeGenerationId"} + }, + "documentation":"Structure to represent start code generation response.
" + }, + "StartTestGenerationRequest":{ + "type":"structure", + "required":[ + "uploadId", + "targetCodeList", + "userInput" + ], + "members":{ + "uploadId":{"shape":"UploadId"}, + "targetCodeList":{"shape":"TargetCodeList"}, + "userInput":{ + "shape":"StartTestGenerationRequestUserInputString", + "documentation":"The content of user input.
" + }, + "testGenerationJobGroupName":{"shape":"TestGenerationJobGroupName"}, + "clientToken":{ + "shape":"StartTestGenerationRequestClientTokenString", + "idempotencyToken":true + } + }, + "documentation":"Structure to represent test generation request.
" }, - "GenerateCompletions": { - "name": "GenerateCompletions", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GenerateCompletionsRequest" }, - "output": { "shape": "GenerateCompletionsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "StartTestGenerationRequestClientTokenString":{ + "type":"string", + "max":256, + "min":1 }, - "GetCodeAnalysis": { - "name": "GetCodeAnalysis", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetCodeAnalysisRequest" }, - "output": { "shape": "GetCodeAnalysisResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "StartTestGenerationRequestUserInputString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true }, - "GetCodeFixJob": { - "name": "GetCodeFixJob", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetCodeFixJobRequest" }, - "output": { "shape": "GetCodeFixJobResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "StartTestGenerationResponse":{ + "type":"structure", + "members":{ + "testGenerationJob":{"shape":"TestGenerationJob"} + }, + "documentation":"Structure to represent code transformation response.
" }, - "GetTaskAssistCodeGeneration": { - "name": "GetTaskAssistCodeGeneration", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetTaskAssistCodeGenerationRequest" }, - "output": { "shape": "GetTaskAssistCodeGenerationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "StartTransformationRequest":{ + "type":"structure", + "required":[ + "workspaceState", + "transformationSpec" + ], + "members":{ + "workspaceState":{"shape":"WorkspaceState"}, + "transformationSpec":{"shape":"TransformationSpec"} + }, + "documentation":"Structure to represent code transformation request.
" }, - "GetTestGeneration": { - "name": "GetTestGeneration", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetTestGenerationRequest" }, - "output": { "shape": "GetTestGenerationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ] + "StartTransformationResponse":{ + "type":"structure", + "required":["transformationJobId"], + "members":{ + "transformationJobId":{"shape":"TransformationJobId"} + }, + "documentation":"Structure to represent code transformation response.
" + }, + "StepId":{ + "type":"string", + "max":126, + "min":1 + }, + "StopTransformationRequest":{ + "type":"structure", + "required":["transformationJobId"], + "members":{ + "transformationJobId":{"shape":"TransformationJobId"} + }, + "documentation":"Structure to represent stop code transformation request.
" + }, + "StopTransformationResponse":{ + "type":"structure", + "required":["transformationStatus"], + "members":{ + "transformationStatus":{"shape":"TransformationStatus"} + }, + "documentation":"Structure to represent stop code transformation response.
" }, - "GetTransformation": { - "name": "GetTransformation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetTransformationRequest" }, - "output": { "shape": "GetTransformationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "String":{"type":"string"}, + "SuggestedFix":{ + "type":"structure", + "members":{ + "codeDiff":{"shape":"SuggestedFixCodeDiffString"}, + "description":{"shape":"SuggestedFixDescriptionString"}, + "references":{"shape":"References"} + } + }, + "SuggestedFixCodeDiffString":{ + "type":"string", + "max":200000, + "min":0, + "sensitive":true + }, + "SuggestedFixDescriptionString":{ + "type":"string", + "max":2000, + "min":1 + }, + "SuggestionState":{ + "type":"string", + "enum":[ + "ACCEPT", + "REJECT", + "DISCARD", + "EMPTY", + "MERGE" ] }, - "GetTransformationPlan": { - "name": "GetTransformationPlan", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "GetTransformationPlanRequest" }, - "output": { "shape": "GetTransformationPlanResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "SupplementalContext":{ + "type":"structure", + "required":[ + "filePath", + "content" + ], + "members":{ + "filePath":{"shape":"SupplementalContextFilePathString"}, + "content":{"shape":"SupplementalContextContentString"} + } + }, + "SupplementalContextContentString":{ + "type":"string", + "max":10240, + "min":1, + "sensitive":true + }, + "SupplementalContextFilePathString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "SupplementalContextList":{ + "type":"list", + "member":{"shape":"SupplementalContext"}, + "max":5, + "min":0 + }, + "SupplementaryWebLink":{ + "type":"structure", + "required":[ + "url", + "title" + ], + "members":{ + "url":{ + "shape":"SupplementaryWebLinkUrlString", + "documentation":"URL of the web reference link
" + }, + "title":{ + "shape":"SupplementaryWebLinkTitleString", + "documentation":"Title of the web reference link
" + }, + "snippet":{ + "shape":"SupplementaryWebLinkSnippetString", + "documentation":"Relevant text snippet from the link
" + } + }, + "documentation":"Represents an additional reference link retured with the Chat message
" + }, + "SupplementaryWebLinkSnippetString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "SupplementaryWebLinkTitleString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "SupplementaryWebLinkUrlString":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "SupplementaryWebLinks":{ + "type":"list", + "member":{"shape":"SupplementaryWebLink"}, + "max":10, + "min":0 + }, + "SymbolType":{ + "type":"string", + "enum":[ + "DECLARATION", + "USAGE" ] }, - "ListAvailableCustomizations": { - "name": "ListAvailableCustomizations", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "ListAvailableCustomizationsRequest" }, - "output": { "shape": "ListAvailableCustomizationsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TargetCode":{ + "type":"structure", + "required":["relativeTargetPath"], + "members":{ + "relativeTargetPath":{ + "shape":"TargetCodeRelativeTargetPathString", + "documentation":"The file path relative to the root of the workspace, could be a single file or a folder.
" + }, + "targetLineRangeList":{"shape":"LineRangeList"} + } + }, + "TargetCodeList":{ + "type":"list", + "member":{"shape":"TargetCode"}, + "min":1 + }, + "TargetCodeRelativeTargetPathString":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, + "TaskAssistPlan":{ + "type":"list", + "member":{"shape":"TaskAssistPlanStep"}, + "min":0 + }, + "TaskAssistPlanStep":{ + "type":"structure", + "required":[ + "filePath", + "description" + ], + "members":{ + "filePath":{ + "shape":"TaskAssistPlanStepFilePathString", + "documentation":"File path on which the step is working on.
" + }, + "description":{ + "shape":"TaskAssistPlanStepDescriptionString", + "documentation":"Description on the step.
" + }, + "startLine":{ + "shape":"TaskAssistPlanStepStartLineInteger", + "documentation":"Start line number of the related changes.
" + }, + "endLine":{ + "shape":"TaskAssistPlanStepEndLineInteger", + "documentation":"End line number of the related changes.
" + }, + "action":{ + "shape":"TaskAssistPlanStepAction", + "documentation":"Type of the action.
" + } + }, + "documentation":"Structured plan step for a task assist plan.
" + }, + "TaskAssistPlanStepAction":{ + "type":"string", + "documentation":"Action for task assist plan step
", + "enum":[ + "MODIFY", + "CREATE", + "DELETE", + "UNKNOWN" ] }, - "ListCodeAnalysisFindings": { - "name": "ListCodeAnalysisFindings", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "ListCodeAnalysisFindingsRequest" }, - "output": { "shape": "ListCodeAnalysisFindingsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TaskAssistPlanStepDescriptionString":{ + "type":"string", + "max":1024, + "min":1 + }, + "TaskAssistPlanStepEndLineInteger":{ + "type":"integer", + "box":true, + "min":0 + }, + "TaskAssistPlanStepFilePathString":{ + "type":"string", + "max":1024, + "min":1 + }, + "TaskAssistPlanStepStartLineInteger":{ + "type":"integer", + "box":true, + "min":0 + }, + "TaskAssistPlanningUploadContext":{ + "type":"structure", + "required":["conversationId"], + "members":{ + "conversationId":{"shape":"ConversationId"} + } + }, + "TelemetryEvent":{ + "type":"structure", + "members":{ + "userTriggerDecisionEvent":{"shape":"UserTriggerDecisionEvent"}, + "codeCoverageEvent":{"shape":"CodeCoverageEvent"}, + "userModificationEvent":{"shape":"UserModificationEvent"}, + "codeScanEvent":{"shape":"CodeScanEvent"}, + "codeScanSucceededEvent":{"shape":"CodeScanSucceededEvent"}, + "codeScanFailedEvent":{"shape":"CodeScanFailedEvent"}, + "codeScanRemediationsEvent":{"shape":"CodeScanRemediationsEvent"}, + "codeFixGenerationEvent":{"shape":"CodeFixGenerationEvent"}, + "codeFixAcceptanceEvent":{"shape":"CodeFixAcceptanceEvent"}, + "metricData":{"shape":"MetricData"}, + "chatAddMessageEvent":{"shape":"ChatAddMessageEvent"}, + "chatInteractWithMessageEvent":{"shape":"ChatInteractWithMessageEvent"}, + "chatUserModificationEvent":{"shape":"ChatUserModificationEvent"}, + "terminalUserInteractionEvent":{"shape":"TerminalUserInteractionEvent"}, + "featureDevEvent":{"shape":"FeatureDevEvent"}, + "featureDevCodeGenerationEvent":{"shape":"FeatureDevCodeGenerationEvent"}, + "featureDevCodeAcceptanceEvent":{"shape":"FeatureDevCodeAcceptanceEvent"}, + "inlineChatEvent":{"shape":"InlineChatEvent"}, + "transformEvent":{"shape":"TransformEvent"}, + "docGenerationEvent":{"shape":"DocGenerationEvent"}, + "testGenerationEvent":{"shape":"TestGenerationEvent"} + }, + "union":true + }, + "TerminalUserInteractionEvent":{ + "type":"structure", + "members":{ + "terminalUserInteractionEventType":{"shape":"TerminalUserInteractionEventType"}, + "terminal":{"shape":"String"}, + "terminalVersion":{"shape":"String"}, + "shell":{"shape":"String"}, + "shellVersion":{"shape":"String"}, + "duration":{"shape":"Integer"}, + "timeToSuggestion":{"shape":"Integer"}, + "isCompletionAccepted":{"shape":"Boolean"}, + "cliToolCommand":{"shape":"String"} + } + }, + "TerminalUserInteractionEventType":{ + "type":"string", + "documentation":"CodeWhisperer terminal Interaction Type
", + "enum":[ + "CODEWHISPERER_TERMINAL_TRANSLATION_ACTION", + "CODEWHISPERER_TERMINAL_COMPLETION_INSERTED" ] }, - "ListFeatureEvaluations": { - "name": "ListFeatureEvaluations", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "ListFeatureEvaluationsRequest" }, - "output": { "shape": "ListFeatureEvaluationsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TestGenerationEvent":{ + "type":"structure", + "required":[ + "jobId", + "groupName" + ], + "members":{ + "jobId":{"shape":"UUID"}, + "groupName":{"shape":"TestGenerationJobGroupName"}, + "timestamp":{"shape":"Timestamp"}, + "ideCategory":{"shape":"IdeCategory"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "numberOfUnitTestCasesGenerated":{"shape":"Integer"}, + "numberOfUnitTestCasesAccepted":{"shape":"Integer"}, + "linesOfCodeGenerated":{"shape":"Integer"}, + "linesOfCodeAccepted":{"shape":"Integer"}, + "charsOfCodeGenerated":{"shape":"Integer"}, + "charsOfCodeAccepted":{"shape":"Integer"} + } + }, + "TestGenerationJob":{ + "type":"structure", + "required":[ + "testGenerationJobId", + "testGenerationJobGroupName", + "status", + "creationTime" + ], + "members":{ + "testGenerationJobId":{"shape":"UUID"}, + "testGenerationJobGroupName":{"shape":"TestGenerationJobGroupName"}, + "status":{"shape":"TestGenerationJobStatus"}, + "shortAnswer":{"shape":"SensitiveString"}, + "creationTime":{"shape":"Timestamp"}, + "progressRate":{"shape":"TestGenerationJobProgressRateInteger"} + }, + "documentation":"Represents a test generation job
" + }, + "TestGenerationJobGroupName":{ + "type":"string", + "documentation":"Test generation job group name
", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9-_]+" + }, + "TestGenerationJobProgressRateInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":0 + }, + "TestGenerationJobStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "FAILED", + "COMPLETED" ] }, - "ResumeTransformation": { - "name": "ResumeTransformation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "ResumeTransformationRequest" }, - "output": { "shape": "ResumeTransformationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TextDocument":{ + "type":"structure", + "required":["relativeFilePath"], + "members":{ + "relativeFilePath":{ + "shape":"TextDocumentRelativeFilePathString", + "documentation":"Filepath relative to the root of the workspace
" + }, + "programmingLanguage":{ + "shape":"ProgrammingLanguage", + "documentation":"The text document's language identifier.
" + }, + "text":{ + "shape":"TextDocumentTextString", + "documentation":"Content of the text document
" + }, + "documentSymbols":{ + "shape":"DocumentSymbols", + "documentation":"DocumentSymbols parsed from a text document
" + } + }, + "documentation":"Represents a Text Document / File
" + }, + "TextDocumentDiagnostic":{ + "type":"structure", + "required":[ + "document", + "range", + "source", + "severity", + "message" + ], + "members":{ + "document":{ + "shape":"TextDocument", + "documentation":"Represents a Text Document associated with Diagnostic
" + }, + "range":{ + "shape":"Range", + "documentation":"The range at which the message applies.
" + }, + "source":{ + "shape":"SensitiveString", + "documentation":"A human-readable string describing the source of the diagnostic
" + }, + "severity":{ + "shape":"DiagnosticSeverity", + "documentation":"Diagnostic Error type
" + }, + "message":{ + "shape":"TextDocumentDiagnosticMessageString", + "documentation":"The diagnostic's message.
" + } + }, + "documentation":"Structure to represent metadata about a TextDocument Diagnostic
" + }, + "TextDocumentDiagnosticMessageString":{ + "type":"string", + "max":1024, + "min":0, + "sensitive":true + }, + "TextDocumentRelativeFilePathString":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, + "TextDocumentTextString":{ + "type":"string", + "max":10240, + "min":0, + "sensitive":true + }, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"This exception is thrown when request was denied due to request throttling.
", + "exception":true, + "retryable":{"throttling":true} + }, + "Timestamp":{"type":"timestamp"}, + "TransformEvent":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{"shape":"TransformationJobId"}, + "timestamp":{"shape":"Timestamp"}, + "ideCategory":{"shape":"IdeCategory"}, + "programmingLanguage":{"shape":"ProgrammingLanguage"}, + "linesOfCodeChanged":{"shape":"Integer"}, + "charsOfCodeChanged":{"shape":"Integer"}, + "linesOfCodeSubmitted":{"shape":"Integer"} + } + }, + "TransformationDotNetRuntimeEnv":{ + "type":"string", + "enum":[ + "NET_5_0", + "NET_6_0", + "NET_7_0", + "NET_8_0", + "NET_9_0", + "NET_STANDARD_2_0" ] }, - "SendTelemetryEvent": { - "name": "SendTelemetryEvent", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "SendTelemetryEventRequest" }, - "output": { "shape": "SendTelemetryEventResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ], - "idempotent": true - }, - "StartCodeAnalysis": { - "name": "StartCodeAnalysis", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StartCodeAnalysisRequest" }, - "output": { "shape": "StartCodeAnalysisResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ], - "idempotent": true - }, - "StartCodeFixJob": { - "name": "StartCodeFixJob", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StartCodeFixJobRequest" }, - "output": { "shape": "StartCodeFixJobResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TransformationDownloadArtifact":{ + "type":"structure", + "members":{ + "downloadArtifactType":{"shape":"TransformationDownloadArtifactType"}, + "downloadArtifactId":{"shape":"ArtifactId"} + } + }, + "TransformationDownloadArtifactType":{ + "type":"string", + "enum":[ + "ClientInstructions", + "Logs", + "GeneratedCode" ] }, - "StartTaskAssistCodeGeneration": { - "name": "StartTaskAssistCodeGeneration", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StartTaskAssistCodeGenerationRequest" }, - "output": { "shape": "StartTaskAssistCodeGenerationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TransformationDownloadArtifacts":{ + "type":"list", + "member":{"shape":"TransformationDownloadArtifact"}, + "max":10, + "min":0 + }, + "TransformationJavaRuntimeEnv":{ + "type":"string", + "enum":[ + "JVM_8", + "JVM_11", + "JVM_17" ] }, - "StartTestGeneration": { - "name": "StartTestGeneration", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StartTestGenerationRequest" }, - "output": { "shape": "StartTestGenerationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } - ], - "idempotent": true - }, - "StartTransformation": { - "name": "StartTransformation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StartTransformationRequest" }, - "output": { "shape": "StartTransformationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TransformationJob":{ + "type":"structure", + "members":{ + "jobId":{"shape":"TransformationJobId"}, + "transformationSpec":{"shape":"TransformationSpec"}, + "status":{"shape":"TransformationStatus"}, + "reason":{"shape":"String"}, + "creationTime":{"shape":"Timestamp"}, + "startExecutionTime":{"shape":"Timestamp"}, + "endExecutionTime":{"shape":"Timestamp"} + }, + "documentation":"Represent a Transformation Job
" + }, + "TransformationJobId":{ + "type":"string", + "documentation":"Identifier for the Transformation Job
", + "max":128, + "min":1 + }, + "TransformationLanguage":{ + "type":"string", + "enum":[ + "JAVA_8", + "JAVA_11", + "JAVA_17", + "C_SHARP", + "COBOL", + "PL_I", + "JCL" ] }, - "StopTransformation": { - "name": "StopTransformation", - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { "shape": "StopTransformationRequest" }, - "output": { "shape": "StopTransformationResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "InternalServerException" }, - { "shape": "ValidationException" }, - { "shape": "AccessDeniedException" } + "TransformationLanguages":{ + "type":"list", + "member":{"shape":"TransformationLanguage"} + }, + "TransformationMainframeRuntimeEnv":{ + "type":"string", + "enum":["MAINFRAME"] + }, + "TransformationOperatingSystemFamily":{ + "type":"string", + "enum":[ + "WINDOWS", + "LINUX" ] - } - }, - "shapes": { - "AccessDeniedException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "reason": { "shape": "AccessDeniedExceptionReason" } - }, - "exception": true - }, - "AccessDeniedExceptionReason": { - "type": "string", - "enum": ["UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS"] - }, - "AppStudioState": { - "type": "structure", - "required": ["namespace", "propertyName", "propertyContext"], - "members": { - "namespace": { "shape": "AppStudioStateNamespaceString" }, - "propertyName": { "shape": "AppStudioStatePropertyNameString" }, - "propertyValue": { "shape": "AppStudioStatePropertyValueString" }, - "propertyContext": { "shape": "AppStudioStatePropertyContextString" } - } - }, - "AppStudioStateNamespaceString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "AppStudioStatePropertyContextString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "AppStudioStatePropertyNameString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "AppStudioStatePropertyValueString": { - "type": "string", - "max": 10240, - "min": 0, - "sensitive": true - }, - "ArtifactId": { - "type": "string", - "max": 126, - "min": 1, - "pattern": "[a-zA-Z0-9-_]+" - }, - "ArtifactMap": { - "type": "map", - "key": { "shape": "ArtifactType" }, - "value": { "shape": "UploadId" }, - "max": 64, - "min": 1 - }, - "ArtifactType": { - "type": "string", - "enum": ["SourceCode", "BuiltJars"] - }, - "AssistantResponseMessage": { - "type": "structure", - "required": ["content"], - "members": { - "messageId": { "shape": "MessageId" }, - "content": { "shape": "AssistantResponseMessageContentString" }, - "supplementaryWebLinks": { "shape": "SupplementaryWebLinks" }, - "references": { "shape": "References" }, - "followupPrompt": { "shape": "FollowupPrompt" } - } - }, - "AssistantResponseMessageContentString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "Base64EncodedPaginationToken": { - "type": "string", - "max": 2048, - "min": 1, - "pattern": "(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?" - }, - "Boolean": { - "type": "boolean", - "box": true - }, - "ChatAddMessageEvent": { - "type": "structure", - "required": ["conversationId", "messageId"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "messageId": { "shape": "MessageId" }, - "customizationArn": { "shape": "CustomizationArn" }, - "userIntent": { "shape": "UserIntent" }, - "hasCodeSnippet": { "shape": "Boolean" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "activeEditorTotalCharacters": { "shape": "Integer" }, - "timeToFirstChunkMilliseconds": { "shape": "Double" }, - "timeBetweenChunks": { "shape": "timeBetweenChunks" }, - "fullResponselatency": { "shape": "Double" }, - "requestLength": { "shape": "Integer" }, - "responseLength": { "shape": "Integer" }, - "numberOfCodeBlocks": { "shape": "Integer" }, - "hasProjectLevelContext": { "shape": "Boolean" } - } - }, - "ChatHistory": { - "type": "list", - "member": { "shape": "ChatMessage" }, - "max": 10, - "min": 0 - }, - "ChatInteractWithMessageEvent": { - "type": "structure", - "required": ["conversationId", "messageId"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "messageId": { "shape": "MessageId" }, - "customizationArn": { "shape": "CustomizationArn" }, - "interactionType": { "shape": "ChatMessageInteractionType" }, - "interactionTarget": { "shape": "ChatInteractWithMessageEventInteractionTargetString" }, - "acceptedCharacterCount": { "shape": "Integer" }, - "acceptedLineCount": { "shape": "Integer" }, - "acceptedSnippetHasReference": { "shape": "Boolean" }, - "hasProjectLevelContext": { "shape": "Boolean" }, - "userIntent": { "shape": "UserIntent" } - } - }, - "ChatInteractWithMessageEventInteractionTargetString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "ChatMessage": { - "type": "structure", - "members": { - "userInputMessage": { "shape": "UserInputMessage" }, - "assistantResponseMessage": { "shape": "AssistantResponseMessage" } - }, - "union": true - }, - "ChatMessageInteractionType": { - "type": "string", - "enum": [ - "INSERT_AT_CURSOR", - "COPY_SNIPPET", - "COPY", - "CLICK_LINK", - "CLICK_BODY_LINK", - "CLICK_FOLLOW_UP", - "HOVER_REFERENCE", - "UPVOTE", - "DOWNVOTE" + }, + "TransformationPlan":{ + "type":"structure", + "required":["transformationSteps"], + "members":{ + "transformationSteps":{"shape":"TransformationSteps"} + } + }, + "TransformationPlatformConfig":{ + "type":"structure", + "members":{ + "operatingSystemFamily":{"shape":"TransformationOperatingSystemFamily"} + } + }, + "TransformationProgressUpdate":{ + "type":"structure", + "required":[ + "name", + "status" + ], + "members":{ + "name":{"shape":"String"}, + "status":{"shape":"TransformationProgressUpdateStatus"}, + "description":{"shape":"String"}, + "startTime":{"shape":"Timestamp"}, + "endTime":{"shape":"Timestamp"}, + "downloadArtifacts":{"shape":"TransformationDownloadArtifacts"} + } + }, + "TransformationProgressUpdateStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "COMPLETED", + "FAILED", + "PAUSED", + "AWAITING_CLIENT_ACTION" ] }, - "ChatTriggerType": { - "type": "string", - "enum": ["MANUAL", "DIAGNOSTIC", "INLINE_CHAT"] - }, - "ChatUserModificationEvent": { - "type": "structure", - "required": ["conversationId", "messageId", "modificationPercentage"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "customizationArn": { "shape": "CustomizationArn" }, - "messageId": { "shape": "MessageId" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "modificationPercentage": { "shape": "Double" }, - "hasProjectLevelContext": { "shape": "Boolean" } - } - }, - "CodeAnalysisFindingsSchema": { - "type": "string", - "enum": ["codeanalysis/findings/1.0"] - }, - "CodeAnalysisScope": { - "type": "string", - "enum": ["FILE", "PROJECT"] - }, - "CodeAnalysisStatus": { - "type": "string", - "enum": ["Completed", "Pending", "Failed"] - }, - "CodeAnalysisUploadContext": { - "type": "structure", - "required": ["codeScanName"], - "members": { - "codeScanName": { "shape": "CodeScanName" } - } - }, - "CodeCoverageEvent": { - "type": "structure", - "required": ["programmingLanguage", "acceptedCharacterCount", "totalCharacterCount", "timestamp"], - "members": { - "customizationArn": { "shape": "CustomizationArn" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "acceptedCharacterCount": { "shape": "PrimitiveInteger" }, - "totalCharacterCount": { "shape": "PrimitiveInteger" }, - "timestamp": { "shape": "Timestamp" }, - "unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" } - } - }, - "CodeFixAcceptanceEvent": { - "type": "structure", - "required": ["jobId"], - "members": { - "jobId": { "shape": "String" }, - "ruleId": { "shape": "String" }, - "detectorId": { "shape": "String" }, - "findingId": { "shape": "String" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "linesOfCodeAccepted": { "shape": "Integer" }, - "charsOfCodeAccepted": { "shape": "Integer" } - } - }, - "CodeFixGenerationEvent": { - "type": "structure", - "required": ["jobId"], - "members": { - "jobId": { "shape": "String" }, - "ruleId": { "shape": "String" }, - "detectorId": { "shape": "String" }, - "findingId": { "shape": "String" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "linesOfCodeGenerated": { "shape": "Integer" }, - "charsOfCodeGenerated": { "shape": "Integer" } - } - }, - "CodeFixJobStatus": { - "type": "string", - "enum": ["Succeeded", "InProgress", "Failed"] - }, - "CodeFixName": { - "type": "string", - "max": 128, - "min": 1 - }, - "CodeFixUploadContext": { - "type": "structure", - "required": ["codeFixName"], - "members": { - "codeFixName": { "shape": "CodeFixName" } - } - }, - "CodeGenerationId": { - "type": "string", - "max": 128, - "min": 1 - }, - "CodeGenerationStatus": { - "type": "structure", - "required": ["status", "currentStage"], - "members": { - "status": { "shape": "CodeGenerationWorkflowStatus" }, - "currentStage": { "shape": "CodeGenerationWorkflowStage" } - } - }, - "CodeGenerationStatusDetail": { - "type": "string", - "sensitive": true - }, - "CodeGenerationWorkflowStage": { - "type": "string", - "enum": ["InitialCodeGeneration", "CodeRefinement"] - }, - "CodeGenerationWorkflowStatus": { - "type": "string", - "enum": ["InProgress", "Complete", "Failed"] - }, - "CodeScanEvent": { - "type": "structure", - "required": ["programmingLanguage", "codeScanJobId", "timestamp"], - "members": { - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "codeScanJobId": { "shape": "CodeScanJobId" }, - "timestamp": { "shape": "Timestamp" }, - "codeAnalysisScope": { "shape": "CodeAnalysisScope" } - } - }, - "CodeScanJobId": { - "type": "string", - "max": 128, - "min": 1 - }, - "CodeScanName": { - "type": "string", - "max": 128, - "min": 1 - }, - "CodeScanRemediationsEvent": { - "type": "structure", - "members": { - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "CodeScanRemediationsEventType": { "shape": "CodeScanRemediationsEventType" }, - "timestamp": { "shape": "Timestamp" }, - "detectorId": { "shape": "String" }, - "findingId": { "shape": "String" }, - "ruleId": { "shape": "String" }, - "component": { "shape": "String" }, - "reason": { "shape": "String" }, - "result": { "shape": "String" }, - "includesFix": { "shape": "Boolean" } - } - }, - "CodeScanRemediationsEventType": { - "type": "string", - "enum": ["CODESCAN_ISSUE_HOVER", "CODESCAN_ISSUE_APPLY_FIX", "CODESCAN_ISSUE_VIEW_DETAILS"] - }, - "Completion": { - "type": "structure", - "required": ["content"], - "members": { - "content": { "shape": "CompletionContentString" }, - "references": { "shape": "References" }, - "mostRelevantMissingImports": { "shape": "Imports" } - } - }, - "CompletionContentString": { - "type": "string", - "max": 5120, - "min": 1, - "sensitive": true - }, - "CompletionType": { - "type": "string", - "enum": ["BLOCK", "LINE"] - }, - "Completions": { - "type": "list", - "member": { "shape": "Completion" }, - "max": 10, - "min": 0 - }, - "ConflictException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "reason": { "shape": "ConflictExceptionReason" } - }, - "exception": true - }, - "ConflictExceptionReason": { - "type": "string", - "enum": ["CUSTOMER_KMS_KEY_INVALID_KEY_POLICY", "CUSTOMER_KMS_KEY_DISABLED", "MISMATCHED_KMS_KEY"] - }, - "ConsoleState": { - "type": "structure", - "members": { - "region": { "shape": "String" }, - "consoleUrl": { "shape": "SensitiveString" }, - "serviceId": { "shape": "String" }, - "serviceConsolePage": { "shape": "String" }, - "serviceSubconsolePage": { "shape": "String" }, - "taskName": { "shape": "SensitiveString" } - } - }, - "ContentChecksumType": { - "type": "string", - "enum": ["SHA_256"] - }, - "ContextTruncationScheme": { - "type": "string", - "enum": ["ANALYSIS", "GUMBY"] - }, - "ConversationId": { - "type": "string", - "max": 128, - "min": 1 - }, - "ConversationState": { - "type": "structure", - "required": ["currentMessage", "chatTriggerType"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "history": { "shape": "ChatHistory" }, - "currentMessage": { "shape": "ChatMessage" }, - "chatTriggerType": { "shape": "ChatTriggerType" }, - "customizationArn": { "shape": "ResourceArn" } - } - }, - "CreateTaskAssistConversationRequest": { - "type": "structure", - "members": {} - }, - "CreateTaskAssistConversationResponse": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" } - } - }, - "CreateUploadUrlRequest": { - "type": "structure", - "members": { - "contentMd5": { "shape": "CreateUploadUrlRequestContentMd5String" }, - "contentChecksum": { "shape": "CreateUploadUrlRequestContentChecksumString" }, - "contentChecksumType": { "shape": "ContentChecksumType" }, - "contentLength": { "shape": "CreateUploadUrlRequestContentLengthLong" }, - "artifactType": { "shape": "ArtifactType" }, - "uploadIntent": { "shape": "UploadIntent" }, - "uploadContext": { "shape": "UploadContext" }, - "uploadId": { "shape": "UploadId" } - } - }, - "CreateUploadUrlRequestContentChecksumString": { - "type": "string", - "max": 512, - "min": 1, - "sensitive": true - }, - "CreateUploadUrlRequestContentLengthLong": { - "type": "long", - "box": true, - "min": 1 - }, - "CreateUploadUrlRequestContentMd5String": { - "type": "string", - "max": 128, - "min": 1, - "sensitive": true - }, - "CreateUploadUrlResponse": { - "type": "structure", - "required": ["uploadId", "uploadUrl"], - "members": { - "uploadId": { "shape": "UploadId" }, - "uploadUrl": { "shape": "PreSignedUrl" }, - "kmsKeyArn": { "shape": "ResourceArn" }, - "requestHeaders": { "shape": "RequestHeaders" } - } - }, - "CursorState": { - "type": "structure", - "members": { - "position": { "shape": "Position" }, - "range": { "shape": "Range" } - }, - "union": true - }, - "Customization": { - "type": "structure", - "required": ["arn"], - "members": { - "arn": { "shape": "CustomizationArn" }, - "name": { "shape": "CustomizationName" }, - "description": { "shape": "Description" } - } - }, - "CustomizationArn": { - "type": "string", - "max": 950, - "min": 0, - "pattern": "arn:[-.a-z0-9]{1,63}:codewhisperer:([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}" - }, - "CustomizationName": { - "type": "string", - "max": 100, - "min": 1, - "pattern": "[a-zA-Z][a-zA-Z0-9_-]*" - }, - "Customizations": { - "type": "list", - "member": { "shape": "Customization" } - }, - "DeleteTaskAssistConversationRequest": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" } - } - }, - "DeleteTaskAssistConversationResponse": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" } - } - }, - "Description": { - "type": "string", - "max": 256, - "min": 0, - "pattern": "[\\sa-zA-Z0-9_-]*" - }, - "Diagnostic": { - "type": "structure", - "members": { - "textDocumentDiagnostic": { "shape": "TextDocumentDiagnostic" }, - "runtimeDiagnostic": { "shape": "RuntimeDiagnostic" } - }, - "union": true - }, - "DiagnosticSeverity": { - "type": "string", - "enum": ["ERROR", "WARNING", "INFORMATION", "HINT"] - }, - "Dimension": { - "type": "structure", - "members": { - "name": { "shape": "DimensionNameString" }, - "value": { "shape": "DimensionValueString" } - } - }, - "DimensionList": { - "type": "list", - "member": { "shape": "Dimension" }, - "max": 30, - "min": 0 - }, - "DimensionNameString": { - "type": "string", - "max": 255, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "DimensionValueString": { - "type": "string", - "max": 1024, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "DocGenerationEvent": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "numberOfAddChars": { "shape": "PrimitiveInteger" }, - "numberOfAddLines": { "shape": "PrimitiveInteger" }, - "numberOfAddFiles": { "shape": "PrimitiveInteger" }, - "userDecision": { "shape": "DocGenerationUserDecision" }, - "interactionType": { "shape": "DocGenerationInteractionType" } - } - }, - "DocGenerationInteractionType": { - "type": "string", - "enum": ["GENERATE_README", "UPDATE_README"] - }, - "DocGenerationUserDecision": { - "type": "string", - "enum": ["ACCEPT", "REJECT"] - }, - "DocumentSymbol": { - "type": "structure", - "required": ["name", "type"], - "members": { - "name": { "shape": "DocumentSymbolNameString" }, - "type": { "shape": "SymbolType" }, - "source": { "shape": "DocumentSymbolSourceString" } - } - }, - "DocumentSymbolNameString": { - "type": "string", - "max": 256, - "min": 1 - }, - "DocumentSymbolSourceString": { - "type": "string", - "max": 256, - "min": 1 - }, - "DocumentSymbols": { - "type": "list", - "member": { "shape": "DocumentSymbol" }, - "max": 1000, - "min": 0 - }, - "DocumentationIntentContext": { - "type": "structure", - "required": ["type"], - "members": { - "scope": { "shape": "DocumentationIntentContextScopeString" }, - "type": { "shape": "DocumentationType" } - } - }, - "DocumentationIntentContextScopeString": { - "type": "string", - "max": 4096, - "min": 1, - "sensitive": true - }, - "DocumentationType": { - "type": "string", - "enum": ["README"] - }, - "Double": { - "type": "double", - "box": true - }, - "EditorState": { - "type": "structure", - "members": { - "document": { "shape": "TextDocument" }, - "cursorState": { "shape": "CursorState" }, - "relevantDocuments": { "shape": "RelevantDocumentList" }, - "useRelevantDocuments": { "shape": "Boolean" } - } - }, - "EnvState": { - "type": "structure", - "members": { - "operatingSystem": { "shape": "EnvStateOperatingSystemString" }, - "currentWorkingDirectory": { "shape": "EnvStateCurrentWorkingDirectoryString" }, - "environmentVariables": { "shape": "EnvironmentVariables" }, - "timezoneOffset": { "shape": "EnvStateTimezoneOffsetInteger" } - } - }, - "EnvStateCurrentWorkingDirectoryString": { - "type": "string", - "max": 256, - "min": 1, - "sensitive": true - }, - "EnvStateOperatingSystemString": { - "type": "string", - "max": 32, - "min": 1, - "pattern": "(macos|linux|windows)" - }, - "EnvStateTimezoneOffsetInteger": { - "type": "integer", - "box": true, - "max": 1440, - "min": -1440 - }, - "EnvironmentVariable": { - "type": "structure", - "members": { - "key": { "shape": "EnvironmentVariableKeyString" }, - "value": { "shape": "EnvironmentVariableValueString" } - } - }, - "EnvironmentVariableKeyString": { - "type": "string", - "max": 256, - "min": 1, - "sensitive": true - }, - "EnvironmentVariableValueString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "EnvironmentVariables": { - "type": "list", - "member": { "shape": "EnvironmentVariable" }, - "max": 100, - "min": 0 - }, - "FeatureDevCodeAcceptanceEvent": { - "type": "structure", - "required": ["conversationId", "linesOfCodeAccepted", "charactersOfCodeAccepted"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "linesOfCodeAccepted": { "shape": "FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger" }, - "charactersOfCodeAccepted": { "shape": "FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" } - } - }, - "FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger": { - "type": "integer", - "min": 0 - }, - "FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger": { - "type": "integer", - "min": 0 - }, - "FeatureDevCodeGenerationEvent": { - "type": "structure", - "required": ["conversationId", "linesOfCodeGenerated", "charactersOfCodeGenerated"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "linesOfCodeGenerated": { "shape": "FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger" }, - "charactersOfCodeGenerated": { - "shape": "FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger" - }, - "programmingLanguage": { "shape": "ProgrammingLanguage" } - } - }, - "FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger": { - "type": "integer", - "min": 0 - }, - "FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger": { - "type": "integer", - "min": 0 - }, - "FeatureDevEvent": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" } - } - }, - "FeatureEvaluation": { - "type": "structure", - "required": ["feature", "variation", "value"], - "members": { - "feature": { "shape": "FeatureName" }, - "variation": { "shape": "FeatureVariation" }, - "value": { "shape": "FeatureValue" } - } - }, - "FeatureEvaluationsList": { - "type": "list", - "member": { "shape": "FeatureEvaluation" }, - "max": 50, - "min": 0 - }, - "FeatureName": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "FeatureValue": { - "type": "structure", - "members": { - "boolValue": { "shape": "Boolean" }, - "doubleValue": { "shape": "Double" }, - "longValue": { "shape": "Long" }, - "stringValue": { "shape": "FeatureValueStringType" } - }, - "union": true - }, - "FeatureValueStringType": { - "type": "string", - "max": 512, - "min": 0 - }, - "FeatureVariation": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "FileContext": { - "type": "structure", - "required": ["leftFileContent", "rightFileContent", "filename", "programmingLanguage"], - "members": { - "leftFileContent": { "shape": "FileContextLeftFileContentString" }, - "rightFileContent": { "shape": "FileContextRightFileContentString" }, - "filename": { "shape": "FileContextFilenameString" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" } - } - }, - "FileContextFilenameString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "FileContextLeftFileContentString": { - "type": "string", - "max": 10240, - "min": 0, - "sensitive": true - }, - "FileContextRightFileContentString": { - "type": "string", - "max": 10240, - "min": 0, - "sensitive": true - }, - "FollowupPrompt": { - "type": "structure", - "required": ["content"], - "members": { - "content": { "shape": "FollowupPromptContentString" }, - "userIntent": { "shape": "UserIntent" } - } - }, - "FollowupPromptContentString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "GenerateCompletionsRequest": { - "type": "structure", - "required": ["fileContext"], - "members": { - "fileContext": { "shape": "FileContext" }, - "maxResults": { "shape": "GenerateCompletionsRequestMaxResultsInteger" }, - "nextToken": { "shape": "GenerateCompletionsRequestNextTokenString" }, - "referenceTrackerConfiguration": { "shape": "ReferenceTrackerConfiguration" }, - "supplementalContexts": { "shape": "SupplementalContextList" }, - "customizationArn": { "shape": "CustomizationArn" }, - "optOutPreference": { "shape": "OptOutPreference" }, - "userContext": { "shape": "UserContext" }, - "profileArn": { "shape": "ProfileArn" } - } - }, - "GenerateCompletionsRequestMaxResultsInteger": { - "type": "integer", - "box": true, - "max": 10, - "min": 1 - }, - "GenerateCompletionsRequestNextTokenString": { - "type": "string", - "max": 2048, - "min": 0, - "pattern": "(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?", - "sensitive": true - }, - "GenerateCompletionsResponse": { - "type": "structure", - "members": { - "completions": { "shape": "Completions" }, - "nextToken": { "shape": "SensitiveString" } - } - }, - "GetCodeAnalysisRequest": { - "type": "structure", - "required": ["jobId"], - "members": { - "jobId": { "shape": "GetCodeAnalysisRequestJobIdString" } - } - }, - "GetCodeAnalysisRequestJobIdString": { - "type": "string", - "max": 256, - "min": 1 - }, - "GetCodeAnalysisResponse": { - "type": "structure", - "required": ["status"], - "members": { - "status": { "shape": "CodeAnalysisStatus" }, - "errorMessage": { "shape": "SensitiveString" } - } - }, - "GetCodeFixJobRequest": { - "type": "structure", - "required": ["jobId"], - "members": { - "jobId": { "shape": "GetCodeFixJobRequestJobIdString" } - } - }, - "GetCodeFixJobRequestJobIdString": { - "type": "string", - "max": 256, - "min": 1, - "pattern": ".*[A-Za-z0-9-:]+.*" - }, - "GetCodeFixJobResponse": { - "type": "structure", - "members": { - "jobStatus": { "shape": "CodeFixJobStatus" }, - "suggestedFix": { "shape": "SuggestedFix" } - } - }, - "GetTaskAssistCodeGenerationRequest": { - "type": "structure", - "required": ["conversationId", "codeGenerationId"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "codeGenerationId": { "shape": "CodeGenerationId" } - } - }, - "GetTaskAssistCodeGenerationResponse": { - "type": "structure", - "required": ["conversationId", "codeGenerationStatus"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "codeGenerationStatus": { "shape": "CodeGenerationStatus" }, - "codeGenerationStatusDetail": { "shape": "CodeGenerationStatusDetail" }, - "codeGenerationRemainingIterationCount": { "shape": "Integer" }, - "codeGenerationTotalIterationCount": { "shape": "Integer" } - } - }, - "GetTestGenerationRequest": { - "type": "structure", - "required": ["testGenerationJobGroupName", "testGenerationJobId"], - "members": { - "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, - "testGenerationJobId": { "shape": "UUID" } - } - }, - "GetTestGenerationResponse": { - "type": "structure", - "members": { - "testGenerationJob": { "shape": "TestGenerationJob" } - } - }, - "GetTransformationPlanRequest": { - "type": "structure", - "required": ["transformationJobId"], - "members": { - "transformationJobId": { "shape": "TransformationJobId" } - } - }, - "GetTransformationPlanResponse": { - "type": "structure", - "required": ["transformationPlan"], - "members": { - "transformationPlan": { "shape": "TransformationPlan" } - } - }, - "GetTransformationRequest": { - "type": "structure", - "required": ["transformationJobId"], - "members": { - "transformationJobId": { "shape": "TransformationJobId" } - } - }, - "GetTransformationResponse": { - "type": "structure", - "required": ["transformationJob"], - "members": { - "transformationJob": { "shape": "TransformationJob" } - } - }, - "GitState": { - "type": "structure", - "members": { - "status": { "shape": "GitStateStatusString" } - } - }, - "GitStateStatusString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "IdeCategory": { - "type": "string", - "enum": ["JETBRAINS", "VSCODE", "CLI", "JUPYTER_MD", "JUPYTER_SM", "ECLIPSE", "VISUAL_STUDIO"], - "max": 64, - "min": 1 - }, - "IdempotencyToken": { - "type": "string", - "max": 256, - "min": 1 - }, - "Import": { - "type": "structure", - "members": { - "statement": { "shape": "ImportStatementString" } - } - }, - "ImportStatementString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "Imports": { - "type": "list", - "member": { "shape": "Import" }, - "max": 10, - "min": 0 - }, - "InlineChatEvent": { - "type": "structure", - "required": ["requestId", "timestamp"], - "members": { - "requestId": { "shape": "UUID" }, - "timestamp": { "shape": "Timestamp" }, - "inputLength": { "shape": "PrimitiveInteger" }, - "numSelectedLines": { "shape": "PrimitiveInteger" }, - "numSuggestionAddChars": { "shape": "PrimitiveInteger" }, - "numSuggestionAddLines": { "shape": "PrimitiveInteger" }, - "numSuggestionDelChars": { "shape": "PrimitiveInteger" }, - "numSuggestionDelLines": { "shape": "PrimitiveInteger" }, - "codeIntent": { "shape": "Boolean" }, - "userDecision": { "shape": "InlineChatUserDecision" }, - "responseStartLatency": { "shape": "Double" }, - "responseEndLatency": { "shape": "Double" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" } - } - }, - "InlineChatUserDecision": { - "type": "string", - "enum": ["ACCEPT", "REJECT", "DISMISS"] - }, - "Integer": { - "type": "integer", - "box": true - }, - "Intent": { - "type": "string", - "enum": ["DEV", "DOC"] - }, - "IntentContext": { - "type": "structure", - "members": { - "documentation": { "shape": "DocumentationIntentContext" } - }, - "union": true - }, - "InternalServerException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" } - }, - "exception": true, - "fault": true, - "retryable": { "throttling": false } - }, - "LineRangeList": { - "type": "list", - "member": { "shape": "Range" } - }, - "ListAvailableCustomizationsRequest": { - "type": "structure", - "members": { - "maxResults": { "shape": "ListAvailableCustomizationsRequestMaxResultsInteger" }, - "nextToken": { "shape": "Base64EncodedPaginationToken" } - } - }, - "ListAvailableCustomizationsRequestMaxResultsInteger": { - "type": "integer", - "box": true, - "max": 100, - "min": 1 - }, - "ListAvailableCustomizationsResponse": { - "type": "structure", - "required": ["customizations"], - "members": { - "customizations": { "shape": "Customizations" }, - "nextToken": { "shape": "Base64EncodedPaginationToken" } - } - }, - "ListCodeAnalysisFindingsRequest": { - "type": "structure", - "required": ["jobId", "codeAnalysisFindingsSchema"], - "members": { - "jobId": { "shape": "ListCodeAnalysisFindingsRequestJobIdString" }, - "nextToken": { "shape": "PaginationToken" }, - "codeAnalysisFindingsSchema": { "shape": "CodeAnalysisFindingsSchema" } - } - }, - "ListCodeAnalysisFindingsRequestJobIdString": { - "type": "string", - "max": 256, - "min": 1 - }, - "ListCodeAnalysisFindingsResponse": { - "type": "structure", - "required": ["codeAnalysisFindings"], - "members": { - "nextToken": { "shape": "PaginationToken" }, - "codeAnalysisFindings": { "shape": "SensitiveString" } - } - }, - "ListFeatureEvaluationsRequest": { - "type": "structure", - "required": ["userContext"], - "members": { - "userContext": { "shape": "UserContext" } - } - }, - "ListFeatureEvaluationsResponse": { - "type": "structure", - "required": ["featureEvaluations"], - "members": { - "featureEvaluations": { "shape": "FeatureEvaluationsList" } - } - }, - "Long": { - "type": "long", - "box": true - }, - "MessageId": { - "type": "string", - "max": 128, - "min": 0 - }, - "MetricData": { - "type": "structure", - "required": ["metricName", "metricValue", "timestamp", "product"], - "members": { - "metricName": { "shape": "MetricDataMetricNameString" }, - "metricValue": { "shape": "Double" }, - "timestamp": { "shape": "Timestamp" }, - "product": { "shape": "MetricDataProductString" }, - "dimensions": { "shape": "DimensionList" } - } - }, - "MetricDataMetricNameString": { - "type": "string", - "max": 1024, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "MetricDataProductString": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "OperatingSystem": { - "type": "string", - "enum": ["MAC", "WINDOWS", "LINUX"], - "max": 64, - "min": 1 - }, - "OptOutPreference": { - "type": "string", - "enum": ["OPTIN", "OPTOUT"] - }, - "PaginationToken": { - "type": "string", - "max": 2048, - "min": 1, - "pattern": "\\S+" - }, - "Position": { - "type": "structure", - "required": ["line", "character"], - "members": { - "line": { "shape": "Integer" }, - "character": { "shape": "Integer" } - } - }, - "PreSignedUrl": { - "type": "string", - "max": 2048, - "min": 1, - "sensitive": true - }, - "PrimitiveInteger": { "type": "integer" }, - "ProfileArn": { - "type": "string", - "max": 950, - "min": 0, - "pattern": "arn:aws:codewhisperer:[-.a-z0-9]{1,63}:\\d{12}:profile/([a-zA-Z0-9]){12}" - }, - "ProgrammingLanguage": { - "type": "structure", - "required": ["languageName"], - "members": { - "languageName": { "shape": "ProgrammingLanguageLanguageNameString" } - } - }, - "ProgrammingLanguageLanguageNameString": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "(python|javascript|java|csharp|typescript|c|cpp|go|kotlin|php|ruby|rust|scala|shell|sql|json|yaml|vue|tf|tsx|jsx|plaintext|systemverilog|dart|lua|swift|powershell|r)" - }, - "ProgressUpdates": { - "type": "list", - "member": { "shape": "TransformationProgressUpdate" } - }, - "Range": { - "type": "structure", - "required": ["start", "end"], - "members": { - "start": { "shape": "Position" }, - "end": { "shape": "Position" } - } - }, - "RecommendationsWithReferencesPreference": { - "type": "string", - "enum": ["BLOCK", "ALLOW"] - }, - "Reference": { - "type": "structure", - "members": { - "licenseName": { "shape": "ReferenceLicenseNameString" }, - "repository": { "shape": "ReferenceRepositoryString" }, - "url": { "shape": "ReferenceUrlString" }, - "recommendationContentSpan": { "shape": "Span" } - } - }, - "ReferenceLicenseNameString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "ReferenceRepositoryString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "ReferenceTrackerConfiguration": { - "type": "structure", - "required": ["recommendationsWithReferences"], - "members": { - "recommendationsWithReferences": { "shape": "RecommendationsWithReferencesPreference" } - } - }, - "ReferenceUrlString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "References": { - "type": "list", - "member": { "shape": "Reference" }, - "max": 10, - "min": 0 - }, - "RelevantDocumentList": { - "type": "list", - "member": { "shape": "RelevantTextDocument" }, - "max": 5, - "min": 0 - }, - "RelevantTextDocument": { - "type": "structure", - "required": ["relativeFilePath"], - "members": { - "relativeFilePath": { "shape": "RelevantTextDocumentRelativeFilePathString" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "text": { "shape": "RelevantTextDocumentTextString" }, - "documentSymbols": { "shape": "DocumentSymbols" } - } - }, - "RelevantTextDocumentRelativeFilePathString": { - "type": "string", - "max": 4096, - "min": 1, - "sensitive": true - }, - "RelevantTextDocumentTextString": { - "type": "string", - "max": 10240, - "min": 0, - "sensitive": true - }, - "RequestHeaderKey": { - "type": "string", - "max": 64, - "min": 1 - }, - "RequestHeaderValue": { - "type": "string", - "max": 256, - "min": 1 - }, - "RequestHeaders": { - "type": "map", - "key": { "shape": "RequestHeaderKey" }, - "value": { "shape": "RequestHeaderValue" }, - "max": 16, - "min": 1, - "sensitive": true - }, - "ResourceArn": { - "type": "string", - "max": 1224, - "min": 0, - "pattern": "arn:([-.a-z0-9]{1,63}:){2}([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}" - }, - "ResourceNotFoundException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" } - }, - "exception": true - }, - "ResumeTransformationRequest": { - "type": "structure", - "required": ["transformationJobId"], - "members": { - "transformationJobId": { "shape": "TransformationJobId" }, - "userActionStatus": { "shape": "TransformationUserActionStatus" } - } - }, - "ResumeTransformationResponse": { - "type": "structure", - "required": ["transformationStatus"], - "members": { - "transformationStatus": { "shape": "TransformationStatus" } - } - }, - "RuntimeDiagnostic": { - "type": "structure", - "required": ["source", "severity", "message"], - "members": { - "source": { "shape": "RuntimeDiagnosticSourceString" }, - "severity": { "shape": "DiagnosticSeverity" }, - "message": { "shape": "RuntimeDiagnosticMessageString" } - } - }, - "RuntimeDiagnosticMessageString": { - "type": "string", - "max": 1024, - "min": 0, - "sensitive": true - }, - "RuntimeDiagnosticSourceString": { - "type": "string", - "max": 1024, - "min": 0, - "sensitive": true - }, - "SendTelemetryEventRequest": { - "type": "structure", - "required": ["telemetryEvent"], - "members": { - "clientToken": { - "shape": "IdempotencyToken", - "idempotencyToken": true - }, - "telemetryEvent": { "shape": "TelemetryEvent" }, - "optOutPreference": { "shape": "OptOutPreference" }, - "userContext": { "shape": "UserContext" }, - "profileArn": { "shape": "ProfileArn" } - } - }, - "SendTelemetryEventResponse": { - "type": "structure", - "members": {} - }, - "SensitiveString": { - "type": "string", - "sensitive": true - }, - "ServiceQuotaExceededException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" } - }, - "exception": true - }, - "ShellHistory": { - "type": "list", - "member": { "shape": "ShellHistoryEntry" }, - "max": 20, - "min": 0 - }, - "ShellHistoryEntry": { - "type": "structure", - "required": ["command"], - "members": { - "command": { "shape": "ShellHistoryEntryCommandString" }, - "directory": { "shape": "ShellHistoryEntryDirectoryString" }, - "exitCode": { "shape": "Integer" }, - "stdout": { "shape": "ShellHistoryEntryStdoutString" }, - "stderr": { "shape": "ShellHistoryEntryStderrString" } - } - }, - "ShellHistoryEntryCommandString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "ShellHistoryEntryDirectoryString": { - "type": "string", - "max": 256, - "min": 1, - "sensitive": true - }, - "ShellHistoryEntryStderrString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "ShellHistoryEntryStdoutString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "ShellState": { - "type": "structure", - "required": ["shellName"], - "members": { - "shellName": { "shape": "ShellStateShellNameString" }, - "shellHistory": { "shape": "ShellHistory" } - } - }, - "ShellStateShellNameString": { - "type": "string", - "max": 32, - "min": 1, - "pattern": "(zsh|bash|fish|pwsh|nu)" - }, - "Span": { - "type": "structure", - "members": { - "start": { "shape": "SpanStartInteger" }, - "end": { "shape": "SpanEndInteger" } - } - }, - "SpanEndInteger": { - "type": "integer", - "box": true, - "min": 0 - }, - "SpanStartInteger": { - "type": "integer", - "box": true, - "min": 0 - }, - "StartCodeAnalysisRequest": { - "type": "structure", - "required": ["artifacts", "programmingLanguage"], - "members": { - "artifacts": { "shape": "ArtifactMap" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "clientToken": { - "shape": "StartCodeAnalysisRequestClientTokenString", - "idempotencyToken": true - }, - "scope": { "shape": "CodeAnalysisScope" }, - "codeScanName": { "shape": "CodeScanName" } - } - }, - "StartCodeAnalysisRequestClientTokenString": { - "type": "string", - "max": 256, - "min": 1 - }, - "StartCodeAnalysisResponse": { - "type": "structure", - "required": ["jobId", "status"], - "members": { - "jobId": { "shape": "StartCodeAnalysisResponseJobIdString" }, - "status": { "shape": "CodeAnalysisStatus" }, - "errorMessage": { "shape": "SensitiveString" } - } - }, - "StartCodeAnalysisResponseJobIdString": { - "type": "string", - "max": 256, - "min": 1 - }, - "StartCodeFixJobRequest": { - "type": "structure", - "required": ["snippetRange", "uploadId"], - "members": { - "snippetRange": { "shape": "Range" }, - "uploadId": { "shape": "UploadId" }, - "description": { "shape": "StartCodeFixJobRequestDescriptionString" }, - "ruleId": { "shape": "StartCodeFixJobRequestRuleIdString" }, - "codeFixName": { "shape": "CodeFixName" } - } - }, - "StartCodeFixJobRequestDescriptionString": { - "type": "string", - "max": 2000, - "min": 1 - }, - "StartCodeFixJobRequestRuleIdString": { - "type": "string", - "max": 256, - "min": 1, - "pattern": ".*[A-Za-z0-9-]+.*" - }, - "StartCodeFixJobResponse": { - "type": "structure", - "members": { - "jobId": { "shape": "StartCodeFixJobResponseJobIdString" }, - "status": { "shape": "CodeFixJobStatus" } - } - }, - "StartCodeFixJobResponseJobIdString": { - "type": "string", - "max": 256, - "min": 1, - "pattern": ".*[A-Za-z0-9-:]+.*" - }, - "StartTaskAssistCodeGenerationRequest": { - "type": "structure", - "required": ["conversationState", "workspaceState"], - "members": { - "conversationState": { "shape": "ConversationState" }, - "workspaceState": { "shape": "WorkspaceState" }, - "taskAssistPlan": { "shape": "TaskAssistPlan" }, - "codeGenerationId": { "shape": "CodeGenerationId" }, - "currentCodeGenerationId": { "shape": "CodeGenerationId" }, - "intent": { "shape": "Intent" }, - "intentContext": { "shape": "IntentContext" } - } - }, - "StartTaskAssistCodeGenerationResponse": { - "type": "structure", - "required": ["conversationId", "codeGenerationId"], - "members": { - "conversationId": { "shape": "ConversationId" }, - "codeGenerationId": { "shape": "CodeGenerationId" } - } - }, - "StartTestGenerationRequest": { - "type": "structure", - "required": ["uploadId", "targetCodeList", "userInput"], - "members": { - "uploadId": { "shape": "UploadId" }, - "targetCodeList": { "shape": "TargetCodeList" }, - "userInput": { "shape": "StartTestGenerationRequestUserInputString" }, - "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, - "clientToken": { - "shape": "StartTestGenerationRequestClientTokenString", - "idempotencyToken": true - } + "TransformationProjectArtifactDescriptor":{ + "type":"structure", + "members":{ + "sourceCodeArtifact":{"shape":"TransformationSourceCodeArtifactDescriptor"} + }, + "union":true + }, + "TransformationProjectState":{ + "type":"structure", + "members":{ + "language":{"shape":"TransformationLanguage"}, + "runtimeEnv":{"shape":"TransformationRuntimeEnv"}, + "platformConfig":{"shape":"TransformationPlatformConfig"}, + "projectArtifact":{"shape":"TransformationProjectArtifactDescriptor"} + } + }, + "TransformationRuntimeEnv":{ + "type":"structure", + "members":{ + "java":{"shape":"TransformationJavaRuntimeEnv"}, + "dotNet":{"shape":"TransformationDotNetRuntimeEnv"}, + "mainframe":{"shape":"TransformationMainframeRuntimeEnv"} + }, + "union":true + }, + "TransformationSourceCodeArtifactDescriptor":{ + "type":"structure", + "members":{ + "languages":{"shape":"TransformationLanguages"}, + "runtimeEnv":{"shape":"TransformationRuntimeEnv"} + } + }, + "TransformationSpec":{ + "type":"structure", + "members":{ + "transformationType":{"shape":"TransformationType"}, + "source":{"shape":"TransformationProjectState"}, + "target":{"shape":"TransformationProjectState"} } }, - "StartTestGenerationRequestClientTokenString": { - "type": "string", - "max": 256, - "min": 1 - }, - "StartTestGenerationRequestUserInputString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "StartTestGenerationResponse": { - "type": "structure", - "members": { - "testGenerationJob": { "shape": "TestGenerationJob" } - } - }, - "StartTransformationRequest": { - "type": "structure", - "required": ["workspaceState", "transformationSpec"], - "members": { - "workspaceState": { "shape": "WorkspaceState" }, - "transformationSpec": { "shape": "TransformationSpec" } - } - }, - "StartTransformationResponse": { - "type": "structure", - "required": ["transformationJobId"], - "members": { - "transformationJobId": { "shape": "TransformationJobId" } - } - }, - "StepId": { - "type": "string", - "max": 126, - "min": 1 - }, - "StopTransformationRequest": { - "type": "structure", - "required": ["transformationJobId"], - "members": { - "transformationJobId": { "shape": "TransformationJobId" } - } - }, - "StopTransformationResponse": { - "type": "structure", - "required": ["transformationStatus"], - "members": { - "transformationStatus": { "shape": "TransformationStatus" } - } - }, - "String": { "type": "string" }, - "SuggestedFix": { - "type": "structure", - "members": { - "codeDiff": { "shape": "SuggestedFixCodeDiffString" }, - "description": { "shape": "SuggestedFixDescriptionString" }, - "references": { "shape": "References" } - } - }, - "SuggestedFixCodeDiffString": { - "type": "string", - "max": 200000, - "min": 0, - "sensitive": true - }, - "SuggestedFixDescriptionString": { - "type": "string", - "max": 2000, - "min": 1 - }, - "SuggestionState": { - "type": "string", - "enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"] - }, - "SupplementalContext": { - "type": "structure", - "required": ["filePath", "content"], - "members": { - "filePath": { "shape": "SupplementalContextFilePathString" }, - "content": { "shape": "SupplementalContextContentString" } - } - }, - "SupplementalContextContentString": { - "type": "string", - "max": 10240, - "min": 1, - "sensitive": true - }, - "SupplementalContextFilePathString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "SupplementalContextList": { - "type": "list", - "member": { "shape": "SupplementalContext" }, - "max": 5, - "min": 0 - }, - "SupplementaryWebLink": { - "type": "structure", - "required": ["url", "title"], - "members": { - "url": { "shape": "SupplementaryWebLinkUrlString" }, - "title": { "shape": "SupplementaryWebLinkTitleString" }, - "snippet": { "shape": "SupplementaryWebLinkSnippetString" } - } - }, - "SupplementaryWebLinkSnippetString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "SupplementaryWebLinkTitleString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "SupplementaryWebLinkUrlString": { - "type": "string", - "max": 1024, - "min": 1, - "sensitive": true - }, - "SupplementaryWebLinks": { - "type": "list", - "member": { "shape": "SupplementaryWebLink" }, - "max": 10, - "min": 0 - }, - "SymbolType": { - "type": "string", - "enum": ["DECLARATION", "USAGE"] - }, - "TargetCode": { - "type": "structure", - "required": ["relativeTargetPath"], - "members": { - "relativeTargetPath": { "shape": "TargetCodeRelativeTargetPathString" }, - "targetLineRangeList": { "shape": "LineRangeList" } - } - }, - "TargetCodeList": { - "type": "list", - "member": { "shape": "TargetCode" }, - "min": 1 - }, - "TargetCodeRelativeTargetPathString": { - "type": "string", - "max": 4096, - "min": 1, - "sensitive": true - }, - "TaskAssistPlan": { - "type": "list", - "member": { "shape": "TaskAssistPlanStep" }, - "min": 0 - }, - "TaskAssistPlanStep": { - "type": "structure", - "required": ["filePath", "description"], - "members": { - "filePath": { "shape": "TaskAssistPlanStepFilePathString" }, - "description": { "shape": "TaskAssistPlanStepDescriptionString" }, - "startLine": { "shape": "TaskAssistPlanStepStartLineInteger" }, - "endLine": { "shape": "TaskAssistPlanStepEndLineInteger" }, - "action": { "shape": "TaskAssistPlanStepAction" } - } - }, - "TaskAssistPlanStepAction": { - "type": "string", - "enum": ["MODIFY", "CREATE", "DELETE", "UNKNOWN"] - }, - "TaskAssistPlanStepDescriptionString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "TaskAssistPlanStepEndLineInteger": { - "type": "integer", - "box": true, - "min": 0 - }, - "TaskAssistPlanStepFilePathString": { - "type": "string", - "max": 1024, - "min": 1 - }, - "TaskAssistPlanStepStartLineInteger": { - "type": "integer", - "box": true, - "min": 0 - }, - "TaskAssistPlanningUploadContext": { - "type": "structure", - "required": ["conversationId"], - "members": { - "conversationId": { "shape": "ConversationId" } - } - }, - "TelemetryEvent": { - "type": "structure", - "members": { - "userTriggerDecisionEvent": { "shape": "UserTriggerDecisionEvent" }, - "codeCoverageEvent": { "shape": "CodeCoverageEvent" }, - "userModificationEvent": { "shape": "UserModificationEvent" }, - "codeScanEvent": { "shape": "CodeScanEvent" }, - "codeScanRemediationsEvent": { "shape": "CodeScanRemediationsEvent" }, - "codeFixGenerationEvent": { "shape": "CodeFixGenerationEvent" }, - "codeFixAcceptanceEvent": { "shape": "CodeFixAcceptanceEvent" }, - "metricData": { "shape": "MetricData" }, - "chatAddMessageEvent": { "shape": "ChatAddMessageEvent" }, - "chatInteractWithMessageEvent": { "shape": "ChatInteractWithMessageEvent" }, - "chatUserModificationEvent": { "shape": "ChatUserModificationEvent" }, - "terminalUserInteractionEvent": { "shape": "TerminalUserInteractionEvent" }, - "featureDevEvent": { "shape": "FeatureDevEvent" }, - "featureDevCodeGenerationEvent": { "shape": "FeatureDevCodeGenerationEvent" }, - "featureDevCodeAcceptanceEvent": { "shape": "FeatureDevCodeAcceptanceEvent" }, - "inlineChatEvent": { "shape": "InlineChatEvent" }, - "transformEvent": { "shape": "TransformEvent" }, - "docGenerationEvent": { "shape": "DocGenerationEvent" }, - "testGenerationEvent": { "shape": "TestGenerationEvent" } - }, - "union": true - }, - "TerminalUserInteractionEvent": { - "type": "structure", - "members": { - "terminalUserInteractionEventType": { "shape": "TerminalUserInteractionEventType" }, - "terminal": { "shape": "String" }, - "terminalVersion": { "shape": "String" }, - "shell": { "shape": "String" }, - "shellVersion": { "shape": "String" }, - "duration": { "shape": "Integer" }, - "timeToSuggestion": { "shape": "Integer" }, - "isCompletionAccepted": { "shape": "Boolean" }, - "cliToolCommand": { "shape": "String" } - } - }, - "TerminalUserInteractionEventType": { - "type": "string", - "enum": ["CODEWHISPERER_TERMINAL_TRANSLATION_ACTION", "CODEWHISPERER_TERMINAL_COMPLETION_INSERTED"] - }, - "TestGenerationEvent": { - "type": "structure", - "required": ["jobId", "groupName"], - "members": { - "jobId": { "shape": "UUID" }, - "groupName": { "shape": "TestGenerationJobGroupName" }, - "timestamp": { "shape": "Timestamp" }, - "ideCategory": { "shape": "IdeCategory" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "numberOfUnitTestCasesGenerated": { "shape": "Integer" }, - "numberOfUnitTestCasesAccepted": { "shape": "Integer" }, - "linesOfCodeGenerated": { "shape": "Integer" }, - "linesOfCodeAccepted": { "shape": "Integer" }, - "charsOfCodeGenerated": { "shape": "Integer" }, - "charsOfCodeAccepted": { "shape": "Integer" } - } - }, - "TestGenerationJob": { - "type": "structure", - "required": ["testGenerationJobId", "testGenerationJobGroupName", "status", "creationTime"], - "members": { - "testGenerationJobId": { "shape": "UUID" }, - "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, - "status": { "shape": "TestGenerationJobStatus" }, - "shortAnswer": { "shape": "SensitiveString" }, - "creationTime": { "shape": "Timestamp" }, - "progressRate": { "shape": "TestGenerationJobProgressRateInteger" } - } - }, - "TestGenerationJobGroupName": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "[a-zA-Z0-9-_]+" - }, - "TestGenerationJobProgressRateInteger": { - "type": "integer", - "box": true, - "max": 100, - "min": 0 - }, - "TestGenerationJobStatus": { - "type": "string", - "enum": ["IN_PROGRESS", "FAILED", "COMPLETED"] - }, - "TextDocument": { - "type": "structure", - "required": ["relativeFilePath"], - "members": { - "relativeFilePath": { "shape": "TextDocumentRelativeFilePathString" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "text": { "shape": "TextDocumentTextString" }, - "documentSymbols": { "shape": "DocumentSymbols" } - } - }, - "TextDocumentDiagnostic": { - "type": "structure", - "required": ["document", "range", "source", "severity", "message"], - "members": { - "document": { "shape": "TextDocument" }, - "range": { "shape": "Range" }, - "source": { "shape": "SensitiveString" }, - "severity": { "shape": "DiagnosticSeverity" }, - "message": { "shape": "TextDocumentDiagnosticMessageString" } - } - }, - "TextDocumentDiagnosticMessageString": { - "type": "string", - "max": 1024, - "min": 0, - "sensitive": true - }, - "TextDocumentRelativeFilePathString": { - "type": "string", - "max": 4096, - "min": 1, - "sensitive": true - }, - "TextDocumentTextString": { - "type": "string", - "max": 10240, - "min": 0, - "sensitive": true - }, - "ThrottlingException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" } - }, - "exception": true, - "retryable": { "throttling": true } - }, - "Timestamp": { "type": "timestamp" }, - "TransformEvent": { - "type": "structure", - "required": ["jobId"], - "members": { - "jobId": { "shape": "TransformationJobId" }, - "timestamp": { "shape": "Timestamp" }, - "ideCategory": { "shape": "IdeCategory" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "linesOfCodeChanged": { "shape": "Integer" }, - "charsOfCodeChanged": { "shape": "Integer" }, - "linesOfCodeSubmitted": { "shape": "Integer" } - } - }, - "TransformationDotNetRuntimeEnv": { - "type": "string", - "enum": ["NET_5_0", "NET_6_0", "NET_7_0", "NET_8_0", "NET_9_0", "NET_STANDARD_2_0"] - }, - "TransformationDownloadArtifact": { - "type": "structure", - "members": { - "downloadArtifactType": { "shape": "TransformationDownloadArtifactType" }, - "downloadArtifactId": { "shape": "ArtifactId" } - } - }, - "TransformationDownloadArtifactType": { - "type": "string", - "enum": ["ClientInstructions", "Logs", "GeneratedCode"] - }, - "TransformationDownloadArtifacts": { - "type": "list", - "member": { "shape": "TransformationDownloadArtifact" }, - "max": 10, - "min": 0 - }, - "TransformationJavaRuntimeEnv": { - "type": "string", - "enum": ["JVM_8", "JVM_11", "JVM_17"] - }, - "TransformationJob": { - "type": "structure", - "members": { - "jobId": { "shape": "TransformationJobId" }, - "transformationSpec": { "shape": "TransformationSpec" }, - "status": { "shape": "TransformationStatus" }, - "reason": { "shape": "String" }, - "creationTime": { "shape": "Timestamp" }, - "startExecutionTime": { "shape": "Timestamp" }, - "endExecutionTime": { "shape": "Timestamp" } - } - }, - "TransformationJobId": { - "type": "string", - "max": 128, - "min": 1 - }, - "TransformationLanguage": { - "type": "string", - "enum": ["JAVA_8", "JAVA_11", "JAVA_17", "C_SHARP", "COBOL", "PL_I", "JCL"] - }, - "TransformationLanguages": { - "type": "list", - "member": { "shape": "TransformationLanguage" } - }, - "TransformationMainframeRuntimeEnv": { - "type": "string", - "enum": ["MAINFRAME"] - }, - "TransformationOperatingSystemFamily": { - "type": "string", - "enum": ["WINDOWS", "LINUX"] - }, - "TransformationPlan": { - "type": "structure", - "required": ["transformationSteps"], - "members": { - "transformationSteps": { "shape": "TransformationSteps" } - } - }, - "TransformationPlatformConfig": { - "type": "structure", - "members": { - "operatingSystemFamily": { "shape": "TransformationOperatingSystemFamily" } - } - }, - "TransformationProgressUpdate": { - "type": "structure", - "required": ["name", "status"], - "members": { - "name": { "shape": "String" }, - "status": { "shape": "TransformationProgressUpdateStatus" }, - "description": { "shape": "String" }, - "startTime": { "shape": "Timestamp" }, - "endTime": { "shape": "Timestamp" }, - "downloadArtifacts": { "shape": "TransformationDownloadArtifacts" } - } - }, - "TransformationProgressUpdateStatus": { - "type": "string", - "enum": ["IN_PROGRESS", "COMPLETED", "FAILED", "PAUSED", "AWAITING_CLIENT_ACTION"] - }, - "TransformationProjectArtifactDescriptor": { - "type": "structure", - "members": { - "sourceCodeArtifact": { "shape": "TransformationSourceCodeArtifactDescriptor" } - }, - "union": true - }, - "TransformationProjectState": { - "type": "structure", - "members": { - "language": { "shape": "TransformationLanguage" }, - "runtimeEnv": { "shape": "TransformationRuntimeEnv" }, - "platformConfig": { "shape": "TransformationPlatformConfig" }, - "projectArtifact": { "shape": "TransformationProjectArtifactDescriptor" } - } - }, - "TransformationRuntimeEnv": { - "type": "structure", - "members": { - "java": { "shape": "TransformationJavaRuntimeEnv" }, - "dotNet": { "shape": "TransformationDotNetRuntimeEnv" }, - "mainframe": { "shape": "TransformationMainframeRuntimeEnv" } - }, - "union": true - }, - "TransformationSourceCodeArtifactDescriptor": { - "type": "structure", - "members": { - "languages": { "shape": "TransformationLanguages" }, - "runtimeEnv": { "shape": "TransformationRuntimeEnv" } - } - }, - "TransformationSpec": { - "type": "structure", - "members": { - "transformationType": { "shape": "TransformationType" }, - "source": { "shape": "TransformationProjectState" }, - "target": { "shape": "TransformationProjectState" } - } - }, - "TransformationStatus": { - "type": "string", - "enum": [ + "TransformationStatus":{ + "type":"string", + "enum":[ "CREATED", "ACCEPTED", "REJECTED", @@ -2382,70 +3003,96 @@ "RESUMED" ] }, - "TransformationStep": { - "type": "structure", - "required": ["id", "name", "description", "status"], - "members": { - "id": { "shape": "StepId" }, - "name": { "shape": "String" }, - "description": { "shape": "String" }, - "status": { "shape": "TransformationStepStatus" }, - "progressUpdates": { "shape": "ProgressUpdates" }, - "startTime": { "shape": "Timestamp" }, - "endTime": { "shape": "Timestamp" } - } - }, - "TransformationStepStatus": { - "type": "string", - "enum": ["CREATED", "COMPLETED", "PARTIALLY_COMPLETED", "STOPPED", "FAILED", "PAUSED"] - }, - "TransformationSteps": { - "type": "list", - "member": { "shape": "TransformationStep" } - }, - "TransformationType": { - "type": "string", - "enum": ["LANGUAGE_UPGRADE", "DOCUMENT_GENERATION"] - }, - "TransformationUploadArtifactType": { - "type": "string", - "enum": ["Dependencies", "ClientBuildResult"] - }, - "TransformationUploadContext": { - "type": "structure", - "required": ["jobId", "uploadArtifactType"], - "members": { - "jobId": { "shape": "TransformationJobId" }, - "uploadArtifactType": { "shape": "TransformationUploadArtifactType" } - } - }, - "TransformationUserActionStatus": { - "type": "string", - "enum": ["COMPLETED", "REJECTED"] - }, - "UUID": { - "type": "string", - "max": 36, - "min": 36 - }, - "UploadContext": { - "type": "structure", - "members": { - "taskAssistPlanningUploadContext": { "shape": "TaskAssistPlanningUploadContext" }, - "transformationUploadContext": { "shape": "TransformationUploadContext" }, - "codeAnalysisUploadContext": { "shape": "CodeAnalysisUploadContext" }, - "codeFixUploadContext": { "shape": "CodeFixUploadContext" } - }, - "union": true - }, - "UploadId": { - "type": "string", - "max": 128, - "min": 1 - }, - "UploadIntent": { - "type": "string", - "enum": [ + "TransformationStep":{ + "type":"structure", + "required":[ + "id", + "name", + "description", + "status" + ], + "members":{ + "id":{"shape":"StepId"}, + "name":{"shape":"String"}, + "description":{"shape":"String"}, + "status":{"shape":"TransformationStepStatus"}, + "progressUpdates":{"shape":"ProgressUpdates"}, + "startTime":{"shape":"Timestamp"}, + "endTime":{"shape":"Timestamp"} + } + }, + "TransformationStepStatus":{ + "type":"string", + "enum":[ + "CREATED", + "COMPLETED", + "PARTIALLY_COMPLETED", + "STOPPED", + "FAILED", + "PAUSED" + ] + }, + "TransformationSteps":{ + "type":"list", + "member":{"shape":"TransformationStep"} + }, + "TransformationType":{ + "type":"string", + "enum":[ + "LANGUAGE_UPGRADE", + "DOCUMENT_GENERATION" + ] + }, + "TransformationUploadArtifactType":{ + "type":"string", + "enum":[ + "Dependencies", + "ClientBuildResult" + ] + }, + "TransformationUploadContext":{ + "type":"structure", + "required":[ + "jobId", + "uploadArtifactType" + ], + "members":{ + "jobId":{"shape":"TransformationJobId"}, + "uploadArtifactType":{"shape":"TransformationUploadArtifactType"} + } + }, + "TransformationUserActionStatus":{ + "type":"string", + "enum":[ + "COMPLETED", + "REJECTED" + ] + }, + "UUID":{ + "type":"string", + "max":36, + "min":36 + }, + "UploadContext":{ + "type":"structure", + "members":{ + "taskAssistPlanningUploadContext":{"shape":"TaskAssistPlanningUploadContext"}, + "transformationUploadContext":{"shape":"TransformationUploadContext"}, + "codeAnalysisUploadContext":{"shape":"CodeAnalysisUploadContext"}, + "codeFixUploadContext":{"shape":"CodeFixUploadContext"} + }, + "union":true + }, + "UploadId":{ + "type":"string", + "documentation":"Upload ID returned by CreateUploadUrl API
", + "max":128, + "min":1 + }, + "UploadIntent":{ + "type":"string", + "documentation":"Upload Intent
", + "enum":[ "TRANSFORMATION", "TASK_ASSIST_PLANNING", "AUTOMATIC_FILE_SECURITY_SCAN", @@ -2454,54 +3101,94 @@ "CODE_FIX_GENERATION" ] }, - "UserContext": { - "type": "structure", - "required": ["ideCategory", "operatingSystem", "product"], - "members": { - "ideCategory": { "shape": "IdeCategory" }, - "operatingSystem": { "shape": "OperatingSystem" }, - "product": { "shape": "UserContextProductString" }, - "clientId": { "shape": "UUID" }, - "ideVersion": { "shape": "String" } - } - }, - "UserContextProductString": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "[-a-zA-Z0-9._]*" - }, - "UserInputMessage": { - "type": "structure", - "required": ["content"], - "members": { - "content": { "shape": "UserInputMessageContentString" }, - "userInputMessageContext": { "shape": "UserInputMessageContext" }, - "userIntent": { "shape": "UserIntent" } - } - }, - "UserInputMessageContentString": { - "type": "string", - "max": 4096, - "min": 0, - "sensitive": true - }, - "UserInputMessageContext": { - "type": "structure", - "members": { - "editorState": { "shape": "EditorState" }, - "shellState": { "shape": "ShellState" }, - "gitState": { "shape": "GitState" }, - "envState": { "shape": "EnvState" }, - "appStudioContext": { "shape": "AppStudioState" }, - "diagnostic": { "shape": "Diagnostic" }, - "consoleState": { "shape": "ConsoleState" }, - "userSettings": { "shape": "UserSettings" } - } - }, - "UserIntent": { - "type": "string", - "enum": [ + "UserContext":{ + "type":"structure", + "required":[ + "ideCategory", + "operatingSystem", + "product" + ], + "members":{ + "ideCategory":{"shape":"IdeCategory"}, + "operatingSystem":{"shape":"OperatingSystem"}, + "product":{"shape":"UserContextProductString"}, + "clientId":{"shape":"UUID"}, + "ideVersion":{"shape":"String"} + } + }, + "UserContextProductString":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[-a-zA-Z0-9._]*" + }, + "UserInputMessage":{ + "type":"structure", + "required":["content"], + "members":{ + "content":{ + "shape":"UserInputMessageContentString", + "documentation":"The content of the chat message.
" + }, + "userInputMessageContext":{ + "shape":"UserInputMessageContext", + "documentation":"Chat message context associated with the Chat Message
" + }, + "userIntent":{ + "shape":"UserIntent", + "documentation":"User Intent
" + } + }, + "documentation":"Structure to represent a chat input message from User
" + }, + "UserInputMessageContentString":{ + "type":"string", + "max":4096, + "min":0, + "sensitive":true + }, + "UserInputMessageContext":{ + "type":"structure", + "members":{ + "editorState":{ + "shape":"EditorState", + "documentation":"Editor state chat message context.
" + }, + "shellState":{ + "shape":"ShellState", + "documentation":"Shell state chat message context.
" + }, + "gitState":{ + "shape":"GitState", + "documentation":"Git state chat message context.
" + }, + "envState":{ + "shape":"EnvState", + "documentation":"Environment state chat message context.
" + }, + "appStudioContext":{ + "shape":"AppStudioState", + "documentation":"The state of a user's AppStudio UI when sending a message.
" + }, + "diagnostic":{ + "shape":"Diagnostic", + "documentation":"Diagnostic chat message context.
" + }, + "consoleState":{ + "shape":"ConsoleState", + "documentation":"Contextual information about the environment from which the user is calling.
" + }, + "userSettings":{ + "shape":"UserSettings", + "documentation":"Settings information, e.g., whether the user has enabled cross-region API calls.
" + } + }, + "documentation":"Additional Chat message context associated with the Chat Message
" + }, + "UserIntent":{ + "type":"string", + "documentation":"User Intent
", + "enum":[ "SUGGEST_ALTERNATE_IMPLEMENTATION", "APPLY_COMMON_BEST_PRACTICES", "IMPROVE_CODE", @@ -2536,15 +3223,16 @@ "unmodifiedAcceptedCharacterCount":{"shape":"PrimitiveInteger"} } }, - "UserSettings": { - "type": "structure", - "members": { - "hasConsentedToCrossRegionCalls": { "shape": "Boolean" } - } + "UserSettings":{ + "type":"structure", + "members":{ + "hasConsentedToCrossRegionCalls":{"shape":"Boolean"} + }, + "documentation":"Settings information passed by the Q widget
" }, - "UserTriggerDecisionEvent": { - "type": "structure", - "required": [ + "UserTriggerDecisionEvent":{ + "type":"structure", + "required":[ "sessionId", "requestId", "programmingLanguage", @@ -2570,33 +3258,52 @@ "acceptedCharacterCount":{"shape":"PrimitiveInteger"} } }, - "ValidationException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "reason": { "shape": "ValidationExceptionReason" } + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "reason":{"shape":"ValidationExceptionReason"} }, - "exception": true - }, - "ValidationExceptionReason": { - "type": "string", - "enum": ["INVALID_CONVERSATION_ID", "CONTENT_LENGTH_EXCEEDS_THRESHOLD", "INVALID_KMS_GRANT"] + "documentation":"This exception is thrown when the input fails to satisfy the constraints specified by the service.
", + "exception":true + }, + "ValidationExceptionReason":{ + "type":"string", + "documentation":"Reason for ValidationException
", + "enum":[ + "INVALID_CONVERSATION_ID", + "CONTENT_LENGTH_EXCEEDS_THRESHOLD", + "INVALID_KMS_GRANT" + ] }, - "WorkspaceState": { - "type": "structure", - "required": ["uploadId", "programmingLanguage"], - "members": { - "uploadId": { "shape": "UploadId" }, - "programmingLanguage": { "shape": "ProgrammingLanguage" }, - "contextTruncationScheme": { "shape": "ContextTruncationScheme" } - } + "WorkspaceState":{ + "type":"structure", + "required":[ + "uploadId", + "programmingLanguage" + ], + "members":{ + "uploadId":{ + "shape":"UploadId", + "documentation":"Upload ID representing an Upload using a PreSigned URL
" + }, + "programmingLanguage":{ + "shape":"ProgrammingLanguage", + "documentation":"Primary programming language of the Workspace
" + }, + "contextTruncationScheme":{ + "shape":"ContextTruncationScheme", + "documentation":"Workspace context truncation schemes based on usecase
" + } + }, + "documentation":"Represents a Workspace state uploaded to S3 for Async Code Actions
" }, - "timeBetweenChunks": { - "type": "list", - "member": { "shape": "Double" }, - "max": 100, - "min": 0 + "timeBetweenChunks":{ + "type":"list", + "member":{"shape":"Double"}, + "max":100, + "min":0 } } }