{ "smithy": "2.0", "shapes": { "com.amazonaws.codegurusecurity#AccessDeniedException": { "type": "structure", "members": { "errorCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

", "smithy.api#required": {} } }, "resourceId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the resource you don't have access to.

" } }, "resourceType": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The type of resource you don't have access to.

" } } }, "traits": { "smithy.api#documentation": "

You do not have sufficient access to perform this action.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.codegurusecurity#AccountFindingsMetric": { "type": "structure", "members": { "date": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date from which the findings metrics were retrieved.

" } }, "newFindings": { "target": "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity", "traits": { "smithy.api#documentation": "

The number of new findings of each severity on the specified date.

" } }, "closedFindings": { "target": "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity", "traits": { "smithy.api#documentation": "

The number of closed findings of each severity on the specified date.

" } }, "openFindings": { "target": "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity", "traits": { "smithy.api#documentation": "

The number of open findings of each severity as of the specified date.

" } }, "meanTimeToClose": { "target": "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity", "traits": { "smithy.api#documentation": "

The average time in days it takes to close findings of each severity as of a specified date.

" } } }, "traits": { "smithy.api#documentation": "

A summary of findings metrics for an account on a specified date.

" } }, "com.amazonaws.codegurusecurity#AnalysisType": { "type": "enum", "members": { "SECURITY": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Security" } }, "ALL": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "All" } } } }, "com.amazonaws.codegurusecurity#AwsCodeGuruSecurity": { "type": "service", "version": "2018-05-10", "operations": [ { "target": "com.amazonaws.codegurusecurity#BatchGetFindings" }, { "target": "com.amazonaws.codegurusecurity#CreateScan" }, { "target": "com.amazonaws.codegurusecurity#CreateUploadUrl" }, { "target": "com.amazonaws.codegurusecurity#GetAccountConfiguration" }, { "target": "com.amazonaws.codegurusecurity#GetFindings" }, { "target": "com.amazonaws.codegurusecurity#GetMetricsSummary" }, { "target": "com.amazonaws.codegurusecurity#GetScan" }, { "target": "com.amazonaws.codegurusecurity#ListFindingsMetrics" }, { "target": "com.amazonaws.codegurusecurity#ListScans" }, { "target": "com.amazonaws.codegurusecurity#ListTagsForResource" }, { "target": "com.amazonaws.codegurusecurity#TagResource" }, { "target": "com.amazonaws.codegurusecurity#UntagResource" }, { "target": "com.amazonaws.codegurusecurity#UpdateAccountConfiguration" } ], "traits": { "aws.api#service": { "sdkId": "CodeGuru Security", "arnNamespace": "codeguru-security", "cloudTrailEventSource": "codeguru-security.amazonaws.com" }, "aws.auth#sigv4": { "name": "codeguru-security" }, "aws.protocols#restJson1": {}, "smithy.api#cors": { "additionalAllowedHeaders": [ "Authorization", "Content-Type", "Credentials", "X-Amz-Date", "X-Api-Key", "X-Amz-Security-Token", "x-amz-content-sha256", "X-Amz-User-Agent" ], "additionalExposedHeaders": [ "x-amzn-errortype", "x-amzn-requestid", "x-amzn-errormessage", "x-amzn-trace-id", "x-amz-apigw-id", "date" ], "origin": "*" }, "smithy.api#documentation": "

On November 20, 2025, AWS will discontinue support for Amazon CodeGuru Security. After November 20, 2025, you will no longer be able to access the /codeguru/security console, service resources, or documentation. For more information, see https://docs.aws.amazon.com/codeguru/latest/security-ug/end-of-support.html.

This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.

By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the Amazon CodeGuru Security User Guide.

", "smithy.api#title": "Amazon CodeGuru Security", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://codeguru-security-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://codeguru-security-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://codeguru-security.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://codeguru-security.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 13, "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://codeguru-security-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://codeguru-security-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://codeguru-security.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://codeguru-security.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "type": "tree" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://codeguru-security.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.codegurusecurity#BatchGetFindings": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#BatchGetFindingsRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#BatchGetFindingsResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns a list of requested findings from standard scans.

", "smithy.api#http": { "code": 200, "method": "POST", "uri": "/batchGetFindings" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#BatchGetFindingsError": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan that generated the finding.

", "smithy.api#required": {} } }, "findingId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The finding ID of the finding that was not fetched.

", "smithy.api#required": {} } }, "errorCode": { "target": "com.amazonaws.codegurusecurity#ErrorCode", "traits": { "smithy.api#documentation": "

A code associated with the type of error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Describes the error.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Contains information about the error that caused a finding to fail to be retrieved.

" } }, "com.amazonaws.codegurusecurity#BatchGetFindingsErrors": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#BatchGetFindingsError" } }, "com.amazonaws.codegurusecurity#BatchGetFindingsRequest": { "type": "structure", "members": { "findingIdentifiers": { "target": "com.amazonaws.codegurusecurity#FindingIdentifiers", "traits": { "smithy.api#documentation": "

A list of finding identifiers. Each identifier consists of a scanName and a findingId. You retrieve the findingId when you call GetFindings.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#BatchGetFindingsResponse": { "type": "structure", "members": { "findings": { "target": "com.amazonaws.codegurusecurity#Findings", "traits": { "smithy.api#documentation": "

A list of all findings which were successfully fetched.

", "smithy.api#required": {} } }, "failedFindings": { "target": "com.amazonaws.codegurusecurity#BatchGetFindingsErrors", "traits": { "smithy.api#documentation": "

A list of errors for individual findings which were not fetched. Each BatchGetFindingsError contains the scanName, findingId, errorCode and error message.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#CategoriesWithMostFindings": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#CategoryWithFindingNum" }, "traits": { "smithy.api#length": { "max": 5 } } }, "com.amazonaws.codegurusecurity#CategoryWithFindingNum": { "type": "structure", "members": { "categoryName": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the finding category. A finding category is determined by the detector that detected the finding.

" } }, "findingNumber": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The number of open findings in the category.

" } } }, "traits": { "smithy.api#documentation": "

Information about a finding category with open findings.

" } }, "com.amazonaws.codegurusecurity#ClientToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 }, "smithy.api#pattern": "^[\\S]+$" } }, "com.amazonaws.codegurusecurity#CodeLine": { "type": "structure", "members": { "number": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The code line number.

" } }, "content": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The code that contains a vulnerability.

" } } }, "traits": { "smithy.api#documentation": "

The line of code where a finding was detected.

" } }, "com.amazonaws.codegurusecurity#CodeSnippet": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#CodeLine" } }, "com.amazonaws.codegurusecurity#ConflictException": { "type": "structure", "members": { "errorCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

", "smithy.api#required": {} } }, "resourceId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the service resource associated with the request.

", "smithy.api#required": {} } }, "resourceType": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The type of resource associated with the request.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.codegurusecurity#CreateScan": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#CreateScanRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#CreateScanResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#ConflictException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Use to create a scan using code uploaded to an Amazon S3 bucket.

", "smithy.api#http": { "code": 200, "method": "POST", "uri": "/scans" } } }, "com.amazonaws.codegurusecurity#CreateScanRequest": { "type": "structure", "members": { "clientToken": { "target": "com.amazonaws.codegurusecurity#ClientToken", "traits": { "smithy.api#documentation": "

The idempotency token for the request. Amazon CodeGuru Security uses this value to prevent the accidental creation of duplicate scans if there are failures and retries.

", "smithy.api#idempotencyToken": {} } }, "resourceId": { "target": "com.amazonaws.codegurusecurity#ResourceId", "traits": { "smithy.api#documentation": "

The identifier for the resource object to be scanned.

", "smithy.api#required": {} } }, "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a STANDARD scan type.

", "smithy.api#required": {} } }, "scanType": { "target": "com.amazonaws.codegurusecurity#ScanType", "traits": { "smithy.api#documentation": "

The type of scan, either Standard or Express. Defaults to Standard type if missing.

Express scans run on limited resources and use a limited set of detectors to analyze your code in near-real time. Standard scans have standard resource limits and use the full set of detectors to analyze your code.

" } }, "analysisType": { "target": "com.amazonaws.codegurusecurity#AnalysisType", "traits": { "smithy.api#documentation": "

The type of analysis you want CodeGuru Security to perform in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings. Defaults to Security type if missing.

" } }, "tags": { "target": "com.amazonaws.codegurusecurity#TagMap", "traits": { "smithy.api#documentation": "

An array of key-value pairs used to tag a scan. A tag is a custom attribute label with two parts:

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#CreateScanResponse": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan.

", "smithy.api#required": {} } }, "runId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

UUID that identifies the individual scan run.

", "smithy.api#required": {} } }, "resourceId": { "target": "com.amazonaws.codegurusecurity#ResourceId", "traits": { "smithy.api#documentation": "

The identifier for the resource object that contains resources that were scanned.

", "smithy.api#required": {} } }, "scanState": { "target": "com.amazonaws.codegurusecurity#ScanState", "traits": { "smithy.api#documentation": "

The current state of the scan. Returns either InProgress, Successful, or Failed.

", "smithy.api#required": {} } }, "scanNameArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN for the scan name.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#CreateUploadUrl": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#CreateUploadUrlRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#CreateUploadUrlResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.

You can upload your code resource to the URL with the request headers using any HTTP client.

", "smithy.api#http": { "code": 200, "method": "POST", "uri": "/uploadUrl" } } }, "com.amazonaws.codegurusecurity#CreateUploadUrlRequest": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this scanName when you call CreateScan on the code resource you upload to this URL.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#CreateUploadUrlResponse": { "type": "structure", "members": { "s3Url": { "target": "com.amazonaws.codegurusecurity#S3Url", "traits": { "smithy.api#documentation": "

A pre-signed S3 URL. You can upload the code file you want to scan with the required requestHeaders using any HTTP client.

", "smithy.api#required": {} } }, "requestHeaders": { "target": "com.amazonaws.codegurusecurity#RequestHeaderMap", "traits": { "smithy.api#documentation": "

A set of key-value pairs that contain the required headers when uploading your resource.

", "smithy.api#required": {} } }, "codeArtifactId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

The identifier for the uploaded code resource. Pass this to CreateScan to use the uploaded resources.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#DetectorTags": { "type": "list", "member": { "target": "smithy.api#String" } }, "com.amazonaws.codegurusecurity#EncryptionConfig": { "type": "structure", "members": { "kmsKeyArn": { "target": "com.amazonaws.codegurusecurity#KmsKeyArn", "traits": { "smithy.api#documentation": "

The KMS key ARN that is used for encryption. If an AWS-managed key is used for encryption, returns empty.

" } } }, "traits": { "smithy.api#documentation": "

Information about the encryption configuration for an account. Required to call UpdateAccountConfiguration.

" } }, "com.amazonaws.codegurusecurity#ErrorCode": { "type": "enum", "members": { "DUPLICATE_IDENTIFIER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "DUPLICATE_IDENTIFIER" } }, "ITEM_DOES_NOT_EXIST": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "ITEM_DOES_NOT_EXIST" } }, "INTERNAL_ERROR": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "INTERNAL_ERROR" } }, "INVALID_FINDING_ID": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "INVALID_FINDING_ID" } }, "INVALID_SCAN_NAME": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "INVALID_SCAN_NAME" } } } }, "com.amazonaws.codegurusecurity#ErrorMessage": { "type": "string", "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.codegurusecurity#FilePath": { "type": "structure", "members": { "name": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the file.

" } }, "path": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The path to the resource with the security vulnerability.

" } }, "startLine": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The first line number of the code snippet where the security vulnerability appears in your code.

" } }, "endLine": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The last line number of the code snippet where the security vulnerability appears in your code.

" } }, "codeSnippet": { "target": "com.amazonaws.codegurusecurity#CodeSnippet", "traits": { "smithy.api#documentation": "

A list of CodeLine objects that describe where the security vulnerability appears in your code.

" } } }, "traits": { "smithy.api#documentation": "

Information about the location of security vulnerabilities that Amazon CodeGuru Security detected in your code.

" } }, "com.amazonaws.codegurusecurity#Finding": { "type": "structure", "members": { "createdAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time when the finding was created.

" } }, "description": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

A description of the finding.

" } }, "generatorId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.

" } }, "id": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for a finding.

" } }, "updatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.

" } }, "type": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The type of finding.

" } }, "status": { "target": "com.amazonaws.codegurusecurity#Status", "traits": { "smithy.api#documentation": "

The status of the finding. A finding status can be open or closed.

" } }, "resource": { "target": "com.amazonaws.codegurusecurity#Resource", "traits": { "smithy.api#documentation": "

The resource where Amazon CodeGuru Security detected a finding.

" } }, "vulnerability": { "target": "com.amazonaws.codegurusecurity#Vulnerability", "traits": { "smithy.api#documentation": "

An object that describes the detected security vulnerability.

" } }, "severity": { "target": "com.amazonaws.codegurusecurity#Severity", "traits": { "smithy.api#documentation": "

The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.

" } }, "remediation": { "target": "com.amazonaws.codegurusecurity#Remediation", "traits": { "smithy.api#documentation": "

An object that contains the details about how to remediate a finding.

" } }, "title": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The title of the finding.

" } }, "detectorTags": { "target": "com.amazonaws.codegurusecurity#DetectorTags", "traits": { "smithy.api#documentation": "

One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.

" } }, "detectorId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.

" } }, "detectorName": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the detector that identified the security vulnerability in your code.

" } }, "ruleId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the rule that generated the finding.

" } } }, "traits": { "smithy.api#documentation": "

Information about a finding that was detected in your code.

" } }, "com.amazonaws.codegurusecurity#FindingIdentifier": { "type": "structure", "members": { "scanName": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the scan that generated the finding.

", "smithy.api#required": {} } }, "findingId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for a finding.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An object that contains information about a finding and the scan that generated it.

" } }, "com.amazonaws.codegurusecurity#FindingIdentifiers": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#FindingIdentifier" }, "traits": { "smithy.api#length": { "min": 1, "max": 25 } } }, "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity": { "type": "structure", "members": { "info": { "target": "smithy.api#Double", "traits": { "smithy.api#documentation": "

A numeric value corresponding to an informational finding.

" } }, "low": { "target": "smithy.api#Double", "traits": { "smithy.api#documentation": "

A numeric value corresponding to a low severity finding.

" } }, "medium": { "target": "smithy.api#Double", "traits": { "smithy.api#documentation": "

A numeric value corresponding to a medium severity finding.

" } }, "high": { "target": "smithy.api#Double", "traits": { "smithy.api#documentation": "

A numeric value corresponding to a high severity finding.

" } }, "critical": { "target": "smithy.api#Double", "traits": { "smithy.api#documentation": "

A numeric value corresponding to a critical finding.

" } } }, "traits": { "smithy.api#documentation": "

A numeric value corresponding to the severity of a finding, such as the number of open findings or the average time it takes to close findings of a given severity.

" } }, "com.amazonaws.codegurusecurity#Findings": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#Finding" } }, "com.amazonaws.codegurusecurity#FindingsMetricList": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#AccountFindingsMetric" } }, "com.amazonaws.codegurusecurity#GetAccountConfiguration": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#GetAccountConfigurationRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#GetAccountConfigurationResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Use to get the encryption configuration for an account.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/accountConfiguration/get" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#GetAccountConfigurationRequest": { "type": "structure", "members": {}, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#GetAccountConfigurationResponse": { "type": "structure", "members": { "encryptionConfig": { "target": "com.amazonaws.codegurusecurity#EncryptionConfig", "traits": { "smithy.api#documentation": "

An EncryptionConfig object that contains the KMS key ARN that is used for encryption. By default, CodeGuru Security uses an AWS-managed key for encryption. To specify your own key, call UpdateAccountConfiguration. If you do not specify a customer-managed key, returns empty.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#GetFindings": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#GetFindingsRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#GetFindingsResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#ConflictException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns a list of all findings generated by a particular scan.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/findings/{scanName}" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "pageSize": "maxResults", "items": "findings" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#GetFindingsRequest": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan you want to retrieve findings from.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 1000 results.

", "smithy.api#httpQuery": "maxResults", "smithy.api#range": { "min": 1, "max": 1000 } } }, "status": { "target": "com.amazonaws.codegurusecurity#Status", "traits": { "smithy.api#documentation": "

The status of the findings you want to get. Pass either Open, Closed, or All.

", "smithy.api#httpQuery": "status" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#GetFindingsResponse": { "type": "structure", "members": { "findings": { "target": "com.amazonaws.codegurusecurity#Findings", "traits": { "smithy.api#documentation": "

A list of findings generated by the specified scan.

" } }, "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A pagination token. You can use this in future calls to GetFindings to continue listing results after the current page.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#GetMetricsSummary": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#GetMetricsSummaryRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#GetMetricsSummaryResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns a summary of metrics for an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/metrics/summary" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#GetMetricsSummaryRequest": { "type": "structure", "members": { "date": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years.

", "smithy.api#httpQuery": "date", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#GetMetricsSummaryResponse": { "type": "structure", "members": { "metricsSummary": { "target": "com.amazonaws.codegurusecurity#MetricsSummary", "traits": { "smithy.api#documentation": "

The summary metrics from the specified date.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#GetScan": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#GetScanRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#GetScanResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns details about a scan, including whether or not a scan has completed.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/scans/{scanName}" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#GetScanRequest": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan you want to view details about.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "runId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

UUID that identifies the individual scan run you want to view details about. You retrieve this when you call the CreateScan operation. Defaults to the latest scan run if missing.

", "smithy.api#httpQuery": "runId" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#GetScanResponse": { "type": "structure", "members": { "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan.

", "smithy.api#required": {} } }, "runId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

UUID that identifies the individual scan run.

", "smithy.api#required": {} } }, "scanState": { "target": "com.amazonaws.codegurusecurity#ScanState", "traits": { "smithy.api#documentation": "

The current state of the scan. Returns either InProgress, Successful, or Failed.

", "smithy.api#required": {} } }, "createdAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time the scan was created.

", "smithy.api#required": {} } }, "analysisType": { "target": "com.amazonaws.codegurusecurity#AnalysisType", "traits": { "smithy.api#documentation": "

The type of analysis CodeGuru Security performed in the scan, either Security or All. The Security type only generates findings related to security. The All type generates both security findings and quality findings.

", "smithy.api#required": {} } }, "updatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time when the scan was last updated. Only available for STANDARD scan types.

" } }, "numberOfRevisions": { "target": "smithy.api#Long", "traits": { "smithy.api#documentation": "

The number of times a scan has been re-run on a revised resource.

" } }, "scanNameArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN for the scan name.

" } }, "errorMessage": { "target": "com.amazonaws.codegurusecurity#ErrorMessage", "traits": { "smithy.api#documentation": "

Details about the error that causes a scan to fail to be retrieved.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#HeaderKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.codegurusecurity#HeaderValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.codegurusecurity#InternalServerException": { "type": "structure", "members": { "error": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The internal error encountered by the server.

" } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

" } } }, "traits": { "smithy.api#documentation": "

The server encountered an internal error and is unable to complete the request.

", "smithy.api#error": "server", "smithy.api#httpError": 500, "smithy.api#retryable": {} } }, "com.amazonaws.codegurusecurity#KmsKeyArn": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 }, "smithy.api#pattern": "^arn:aws:kms:[\\S]+:[\\d]{12}:key\\/(([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})|(mrk-[0-9a-zA-Z]{32}))$" } }, "com.amazonaws.codegurusecurity#ListFindingsMetrics": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#ListFindingsMetricsRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#ListFindingsMetricsResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns metrics about all findings in an account within a specified time range.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/metrics/findings" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "pageSize": "maxResults", "items": "findingsMetrics" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#ListFindingsMetricsRequest": { "type": "structure", "members": { "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 1000 results.

", "smithy.api#httpQuery": "maxResults", "smithy.api#range": { "min": 1, "max": 1000 } } }, "startDate": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The start date of the interval which you want to retrieve metrics from. Rounds to the nearest day.

", "smithy.api#httpQuery": "startDate", "smithy.api#required": {} } }, "endDate": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The end date of the interval which you want to retrieve metrics from. Round to the nearest day.

", "smithy.api#httpQuery": "endDate", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#ListFindingsMetricsResponse": { "type": "structure", "members": { "findingsMetrics": { "target": "com.amazonaws.codegurusecurity#FindingsMetricList", "traits": { "smithy.api#documentation": "

A list of AccountFindingsMetric objects retrieved from the specified time interval.

" } }, "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A pagination token. You can use this in future calls to ListFindingMetrics to continue listing results after the current page.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#ListScans": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#ListScansRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#ListScansResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns a list of all scans in an account. Does not return EXPRESS scans.

", "smithy.api#http": { "code": 200, "method": "GET", "uri": "/scans" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "pageSize": "maxResults", "items": "summaries" }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#ListScansRequest": { "type": "structure", "members": { "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 100 results.

", "smithy.api#httpQuery": "maxResults", "smithy.api#range": { "min": 1, "max": 100 } } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#ListScansResponse": { "type": "structure", "members": { "summaries": { "target": "com.amazonaws.codegurusecurity#ScanSummaries", "traits": { "smithy.api#documentation": "

A list of ScanSummary objects with information about all scans in an account.

" } }, "nextToken": { "target": "com.amazonaws.codegurusecurity#NextToken", "traits": { "smithy.api#documentation": "

A pagination token. You can use this in future calls to ListScans to continue listing results after the current page.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#ListTagsForResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#ListTagsForResourceRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#ListTagsForResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#ConflictException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Returns a list of all tags associated with a scan.

", "smithy.api#http": { "method": "GET", "uri": "/tags/{resourceArn}", "code": 200 }, "smithy.api#readonly": {} } }, "com.amazonaws.codegurusecurity#ListTagsForResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#ListTagsForResourceResponse": { "type": "structure", "members": { "tags": { "target": "com.amazonaws.codegurusecurity#TagMap", "traits": { "smithy.api#documentation": "

An array of key-value pairs used to tag an existing scan. A tag is a custom attribute label with two parts:

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#MetricsSummary": { "type": "structure", "members": { "date": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date from which the metrics summary information was retrieved.

" } }, "openFindings": { "target": "com.amazonaws.codegurusecurity#FindingMetricsValuePerSeverity", "traits": { "smithy.api#documentation": "

The number of open findings of each severity.

" } }, "categoriesWithMostFindings": { "target": "com.amazonaws.codegurusecurity#CategoriesWithMostFindings", "traits": { "smithy.api#documentation": "

A list of CategoryWithFindingNum objects for the top 5 finding categories with the most findings.

" } }, "scansWithMostOpenFindings": { "target": "com.amazonaws.codegurusecurity#ScansWithMostOpenFindings", "traits": { "smithy.api#documentation": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open findings.

" } }, "scansWithMostOpenCriticalFindings": { "target": "com.amazonaws.codegurusecurity#ScansWithMostOpenCriticalFindings", "traits": { "smithy.api#documentation": "

A list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open critical findings.

" } } }, "traits": { "smithy.api#documentation": "

A summary of metrics for an account as of a specified date.

" } }, "com.amazonaws.codegurusecurity#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 2048 }, "smithy.api#pattern": "^[\\S]+$" } }, "com.amazonaws.codegurusecurity#Recommendation": { "type": "structure", "members": { "text": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The recommended course of action to remediate the finding.

" } }, "url": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The URL address to the recommendation for remediating the finding.

" } } }, "traits": { "smithy.api#documentation": "

Information about the recommended course of action to remediate a finding.

" } }, "com.amazonaws.codegurusecurity#ReferenceUrls": { "type": "list", "member": { "target": "smithy.api#String" } }, "com.amazonaws.codegurusecurity#RelatedVulnerabilities": { "type": "list", "member": { "target": "smithy.api#String" } }, "com.amazonaws.codegurusecurity#Remediation": { "type": "structure", "members": { "recommendation": { "target": "com.amazonaws.codegurusecurity#Recommendation", "traits": { "smithy.api#documentation": "

An object that contains information about the recommended course of action to remediate a finding.

" } }, "suggestedFixes": { "target": "com.amazonaws.codegurusecurity#SuggestedFixes", "traits": { "smithy.api#documentation": "

A list of SuggestedFix objects. Each object contains information about a suggested code fix to remediate the finding.

" } } }, "traits": { "smithy.api#documentation": "

Information about how to remediate a finding.

" } }, "com.amazonaws.codegurusecurity#RequestHeaderMap": { "type": "map", "key": { "target": "com.amazonaws.codegurusecurity#HeaderKey" }, "value": { "target": "com.amazonaws.codegurusecurity#HeaderValue" }, "traits": { "smithy.api#sensitive": {} } }, "com.amazonaws.codegurusecurity#Resource": { "type": "structure", "members": { "id": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The scanName of the scan that was run on the resource.

" } }, "subResourceId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for a section of the resource.

" } } }, "traits": { "smithy.api#documentation": "

Information about a resource that contains a finding.

" } }, "com.amazonaws.codegurusecurity#ResourceId": { "type": "union", "members": { "codeArtifactId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

The identifier for the code file uploaded to the resource object. Returned by CreateUploadUrl when you upload resources to be scanned.

" } } }, "traits": { "smithy.api#documentation": "

The identifier for a resource object that contains resources to scan. Specifying a codeArtifactId is required to create a scan.

" } }, "com.amazonaws.codegurusecurity#ResourceNotFoundException": { "type": "structure", "members": { "errorCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

", "smithy.api#required": {} } }, "resourceId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the resource that was not found.

", "smithy.api#required": {} } }, "resourceType": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The type of resource that was not found.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The resource specified in the request was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.codegurusecurity#S3Url": { "type": "string", "traits": { "smithy.api#length": { "min": 1 }, "smithy.api#sensitive": {} } }, "com.amazonaws.codegurusecurity#ScanName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 140 }, "smithy.api#pattern": "^[a-zA-Z0-9-_$:.]*$" } }, "com.amazonaws.codegurusecurity#ScanNameArn": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 300 }, "smithy.api#pattern": "^arn:aws:codeguru-security:[\\S]+:[\\d]{12}:scans\\/[a-zA-Z0-9-_$:.]*$" } }, "com.amazonaws.codegurusecurity#ScanNameWithFindingNum": { "type": "structure", "members": { "scanName": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the scan.

" } }, "findingNumber": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "

The number of findings generated by a scan.

" } } }, "traits": { "smithy.api#documentation": "

Information about the number of findings generated by a scan.

" } }, "com.amazonaws.codegurusecurity#ScanState": { "type": "enum", "members": { "IN_PROGRESS": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "InProgress" } }, "SUCCESSFUL": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Successful" } }, "FAILED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Failed" } } } }, "com.amazonaws.codegurusecurity#ScanSummaries": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#ScanSummary" } }, "com.amazonaws.codegurusecurity#ScanSummary": { "type": "structure", "members": { "scanState": { "target": "com.amazonaws.codegurusecurity#ScanState", "traits": { "smithy.api#documentation": "

The state of the scan. A scan can be In Progress, Complete, or Failed.

", "smithy.api#required": {} } }, "createdAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time when the scan was created.

", "smithy.api#required": {} } }, "updatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The time the scan was last updated. A scan is updated when it is re-run.

" } }, "scanName": { "target": "com.amazonaws.codegurusecurity#ScanName", "traits": { "smithy.api#documentation": "

The name of the scan.

", "smithy.api#required": {} } }, "runId": { "target": "com.amazonaws.codegurusecurity#Uuid", "traits": { "smithy.api#documentation": "

The identifier for the scan run.

", "smithy.api#required": {} } }, "scanNameArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN for the scan name.

" } } }, "traits": { "smithy.api#documentation": "

Information about a scan.

" } }, "com.amazonaws.codegurusecurity#ScanType": { "type": "enum", "members": { "STANDARD": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Standard" } }, "EXPRESS": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Express" } } } }, "com.amazonaws.codegurusecurity#ScansWithMostOpenCriticalFindings": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#ScanNameWithFindingNum" }, "traits": { "smithy.api#length": { "max": 3 } } }, "com.amazonaws.codegurusecurity#ScansWithMostOpenFindings": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#ScanNameWithFindingNum" }, "traits": { "smithy.api#length": { "max": 3 } } }, "com.amazonaws.codegurusecurity#Severity": { "type": "enum", "members": { "CRITICAL": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Critical" } }, "HIGH": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "High" } }, "MEDIUM": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Medium" } }, "LOW": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Low" } }, "INFO": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Info" } } } }, "com.amazonaws.codegurusecurity#Status": { "type": "enum", "members": { "CLOSED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Closed" } }, "OPEN": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "Open" } }, "ALL": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "All" } } } }, "com.amazonaws.codegurusecurity#SuggestedFix": { "type": "structure", "members": { "description": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

A description of the suggested code fix and why it is being suggested.

" } }, "code": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The suggested code fix. If applicable, includes code patch to replace your source code.

" } } }, "traits": { "smithy.api#documentation": "

Information about the suggested code fix to remediate a finding.

" } }, "com.amazonaws.codegurusecurity#SuggestedFixes": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#SuggestedFix" } }, "com.amazonaws.codegurusecurity#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.codegurusecurity#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#TagKey" }, "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.codegurusecurity#TagMap": { "type": "map", "key": { "target": "com.amazonaws.codegurusecurity#TagKey" }, "value": { "target": "com.amazonaws.codegurusecurity#TagValue" }, "traits": { "smithy.api#length": { "min": 0, "max": 200 } } }, "com.amazonaws.codegurusecurity#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#TagResourceRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#ConflictException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Use to add one or more tags to an existing scan.

", "smithy.api#http": { "method": "POST", "uri": "/tags/{resourceArn}", "code": 204 } } }, "com.amazonaws.codegurusecurity#TagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.codegurusecurity#TagMap", "traits": { "smithy.api#documentation": "

An array of key-value pairs used to tag an existing scan. A tag is a custom attribute label with two parts:

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#TagResourceResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.codegurusecurity#ThrottlingException": { "type": "structure", "members": { "errorCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

", "smithy.api#required": {} } }, "serviceCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the originating service.

" } }, "quotaCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the originating quota.

" } } }, "traits": { "smithy.api#documentation": "

The request was denied due to request throttling.

", "smithy.api#error": "client", "smithy.api#httpError": 429, "smithy.api#retryable": { "throttling": true } } }, "com.amazonaws.codegurusecurity#UntagResource": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#UntagResourceRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#ConflictException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Use to remove one or more tags from an existing scan.

", "smithy.api#http": { "method": "DELETE", "uri": "/tags/{resourceArn}", "code": 204 }, "smithy.api#idempotent": {} } }, "com.amazonaws.codegurusecurity#UntagResourceRequest": { "type": "structure", "members": { "resourceArn": { "target": "com.amazonaws.codegurusecurity#ScanNameArn", "traits": { "smithy.api#documentation": "

The ARN of the ScanName object. You can retrieve this ARN by calling CreateScan, ListScans, or GetScan.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "tagKeys": { "target": "com.amazonaws.codegurusecurity#TagKeyList", "traits": { "smithy.api#documentation": "

A list of keys for each tag you want to remove from a scan.

", "smithy.api#httpQuery": "tagKeys", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#UntagResourceResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#UpdateAccountConfiguration": { "type": "operation", "input": { "target": "com.amazonaws.codegurusecurity#UpdateAccountConfigurationRequest" }, "output": { "target": "com.amazonaws.codegurusecurity#UpdateAccountConfigurationResponse" }, "errors": [ { "target": "com.amazonaws.codegurusecurity#AccessDeniedException" }, { "target": "com.amazonaws.codegurusecurity#InternalServerException" }, { "target": "com.amazonaws.codegurusecurity#ResourceNotFoundException" }, { "target": "com.amazonaws.codegurusecurity#ThrottlingException" }, { "target": "com.amazonaws.codegurusecurity#ValidationException" } ], "traits": { "smithy.api#documentation": "

Use to update the encryption configuration for an account.

", "smithy.api#http": { "code": 200, "method": "PUT", "uri": "/updateAccountConfiguration" } } }, "com.amazonaws.codegurusecurity#UpdateAccountConfigurationRequest": { "type": "structure", "members": { "encryptionConfig": { "target": "com.amazonaws.codegurusecurity#EncryptionConfig", "traits": { "smithy.api#documentation": "

The customer-managed KMS key ARN you want to use for encryption. If not specified, CodeGuru Security will use an AWS-managed key for encryption. If you previously specified a customer-managed KMS key and want CodeGuru Security to use an AWS-managed key for encryption instead, pass nothing.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.codegurusecurity#UpdateAccountConfigurationResponse": { "type": "structure", "members": { "encryptionConfig": { "target": "com.amazonaws.codegurusecurity#EncryptionConfig", "traits": { "smithy.api#documentation": "

An EncryptionConfig object that contains the KMS key ARN that is used for encryption. If you did not specify a customer-managed KMS key in the request, returns empty.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.codegurusecurity#Uuid": { "type": "string", "traits": { "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" } }, "com.amazonaws.codegurusecurity#ValidationException": { "type": "structure", "members": { "errorCode": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the error.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Description of the error.

", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.codegurusecurity#ValidationExceptionReason", "traits": { "smithy.api#documentation": "

The reason the request failed validation.

", "smithy.api#required": {} } }, "fieldList": { "target": "com.amazonaws.codegurusecurity#ValidationExceptionFieldList", "traits": { "smithy.api#documentation": "

The field that caused the error, if applicable.

" } } }, "traits": { "smithy.api#documentation": "

The input fails to satisfy the specified constraints.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.codegurusecurity#ValidationExceptionField": { "type": "structure", "members": { "name": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The name of the exception.

", "smithy.api#required": {} } }, "message": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

Describes the exception.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Information about a validation exception.

" } }, "com.amazonaws.codegurusecurity#ValidationExceptionFieldList": { "type": "list", "member": { "target": "com.amazonaws.codegurusecurity#ValidationExceptionField" } }, "com.amazonaws.codegurusecurity#ValidationExceptionReason": { "type": "enum", "members": { "UNKNOWN_OPERATION": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "unknownOperation" } }, "CANNOT_PARSE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "cannotParse" } }, "FIELD_VALIDATION_FAILED": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "fieldValidationFailed" } }, "OTHER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "other" } }, "LAMBDA_CODE_SHA_MISMATCH": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "lambdaCodeShaMisMatch" } } } }, "com.amazonaws.codegurusecurity#Vulnerability": { "type": "structure", "members": { "referenceUrls": { "target": "com.amazonaws.codegurusecurity#ReferenceUrls", "traits": { "smithy.api#documentation": "

One or more URL addresses that contain details about a vulnerability.

" } }, "relatedVulnerabilities": { "target": "com.amazonaws.codegurusecurity#RelatedVulnerabilities", "traits": { "smithy.api#documentation": "

One or more vulnerabilities that are related to the vulnerability being described.

" } }, "id": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "

The identifier for the vulnerability.

" } }, "filePath": { "target": "com.amazonaws.codegurusecurity#FilePath", "traits": { "smithy.api#documentation": "

An object that describes the location of the detected security vulnerability in your code.

" } }, "itemCount": { "target": "smithy.api#Integer", "traits": { "smithy.api#deprecated": { "message": "This shape is not used." }, "smithy.api#documentation": "

The number of times the vulnerability appears in your code.

" } } }, "traits": { "smithy.api#documentation": "

Information about a security vulnerability that Amazon CodeGuru Security detected.

" } } } }