Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Apr 27, 2023
1 parent aabfa42 commit 0085910
Show file tree
Hide file tree
Showing 11 changed files with 3,105 additions and 900 deletions.
167 changes: 120 additions & 47 deletions codegen/sdk-codegen/aws-models/ec2.json

Large diffs are not rendered by default.

767 changes: 515 additions & 252 deletions codegen/sdk-codegen/aws-models/emr-containers.json

Large diffs are not rendered by default.

135 changes: 135 additions & 0 deletions codegen/sdk-codegen/aws-models/guardduty.json
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,30 @@
"smithy.api#documentation": "<p>Contains information about the condition.</p>"
}
},
"com.amazonaws.guardduty#ConflictException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.guardduty#String",
"traits": {
"smithy.api#documentation": "<p>The error message.</p>",
"smithy.api#jsonName": "message"
}
},
"Type": {
"target": "com.amazonaws.guardduty#String",
"traits": {
"smithy.api#documentation": "<p>The error type.</p>",
"smithy.api#jsonName": "__type"
}
}
},
"traits": {
"smithy.api#documentation": "<p>A request conflict exception object.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 409
}
},
"com.amazonaws.guardduty#Container": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2082,6 +2106,12 @@
"traits": {
"smithy.api#enumValue": "SCAN_STATUS"
}
},
"SCAN_TYPE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SCAN_TYPE"
}
}
}
},
Expand Down Expand Up @@ -3842,6 +3872,13 @@
"smithy.api#documentation": "<p>Contains a complete view providing malware scan result details.</p>",
"smithy.api#jsonName": "scanDetections"
}
},
"ScanType": {
"target": "com.amazonaws.guardduty#ScanType",
"traits": {
"smithy.api#documentation": "<p>Specifies the scan type that invoked the malware scan.</p>",
"smithy.api#jsonName": "scanType"
}
}
},
"traits": {
Expand Down Expand Up @@ -6092,6 +6129,9 @@
{
"target": "com.amazonaws.guardduty#ListThreatIntelSets"
},
{
"target": "com.amazonaws.guardduty#StartMalwareScan"
},
{
"target": "com.amazonaws.guardduty#StartMonitoringMembers"
},
Expand Down Expand Up @@ -10755,6 +10795,12 @@
"smithy.api#documentation": "<p>Contains information about the Amazon Web Services resource associated with the activity that prompted\n GuardDuty to generate a finding.</p>"
}
},
"com.amazonaws.guardduty#ResourceArn": {
"type": "string",
"traits": {
"smithy.api#pattern": "^arn:[A-Za-z-]+:[A-Za-z0-9]+:[A-Za-z0-9-]+:\\d+:(([A-Za-z0-9-]+)[:\\/])?[A-Za-z0-9-]*$"
}
},
"com.amazonaws.guardduty#ResourceDetails": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -11163,6 +11209,13 @@
"smithy.api#documentation": "<p>List of volumes that were attached to the original instance to be scanned.</p>",
"smithy.api#jsonName": "attachedVolumes"
}
},
"ScanType": {
"target": "com.amazonaws.guardduty#ScanType",
"traits": {
"smithy.api#documentation": "<p>Specifies the scan type that invoked the malware scan.</p>",
"smithy.api#jsonName": "scanType"
}
}
},
"traits": {
Expand Down Expand Up @@ -11411,6 +11464,12 @@
"traits": {
"smithy.api#enumValue": "FAILED"
}
},
"SKIPPED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SKIPPED"
}
}
}
},
Expand Down Expand Up @@ -11457,6 +11516,23 @@
"target": "com.amazonaws.guardduty#ScanThreatName"
}
},
"com.amazonaws.guardduty#ScanType": {
"type": "enum",
"members": {
"GUARDDUTY_INITIATED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "GUARDDUTY_INITIATED"
}
},
"ON_DEMAND": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ON_DEMAND"
}
}
}
},
"com.amazonaws.guardduty#ScannedItemCount": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -11703,6 +11779,65 @@
"target": "com.amazonaws.guardduty#String"
}
},
"com.amazonaws.guardduty#StartMalwareScan": {
"type": "operation",
"input": {
"target": "com.amazonaws.guardduty#StartMalwareScanRequest"
},
"output": {
"target": "com.amazonaws.guardduty#StartMalwareScanResponse"
},
"errors": [
{
"target": "com.amazonaws.guardduty#BadRequestException"
},
{
"target": "com.amazonaws.guardduty#ConflictException"
},
{
"target": "com.amazonaws.guardduty#InternalServerErrorException"
}
],
"traits": {
"smithy.api#documentation": "<p>Initiates the malware scan. Invoking this API will automatically create the <a href=\"https://docs.aws.amazon.com/guardduty/latest/ug/slr-permissions-malware-protection.html\">Service-linked role </a> in \n the corresponding account.</p>",
"smithy.api#http": {
"method": "POST",
"uri": "/malware-scan/start",
"code": 200
}
}
},
"com.amazonaws.guardduty#StartMalwareScanRequest": {
"type": "structure",
"members": {
"ResourceArn": {
"target": "com.amazonaws.guardduty#ResourceArn",
"traits": {
"smithy.api#documentation": "<p>Amazon Resource Name (ARN) of the resource for which you invoked the API.</p>",
"smithy.api#jsonName": "resourceArn",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.guardduty#StartMalwareScanResponse": {
"type": "structure",
"members": {
"ScanId": {
"target": "com.amazonaws.guardduty#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>A unique identifier that gets generated when you invoke the API without any error. Each malware scan has \n a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan.</p>",
"smithy.api#jsonName": "scanId"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.guardduty#StartMonitoringMembers": {
"type": "operation",
"input": {
Expand Down
Loading

0 comments on commit 0085910

Please sign in to comment.