From 03ceee4328f35f623a4609c9fb76041337c42093 Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 23 Jan 2024 20:50:01 +0000 Subject: [PATCH] Updates SDK to v2.1542.0 --- .changes/2.1542.0.json | 7 + CHANGELOG.md | 5 +- README.md | 2 +- apis/inspector2-2020-06-08.min.json | 1296 ++++++++-- apis/inspector2-2020-06-08.normal.json | 2505 +++++++++++++++++++- apis/inspector2-2020-06-08.paginators.json | 30 + clients/inspector2.d.ts | 1197 +++++++++- dist/aws-sdk-core-react-native.js | 2 +- dist/aws-sdk-react-native.js | 40 +- dist/aws-sdk.js | 6 +- dist/aws-sdk.min.js | 4 +- dist/xml2js.js | 34 +- lib/core.js | 2 +- package.json | 2 +- 14 files changed, 4781 insertions(+), 351 deletions(-) create mode 100644 .changes/2.1542.0.json diff --git a/.changes/2.1542.0.json b/.changes/2.1542.0.json new file mode 100644 index 0000000000..ad63602954 --- /dev/null +++ b/.changes/2.1542.0.json @@ -0,0 +1,7 @@ +[ + { + "type": "feature", + "category": "Inspector2", + "description": "This release adds support for CIS scans on EC2 instances." + } +] \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fc1c98fc9..7a9060173e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Changelog for AWS SDK for JavaScript - + +## 2.1542.0 +* feature: Inspector2: This release adds support for CIS scans on EC2 instances. + ## 2.1541.0 * feature: AppConfigData: Fix FIPS Endpoints in aws-us-gov. * feature: ConnectCases: This release adds the ability to view audit history on a case and introduces a new parameter, performedBy, for CreateCase and UpdateCase API's. diff --git a/README.md b/README.md index 943d959d97..a9c59e10c5 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ require('aws-sdk/lib/maintenance_mode_message').suppress = true; To use the SDK in the browser, simply add the following script tag to your HTML pages: - + You can also build a custom browser SDK with your specified set of AWS services. This can allow you to reduce the SDK's size, specify different API versions of diff --git a/apis/inspector2-2020-06-08.min.json b/apis/inspector2-2020-06-08.min.json index 094e4ad98a..4be26298c5 100644 --- a/apis/inspector2-2020-06-08.min.json +++ b/apis/inspector2-2020-06-08.min.json @@ -454,6 +454,52 @@ }, "idempotent": true }, + "CreateCisScanConfiguration": { + "http": { + "requestUri": "/cis/scan-configuration/create", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanName", + "schedule", + "securityLevel", + "targets" + ], + "members": { + "scanName": {}, + "schedule": { + "shape": "S2q" + }, + "securityLevel": {}, + "tags": { + "shape": "S31" + }, + "targets": { + "type": "structure", + "required": [ + "accountIds", + "targetResourceTags" + ], + "members": { + "accountIds": { + "shape": "S35" + }, + "targetResourceTags": { + "shape": "S37" + } + } + } + } + }, + "output": { + "type": "structure", + "members": { + "scanConfigurationArn": {} + } + } + }, "CreateFilter": { "http": { "requestUri": "/filters/create", @@ -470,12 +516,12 @@ "action": {}, "description": {}, "filterCriteria": { - "shape": "S2r" + "shape": "S3e" }, "name": {}, "reason": {}, "tags": { - "shape": "S3c" + "shape": "S3x" } } }, @@ -502,11 +548,11 @@ ], "members": { "filterCriteria": { - "shape": "S2r" + "shape": "S3e" }, "reportFormat": {}, "s3Destination": { - "shape": "S3h" + "shape": "S42" } } }, @@ -531,10 +577,10 @@ "members": { "reportFormat": {}, "resourceFilterCriteria": { - "shape": "S3l" + "shape": "S46" }, "s3Destination": { - "shape": "S3h" + "shape": "S42" } } }, @@ -546,6 +592,30 @@ }, "idempotent": true }, + "DeleteCisScanConfiguration": { + "http": { + "requestUri": "/cis/scan-configuration/delete", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": {} + } + }, + "output": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": {} + } + } + }, "DeleteFilter": { "http": { "requestUri": "/filters/delete", @@ -583,7 +653,7 @@ "type": "structure", "members": { "autoEnable": { - "shape": "S3y" + "shape": "S4l" }, "maxAccountLimitReached": { "type": "boolean" @@ -615,7 +685,7 @@ ], "members": { "accounts": { - "shape": "S43" + "shape": "S4q" }, "failedAccounts": { "shape": "Se" @@ -701,7 +771,7 @@ ], "members": { "accounts": { - "shape": "S43" + "shape": "S4q" }, "failedAccounts": { "shape": "Se" @@ -736,6 +806,120 @@ } } }, + "GetCisScanReport": { + "http": { + "requestUri": "/cis/scan/report/get", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "scanArn": {}, + "targetAccounts": { + "type": "list", + "member": {} + } + } + }, + "output": { + "type": "structure", + "members": { + "status": {}, + "url": {} + } + } + }, + "GetCisScanResultDetails": { + "http": { + "requestUri": "/cis/scan-result/details/get", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "accountId", + "scanArn", + "targetResourceId" + ], + "members": { + "accountId": {}, + "filterCriteria": { + "type": "structure", + "members": { + "checkIdFilters": { + "shape": "S59" + }, + "findingArnFilters": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "findingStatusFilters": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + }, + "securityLevelFilters": { + "shape": "S5h" + }, + "titleFilters": { + "shape": "S5k" + } + } + }, + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "scanArn": {}, + "sortBy": {}, + "sortOrder": {}, + "targetResourceId": {} + } + }, + "output": { + "type": "structure", + "members": { + "nextToken": {}, + "scanResultDetails": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "accountId": {}, + "checkDescription": {}, + "checkId": {}, + "findingArn": {}, + "level": {}, + "platform": {}, + "remediation": {}, + "scanArn": {}, + "status": {}, + "statusReason": {}, + "targetResourceId": {}, + "title": {} + } + } + } + } + } + }, "GetConfiguration": { "http": { "requestUri": "/configuration/get", @@ -802,10 +986,10 @@ "members": { "errorMessage": {}, "orgPackagePaths": { - "shape": "S4s" + "shape": "S67" }, "packagePaths": { - "shape": "S4s" + "shape": "S67" }, "status": {} } @@ -859,12 +1043,12 @@ "type": "structure", "members": { "destination": { - "shape": "S3h" + "shape": "S42" }, "errorCode": {}, "errorMessage": {}, "filterCriteria": { - "shape": "S2r" + "shape": "S3e" }, "reportId": {}, "status": {} @@ -889,7 +1073,7 @@ "type": "structure", "members": { "member": { - "shape": "S56" + "shape": "S6l" } } } @@ -914,12 +1098,12 @@ "errorCode": {}, "errorMessage": {}, "filterCriteria": { - "shape": "S3l" + "shape": "S46" }, "format": {}, "reportId": {}, "s3Destination": { - "shape": "S3h" + "shape": "S42" }, "status": {} } @@ -965,6 +1149,373 @@ } } }, + "ListCisScanConfigurations": { + "http": { + "requestUri": "/cis/scan-configuration/list", + "responseCode": 200 + }, + "input": { + "type": "structure", + "members": { + "filterCriteria": { + "type": "structure", + "members": { + "scanConfigurationArnFilters": { + "shape": "S6x" + }, + "scanNameFilters": { + "shape": "S6y" + }, + "targetResourceTagFilters": { + "shape": "S6z" + } + } + }, + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "sortBy": {}, + "sortOrder": {} + } + }, + "output": { + "type": "structure", + "members": { + "nextToken": {}, + "scanConfigurations": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "ownerId": {}, + "scanConfigurationArn": {}, + "scanName": {}, + "schedule": { + "shape": "S2q" + }, + "securityLevel": {}, + "tags": { + "shape": "S31" + }, + "targets": { + "shape": "S78" + } + } + } + } + } + } + }, + "ListCisScanResultsAggregatedByChecks": { + "http": { + "requestUri": "/cis/scan-result/check/list", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "filterCriteria": { + "type": "structure", + "members": { + "accountIdFilters": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "checkIdFilters": { + "shape": "S59" + }, + "failedResourcesFilters": { + "shape": "S7d" + }, + "platformFilters": { + "shape": "S7f" + }, + "securityLevelFilters": { + "shape": "S5h" + }, + "titleFilters": { + "shape": "S5k" + } + } + }, + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "scanArn": {}, + "sortBy": {}, + "sortOrder": {} + } + }, + "output": { + "type": "structure", + "members": { + "checkAggregations": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "accountId": {}, + "checkDescription": {}, + "checkId": {}, + "level": {}, + "platform": {}, + "scanArn": {}, + "statusCounts": { + "shape": "S7l" + }, + "title": {} + } + } + }, + "nextToken": {} + } + } + }, + "ListCisScanResultsAggregatedByTargetResource": { + "http": { + "requestUri": "/cis/scan-result/resource/list", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "filterCriteria": { + "type": "structure", + "members": { + "accountIdFilters": { + "shape": "S7o" + }, + "checkIdFilters": { + "shape": "S59" + }, + "failedChecksFilters": { + "shape": "S7d" + }, + "platformFilters": { + "shape": "S7f" + }, + "statusFilters": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + }, + "targetResourceIdFilters": { + "shape": "S7t" + }, + "targetResourceTagFilters": { + "shape": "S6z" + }, + "targetStatusFilters": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + }, + "targetStatusReasonFilters": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + } + } + }, + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "scanArn": {}, + "sortBy": {}, + "sortOrder": {} + } + }, + "output": { + "type": "structure", + "members": { + "nextToken": {}, + "targetResourceAggregations": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "accountId": {}, + "platform": {}, + "scanArn": {}, + "statusCounts": { + "shape": "S7l" + }, + "targetResourceId": {}, + "targetResourceTags": { + "shape": "S37" + }, + "targetStatus": {}, + "targetStatusReason": {} + } + } + } + } + } + }, + "ListCisScans": { + "http": { + "requestUri": "/cis/scan/list", + "responseCode": 200 + }, + "input": { + "type": "structure", + "members": { + "detailLevel": {}, + "filterCriteria": { + "type": "structure", + "members": { + "failedChecksFilters": { + "shape": "S7d" + }, + "scanArnFilters": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "scanAtFilters": { + "type": "list", + "member": { + "type": "structure", + "members": { + "earliestScanStartTime": { + "type": "timestamp" + }, + "latestScanStartTime": { + "type": "timestamp" + } + } + } + }, + "scanConfigurationArnFilters": { + "shape": "S6x" + }, + "scanNameFilters": { + "shape": "S6y" + }, + "scanStatusFilters": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + }, + "scheduledByFilters": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "targetAccountIdFilters": { + "shape": "S7o" + }, + "targetResourceIdFilters": { + "shape": "S7t" + }, + "targetResourceTagFilters": { + "shape": "S6z" + } + } + }, + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "sortBy": {}, + "sortOrder": {} + } + }, + "output": { + "type": "structure", + "members": { + "nextToken": {}, + "scans": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "scanArn", + "scanConfigurationArn" + ], + "members": { + "failedChecks": { + "type": "integer" + }, + "scanArn": {}, + "scanConfigurationArn": {}, + "scanDate": { + "type": "timestamp" + }, + "scanName": {}, + "scheduledBy": {}, + "securityLevel": {}, + "status": {}, + "targets": { + "shape": "S78" + }, + "totalChecks": { + "type": "integer" + } + } + } + } + } + } + }, "ListCoverage": { "http": { "requestUri": "/coverage/list", @@ -974,7 +1525,7 @@ "type": "structure", "members": { "filterCriteria": { - "shape": "S5i" + "shape": "S8m" }, "maxResults": { "type": "integer" @@ -1010,7 +1561,7 @@ "amiId": {}, "platform": {}, "tags": { - "shape": "S3c" + "shape": "S3x" } } }, @@ -1035,7 +1586,7 @@ "members": { "functionName": {}, "functionTags": { - "shape": "S3c" + "shape": "S3x" }, "layers": { "type": "list", @@ -1075,7 +1626,7 @@ "type": "structure", "members": { "filterCriteria": { - "shape": "S5i" + "shape": "S8m" }, "groupBy": {}, "nextToken": {} @@ -1182,14 +1733,14 @@ "type": "timestamp" }, "criteria": { - "shape": "S2r" + "shape": "S3e" }, "description": {}, "name": {}, "ownerId": {}, "reason": {}, "tags": { - "shape": "S3c" + "shape": "S3x" }, "updatedAt": { "type": "timestamp" @@ -1213,7 +1764,7 @@ ], "members": { "accountIds": { - "shape": "S2s" + "shape": "S3f" }, "aggregationRequest": { "type": "structure", @@ -1231,7 +1782,7 @@ "type": "structure", "members": { "amis": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1241,19 +1792,19 @@ "type": "structure", "members": { "architectures": { - "shape": "S2s" + "shape": "S3f" }, "imageShas": { - "shape": "S2s" + "shape": "S3f" }, "imageTags": { - "shape": "S2s" + "shape": "S3f" }, "repositories": { - "shape": "S2s" + "shape": "S3f" }, "resourceIds": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1263,16 +1814,16 @@ "type": "structure", "members": { "amis": { - "shape": "S2s" + "shape": "S3f" }, "instanceIds": { - "shape": "S2s" + "shape": "S3f" }, "instanceTags": { - "shape": "S33" + "shape": "S3q" }, "operatingSystems": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1291,13 +1842,13 @@ "type": "structure", "members": { "layerHashes": { - "shape": "S2s" + "shape": "S3f" }, "repositories": { - "shape": "S2s" + "shape": "S3f" }, "resourceIds": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1307,16 +1858,16 @@ "type": "structure", "members": { "functionNames": { - "shape": "S2s" + "shape": "S3f" }, "functionTags": { - "shape": "S33" + "shape": "S3q" }, "resourceIds": { - "shape": "S2s" + "shape": "S3f" }, "runtimes": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1326,13 +1877,13 @@ "type": "structure", "members": { "functionNames": { - "shape": "S2s" + "shape": "S3f" }, "layerArns": { - "shape": "S2s" + "shape": "S3f" }, "resourceIds": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1342,7 +1893,7 @@ "type": "structure", "members": { "packageNames": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1352,7 +1903,7 @@ "type": "structure", "members": { "repositories": { - "shape": "S2s" + "shape": "S3f" }, "sortBy": {}, "sortOrder": {} @@ -1366,10 +1917,10 @@ "sortBy": {}, "sortOrder": {}, "titles": { - "shape": "S2s" + "shape": "S3f" }, "vulnerabilityIds": { - "shape": "S2s" + "shape": "S3f" } } } @@ -1401,7 +1952,7 @@ "members": { "accountId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1417,7 +1968,7 @@ }, "ami": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1437,7 +1988,7 @@ "repository": {}, "resourceId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1451,14 +2002,14 @@ "ami": {}, "instanceId": {}, "instanceTags": { - "shape": "S3c" + "shape": "S3x" }, "networkFindings": { "type": "long" }, "operatingSystem": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1467,7 +2018,7 @@ "members": { "accountId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1485,7 +2036,7 @@ "repository": {}, "resourceId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1498,7 +2049,7 @@ "accountId": {}, "functionName": {}, "lambdaTags": { - "shape": "S3c" + "shape": "S3x" }, "lastModifiedAt": { "type": "timestamp" @@ -1506,7 +2057,7 @@ "resourceId": {}, "runtime": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1524,7 +2075,7 @@ "layerArn": {}, "resourceId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1537,7 +2088,7 @@ "accountId": {}, "packageName": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1553,7 +2104,7 @@ }, "repository": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" } } }, @@ -1565,7 +2116,7 @@ "members": { "accountId": {}, "severityCounts": { - "shape": "S7t" + "shape": "Saw" }, "title": {}, "vulnerabilityId": {} @@ -1587,7 +2138,7 @@ "type": "structure", "members": { "filterCriteria": { - "shape": "S2r" + "shape": "S3e" }, "maxResults": { "type": "integer" @@ -1975,7 +2526,7 @@ "partition": {}, "region": {}, "tags": { - "shape": "S3c" + "shape": "S3x" }, "type": {} } @@ -2018,7 +2569,7 @@ "members": { "type": "list", "member": { - "shape": "S56" + "shape": "S6l" } }, "nextToken": {} @@ -2047,7 +2598,7 @@ "type": "structure", "members": { "tags": { - "shape": "S3c" + "shape": "S3x" } } } @@ -2237,15 +2788,185 @@ "vendorCreatedAt": { "type": "timestamp" }, - "vendorSeverity": {}, - "vendorUpdatedAt": { - "type": "timestamp" - } + "vendorSeverity": {}, + "vendorUpdatedAt": { + "type": "timestamp" + } + } + } + } + } + } + }, + "SendCisSessionHealth": { + "http": { + "method": "PUT", + "requestUri": "/cissession/health/send", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanJobId", + "sessionToken" + ], + "members": { + "scanJobId": {}, + "sessionToken": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, + "SendCisSessionTelemetry": { + "http": { + "method": "PUT", + "requestUri": "/cissession/telemetry/send", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "messages", + "scanJobId", + "sessionToken" + ], + "members": { + "messages": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "cisRuleDetails", + "ruleId", + "status" + ], + "members": { + "cisRuleDetails": { + "type": "blob" + }, + "ruleId": {}, + "status": {} } } - } + }, + "scanJobId": {}, + "sessionToken": {} } - } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, + "StartCisSession": { + "http": { + "method": "PUT", + "requestUri": "/cissession/start", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "message", + "scanJobId" + ], + "members": { + "message": { + "type": "structure", + "required": [ + "sessionToken" + ], + "members": { + "sessionToken": {} + } + }, + "scanJobId": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, + "StopCisSession": { + "http": { + "method": "PUT", + "requestUri": "/cissession/stop", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "message", + "scanJobId", + "sessionToken" + ], + "members": { + "message": { + "type": "structure", + "required": [ + "progress", + "status" + ], + "members": { + "benchmarkProfile": {}, + "benchmarkVersion": {}, + "computePlatform": { + "type": "structure", + "members": { + "product": {}, + "vendor": {}, + "version": {} + } + }, + "progress": { + "type": "structure", + "members": { + "errorChecks": { + "type": "integer" + }, + "failedChecks": { + "type": "integer" + }, + "informationalChecks": { + "type": "integer" + }, + "notApplicableChecks": { + "type": "integer" + }, + "notEvaluatedChecks": { + "type": "integer" + }, + "successfulChecks": { + "type": "integer" + }, + "totalChecks": { + "type": "integer" + }, + "unknownChecks": { + "type": "integer" + } + } + }, + "reason": {}, + "status": {} + } + }, + "scanJobId": {}, + "sessionToken": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true }, "TagResource": { "http": { @@ -2264,7 +2985,7 @@ "locationName": "resourceArn" }, "tags": { - "shape": "S3c" + "shape": "S3x" } } }, @@ -2304,6 +3025,46 @@ "members": {} } }, + "UpdateCisScanConfiguration": { + "http": { + "requestUri": "/cis/scan-configuration/update", + "responseCode": 200 + }, + "input": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": {}, + "scanName": {}, + "schedule": { + "shape": "S2q" + }, + "securityLevel": {}, + "targets": { + "type": "structure", + "members": { + "accountIds": { + "shape": "S35" + }, + "targetResourceTags": { + "shape": "S37" + } + } + } + } + }, + "output": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": {} + } + } + }, "UpdateConfiguration": { "http": { "requestUri": "/configuration/update", @@ -2343,7 +3104,7 @@ "type": "boolean" }, "packagePaths": { - "shape": "S4s" + "shape": "S67" } } }, @@ -2352,10 +3113,10 @@ "members": { "errorMessage": {}, "orgPackagePaths": { - "shape": "S4s" + "shape": "S67" }, "packagePaths": { - "shape": "S4s" + "shape": "S67" }, "status": {} } @@ -2401,7 +3162,7 @@ "description": {}, "filterArn": {}, "filterCriteria": { - "shape": "S2r" + "shape": "S3e" }, "name": {}, "reason": {} @@ -2429,7 +3190,7 @@ ], "members": { "orgPackagePaths": { - "shape": "S4s" + "shape": "S67" } } }, @@ -2450,7 +3211,7 @@ ], "members": { "autoEnable": { - "shape": "S3y" + "shape": "S4l" } } }, @@ -2461,7 +3222,7 @@ ], "members": { "autoEnable": { - "shape": "S3y" + "shape": "S4l" } } } @@ -2581,98 +3342,176 @@ } } }, - "S2r": { + "S2q": { + "type": "structure", + "members": { + "daily": { + "type": "structure", + "required": [ + "startTime" + ], + "members": { + "startTime": { + "shape": "S2s" + } + } + }, + "monthly": { + "type": "structure", + "required": [ + "day", + "startTime" + ], + "members": { + "day": {}, + "startTime": { + "shape": "S2s" + } + } + }, + "oneTime": { + "type": "structure", + "members": {} + }, + "weekly": { + "type": "structure", + "required": [ + "days", + "startTime" + ], + "members": { + "days": { + "type": "list", + "member": {} + }, + "startTime": { + "shape": "S2s" + } + } + } + }, + "union": true + }, + "S2s": { + "type": "structure", + "required": [ + "timeOfDay", + "timezone" + ], + "members": { + "timeOfDay": {}, + "timezone": {} + } + }, + "S31": { + "type": "map", + "key": {}, + "value": {} + }, + "S35": { + "type": "list", + "member": {} + }, + "S37": { + "type": "map", + "key": {}, + "value": { + "type": "list", + "member": {} + } + }, + "S3e": { "type": "structure", "members": { "awsAccountId": { - "shape": "S2s" + "shape": "S3f" }, "codeVulnerabilityDetectorName": { - "shape": "S2s" + "shape": "S3f" }, "codeVulnerabilityDetectorTags": { - "shape": "S2s" + "shape": "S3f" }, "codeVulnerabilityFilePath": { - "shape": "S2s" + "shape": "S3f" }, "componentId": { - "shape": "S2s" + "shape": "S3f" }, "componentType": { - "shape": "S2s" + "shape": "S3f" }, "ec2InstanceImageId": { - "shape": "S2s" + "shape": "S3f" }, "ec2InstanceSubnetId": { - "shape": "S2s" + "shape": "S3f" }, "ec2InstanceVpcId": { - "shape": "S2s" + "shape": "S3f" }, "ecrImageArchitecture": { - "shape": "S2s" + "shape": "S3f" }, "ecrImageHash": { - "shape": "S2s" + "shape": "S3f" }, "ecrImagePushedAt": { - "shape": "S2w" + "shape": "S3j" }, "ecrImageRegistry": { - "shape": "S2s" + "shape": "S3f" }, "ecrImageRepositoryName": { - "shape": "S2s" + "shape": "S3f" }, "ecrImageTags": { - "shape": "S2s" + "shape": "S3f" }, "epssScore": { - "shape": "S2y" + "shape": "S3l" }, "exploitAvailable": { - "shape": "S2s" + "shape": "S3f" }, "findingArn": { - "shape": "S2s" + "shape": "S3f" }, "findingStatus": { - "shape": "S2s" + "shape": "S3f" }, "findingType": { - "shape": "S2s" + "shape": "S3f" }, "firstObservedAt": { - "shape": "S2w" + "shape": "S3j" }, "fixAvailable": { - "shape": "S2s" + "shape": "S3f" }, "inspectorScore": { - "shape": "S2y" + "shape": "S3l" }, "lambdaFunctionExecutionRoleArn": { - "shape": "S2s" + "shape": "S3f" }, "lambdaFunctionLastModifiedAt": { - "shape": "S2w" + "shape": "S3j" }, "lambdaFunctionLayers": { - "shape": "S2s" + "shape": "S3f" }, "lambdaFunctionName": { - "shape": "S2s" + "shape": "S3f" }, "lambdaFunctionRuntime": { - "shape": "S2s" + "shape": "S3f" }, "lastObservedAt": { - "shape": "S2w" + "shape": "S3j" }, "networkProtocol": { - "shape": "S2s" + "shape": "S3f" }, "portRange": { "type": "list", @@ -2689,34 +3528,34 @@ } }, "relatedVulnerabilities": { - "shape": "S2s" + "shape": "S3f" }, "resourceId": { - "shape": "S2s" + "shape": "S3f" }, "resourceTags": { - "shape": "S33" + "shape": "S3q" }, "resourceType": { - "shape": "S2s" + "shape": "S3f" }, "severity": { - "shape": "S2s" + "shape": "S3f" }, "title": { - "shape": "S2s" + "shape": "S3f" }, "updatedAt": { - "shape": "S2w" + "shape": "S3j" }, "vendorSeverity": { - "shape": "S2s" + "shape": "S3f" }, "vulnerabilityId": { - "shape": "S2s" + "shape": "S3f" }, "vulnerabilitySource": { - "shape": "S2s" + "shape": "S3f" }, "vulnerablePackages": { "type": "list", @@ -2724,38 +3563,38 @@ "type": "structure", "members": { "architecture": { - "shape": "S2t" + "shape": "S3g" }, "epoch": { - "shape": "S2z" + "shape": "S3m" }, "name": { - "shape": "S2t" + "shape": "S3g" }, "release": { - "shape": "S2t" + "shape": "S3g" }, "sourceLambdaLayerArn": { - "shape": "S2t" + "shape": "S3g" }, "sourceLayerHash": { - "shape": "S2t" + "shape": "S3g" }, "version": { - "shape": "S2t" + "shape": "S3g" } } } } } }, - "S2s": { + "S3f": { "type": "list", "member": { - "shape": "S2t" + "shape": "S3g" } }, - "S2t": { + "S3g": { "type": "structure", "required": [ "comparison", @@ -2766,7 +3605,7 @@ "value": {} } }, - "S2w": { + "S3j": { "type": "list", "member": { "type": "structure", @@ -2780,13 +3619,13 @@ } } }, - "S2y": { + "S3l": { "type": "list", "member": { - "shape": "S2z" + "shape": "S3m" } }, - "S2z": { + "S3m": { "type": "structure", "members": { "lowerInclusive": { @@ -2797,7 +3636,7 @@ } } }, - "S33": { + "S3q": { "type": "list", "member": { "type": "structure", @@ -2812,12 +3651,12 @@ } } }, - "S3c": { + "S3x": { "type": "map", "key": {}, "value": {} }, - "S3h": { + "S42": { "type": "structure", "required": [ "bucketName", @@ -2829,36 +3668,36 @@ "kmsKeyArn": {} } }, - "S3l": { + "S46": { "type": "structure", "members": { "accountId": { - "shape": "S3m" + "shape": "S47" }, "ec2InstanceTags": { - "shape": "S3q" + "shape": "S4b" }, "ecrImageTags": { - "shape": "S3m" + "shape": "S47" }, "ecrRepositoryName": { - "shape": "S3m" + "shape": "S47" }, "lambdaFunctionName": { - "shape": "S3m" + "shape": "S47" }, "lambdaFunctionTags": { - "shape": "S3q" + "shape": "S4b" }, "resourceId": { - "shape": "S3m" + "shape": "S47" }, "resourceType": { - "shape": "S3m" + "shape": "S47" } } }, - "S3m": { + "S47": { "type": "list", "member": { "type": "structure", @@ -2872,7 +3711,7 @@ } } }, - "S3q": { + "S4b": { "type": "list", "member": { "type": "structure", @@ -2887,7 +3726,7 @@ } } }, - "S3y": { + "S4l": { "type": "structure", "required": [ "ec2", @@ -2908,7 +3747,7 @@ } } }, - "S43": { + "S4q": { "type": "list", "member": { "type": "structure", @@ -2926,11 +3765,48 @@ } } }, - "S4s": { + "S59": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S5a": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + }, + "S5h": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": {}, + "value": {} + } + } + }, + "S5k": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S67": { "type": "list", "member": {} }, - "S56": { + "S6l": { "type": "structure", "members": { "accountId": {}, @@ -2941,29 +3817,115 @@ } } }, - "S5i": { + "S6x": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S6y": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S6z": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "comparison", + "key", + "value" + ], + "members": { + "comparison": {}, + "key": {}, + "value": {} + } + } + }, + "S78": { + "type": "structure", + "members": { + "accountIds": { + "type": "list", + "member": {} + }, + "targetResourceTags": { + "shape": "S37" + } + } + }, + "S7d": { + "type": "list", + "member": { + "type": "structure", + "members": { + "lowerInclusive": { + "type": "integer" + }, + "upperInclusive": { + "type": "integer" + } + } + } + }, + "S7f": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S7l": { + "type": "structure", + "members": { + "failed": { + "type": "integer" + }, + "passed": { + "type": "integer" + }, + "skipped": { + "type": "integer" + } + } + }, + "S7o": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S7t": { + "type": "list", + "member": { + "shape": "S5a" + } + }, + "S8m": { "type": "structure", "members": { "accountId": { - "shape": "S5j" + "shape": "S8n" }, "ec2InstanceTags": { - "shape": "S5n" + "shape": "S8r" }, "ecrImageTags": { - "shape": "S5j" + "shape": "S8n" }, "ecrRepositoryName": { - "shape": "S5j" + "shape": "S8n" }, "lambdaFunctionName": { - "shape": "S5j" + "shape": "S8n" }, "lambdaFunctionRuntime": { - "shape": "S5j" + "shape": "S8n" }, "lambdaFunctionTags": { - "shape": "S5n" + "shape": "S8r" }, "lastScannedAt": { "type": "list", @@ -2980,23 +3942,23 @@ } }, "resourceId": { - "shape": "S5j" + "shape": "S8n" }, "resourceType": { - "shape": "S5j" + "shape": "S8n" }, "scanStatusCode": { - "shape": "S5j" + "shape": "S8n" }, "scanStatusReason": { - "shape": "S5j" + "shape": "S8n" }, "scanType": { - "shape": "S5j" + "shape": "S8n" } } }, - "S5j": { + "S8n": { "type": "list", "member": { "type": "structure", @@ -3010,7 +3972,7 @@ } } }, - "S5n": { + "S8r": { "type": "list", "member": { "type": "structure", @@ -3025,7 +3987,7 @@ } } }, - "S7t": { + "Saw": { "type": "structure", "members": { "all": { diff --git a/apis/inspector2-2020-06-08.normal.json b/apis/inspector2-2020-06-08.normal.json index f2360b06da..51c12cd1f1 100644 --- a/apis/inspector2-2020-06-08.normal.json +++ b/apis/inspector2-2020-06-08.normal.json @@ -284,6 +284,35 @@ "documentation": "

Cancels a software bill of materials (SBOM) report.

", "idempotent": true }, + "CreateCisScanConfiguration": { + "name": "CreateCisScanConfiguration", + "http": { + "method": "POST", + "requestUri": "/cis/scan-configuration/create", + "responseCode": 200 + }, + "input": { + "shape": "CreateCisScanConfigurationRequest" + }, + "output": { + "shape": "CreateCisScanConfigurationResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Creates a CIS scan configuration.

" + }, "CreateFilter": { "name": "CreateFilter", "http": { @@ -384,6 +413,38 @@ "documentation": "

Creates a software bill of materials (SBOM) report.

", "idempotent": true }, + "DeleteCisScanConfiguration": { + "name": "DeleteCisScanConfiguration", + "http": { + "method": "POST", + "requestUri": "/cis/scan-configuration/delete", + "responseCode": 200 + }, + "input": { + "shape": "DeleteCisScanConfigurationRequest" + }, + "output": { + "shape": "DeleteCisScanConfigurationResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Deletes a CIS scan configuration.

" + }, "DeleteFilter": { "name": "DeleteFilter", "http": { @@ -608,6 +669,64 @@ ], "documentation": "

Enables the Amazon Inspector delegated administrator for your Organizations organization.

" }, + "GetCisScanReport": { + "name": "GetCisScanReport", + "http": { + "method": "POST", + "requestUri": "/cis/scan/report/get", + "responseCode": 200 + }, + "input": { + "shape": "GetCisScanReportRequest" + }, + "output": { + "shape": "GetCisScanReportResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Retrieves a CIS scan report.

" + }, + "GetCisScanResultDetails": { + "name": "GetCisScanResultDetails", + "http": { + "method": "POST", + "requestUri": "/cis/scan-result/details/get", + "responseCode": 200 + }, + "input": { + "shape": "GetCisScanResultDetailsRequest" + }, + "output": { + "shape": "GetCisScanResultDetailsResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Retrieves CIS scan result details.

" + }, "GetConfiguration": { "name": "GetConfiguration", "http": { @@ -853,6 +972,122 @@ ], "documentation": "

Lists the permissions an account has to configure Amazon Inspector.

" }, + "ListCisScanConfigurations": { + "name": "ListCisScanConfigurations", + "http": { + "method": "POST", + "requestUri": "/cis/scan-configuration/list", + "responseCode": 200 + }, + "input": { + "shape": "ListCisScanConfigurationsRequest" + }, + "output": { + "shape": "ListCisScanConfigurationsResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Lists CIS scan configurations.

" + }, + "ListCisScanResultsAggregatedByChecks": { + "name": "ListCisScanResultsAggregatedByChecks", + "http": { + "method": "POST", + "requestUri": "/cis/scan-result/check/list", + "responseCode": 200 + }, + "input": { + "shape": "ListCisScanResultsAggregatedByChecksRequest" + }, + "output": { + "shape": "ListCisScanResultsAggregatedByChecksResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Lists scan results aggregated by checks.

" + }, + "ListCisScanResultsAggregatedByTargetResource": { + "name": "ListCisScanResultsAggregatedByTargetResource", + "http": { + "method": "POST", + "requestUri": "/cis/scan-result/resource/list", + "responseCode": 200 + }, + "input": { + "shape": "ListCisScanResultsAggregatedByTargetResourceRequest" + }, + "output": { + "shape": "ListCisScanResultsAggregatedByTargetResourceResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Lists scan results aggregated by a target resource.

" + }, + "ListCisScans": { + "name": "ListCisScans", + "http": { + "method": "POST", + "requestUri": "/cis/scan/list", + "responseCode": 200 + }, + "input": { + "shape": "ListCisScansRequest" + }, + "output": { + "shape": "ListCisScansResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Returns a CIS scan list.

" + }, "ListCoverage": { "name": "ListCoverage", "http": { @@ -1164,28 +1399,28 @@ ], "documentation": "

Lists Amazon Inspector coverage details for a specific vulnerability.

" }, - "TagResource": { - "name": "TagResource", + "SendCisSessionHealth": { + "name": "SendCisSessionHealth", "http": { - "method": "POST", - "requestUri": "/tags/{resourceArn}", + "method": "PUT", + "requestUri": "/cissession/health/send", "responseCode": 200 }, "input": { - "shape": "TagResourceRequest" + "shape": "SendCisSessionHealthRequest" }, "output": { - "shape": "TagResourceResponse" + "shape": "SendCisSessionHealthResponse" }, "errors": [ { - "shape": "BadRequestException" + "shape": "ConflictException" }, { "shape": "ValidationException" }, { - "shape": "ResourceNotFoundException" + "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" @@ -1194,28 +1429,31 @@ "shape": "InternalServerException" } ], - "documentation": "

Adds tags to a resource.

", + "documentation": "

Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

", "idempotent": true }, - "UntagResource": { - "name": "UntagResource", + "SendCisSessionTelemetry": { + "name": "SendCisSessionTelemetry", "http": { - "method": "DELETE", - "requestUri": "/tags/{resourceArn}", + "method": "PUT", + "requestUri": "/cissession/telemetry/send", "responseCode": 200 }, "input": { - "shape": "UntagResourceRequest" + "shape": "SendCisSessionTelemetryRequest" }, "output": { - "shape": "UntagResourceResponse" + "shape": "SendCisSessionTelemetryResponse" }, "errors": [ + { + "shape": "ConflictException" + }, { "shape": "ValidationException" }, { - "shape": "ResourceNotFoundException" + "shape": "AccessDeniedException" }, { "shape": "ThrottlingException" @@ -1224,22 +1462,26 @@ "shape": "InternalServerException" } ], - "documentation": "

Removes tags from a resource.

" + "documentation": "

Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

", + "idempotent": true }, - "UpdateConfiguration": { - "name": "UpdateConfiguration", + "StartCisSession": { + "name": "StartCisSession", "http": { - "method": "POST", - "requestUri": "/configuration/update", + "method": "PUT", + "requestUri": "/cissession/start", "responseCode": 200 }, "input": { - "shape": "UpdateConfigurationRequest" + "shape": "StartCisSessionRequest" }, "output": { - "shape": "UpdateConfigurationResponse" + "shape": "StartCisSessionResponse" }, "errors": [ + { + "shape": "ConflictException" + }, { "shape": "ValidationException" }, @@ -1253,22 +1495,26 @@ "shape": "InternalServerException" } ], - "documentation": "

Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.

" + "documentation": "

Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

", + "idempotent": true }, - "UpdateEc2DeepInspectionConfiguration": { - "name": "UpdateEc2DeepInspectionConfiguration", + "StopCisSession": { + "name": "StopCisSession", "http": { - "method": "POST", - "requestUri": "/ec2deepinspectionconfiguration/update", + "method": "PUT", + "requestUri": "/cissession/stop", "responseCode": 200 }, "input": { - "shape": "UpdateEc2DeepInspectionConfigurationRequest" + "shape": "StopCisSessionRequest" }, "output": { - "shape": "UpdateEc2DeepInspectionConfigurationResponse" + "shape": "StopCisSessionResponse" }, "errors": [ + { + "shape": "ConflictException" + }, { "shape": "ValidationException" }, @@ -1282,34 +1528,187 @@ "shape": "InternalServerException" } ], - "documentation": "

Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

" + "documentation": "

Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

", + "idempotent": true }, - "UpdateEncryptionKey": { - "name": "UpdateEncryptionKey", + "TagResource": { + "name": "TagResource", "http": { - "method": "PUT", - "requestUri": "/encryptionkey/update", + "method": "POST", + "requestUri": "/tags/{resourceArn}", "responseCode": 200 }, "input": { - "shape": "UpdateEncryptionKeyRequest" + "shape": "TagResourceRequest" }, "output": { - "shape": "UpdateEncryptionKeyResponse" + "shape": "TagResourceResponse" }, "errors": [ + { + "shape": "BadRequestException" + }, { "shape": "ValidationException" }, { - "shape": "AccessDeniedException" + "shape": "ResourceNotFoundException" }, { "shape": "ThrottlingException" }, { - "shape": "ResourceNotFoundException" - }, + "shape": "InternalServerException" + } + ], + "documentation": "

Adds tags to a resource.

", + "idempotent": true + }, + "UntagResource": { + "name": "UntagResource", + "http": { + "method": "DELETE", + "requestUri": "/tags/{resourceArn}", + "responseCode": 200 + }, + "input": { + "shape": "UntagResourceRequest" + }, + "output": { + "shape": "UntagResourceResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Removes tags from a resource.

" + }, + "UpdateCisScanConfiguration": { + "name": "UpdateCisScanConfiguration", + "http": { + "method": "POST", + "requestUri": "/cis/scan-configuration/update", + "responseCode": 200 + }, + "input": { + "shape": "UpdateCisScanConfigurationRequest" + }, + "output": { + "shape": "UpdateCisScanConfigurationResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Updates a CIS scan configuration.

" + }, + "UpdateConfiguration": { + "name": "UpdateConfiguration", + "http": { + "method": "POST", + "requestUri": "/configuration/update", + "responseCode": 200 + }, + "input": { + "shape": "UpdateConfigurationRequest" + }, + "output": { + "shape": "UpdateConfigurationResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.

" + }, + "UpdateEc2DeepInspectionConfiguration": { + "name": "UpdateEc2DeepInspectionConfiguration", + "http": { + "method": "POST", + "requestUri": "/ec2deepinspectionconfiguration/update", + "responseCode": 200 + }, + "input": { + "shape": "UpdateEc2DeepInspectionConfigurationRequest" + }, + "output": { + "shape": "UpdateEc2DeepInspectionConfigurationResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "

Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

" + }, + "UpdateEncryptionKey": { + "name": "UpdateEncryptionKey", + "http": { + "method": "PUT", + "requestUri": "/encryptionkey/update", + "responseCode": 200 + }, + "input": { + "shape": "UpdateEncryptionKeyRequest" + }, + "output": { + "shape": "UpdateEncryptionKeyResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "ResourceNotFoundException" + }, { "shape": "InternalServerException" } @@ -1474,6 +1873,14 @@ "min": 12, "pattern": "^\\d{12}$" }, + "AccountIdFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, "AccountIdSet": { "type": "list", "member": { @@ -2206,6 +2613,16 @@ } } }, + "BenchmarkProfile": { + "type": "string", + "max": 128, + "min": 0 + }, + "BenchmarkVersion": { + "type": "string", + "max": 8, + "min": 0 + }, "Boolean": { "type": "boolean", "box": true @@ -2255,103 +2672,964 @@ } } }, - "CisaAction": { - "type": "string", + "CheckCount": { + "type": "integer", + "max": 65536, "min": 0 }, - "CisaData": { - "type": "structure", - "members": { - "action": { - "shape": "CisaAction", - "documentation": "

The remediation action recommended by CISA for this vulnerability.

" - }, - "dateAdded": { - "shape": "CisaDateAdded", - "documentation": "

The date and time CISA added this vulnerability to their catalogue.

" - }, - "dateDue": { - "shape": "CisaDateDue", - "documentation": "

The date and time CISA expects a fix to have been provided vulnerability.

" - } + "CheckIdFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" }, - "documentation": "

The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.

" - }, - "CisaDateAdded": { - "type": "timestamp" - }, - "CisaDateDue": { - "type": "timestamp" + "max": 10, + "min": 1 }, - "ClientToken": { - "type": "string", - "max": 64, + "CisAccountIdList": { + "type": "list", + "member": { + "shape": "AccountId" + }, + "max": 10000, "min": 1 }, - "CodeFilePath": { + "CisCheckAggregation": { "type": "structure", "required": [ - "endLine", - "fileName", - "filePath", - "startLine" + "scanArn" ], "members": { - "endLine": { - "shape": "Integer", - "documentation": "

The line number of the last line of code that a vulnerability was found in.

" + "accountId": { + "shape": "AccountId", + "documentation": "

The account ID for the CIS check.

" }, - "fileName": { - "shape": "NonEmptyString", - "documentation": "

The name of the file the code vulnerability was found in.

" + "checkDescription": { + "shape": "String", + "documentation": "

The description for the CIS check.

" }, - "filePath": { - "shape": "NonEmptyString", - "documentation": "

The file path to the code that a vulnerability was found in.

" + "checkId": { + "shape": "String", + "documentation": "

The check ID for the CIS check.

" }, - "startLine": { - "shape": "Integer", - "documentation": "

The line number of the first line of code that a vulnerability was found in.

" + "level": { + "shape": "CisSecurityLevel", + "documentation": "

The CIS check level.

" + }, + "platform": { + "shape": "String", + "documentation": "

The CIS check platform.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN for the CIS check scan ARN.

" + }, + "statusCounts": { + "shape": "StatusCounts", + "documentation": "

The CIS check status counts.

" + }, + "title": { + "shape": "String", + "documentation": "

The CIS check title.

" } }, - "documentation": "

Contains information on where a code vulnerability is located in your Lambda function.

" + "documentation": "

A CIS check.

" }, - "CodeLine": { + "CisCheckAggregationList": { + "type": "list", + "member": { + "shape": "CisCheckAggregation" + }, + "max": 1000, + "min": 1 + }, + "CisDateFilter": { "type": "structure", - "required": [ - "content", - "lineNumber" - ], "members": { - "content": { - "shape": "CodeLineContentString", - "documentation": "

The content of a line of code

" + "earliestScanStartTime": { + "shape": "Timestamp", + "documentation": "

The CIS date filter's earliest scan start time.

" }, - "lineNumber": { - "shape": "Integer", - "documentation": "

The line number that a section of code is located at.

" + "latestScanStartTime": { + "shape": "Timestamp", + "documentation": "

The CIS date filter's latest scan start time.

" } }, - "documentation": "

Contains information on the lines of code associated with a code snippet.

" + "documentation": "

The CIS date filter.

" }, - "CodeLineContentString": { + "CisFindingArn": { "type": "string", - "max": 240, - "min": 0 + "pattern": "^arn:aws(-gov|-cn)?:inspector2:[-.a-z0-9]{0,20}:\\d{12}:owner/\\d{12}/cis-finding/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" }, - "CodeLineList": { + "CisFindingArnFilterList": { "type": "list", "member": { - "shape": "CodeLine" + "shape": "CisStringFilter" }, - "max": 20, + "max": 10, "min": 1 }, - "CodeSnippetError": { - "type": "structure", - "required": [ - "errorCode", - "errorMessage", + "CisFindingStatus": { + "type": "string", + "enum": [ + "PASSED", + "FAILED", + "SKIPPED" + ] + }, + "CisFindingStatusComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "CisFindingStatusFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisFindingStatusComparison", + "documentation": "

The comparison value of the CIS finding status filter.

" + }, + "value": { + "shape": "CisFindingStatus", + "documentation": "

The value of the CIS finding status filter.

" + } + }, + "documentation": "

The CIS finding status filter.

" + }, + "CisFindingStatusFilterList": { + "type": "list", + "member": { + "shape": "CisFindingStatusFilter" + }, + "max": 10, + "min": 1 + }, + "CisNumberFilter": { + "type": "structure", + "members": { + "lowerInclusive": { + "shape": "Integer", + "documentation": "

The CIS number filter's lower inclusive.

" + }, + "upperInclusive": { + "shape": "Integer", + "documentation": "

The CIS number filter's upper inclusive.

" + } + }, + "documentation": "

The CIS number filter.

" + }, + "CisNumberFilterList": { + "type": "list", + "member": { + "shape": "CisNumberFilter" + }, + "max": 10, + "min": 1 + }, + "CisOwnerId": { + "type": "string", + "pattern": "^\\d{12}|o-[a-z0-9]{10,32}$" + }, + "CisReportStatus": { + "type": "string", + "enum": [ + "SUCCEEDED", + "FAILED", + "IN_PROGRESS" + ] + }, + "CisResultStatus": { + "type": "string", + "enum": [ + "PASSED", + "FAILED", + "SKIPPED" + ] + }, + "CisResultStatusComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "CisResultStatusFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisResultStatusComparison", + "documentation": "

The comparison value of the CIS result status filter.

" + }, + "value": { + "shape": "CisResultStatus", + "documentation": "

The value of the CIS result status filter.

" + } + }, + "documentation": "

The CIS result status filter.

" + }, + "CisResultStatusFilterList": { + "type": "list", + "member": { + "shape": "CisResultStatusFilter" + }, + "max": 10, + "min": 1 + }, + "CisRuleDetails": { + "type": "blob", + "max": 1000, + "min": 0 + }, + "CisRuleStatus": { + "type": "string", + "enum": [ + "FAILED", + "PASSED", + "NOT_EVALUATED", + "INFORMATIONAL", + "UNKNOWN", + "NOT_APPLICABLE", + "ERROR" + ] + }, + "CisScan": { + "type": "structure", + "required": [ + "scanArn", + "scanConfigurationArn" + ], + "members": { + "failedChecks": { + "shape": "Integer", + "documentation": "

The CIS scan's failed checks.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The CIS scan's ARN.

" + }, + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The CIS scan's configuration ARN.

" + }, + "scanDate": { + "shape": "Timestamp", + "documentation": "

The CIS scan's date.

" + }, + "scanName": { + "shape": "CisScanName", + "documentation": "

The the name of the scan configuration that's associated with this scan.

" + }, + "scheduledBy": { + "shape": "String", + "documentation": "

The account or organization that schedules the CIS scan.

" + }, + "securityLevel": { + "shape": "CisSecurityLevel", + "documentation": "

The security level for the CIS scan. Security level refers to the Benchmark levels that CIS assigns to a profile.

" + }, + "status": { + "shape": "CisScanStatus", + "documentation": "

The CIS scan's status.

" + }, + "targets": { + "shape": "CisTargets", + "documentation": "

The CIS scan's targets.

" + }, + "totalChecks": { + "shape": "Integer", + "documentation": "

The CIS scan's total checks.

" + } + }, + "documentation": "

The CIS scan.

" + }, + "CisScanArn": { + "type": "string", + "pattern": "^arn:aws(-us-gov|-cn)?:inspector2:[-.a-z0-9]{0,20}:\\d{12}:owner/(\\d{12}|o-[a-z0-9]{10,32})/cis-scan/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" + }, + "CisScanArnFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, + "CisScanConfiguration": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "ownerId": { + "shape": "CisOwnerId", + "documentation": "

The CIS scan configuration's owner ID.

" + }, + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The CIS scan configuration's scan configuration ARN.

" + }, + "scanName": { + "shape": "CisScanName", + "documentation": "

The name of the CIS scan configuration.

" + }, + "schedule": { + "shape": "Schedule", + "documentation": "

The CIS scan configuration's schedule.

" + }, + "securityLevel": { + "shape": "CisSecurityLevel", + "documentation": "

The CIS scan configuration's security level.

" + }, + "tags": { + "shape": "CisTagMap", + "documentation": "

The CIS scan configuration's tags.

" + }, + "targets": { + "shape": "CisTargets", + "documentation": "

The CIS scan configuration's targets.

" + } + }, + "documentation": "

The CIS scan configuration.

" + }, + "CisScanConfigurationArn": { + "type": "string", + "pattern": "^arn:aws(-us-gov|-cn)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}:owner/(o-[a-z0-9]+|[0-9]{12})/cis-configuration/[0-9a-fA-F-]+$" + }, + "CisScanConfigurationArnFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, + "CisScanConfigurationList": { + "type": "list", + "member": { + "shape": "CisScanConfiguration" + }, + "max": 100, + "min": 0 + }, + "CisScanConfigurationsSortBy": { + "type": "string", + "enum": [ + "SCAN_NAME", + "SCAN_CONFIGURATION_ARN" + ] + }, + "CisScanDateFilterList": { + "type": "list", + "member": { + "shape": "CisDateFilter" + }, + "max": 1, + "min": 1 + }, + "CisScanList": { + "type": "list", + "member": { + "shape": "CisScan" + }, + "max": 50, + "min": 0 + }, + "CisScanName": { + "type": "string", + "max": 128, + "min": 1 + }, + "CisScanNameFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, + "CisScanResultDetails": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "accountId": { + "shape": "AccountId", + "documentation": "

The CIS scan result details' account ID.

" + }, + "checkDescription": { + "shape": "String", + "documentation": "

The account ID that's associated with the CIS scan result details.

" + }, + "checkId": { + "shape": "String", + "documentation": "

The CIS scan result details' check ID.

" + }, + "findingArn": { + "shape": "CisFindingArn", + "documentation": "

The CIS scan result details' finding ARN.

" + }, + "level": { + "shape": "CisSecurityLevel", + "documentation": "

The CIS scan result details' level.

" + }, + "platform": { + "shape": "String", + "documentation": "

The CIS scan result details' platform.

" + }, + "remediation": { + "shape": "String", + "documentation": "

The CIS scan result details' remediation.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The CIS scan result details' scan ARN.

" + }, + "status": { + "shape": "CisFindingStatus", + "documentation": "

The CIS scan result details' status.

" + }, + "statusReason": { + "shape": "String", + "documentation": "

The CIS scan result details' status reason.

" + }, + "targetResourceId": { + "shape": "ResourceId", + "documentation": "

The CIS scan result details' target resource ID.

" + }, + "title": { + "shape": "String", + "documentation": "

The CIS scan result details' title.

" + } + }, + "documentation": "

The CIS scan result details.

" + }, + "CisScanResultDetailsFilterCriteria": { + "type": "structure", + "members": { + "checkIdFilters": { + "shape": "CheckIdFilterList", + "documentation": "

The criteria's check ID filters.

" + }, + "findingArnFilters": { + "shape": "CisFindingArnFilterList", + "documentation": "

The criteria's finding ARN filters.

" + }, + "findingStatusFilters": { + "shape": "CisFindingStatusFilterList", + "documentation": "

The criteria's finding status filters.

" + }, + "securityLevelFilters": { + "shape": "CisSecurityLevelFilterList", + "documentation": "

The criteria's security level filters. . Security level refers to the Benchmark levels that CIS assigns to a profile.

" + }, + "titleFilters": { + "shape": "TitleFilterList", + "documentation": "

The criteria's title filters.

" + } + }, + "documentation": "

The CIS scan result details filter criteria.

" + }, + "CisScanResultDetailsList": { + "type": "list", + "member": { + "shape": "CisScanResultDetails" + }, + "max": 1000, + "min": 1 + }, + "CisScanResultDetailsSortBy": { + "type": "string", + "enum": [ + "CHECK_ID", + "STATUS" + ] + }, + "CisScanResultsAggregatedByChecksFilterCriteria": { + "type": "structure", + "members": { + "accountIdFilters": { + "shape": "OneAccountIdFilterList", + "documentation": "

The criteria's account ID filters.

" + }, + "checkIdFilters": { + "shape": "CheckIdFilterList", + "documentation": "

The criteria's check ID filters.

" + }, + "failedResourcesFilters": { + "shape": "CisNumberFilterList", + "documentation": "

The criteria's failed resources filters.

" + }, + "platformFilters": { + "shape": "PlatformFilterList", + "documentation": "

The criteria's platform filters.

" + }, + "securityLevelFilters": { + "shape": "CisSecurityLevelFilterList", + "documentation": "

The criteria's security level filters.

" + }, + "titleFilters": { + "shape": "TitleFilterList", + "documentation": "

The criteria's title filters.

" + } + }, + "documentation": "

The scan results aggregated by checks filter criteria.

" + }, + "CisScanResultsAggregatedByChecksSortBy": { + "type": "string", + "enum": [ + "CHECK_ID", + "TITLE", + "PLATFORM", + "FAILED_COUNTS", + "SECURITY_LEVEL" + ] + }, + "CisScanResultsAggregatedByTargetResourceFilterCriteria": { + "type": "structure", + "members": { + "accountIdFilters": { + "shape": "AccountIdFilterList", + "documentation": "

The criteria's account ID filters.

" + }, + "checkIdFilters": { + "shape": "CheckIdFilterList", + "documentation": "

The criteria's check ID filters.

" + }, + "failedChecksFilters": { + "shape": "CisNumberFilterList", + "documentation": "

The criteria's failed checks filters.

" + }, + "platformFilters": { + "shape": "PlatformFilterList", + "documentation": "

The criteria's platform filters.

" + }, + "statusFilters": { + "shape": "CisResultStatusFilterList", + "documentation": "

The criteria's status filter.

" + }, + "targetResourceIdFilters": { + "shape": "ResourceIdFilterList", + "documentation": "

The criteria's target resource ID filters.

" + }, + "targetResourceTagFilters": { + "shape": "ResourceTagFilterList", + "documentation": "

The criteria's target resource tag filters.

" + }, + "targetStatusFilters": { + "shape": "TargetStatusFilterList", + "documentation": "

The criteria's target status filters.

" + }, + "targetStatusReasonFilters": { + "shape": "TargetStatusReasonFilterList", + "documentation": "

The criteria's target status reason filters.

" + } + }, + "documentation": "

The scan results aggregated by target resource filter criteria.

" + }, + "CisScanResultsAggregatedByTargetResourceSortBy": { + "type": "string", + "enum": [ + "RESOURCE_ID", + "FAILED_COUNTS", + "ACCOUNT_ID", + "PLATFORM", + "TARGET_STATUS", + "TARGET_STATUS_REASON" + ] + }, + "CisScanResultsMaxResults": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "CisScanStatus": { + "type": "string", + "enum": [ + "FAILED", + "COMPLETED", + "CANCELLED", + "IN_PROGRESS" + ] + }, + "CisScanStatusComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "CisScanStatusFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisScanStatusComparison", + "documentation": "

The filter comparison value.

" + }, + "value": { + "shape": "CisScanStatus", + "documentation": "

The filter value.

" + } + }, + "documentation": "

The CIS scan status filter.

" + }, + "CisScanStatusFilterList": { + "type": "list", + "member": { + "shape": "CisScanStatusFilter" + }, + "max": 10, + "min": 1 + }, + "CisScheduledByFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, + "CisSecurityLevel": { + "type": "string", + "enum": [ + "LEVEL_1", + "LEVEL_2" + ] + }, + "CisSecurityLevelComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "CisSecurityLevelFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisSecurityLevelComparison", + "documentation": "

The CIS security filter comparison value.

" + }, + "value": { + "shape": "CisSecurityLevel", + "documentation": "

The CIS security filter value.

" + } + }, + "documentation": "

The CIS security level filter. Security level refers to the Benchmark levels that CIS assigns to a profile.

" + }, + "CisSecurityLevelFilterList": { + "type": "list", + "member": { + "shape": "CisSecurityLevelFilter" + }, + "max": 10, + "min": 1 + }, + "CisSessionMessage": { + "type": "structure", + "required": [ + "cisRuleDetails", + "ruleId", + "status" + ], + "members": { + "cisRuleDetails": { + "shape": "CisRuleDetails", + "documentation": "

The CIS rule details for the CIS session message.

" + }, + "ruleId": { + "shape": "RuleId", + "documentation": "

The rule ID for the CIS session message.

" + }, + "status": { + "shape": "CisRuleStatus", + "documentation": "

The status of the CIS session message.

" + } + }, + "documentation": "

The CIS session message.

" + }, + "CisSessionMessages": { + "type": "list", + "member": { + "shape": "CisSessionMessage" + }, + "max": 50, + "min": 1 + }, + "CisSortOrder": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "CisStringComparison": { + "type": "string", + "enum": [ + "EQUALS", + "PREFIX", + "NOT_EQUALS" + ] + }, + "CisStringFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisStringComparison", + "documentation": "

The comparison value of the CIS string filter.

" + }, + "value": { + "shape": "String", + "documentation": "

The value of the CIS string filter.

" + } + }, + "documentation": "

The CIS string filter.

" + }, + "CisTagMap": { + "type": "map", + "key": { + "shape": "MapKey" + }, + "value": { + "shape": "MapValue" + } + }, + "CisTargetResourceAggregation": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "accountId": { + "shape": "AccountId", + "documentation": "

The account ID for the CIS target resource.

" + }, + "platform": { + "shape": "String", + "documentation": "

The platform for the CIS target resource.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN for the CIS target resource.

" + }, + "statusCounts": { + "shape": "StatusCounts", + "documentation": "

The target resource status counts.

" + }, + "targetResourceId": { + "shape": "ResourceId", + "documentation": "

The ID of the target resource.

" + }, + "targetResourceTags": { + "shape": "TargetResourceTags", + "documentation": "

The tag for the target resource.

" + }, + "targetStatus": { + "shape": "CisTargetStatus", + "documentation": "

The status of the target resource.

" + }, + "targetStatusReason": { + "shape": "CisTargetStatusReason", + "documentation": "

The reason for the target resource.

" + } + }, + "documentation": "

The CIS target resource aggregation.

" + }, + "CisTargetResourceAggregationList": { + "type": "list", + "member": { + "shape": "CisTargetResourceAggregation" + }, + "max": 1000, + "min": 1 + }, + "CisTargetStatus": { + "type": "string", + "enum": [ + "TIMED_OUT", + "CANCELLED", + "COMPLETED" + ] + }, + "CisTargetStatusComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "CisTargetStatusFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisTargetStatusComparison", + "documentation": "

The comparison value of the CIS target status filter.

" + }, + "value": { + "shape": "CisTargetStatus", + "documentation": "

The value of the CIS target status filter.

" + } + }, + "documentation": "

The CIS target status filter.

" + }, + "CisTargetStatusReason": { + "type": "string", + "enum": [ + "SCAN_IN_PROGRESS", + "UNSUPPORTED_OS", + "SSM_UNMANAGED" + ] + }, + "CisTargetStatusReasonFilter": { + "type": "structure", + "required": [ + "comparison", + "value" + ], + "members": { + "comparison": { + "shape": "CisTargetStatusComparison", + "documentation": "

The comparison value of the CIS target status reason filter.

" + }, + "value": { + "shape": "CisTargetStatusReason", + "documentation": "

The value of the CIS target status reason filter.

" + } + }, + "documentation": "

The CIS target status reason filter.

" + }, + "CisTargets": { + "type": "structure", + "members": { + "accountIds": { + "shape": "CisAccountIdList", + "documentation": "

The CIS target account ids.

" + }, + "targetResourceTags": { + "shape": "TargetResourceTags", + "documentation": "

The CIS target resource tags.

" + } + }, + "documentation": "

The CIS targets.

" + }, + "CisaAction": { + "type": "string", + "min": 0 + }, + "CisaData": { + "type": "structure", + "members": { + "action": { + "shape": "CisaAction", + "documentation": "

The remediation action recommended by CISA for this vulnerability.

" + }, + "dateAdded": { + "shape": "CisaDateAdded", + "documentation": "

The date and time CISA added this vulnerability to their catalogue.

" + }, + "dateDue": { + "shape": "CisaDateDue", + "documentation": "

The date and time CISA expects a fix to have been provided vulnerability.

" + } + }, + "documentation": "

The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.

" + }, + "CisaDateAdded": { + "type": "timestamp" + }, + "CisaDateDue": { + "type": "timestamp" + }, + "ClientToken": { + "type": "string", + "max": 64, + "min": 1 + }, + "CodeFilePath": { + "type": "structure", + "required": [ + "endLine", + "fileName", + "filePath", + "startLine" + ], + "members": { + "endLine": { + "shape": "Integer", + "documentation": "

The line number of the last line of code that a vulnerability was found in.

" + }, + "fileName": { + "shape": "NonEmptyString", + "documentation": "

The name of the file the code vulnerability was found in.

" + }, + "filePath": { + "shape": "NonEmptyString", + "documentation": "

The file path to the code that a vulnerability was found in.

" + }, + "startLine": { + "shape": "Integer", + "documentation": "

The line number of the first line of code that a vulnerability was found in.

" + } + }, + "documentation": "

Contains information on where a code vulnerability is located in your Lambda function.

" + }, + "CodeLine": { + "type": "structure", + "required": [ + "content", + "lineNumber" + ], + "members": { + "content": { + "shape": "CodeLineContentString", + "documentation": "

The content of a line of code

" + }, + "lineNumber": { + "shape": "Integer", + "documentation": "

The line number that a section of code is located at.

" + } + }, + "documentation": "

Contains information on the lines of code associated with a code snippet.

" + }, + "CodeLineContentString": { + "type": "string", + "max": 240, + "min": 0 + }, + "CodeLineList": { + "type": "list", + "member": { + "shape": "CodeLine" + }, + "max": 20, + "min": 1 + }, + "CodeSnippetError": { + "type": "structure", + "required": [ + "errorCode", + "errorMessage", "findingArn" ], "members": { @@ -2467,6 +3745,24 @@ "ComponentType": { "type": "string" }, + "ComputePlatform": { + "type": "structure", + "members": { + "product": { + "shape": "Product", + "documentation": "

The compute platform product.

" + }, + "vendor": { + "shape": "Vendor", + "documentation": "

The compute platform vendor.

" + }, + "version": { + "shape": "PlatformVersion", + "documentation": "

The compute platform version.

" + } + }, + "documentation": "

A compute platform.

" + }, "Counts": { "type": "structure", "members": { @@ -2552,7 +3848,7 @@ }, "resourceType": { "shape": "CoverageStringFilterList", - "documentation": "

An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION or AWS_ECR_REPOSITORY.

" + "documentation": "

An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or AWS_ACCOUNT.

" }, "scanStatusCode": { "shape": "CoverageStringFilterList", @@ -2690,13 +3986,71 @@ "documentation": "

The Amazon Inspector scan type covering the resource.

" } }, - "documentation": "

An object that contains details about a resource covered by Amazon Inspector.

" - }, - "CoveredResources": { - "type": "list", - "member": { - "shape": "CoveredResource" - } + "documentation": "

An object that contains details about a resource covered by Amazon Inspector.

" + }, + "CoveredResources": { + "type": "list", + "member": { + "shape": "CoveredResource" + } + }, + "CreateCisScanConfigurationRequest": { + "type": "structure", + "required": [ + "scanName", + "schedule", + "securityLevel", + "targets" + ], + "members": { + "scanName": { + "shape": "CisScanName", + "documentation": "

The scan name for the CIS scan configuration.

" + }, + "schedule": { + "shape": "Schedule", + "documentation": "

The schedule for the CIS scan configuration.

" + }, + "securityLevel": { + "shape": "CisSecurityLevel", + "documentation": "

The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.

" + }, + "tags": { + "shape": "CisTagMap", + "documentation": "

The tags for the CIS scan configuration.

" + }, + "targets": { + "shape": "CreateCisTargets", + "documentation": "

The targets for the CIS scan configuration.

" + } + } + }, + "CreateCisScanConfigurationResponse": { + "type": "structure", + "members": { + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The scan configuration ARN for the CIS scan configuration.

" + } + } + }, + "CreateCisTargets": { + "type": "structure", + "required": [ + "accountIds", + "targetResourceTags" + ], + "members": { + "accountIds": { + "shape": "TargetAccountList", + "documentation": "

The CIS target account ids.

" + }, + "targetResourceTags": { + "shape": "TargetResourceTags", + "documentation": "

The CIS target resource tags.

" + } + }, + "documentation": "

Creates CIS targets.

" }, "CreateFilterRequest": { "type": "structure", @@ -2964,6 +4318,19 @@ }, "min": 0 }, + "DailySchedule": { + "type": "structure", + "required": [ + "startTime" + ], + "members": { + "startTime": { + "shape": "Time", + "documentation": "

The schedule start time.

" + } + }, + "documentation": "

A daily schedule.

" + }, "DateFilter": { "type": "structure", "members": { @@ -2989,6 +4356,26 @@ "DateTimeTimestamp": { "type": "timestamp" }, + "Day": { + "type": "string", + "enum": [ + "SUN", + "MON", + "TUE", + "WED", + "THU", + "FRI", + "SAT" + ] + }, + "DaysList": { + "type": "list", + "member": { + "shape": "Day" + }, + "max": 7, + "min": 1 + }, "DelegatedAdmin": { "type": "structure", "members": { @@ -3032,6 +4419,30 @@ "DISABLE_IN_PROGRESS" ] }, + "DeleteCisScanConfigurationRequest": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The ARN of the CIS scan configuration.

" + } + } + }, + "DeleteCisScanConfigurationResponse": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The ARN of the CIS scan configuration.

" + } + } + }, "DeleteFilterRequest": { "type": "structure", "required": [ @@ -4354,6 +5765,96 @@ "type": "string", "pattern": "^[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$" }, + "GetCisScanReportRequest": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN.

" + }, + "targetAccounts": { + "shape": "ReportTargetAccounts", + "documentation": "

The target accounts.

" + } + } + }, + "GetCisScanReportResponse": { + "type": "structure", + "members": { + "status": { + "shape": "CisReportStatus", + "documentation": "

The status.

" + }, + "url": { + "shape": "String", + "documentation": "

The URL where the CIS scan report PDF can be downloaded.

" + } + } + }, + "GetCisScanResultDetailsMaxResults": { + "type": "integer", + "box": true, + "max": 1000, + "min": 1 + }, + "GetCisScanResultDetailsRequest": { + "type": "structure", + "required": [ + "accountId", + "scanArn", + "targetResourceId" + ], + "members": { + "accountId": { + "shape": "AccountId", + "documentation": "

The account ID.

" + }, + "filterCriteria": { + "shape": "CisScanResultDetailsFilterCriteria", + "documentation": "

The filter criteria.

" + }, + "maxResults": { + "shape": "GetCisScanResultDetailsMaxResults", + "documentation": "

The maximum number of CIS scan result details to be returned in a single page of results.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN.

" + }, + "sortBy": { + "shape": "CisScanResultDetailsSortBy", + "documentation": "

The sort by order.

" + }, + "sortOrder": { + "shape": "CisSortOrder", + "documentation": "

The sort order.

" + }, + "targetResourceId": { + "shape": "ResourceId", + "documentation": "

The target resource ID.

" + } + } + }, + "GetCisScanResultDetailsResponse": { + "type": "structure", + "members": { + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scanResultDetails": { + "shape": "CisScanResultDetailsList", + "documentation": "

The scan result details.

" + } + } + }, "GetConfigurationRequest": { "type": "structure", "members": {} @@ -4911,6 +6412,268 @@ } } }, + "ListCisScanConfigurationsFilterCriteria": { + "type": "structure", + "members": { + "scanConfigurationArnFilters": { + "shape": "CisScanConfigurationArnFilterList", + "documentation": "

The list of scan configuration ARN filters.

" + }, + "scanNameFilters": { + "shape": "CisScanNameFilterList", + "documentation": "

The list of scan name filters.

" + }, + "targetResourceTagFilters": { + "shape": "ResourceTagFilterList", + "documentation": "

The list of target resource tag filters.

" + } + }, + "documentation": "

A list of CIS scan configurations filter criteria.

" + }, + "ListCisScanConfigurationsMaxResults": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "ListCisScanConfigurationsRequest": { + "type": "structure", + "members": { + "filterCriteria": { + "shape": "ListCisScanConfigurationsFilterCriteria", + "documentation": "

The CIS scan configuration filter criteria.

" + }, + "maxResults": { + "shape": "ListCisScanConfigurationsMaxResults", + "documentation": "

The maximum number of CIS scan configurations to be returned in a single page of results.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "sortBy": { + "shape": "CisScanConfigurationsSortBy", + "documentation": "

The CIS scan configuration sort by order.

" + }, + "sortOrder": { + "shape": "CisSortOrder", + "documentation": "

The CIS scan configuration sort order order.

" + } + } + }, + "ListCisScanConfigurationsResponse": { + "type": "structure", + "members": { + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scanConfigurations": { + "shape": "CisScanConfigurationList", + "documentation": "

The CIS scan configuration scan configurations.

" + } + } + }, + "ListCisScanResultsAggregatedByChecksRequest": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "filterCriteria": { + "shape": "CisScanResultsAggregatedByChecksFilterCriteria", + "documentation": "

The filter criteria.

" + }, + "maxResults": { + "shape": "CisScanResultsMaxResults", + "documentation": "

The maximum number of scan results aggregated by checks to be returned in a single page of results.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN.

" + }, + "sortBy": { + "shape": "CisScanResultsAggregatedByChecksSortBy", + "documentation": "

The sort by order.

" + }, + "sortOrder": { + "shape": "CisSortOrder", + "documentation": "

The sort order.

" + } + } + }, + "ListCisScanResultsAggregatedByChecksResponse": { + "type": "structure", + "members": { + "checkAggregations": { + "shape": "CisCheckAggregationList", + "documentation": "

The check aggregations.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + } + } + }, + "ListCisScanResultsAggregatedByTargetResourceRequest": { + "type": "structure", + "required": [ + "scanArn" + ], + "members": { + "filterCriteria": { + "shape": "CisScanResultsAggregatedByTargetResourceFilterCriteria", + "documentation": "

The filter criteria.

" + }, + "maxResults": { + "shape": "CisScanResultsMaxResults", + "documentation": "

The maximum number of scan results aggregated by a target resource to be returned in a single page of results.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scanArn": { + "shape": "CisScanArn", + "documentation": "

The scan ARN.

" + }, + "sortBy": { + "shape": "CisScanResultsAggregatedByTargetResourceSortBy", + "documentation": "

The sort by order.

" + }, + "sortOrder": { + "shape": "CisSortOrder", + "documentation": "

The sort order.

" + } + } + }, + "ListCisScanResultsAggregatedByTargetResourceResponse": { + "type": "structure", + "members": { + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "targetResourceAggregations": { + "shape": "CisTargetResourceAggregationList", + "documentation": "

The resource aggregations.

" + } + } + }, + "ListCisScansDetailLevel": { + "type": "string", + "enum": [ + "ORGANIZATION", + "MEMBER" + ] + }, + "ListCisScansFilterCriteria": { + "type": "structure", + "members": { + "failedChecksFilters": { + "shape": "CisNumberFilterList", + "documentation": "

The list of failed checks filters.

" + }, + "scanArnFilters": { + "shape": "CisScanArnFilterList", + "documentation": "

The list of scan ARN filters.

" + }, + "scanAtFilters": { + "shape": "CisScanDateFilterList", + "documentation": "

The list of scan at filters.

" + }, + "scanConfigurationArnFilters": { + "shape": "CisScanConfigurationArnFilterList", + "documentation": "

The list of scan configuration ARN filters.

" + }, + "scanNameFilters": { + "shape": "CisScanNameFilterList", + "documentation": "

The list of scan name filters.

" + }, + "scanStatusFilters": { + "shape": "CisScanStatusFilterList", + "documentation": "

The list of scan status filters.

" + }, + "scheduledByFilters": { + "shape": "CisScheduledByFilterList", + "documentation": "

The list of scheduled by filters.

" + }, + "targetAccountIdFilters": { + "shape": "AccountIdFilterList", + "documentation": "

The list of target account ID filters.

" + }, + "targetResourceIdFilters": { + "shape": "ResourceIdFilterList", + "documentation": "

The list of target resource ID filters.

" + }, + "targetResourceTagFilters": { + "shape": "ResourceTagFilterList", + "documentation": "

The list of target resource tag filters.

" + } + }, + "documentation": "

A list of CIS scans filter criteria.

" + }, + "ListCisScansMaxResults": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "ListCisScansRequest": { + "type": "structure", + "members": { + "detailLevel": { + "shape": "ListCisScansDetailLevel", + "documentation": "

The detail applied to the CIS scan.

" + }, + "filterCriteria": { + "shape": "ListCisScansFilterCriteria", + "documentation": "

The CIS scan filter criteria.

" + }, + "maxResults": { + "shape": "ListCisScansMaxResults", + "documentation": "

The maximum number of results to be returned.

" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "sortBy": { + "shape": "ListCisScansSortBy", + "documentation": "

The CIS scans sort by order.

" + }, + "sortOrder": { + "shape": "CisSortOrder", + "documentation": "

The CIS scans sort order.

" + } + } + }, + "ListCisScansResponse": { + "type": "structure", + "members": { + "nextToken": { + "shape": "NextToken", + "documentation": "

The pagination token from a previous request that's used to retrieve the next page of results.

" + }, + "scans": { + "shape": "CisScanList", + "documentation": "

The CIS scans.

" + } + } + }, + "ListCisScansSortBy": { + "type": "string", + "enum": [ + "STATUS", + "SCHEDULED_BY", + "SCAN_START_DATE", + "FAILED_CHECKS" + ] + }, "ListCoverageMaxResults": { "type": "integer", "box": true, @@ -5395,6 +7158,24 @@ "type": "double", "min": 0 }, + "MonthlySchedule": { + "type": "structure", + "required": [ + "day", + "startTime" + ], + "members": { + "day": { + "shape": "Day", + "documentation": "

The monthly schedule's day.

" + }, + "startTime": { + "shape": "Time", + "documentation": "

The monthly schedule's start time.

" + } + }, + "documentation": "

A monthly schedule.

" + }, "NetworkPath": { "type": "structure", "members": { @@ -5472,6 +7253,19 @@ "max": 10, "min": 1 }, + "OneAccountIdFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 1, + "min": 1 + }, + "OneTimeSchedule": { + "type": "structure", + "members": {}, + "documentation": "

A one time schedule.

" + }, "Operation": { "type": "string", "enum": [ @@ -5717,10 +7511,23 @@ "max": 1024, "min": 0 }, - "Platform": { + "Platform": { + "type": "string", + "max": 1024, + "min": 1 + }, + "PlatformFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, + "PlatformVersion": { "type": "string", - "max": 1024, - "min": 1 + "max": 8, + "min": 0 }, "Port": { "type": "integer", @@ -5768,6 +7575,16 @@ "max": 10, "min": 1 }, + "Product": { + "type": "string", + "max": 32, + "min": 0 + }, + "Reason": { + "type": "string", + "max": 1024, + "min": 0 + }, "Recommendation": { "type": "structure", "members": { @@ -5840,6 +7657,14 @@ "type": "string", "pattern": "\\b[a-f0-9]{8}\\b-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-\\b[a-f0-9]{12}\\b" }, + "ReportTargetAccounts": { + "type": "list", + "member": { + "shape": "AccountId" + }, + "max": 1, + "min": 0 + }, "ReportingErrorCode": { "type": "string", "enum": [ @@ -6020,6 +7845,14 @@ "min": 10, "pattern": "(^arn:.*:ecr:.*:\\d{12}:repository\\/(?:[a-z0-9]+(?:[._-][a-z0-9]+)*\\/)*[a-z0-9]+(?:[._-][a-z0-9]+)*(\\/sha256:[a-z0-9]{64})?$)|(^i-([a-z0-9]{8}|[a-z0-9]{17}|\\\\*)$|(^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$))" }, + "ResourceIdFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, "ResourceList": { "type": "list", "member": { @@ -6183,6 +8016,14 @@ "max": 1024, "min": 1 }, + "ResourceTagFilterList": { + "type": "list", + "member": { + "shape": "TagFilter" + }, + "max": 10, + "min": 1 + }, "ResourceType": { "type": "string", "enum": [ @@ -6196,6 +8037,11 @@ "type": "integer", "box": true }, + "RuleId": { + "type": "string", + "max": 500, + "min": 1 + }, "Runtime": { "type": "string", "enum": [ @@ -6285,6 +8131,29 @@ "CODE" ] }, + "Schedule": { + "type": "structure", + "members": { + "daily": { + "shape": "DailySchedule", + "documentation": "

The schedule's daily.

" + }, + "monthly": { + "shape": "MonthlySchedule", + "documentation": "

The schedule's monthly.

" + }, + "oneTime": { + "shape": "OneTimeSchedule", + "documentation": "

The schedule's one time.

" + }, + "weekly": { + "shape": "WeeklySchedule", + "documentation": "

The schedule's weekly.

" + } + }, + "documentation": "

A schedule.

", + "union": true + }, "SearchVulnerabilitiesFilterCriteria": { "type": "structure", "required": [ @@ -6342,6 +8211,53 @@ "max": 5, "min": 0 }, + "SendCisSessionHealthRequest": { + "type": "structure", + "required": [ + "scanJobId", + "sessionToken" + ], + "members": { + "scanJobId": { + "shape": "UUID", + "documentation": "

A unique identifier for the scan job.

" + }, + "sessionToken": { + "shape": "UUID", + "documentation": "

The unique token that identifies the CIS session.

" + } + } + }, + "SendCisSessionHealthResponse": { + "type": "structure", + "members": {} + }, + "SendCisSessionTelemetryRequest": { + "type": "structure", + "required": [ + "messages", + "scanJobId", + "sessionToken" + ], + "members": { + "messages": { + "shape": "CisSessionMessages", + "documentation": "

The CIS session telemetry messages.

" + }, + "scanJobId": { + "shape": "UUID", + "documentation": "

A unique identifier for the scan job.

" + }, + "sessionToken": { + "shape": "UUID", + "documentation": "

The unique token that identifies the CIS session.

" + } + } + }, + "SendCisSessionTelemetryResponse": { + "type": "structure", + "members": {} + }, "Service": { "type": "string", "enum": [ @@ -6436,6 +8352,40 @@ "min": 71, "pattern": "^sha256:[a-z0-9]{64}$" }, + "StartCisSessionMessage": { + "type": "structure", + "required": [ + "sessionToken" + ], + "members": { + "sessionToken": { + "shape": "UUID", + "documentation": "

The unique token that identifies the CIS session.

" + } + }, + "documentation": "

The start CIS session message.

" + }, + "StartCisSessionRequest": { + "type": "structure", + "required": [ + "message", + "scanJobId" + ], + "members": { + "message": { + "shape": "StartCisSessionMessage", + "documentation": "

The start CIS session message.

" + }, + "scanJobId": { + "shape": "UUID", + "documentation": "

A unique identifier for the scan job.

" + } + } + }, + "StartCisSessionResponse": { + "type": "structure", + "members": {} + }, "State": { "type": "structure", "required": [ @@ -6470,6 +8420,24 @@ "SUSPENDED" ] }, + "StatusCounts": { + "type": "structure", + "members": { + "failed": { + "shape": "Integer", + "documentation": "

The number of checks that failed.

" + }, + "passed": { + "shape": "Integer", + "documentation": "

The number of checks that passed.

" + }, + "skipped": { + "shape": "Integer", + "documentation": "

The number of checks that were skipped.

" + } + }, + "documentation": "

The status counts.

" + }, "Step": { "type": "structure", "required": [ @@ -6496,6 +8464,113 @@ "max": 30, "min": 1 }, + "StopCisMessageProgress": { + "type": "structure", + "members": { + "errorChecks": { + "shape": "CheckCount", + "documentation": "

The progress' error checks.

" + }, + "failedChecks": { + "shape": "CheckCount", + "documentation": "

The progress' failed checks.

" + }, + "informationalChecks": { + "shape": "CheckCount", + "documentation": "

The progress' informational checks.

" + }, + "notApplicableChecks": { + "shape": "CheckCount", + "documentation": "

The progress' not applicable checks.

" + }, + "notEvaluatedChecks": { + "shape": "CheckCount", + "documentation": "

The progress' not evaluated checks.

" + }, + "successfulChecks": { + "shape": "CheckCount", + "documentation": "

The progress' successful checks.

" + }, + "totalChecks": { + "shape": "CheckCount", + "documentation": "

The progress' total checks.

" + }, + "unknownChecks": { + "shape": "CheckCount", + "documentation": "

The progress' unknown checks.

" + } + }, + "documentation": "

The stop CIS message progress.

" + }, + "StopCisSessionMessage": { + "type": "structure", + "required": [ + "progress", + "status" + ], + "members": { + "benchmarkProfile": { + "shape": "BenchmarkProfile", + "documentation": "

The message benchmark profile.

" + }, + "benchmarkVersion": { + "shape": "BenchmarkVersion", + "documentation": "

The message benchmark version.

" + }, + "computePlatform": { + "shape": "ComputePlatform", + "documentation": "

The message compute platform.

" + }, + "progress": { + "shape": "StopCisMessageProgress", + "documentation": "

The progress of the message.

" + }, + "reason": { + "shape": "Reason", + "documentation": "

The reason for the message.

" + }, + "status": { + "shape": "StopCisSessionStatus", + "documentation": "

The status of the message.

" + } + }, + "documentation": "

The stop CIS session message.

" + }, + "StopCisSessionRequest": { + "type": "structure", + "required": [ + "message", + "scanJobId", + "sessionToken" + ], + "members": { + "message": { + "shape": "StopCisSessionMessage", + "documentation": "

The stop CIS session message.

" + }, + "scanJobId": { + "shape": "UUID", + "documentation": "

A unique identifier for the scan job.

" + }, + "sessionToken": { + "shape": "UUID", + "documentation": "

The unique token that identifies the CIS session.

" + } + } + }, + "StopCisSessionResponse": { + "type": "structure", + "members": {} + }, + "StopCisSessionStatus": { + "type": "string", + "enum": [ + "SUCCESS", + "FAILED", + "INTERRUPTED", + "UNSUPPORTED_OS" + ] + }, "String": { "type": "string" }, @@ -6588,6 +8663,35 @@ "max": 5, "min": 1 }, + "TagComparison": { + "type": "string", + "enum": [ + "EQUALS" + ] + }, + "TagFilter": { + "type": "structure", + "required": [ + "comparison", + "key", + "value" + ], + "members": { + "comparison": { + "shape": "TagComparison", + "documentation": "

The tag filter comparison value.

" + }, + "key": { + "shape": "NonEmptyString", + "documentation": "

The tag filter key.

" + }, + "value": { + "shape": "NonEmptyString", + "documentation": "

The tag filter value.

" + } + }, + "documentation": "

The tag filter.

" + }, "TagKey": { "type": "string", "max": 128, @@ -6640,11 +8744,58 @@ "type": "structure", "members": {} }, + "TagValueList": { + "type": "list", + "member": { + "shape": "String" + }, + "max": 5, + "min": 1 + }, "Target": { "type": "string", "max": 50, "min": 0 }, + "TargetAccount": { + "type": "string", + "pattern": "^\\d{12}|ALL_ACCOUNTS|SELF$" + }, + "TargetAccountList": { + "type": "list", + "member": { + "shape": "TargetAccount" + }, + "max": 10000, + "min": 1 + }, + "TargetResourceTags": { + "type": "map", + "key": { + "shape": "NonEmptyString" + }, + "value": { + "shape": "TagValueList" + }, + "max": 5, + "min": 1 + }, + "TargetStatusFilterList": { + "type": "list", + "member": { + "shape": "CisTargetStatusFilter" + }, + "max": 10, + "min": 1 + }, + "TargetStatusReasonFilterList": { + "type": "list", + "member": { + "shape": "CisTargetStatusReasonFilter" + }, + "max": 10, + "min": 1 + }, "Targets": { "type": "list", "member": { @@ -6652,9 +8803,36 @@ }, "min": 0 }, + "Time": { + "type": "structure", + "required": [ + "timeOfDay", + "timezone" + ], + "members": { + "timeOfDay": { + "shape": "TimeOfDay", + "documentation": "

The time of day in 24-hour format (00:00).

" + }, + "timezone": { + "shape": "Timezone", + "documentation": "

The timezone.

" + } + }, + "documentation": "

The time.

" + }, + "TimeOfDay": { + "type": "string", + "pattern": "^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$" + }, "Timestamp": { "type": "timestamp" }, + "Timezone": { + "type": "string", + "max": 50, + "min": 1 + }, "TitleAggregation": { "type": "structure", "members": { @@ -6710,6 +8888,14 @@ }, "documentation": "

A response that contains details on the results of a finding aggregation by title.

" }, + "TitleFilterList": { + "type": "list", + "member": { + "shape": "CisStringFilter" + }, + "max": 10, + "min": 1 + }, "TitleSortBy": { "type": "string", "enum": [ @@ -6740,6 +8926,10 @@ }, "min": 0 }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, "UntagResourceRequest": { "type": "structure", "required": [ @@ -6765,6 +8955,60 @@ "type": "structure", "members": {} }, + "UpdateCisScanConfigurationRequest": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The CIS scan configuration ARN.

" + }, + "scanName": { + "shape": "CisScanName", + "documentation": "

The scan name for the CIS scan configuration.

" + }, + "schedule": { + "shape": "Schedule", + "documentation": "

The schedule for the CIS scan configuration.

" + }, + "securityLevel": { + "shape": "CisSecurityLevel", + "documentation": "

The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.

" + }, + "targets": { + "shape": "UpdateCisTargets", + "documentation": "

The targets for the CIS scan configuration.

" + } + } + }, + "UpdateCisScanConfigurationResponse": { + "type": "structure", + "required": [ + "scanConfigurationArn" + ], + "members": { + "scanConfigurationArn": { + "shape": "CisScanConfigurationArn", + "documentation": "

The CIS scan configuration ARN.

" + } + } + }, + "UpdateCisTargets": { + "type": "structure", + "members": { + "accountIds": { + "shape": "TargetAccountList", + "documentation": "

The target account ids.

" + }, + "targetResourceTags": { + "shape": "TargetResourceTags", + "documentation": "

The target resource tags.

" + } + }, + "documentation": "

Updates CIS targets.

" + }, "UpdateConfigurationRequest": { "type": "structure", "required": [ @@ -6999,6 +9243,11 @@ "type": "double", "min": 0 }, + "Vendor": { + "type": "string", + "max": 16, + "min": 0 + }, "VendorCreatedAt": { "type": "timestamp" }, @@ -7215,6 +9464,24 @@ "type": "string", "max": 1024, "min": 1 + }, + "WeeklySchedule": { + "type": "structure", + "required": [ + "days", + "startTime" + ], + "members": { + "days": { + "shape": "DaysList", + "documentation": "

The weekly schedule's days.

" + }, + "startTime": { + "shape": "Time", + "documentation": "

The weekly schedule's start time.

" + } + }, + "documentation": "

A weekly schedule.

" } }, "documentation": "

Amazon Inspector is a vulnerability discovery service that automates continuous scanning for security vulnerabilities within your Amazon EC2, Amazon ECR, and Amazon Web Services Lambda environments.

" diff --git a/apis/inspector2-2020-06-08.paginators.json b/apis/inspector2-2020-06-08.paginators.json index f6aaa6d4d0..f3abea9ff9 100644 --- a/apis/inspector2-2020-06-08.paginators.json +++ b/apis/inspector2-2020-06-08.paginators.json @@ -1,11 +1,41 @@ { "pagination": { + "GetCisScanResultDetails": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "scanResultDetails" + }, "ListAccountPermissions": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "permissions" }, + "ListCisScanConfigurations": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "scanConfigurations" + }, + "ListCisScanResultsAggregatedByChecks": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "checkAggregations" + }, + "ListCisScanResultsAggregatedByTargetResource": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "targetResourceAggregations" + }, + "ListCisScans": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "scans" + }, "ListCoverage": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/clients/inspector2.d.ts b/clients/inspector2.d.ts index 7b5c81aee6..4c2744ce93 100644 --- a/clients/inspector2.d.ts +++ b/clients/inspector2.d.ts @@ -83,6 +83,14 @@ declare class Inspector2 extends Service { * Cancels a software bill of materials (SBOM) report. */ cancelSbomExport(callback?: (err: AWSError, data: Inspector2.Types.CancelSbomExportResponse) => void): Request; + /** + * Creates a CIS scan configuration. + */ + createCisScanConfiguration(params: Inspector2.Types.CreateCisScanConfigurationRequest, callback?: (err: AWSError, data: Inspector2.Types.CreateCisScanConfigurationResponse) => void): Request; + /** + * Creates a CIS scan configuration. + */ + createCisScanConfiguration(callback?: (err: AWSError, data: Inspector2.Types.CreateCisScanConfigurationResponse) => void): Request; /** * Creates a filter resource using specified filter criteria. When the filter action is set to SUPPRESS this action creates a suppression rule. */ @@ -107,6 +115,14 @@ declare class Inspector2 extends Service { * Creates a software bill of materials (SBOM) report. */ createSbomExport(callback?: (err: AWSError, data: Inspector2.Types.CreateSbomExportResponse) => void): Request; + /** + * Deletes a CIS scan configuration. + */ + deleteCisScanConfiguration(params: Inspector2.Types.DeleteCisScanConfigurationRequest, callback?: (err: AWSError, data: Inspector2.Types.DeleteCisScanConfigurationResponse) => void): Request; + /** + * Deletes a CIS scan configuration. + */ + deleteCisScanConfiguration(callback?: (err: AWSError, data: Inspector2.Types.DeleteCisScanConfigurationResponse) => void): Request; /** * Deletes a filter resource. */ @@ -163,6 +179,22 @@ declare class Inspector2 extends Service { * Enables the Amazon Inspector delegated administrator for your Organizations organization. */ enableDelegatedAdminAccount(callback?: (err: AWSError, data: Inspector2.Types.EnableDelegatedAdminAccountResponse) => void): Request; + /** + * Retrieves a CIS scan report. + */ + getCisScanReport(params: Inspector2.Types.GetCisScanReportRequest, callback?: (err: AWSError, data: Inspector2.Types.GetCisScanReportResponse) => void): Request; + /** + * Retrieves a CIS scan report. + */ + getCisScanReport(callback?: (err: AWSError, data: Inspector2.Types.GetCisScanReportResponse) => void): Request; + /** + * Retrieves CIS scan result details. + */ + getCisScanResultDetails(params: Inspector2.Types.GetCisScanResultDetailsRequest, callback?: (err: AWSError, data: Inspector2.Types.GetCisScanResultDetailsResponse) => void): Request; + /** + * Retrieves CIS scan result details. + */ + getCisScanResultDetails(callback?: (err: AWSError, data: Inspector2.Types.GetCisScanResultDetailsResponse) => void): Request; /** * Retrieves setting configurations for Inspector scans. */ @@ -227,6 +259,38 @@ declare class Inspector2 extends Service { * Lists the permissions an account has to configure Amazon Inspector. */ listAccountPermissions(callback?: (err: AWSError, data: Inspector2.Types.ListAccountPermissionsResponse) => void): Request; + /** + * Lists CIS scan configurations. + */ + listCisScanConfigurations(params: Inspector2.Types.ListCisScanConfigurationsRequest, callback?: (err: AWSError, data: Inspector2.Types.ListCisScanConfigurationsResponse) => void): Request; + /** + * Lists CIS scan configurations. + */ + listCisScanConfigurations(callback?: (err: AWSError, data: Inspector2.Types.ListCisScanConfigurationsResponse) => void): Request; + /** + * Lists scan results aggregated by checks. + */ + listCisScanResultsAggregatedByChecks(params: Inspector2.Types.ListCisScanResultsAggregatedByChecksRequest, callback?: (err: AWSError, data: Inspector2.Types.ListCisScanResultsAggregatedByChecksResponse) => void): Request; + /** + * Lists scan results aggregated by checks. + */ + listCisScanResultsAggregatedByChecks(callback?: (err: AWSError, data: Inspector2.Types.ListCisScanResultsAggregatedByChecksResponse) => void): Request; + /** + * Lists scan results aggregated by a target resource. + */ + listCisScanResultsAggregatedByTargetResource(params: Inspector2.Types.ListCisScanResultsAggregatedByTargetResourceRequest, callback?: (err: AWSError, data: Inspector2.Types.ListCisScanResultsAggregatedByTargetResourceResponse) => void): Request; + /** + * Lists scan results aggregated by a target resource. + */ + listCisScanResultsAggregatedByTargetResource(callback?: (err: AWSError, data: Inspector2.Types.ListCisScanResultsAggregatedByTargetResourceResponse) => void): Request; + /** + * Returns a CIS scan list. + */ + listCisScans(params: Inspector2.Types.ListCisScansRequest, callback?: (err: AWSError, data: Inspector2.Types.ListCisScansResponse) => void): Request; + /** + * Returns a CIS scan list. + */ + listCisScans(callback?: (err: AWSError, data: Inspector2.Types.ListCisScansResponse) => void): Request; /** * Lists coverage details for you environment. */ @@ -315,6 +379,38 @@ declare class Inspector2 extends Service { * Lists Amazon Inspector coverage details for a specific vulnerability. */ searchVulnerabilities(callback?: (err: AWSError, data: Inspector2.Types.SearchVulnerabilitiesResponse) => void): Request; + /** + * Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + sendCisSessionHealth(params: Inspector2.Types.SendCisSessionHealthRequest, callback?: (err: AWSError, data: Inspector2.Types.SendCisSessionHealthResponse) => void): Request; + /** + * Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + sendCisSessionHealth(callback?: (err: AWSError, data: Inspector2.Types.SendCisSessionHealthResponse) => void): Request; + /** + * Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + sendCisSessionTelemetry(params: Inspector2.Types.SendCisSessionTelemetryRequest, callback?: (err: AWSError, data: Inspector2.Types.SendCisSessionTelemetryResponse) => void): Request; + /** + * Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + sendCisSessionTelemetry(callback?: (err: AWSError, data: Inspector2.Types.SendCisSessionTelemetryResponse) => void): Request; + /** + * Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + startCisSession(params: Inspector2.Types.StartCisSessionRequest, callback?: (err: AWSError, data: Inspector2.Types.StartCisSessionResponse) => void): Request; + /** + * Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + startCisSession(callback?: (err: AWSError, data: Inspector2.Types.StartCisSessionResponse) => void): Request; + /** + * Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + stopCisSession(params: Inspector2.Types.StopCisSessionRequest, callback?: (err: AWSError, data: Inspector2.Types.StopCisSessionResponse) => void): Request; + /** + * Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service. + */ + stopCisSession(callback?: (err: AWSError, data: Inspector2.Types.StopCisSessionResponse) => void): Request; /** * Adds tags to a resource. */ @@ -331,6 +427,14 @@ declare class Inspector2 extends Service { * Removes tags from a resource. */ untagResource(callback?: (err: AWSError, data: Inspector2.Types.UntagResourceResponse) => void): Request; + /** + * Updates a CIS scan configuration. + */ + updateCisScanConfiguration(params: Inspector2.Types.UpdateCisScanConfigurationRequest, callback?: (err: AWSError, data: Inspector2.Types.UpdateCisScanConfigurationResponse) => void): Request; + /** + * Updates a CIS scan configuration. + */ + updateCisScanConfiguration(callback?: (err: AWSError, data: Inspector2.Types.UpdateCisScanConfigurationResponse) => void): Request; /** * Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting. */ @@ -424,6 +528,7 @@ declare namespace Inspector2 { severityCounts?: SeverityCounts; } export type AccountId = string; + export type AccountIdFilterList = CisStringFilter[]; export type AccountIdSet = AccountId[]; export type AccountList = Account[]; export type AccountSortBy = "CRITICAL"|"HIGH"|"ALL"|string; @@ -901,6 +1006,8 @@ declare namespace Inspector2 { */ failedAccountIds?: FailedMemberAccountEc2DeepInspectionStatusStateList; } + export type BenchmarkProfile = string; + export type BenchmarkVersion = string; export type Boolean = boolean; export interface CancelFindingsReportRequest { /** @@ -926,6 +1033,443 @@ declare namespace Inspector2 { */ reportId?: ReportId; } + export type CheckCount = number; + export type CheckIdFilterList = CisStringFilter[]; + export type CisAccountIdList = AccountId[]; + export interface CisCheckAggregation { + /** + * The account ID for the CIS check. + */ + accountId?: AccountId; + /** + * The description for the CIS check. + */ + checkDescription?: String; + /** + * The check ID for the CIS check. + */ + checkId?: String; + /** + * The CIS check level. + */ + level?: CisSecurityLevel; + /** + * The CIS check platform. + */ + platform?: String; + /** + * The scan ARN for the CIS check scan ARN. + */ + scanArn: CisScanArn; + /** + * The CIS check status counts. + */ + statusCounts?: StatusCounts; + /** + * The CIS check title. + */ + title?: String; + } + export type CisCheckAggregationList = CisCheckAggregation[]; + export interface CisDateFilter { + /** + * The CIS date filter's earliest scan start time. + */ + earliestScanStartTime?: Timestamp; + /** + * The CIS date filter's latest scan start time. + */ + latestScanStartTime?: Timestamp; + } + export type CisFindingArn = string; + export type CisFindingArnFilterList = CisStringFilter[]; + export type CisFindingStatus = "PASSED"|"FAILED"|"SKIPPED"|string; + export type CisFindingStatusComparison = "EQUALS"|string; + export interface CisFindingStatusFilter { + /** + * The comparison value of the CIS finding status filter. + */ + comparison: CisFindingStatusComparison; + /** + * The value of the CIS finding status filter. + */ + value: CisFindingStatus; + } + export type CisFindingStatusFilterList = CisFindingStatusFilter[]; + export interface CisNumberFilter { + /** + * The CIS number filter's lower inclusive. + */ + lowerInclusive?: Integer; + /** + * The CIS number filter's upper inclusive. + */ + upperInclusive?: Integer; + } + export type CisNumberFilterList = CisNumberFilter[]; + export type CisOwnerId = string; + export type CisReportStatus = "SUCCEEDED"|"FAILED"|"IN_PROGRESS"|string; + export type CisResultStatus = "PASSED"|"FAILED"|"SKIPPED"|string; + export type CisResultStatusComparison = "EQUALS"|string; + export interface CisResultStatusFilter { + /** + * The comparison value of the CIS result status filter. + */ + comparison: CisResultStatusComparison; + /** + * The value of the CIS result status filter. + */ + value: CisResultStatus; + } + export type CisResultStatusFilterList = CisResultStatusFilter[]; + export type CisRuleDetails = Buffer|Uint8Array|Blob|string; + export type CisRuleStatus = "FAILED"|"PASSED"|"NOT_EVALUATED"|"INFORMATIONAL"|"UNKNOWN"|"NOT_APPLICABLE"|"ERROR"|string; + export interface CisScan { + /** + * The CIS scan's failed checks. + */ + failedChecks?: Integer; + /** + * The CIS scan's ARN. + */ + scanArn: CisScanArn; + /** + * The CIS scan's configuration ARN. + */ + scanConfigurationArn: CisScanConfigurationArn; + /** + * The CIS scan's date. + */ + scanDate?: Timestamp; + /** + * The the name of the scan configuration that's associated with this scan. + */ + scanName?: CisScanName; + /** + * The account or organization that schedules the CIS scan. + */ + scheduledBy?: String; + /** + * The security level for the CIS scan. Security level refers to the Benchmark levels that CIS assigns to a profile. + */ + securityLevel?: CisSecurityLevel; + /** + * The CIS scan's status. + */ + status?: CisScanStatus; + /** + * The CIS scan's targets. + */ + targets?: CisTargets; + /** + * The CIS scan's total checks. + */ + totalChecks?: Integer; + } + export type CisScanArn = string; + export type CisScanArnFilterList = CisStringFilter[]; + export interface CisScanConfiguration { + /** + * The CIS scan configuration's owner ID. + */ + ownerId?: CisOwnerId; + /** + * The CIS scan configuration's scan configuration ARN. + */ + scanConfigurationArn: CisScanConfigurationArn; + /** + * The name of the CIS scan configuration. + */ + scanName?: CisScanName; + /** + * The CIS scan configuration's schedule. + */ + schedule?: Schedule; + /** + * The CIS scan configuration's security level. + */ + securityLevel?: CisSecurityLevel; + /** + * The CIS scan configuration's tags. + */ + tags?: CisTagMap; + /** + * The CIS scan configuration's targets. + */ + targets?: CisTargets; + } + export type CisScanConfigurationArn = string; + export type CisScanConfigurationArnFilterList = CisStringFilter[]; + export type CisScanConfigurationList = CisScanConfiguration[]; + export type CisScanConfigurationsSortBy = "SCAN_NAME"|"SCAN_CONFIGURATION_ARN"|string; + export type CisScanDateFilterList = CisDateFilter[]; + export type CisScanList = CisScan[]; + export type CisScanName = string; + export type CisScanNameFilterList = CisStringFilter[]; + export interface CisScanResultDetails { + /** + * The CIS scan result details' account ID. + */ + accountId?: AccountId; + /** + * The account ID that's associated with the CIS scan result details. + */ + checkDescription?: String; + /** + * The CIS scan result details' check ID. + */ + checkId?: String; + /** + * The CIS scan result details' finding ARN. + */ + findingArn?: CisFindingArn; + /** + * The CIS scan result details' level. + */ + level?: CisSecurityLevel; + /** + * The CIS scan result details' platform. + */ + platform?: String; + /** + * The CIS scan result details' remediation. + */ + remediation?: String; + /** + * The CIS scan result details' scan ARN. + */ + scanArn: CisScanArn; + /** + * The CIS scan result details' status. + */ + status?: CisFindingStatus; + /** + * The CIS scan result details' status reason. + */ + statusReason?: String; + /** + * The CIS scan result details' target resource ID. + */ + targetResourceId?: ResourceId; + /** + * The CIS scan result details' title. + */ + title?: String; + } + export interface CisScanResultDetailsFilterCriteria { + /** + * The criteria's check ID filters. + */ + checkIdFilters?: CheckIdFilterList; + /** + * The criteria's finding ARN filters. + */ + findingArnFilters?: CisFindingArnFilterList; + /** + * The criteria's finding status filters. + */ + findingStatusFilters?: CisFindingStatusFilterList; + /** + * The criteria's security level filters. . Security level refers to the Benchmark levels that CIS assigns to a profile. + */ + securityLevelFilters?: CisSecurityLevelFilterList; + /** + * The criteria's title filters. + */ + titleFilters?: TitleFilterList; + } + export type CisScanResultDetailsList = CisScanResultDetails[]; + export type CisScanResultDetailsSortBy = "CHECK_ID"|"STATUS"|string; + export interface CisScanResultsAggregatedByChecksFilterCriteria { + /** + * The criteria's account ID filters. + */ + accountIdFilters?: OneAccountIdFilterList; + /** + * The criteria's check ID filters. + */ + checkIdFilters?: CheckIdFilterList; + /** + * The criteria's failed resources filters. + */ + failedResourcesFilters?: CisNumberFilterList; + /** + * The criteria's platform filters. + */ + platformFilters?: PlatformFilterList; + /** + * The criteria's security level filters. + */ + securityLevelFilters?: CisSecurityLevelFilterList; + /** + * The criteria's title filters. + */ + titleFilters?: TitleFilterList; + } + export type CisScanResultsAggregatedByChecksSortBy = "CHECK_ID"|"TITLE"|"PLATFORM"|"FAILED_COUNTS"|"SECURITY_LEVEL"|string; + export interface CisScanResultsAggregatedByTargetResourceFilterCriteria { + /** + * The criteria's account ID filters. + */ + accountIdFilters?: AccountIdFilterList; + /** + * The criteria's check ID filters. + */ + checkIdFilters?: CheckIdFilterList; + /** + * The criteria's failed checks filters. + */ + failedChecksFilters?: CisNumberFilterList; + /** + * The criteria's platform filters. + */ + platformFilters?: PlatformFilterList; + /** + * The criteria's status filter. + */ + statusFilters?: CisResultStatusFilterList; + /** + * The criteria's target resource ID filters. + */ + targetResourceIdFilters?: ResourceIdFilterList; + /** + * The criteria's target resource tag filters. + */ + targetResourceTagFilters?: ResourceTagFilterList; + /** + * The criteria's target status filters. + */ + targetStatusFilters?: TargetStatusFilterList; + /** + * The criteria's target status reason filters. + */ + targetStatusReasonFilters?: TargetStatusReasonFilterList; + } + export type CisScanResultsAggregatedByTargetResourceSortBy = "RESOURCE_ID"|"FAILED_COUNTS"|"ACCOUNT_ID"|"PLATFORM"|"TARGET_STATUS"|"TARGET_STATUS_REASON"|string; + export type CisScanResultsMaxResults = number; + export type CisScanStatus = "FAILED"|"COMPLETED"|"CANCELLED"|"IN_PROGRESS"|string; + export type CisScanStatusComparison = "EQUALS"|string; + export interface CisScanStatusFilter { + /** + * The filter comparison value. + */ + comparison: CisScanStatusComparison; + /** + * The filter value. + */ + value: CisScanStatus; + } + export type CisScanStatusFilterList = CisScanStatusFilter[]; + export type CisScheduledByFilterList = CisStringFilter[]; + export type CisSecurityLevel = "LEVEL_1"|"LEVEL_2"|string; + export type CisSecurityLevelComparison = "EQUALS"|string; + export interface CisSecurityLevelFilter { + /** + * The CIS security filter comparison value. + */ + comparison: CisSecurityLevelComparison; + /** + * The CIS security filter value. + */ + value: CisSecurityLevel; + } + export type CisSecurityLevelFilterList = CisSecurityLevelFilter[]; + export interface CisSessionMessage { + /** + * The CIS rule details for the CIS session message. + */ + cisRuleDetails: CisRuleDetails; + /** + * The rule ID for the CIS session message. + */ + ruleId: RuleId; + /** + * The status of the CIS session message. + */ + status: CisRuleStatus; + } + export type CisSessionMessages = CisSessionMessage[]; + export type CisSortOrder = "ASC"|"DESC"|string; + export type CisStringComparison = "EQUALS"|"PREFIX"|"NOT_EQUALS"|string; + export interface CisStringFilter { + /** + * The comparison value of the CIS string filter. + */ + comparison: CisStringComparison; + /** + * The value of the CIS string filter. + */ + value: String; + } + export type CisTagMap = {[key: string]: MapValue}; + export interface CisTargetResourceAggregation { + /** + * The account ID for the CIS target resource. + */ + accountId?: AccountId; + /** + * The platform for the CIS target resource. + */ + platform?: String; + /** + * The scan ARN for the CIS target resource. + */ + scanArn: CisScanArn; + /** + * The target resource status counts. + */ + statusCounts?: StatusCounts; + /** + * The ID of the target resource. + */ + targetResourceId?: ResourceId; + /** + * The tag for the target resource. + */ + targetResourceTags?: TargetResourceTags; + /** + * The status of the target resource. + */ + targetStatus?: CisTargetStatus; + /** + * The reason for the target resource. + */ + targetStatusReason?: CisTargetStatusReason; + } + export type CisTargetResourceAggregationList = CisTargetResourceAggregation[]; + export type CisTargetStatus = "TIMED_OUT"|"CANCELLED"|"COMPLETED"|string; + export type CisTargetStatusComparison = "EQUALS"|string; + export interface CisTargetStatusFilter { + /** + * The comparison value of the CIS target status filter. + */ + comparison: CisTargetStatusComparison; + /** + * The value of the CIS target status filter. + */ + value: CisTargetStatus; + } + export type CisTargetStatusReason = "SCAN_IN_PROGRESS"|"UNSUPPORTED_OS"|"SSM_UNMANAGED"|string; + export interface CisTargetStatusReasonFilter { + /** + * The comparison value of the CIS target status reason filter. + */ + comparison: CisTargetStatusComparison; + /** + * The value of the CIS target status reason filter. + */ + value: CisTargetStatusReason; + } + export interface CisTargets { + /** + * The CIS target account ids. + */ + accountIds?: CisAccountIdList; + /** + * The CIS target resource tags. + */ + targetResourceTags?: TargetResourceTags; + } export type CisaAction = string; export interface CisaData { /** @@ -1049,6 +1593,20 @@ declare namespace Inspector2 { } export type Component = string; export type ComponentType = string; + export interface ComputePlatform { + /** + * The compute platform product. + */ + product?: Product; + /** + * The compute platform vendor. + */ + vendor?: Vendor; + /** + * The compute platform version. + */ + version?: PlatformVersion; + } export interface Counts { /** * The number of resources. @@ -1109,7 +1667,7 @@ declare namespace Inspector2 { */ resourceId?: CoverageStringFilterList; /** - * An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION or AWS_ECR_REPOSITORY. + * An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or AWS_ACCOUNT. */ resourceType?: CoverageStringFilterList; /** @@ -1186,6 +1744,44 @@ declare namespace Inspector2 { scanType: ScanType; } export type CoveredResources = CoveredResource[]; + export interface CreateCisScanConfigurationRequest { + /** + * The scan name for the CIS scan configuration. + */ + scanName: CisScanName; + /** + * The schedule for the CIS scan configuration. + */ + schedule: Schedule; + /** + * The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile. + */ + securityLevel: CisSecurityLevel; + /** + * The tags for the CIS scan configuration. + */ + tags?: CisTagMap; + /** + * The targets for the CIS scan configuration. + */ + targets: CreateCisTargets; + } + export interface CreateCisScanConfigurationResponse { + /** + * The scan configuration ARN for the CIS scan configuration. + */ + scanConfigurationArn?: CisScanConfigurationArn; + } + export interface CreateCisTargets { + /** + * The CIS target account ids. + */ + accountIds: TargetAccountList; + /** + * The CIS target resource tags. + */ + targetResourceTags: TargetResourceTags; + } export interface CreateFilterRequest { /** * Defines the action that is to be applied to the findings that match the filter. @@ -1339,6 +1935,12 @@ declare namespace Inspector2 { export type Cwe = string; export type CweList = NonEmptyString[]; export type Cwes = Cwe[]; + export interface DailySchedule { + /** + * The schedule start time. + */ + startTime: Time; + } export interface DateFilter { /** * A timestamp representing the end of the time period filtered on. @@ -1351,6 +1953,8 @@ declare namespace Inspector2 { } export type DateFilterList = DateFilter[]; export type DateTimeTimestamp = Date; + export type Day = "SUN"|"MON"|"TUE"|"WED"|"THU"|"FRI"|"SAT"|string; + export type DaysList = Day[]; export interface DelegatedAdmin { /** * The Amazon Web Services account ID of the Amazon Inspector delegated administrator for your organization. @@ -1373,6 +1977,18 @@ declare namespace Inspector2 { } export type DelegatedAdminAccountList = DelegatedAdminAccount[]; export type DelegatedAdminStatus = "ENABLED"|"DISABLE_IN_PROGRESS"|string; + export interface DeleteCisScanConfigurationRequest { + /** + * The ARN of the CIS scan configuration. + */ + scanConfigurationArn: CisScanConfigurationArn; + } + export interface DeleteCisScanConfigurationResponse { + /** + * The ARN of the CIS scan configuration. + */ + scanConfigurationArn: CisScanConfigurationArn; + } export interface DeleteFilterRequest { /** * The Amazon Resource Number (ARN) of the filter to be deleted. @@ -2112,49 +2728,114 @@ declare namespace Inspector2 { */ accountId: MeteringAccountId; /** - * Contains information about the Amazon Inspector free trial for an account. + * Contains information about the Amazon Inspector free trial for an account. + */ + freeTrialInfo: FreeTrialInfoList; + } + export type FreeTrialAccountInfoList = FreeTrialAccountInfo[]; + export interface FreeTrialInfo { + /** + * The date and time that the Amazon Inspector free trail ends for a given account. + */ + end: Timestamp; + /** + * The date and time that the Amazon Inspector free trail started for a given account. + */ + start: Timestamp; + /** + * The order to sort results by. + */ + status: FreeTrialStatus; + /** + * The type of scan covered by the Amazon Inspector free trail. + */ + type: FreeTrialType; + } + export interface FreeTrialInfoError { + /** + * The account associated with the Amazon Inspector free trial information. + */ + accountId: MeteringAccountId; + /** + * The error code. + */ + code: FreeTrialInfoErrorCode; + /** + * The error message returned. + */ + message: String; + } + export type FreeTrialInfoErrorCode = "ACCESS_DENIED"|"INTERNAL_ERROR"|string; + export type FreeTrialInfoErrorList = FreeTrialInfoError[]; + export type FreeTrialInfoList = FreeTrialInfo[]; + export type FreeTrialStatus = "ACTIVE"|"INACTIVE"|string; + export type FreeTrialType = "EC2"|"ECR"|"LAMBDA"|"LAMBDA_CODE"|string; + export type FunctionName = string; + export interface GetCisScanReportRequest { + /** + * The scan ARN. + */ + scanArn: CisScanArn; + /** + * The target accounts. + */ + targetAccounts?: ReportTargetAccounts; + } + export interface GetCisScanReportResponse { + /** + * The status. + */ + status?: CisReportStatus; + /** + * The URL where the CIS scan report PDF can be downloaded. + */ + url?: String; + } + export type GetCisScanResultDetailsMaxResults = number; + export interface GetCisScanResultDetailsRequest { + /** + * The account ID. + */ + accountId: AccountId; + /** + * The filter criteria. + */ + filterCriteria?: CisScanResultDetailsFilterCriteria; + /** + * The maximum number of CIS scan result details to be returned in a single page of results. */ - freeTrialInfo: FreeTrialInfoList; - } - export type FreeTrialAccountInfoList = FreeTrialAccountInfo[]; - export interface FreeTrialInfo { + maxResults?: GetCisScanResultDetailsMaxResults; /** - * The date and time that the Amazon Inspector free trail ends for a given account. + * The pagination token from a previous request that's used to retrieve the next page of results. */ - end: Timestamp; + nextToken?: NextToken; /** - * The date and time that the Amazon Inspector free trail started for a given account. + * The scan ARN. */ - start: Timestamp; + scanArn: CisScanArn; /** - * The order to sort results by. + * The sort by order. */ - status: FreeTrialStatus; + sortBy?: CisScanResultDetailsSortBy; /** - * The type of scan covered by the Amazon Inspector free trail. + * The sort order. */ - type: FreeTrialType; - } - export interface FreeTrialInfoError { + sortOrder?: CisSortOrder; /** - * The account associated with the Amazon Inspector free trial information. + * The target resource ID. */ - accountId: MeteringAccountId; + targetResourceId: ResourceId; + } + export interface GetCisScanResultDetailsResponse { /** - * The error code. + * The pagination token from a previous request that's used to retrieve the next page of results. */ - code: FreeTrialInfoErrorCode; + nextToken?: NextToken; /** - * The error message returned. + * The scan result details. */ - message: String; + scanResultDetails?: CisScanResultDetailsList; } - export type FreeTrialInfoErrorCode = "ACCESS_DENIED"|"INTERNAL_ERROR"|string; - export type FreeTrialInfoErrorList = FreeTrialInfoError[]; - export type FreeTrialInfoList = FreeTrialInfo[]; - export type FreeTrialStatus = "ACTIVE"|"INACTIVE"|string; - export type FreeTrialType = "EC2"|"ECR"|"LAMBDA"|"LAMBDA_CODE"|string; - export type FunctionName = string; export interface GetConfigurationRequest { } export interface GetConfigurationResponse { @@ -2501,6 +3182,206 @@ declare namespace Inspector2 { */ permissions: Permissions; } + export interface ListCisScanConfigurationsFilterCriteria { + /** + * The list of scan configuration ARN filters. + */ + scanConfigurationArnFilters?: CisScanConfigurationArnFilterList; + /** + * The list of scan name filters. + */ + scanNameFilters?: CisScanNameFilterList; + /** + * The list of target resource tag filters. + */ + targetResourceTagFilters?: ResourceTagFilterList; + } + export type ListCisScanConfigurationsMaxResults = number; + export interface ListCisScanConfigurationsRequest { + /** + * The CIS scan configuration filter criteria. + */ + filterCriteria?: ListCisScanConfigurationsFilterCriteria; + /** + * The maximum number of CIS scan configurations to be returned in a single page of results. + */ + maxResults?: ListCisScanConfigurationsMaxResults; + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The CIS scan configuration sort by order. + */ + sortBy?: CisScanConfigurationsSortBy; + /** + * The CIS scan configuration sort order order. + */ + sortOrder?: CisSortOrder; + } + export interface ListCisScanConfigurationsResponse { + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The CIS scan configuration scan configurations. + */ + scanConfigurations?: CisScanConfigurationList; + } + export interface ListCisScanResultsAggregatedByChecksRequest { + /** + * The filter criteria. + */ + filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria; + /** + * The maximum number of scan results aggregated by checks to be returned in a single page of results. + */ + maxResults?: CisScanResultsMaxResults; + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The scan ARN. + */ + scanArn: CisScanArn; + /** + * The sort by order. + */ + sortBy?: CisScanResultsAggregatedByChecksSortBy; + /** + * The sort order. + */ + sortOrder?: CisSortOrder; + } + export interface ListCisScanResultsAggregatedByChecksResponse { + /** + * The check aggregations. + */ + checkAggregations?: CisCheckAggregationList; + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + } + export interface ListCisScanResultsAggregatedByTargetResourceRequest { + /** + * The filter criteria. + */ + filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria; + /** + * The maximum number of scan results aggregated by a target resource to be returned in a single page of results. + */ + maxResults?: CisScanResultsMaxResults; + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The scan ARN. + */ + scanArn: CisScanArn; + /** + * The sort by order. + */ + sortBy?: CisScanResultsAggregatedByTargetResourceSortBy; + /** + * The sort order. + */ + sortOrder?: CisSortOrder; + } + export interface ListCisScanResultsAggregatedByTargetResourceResponse { + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The resource aggregations. + */ + targetResourceAggregations?: CisTargetResourceAggregationList; + } + export type ListCisScansDetailLevel = "ORGANIZATION"|"MEMBER"|string; + export interface ListCisScansFilterCriteria { + /** + * The list of failed checks filters. + */ + failedChecksFilters?: CisNumberFilterList; + /** + * The list of scan ARN filters. + */ + scanArnFilters?: CisScanArnFilterList; + /** + * The list of scan at filters. + */ + scanAtFilters?: CisScanDateFilterList; + /** + * The list of scan configuration ARN filters. + */ + scanConfigurationArnFilters?: CisScanConfigurationArnFilterList; + /** + * The list of scan name filters. + */ + scanNameFilters?: CisScanNameFilterList; + /** + * The list of scan status filters. + */ + scanStatusFilters?: CisScanStatusFilterList; + /** + * The list of scheduled by filters. + */ + scheduledByFilters?: CisScheduledByFilterList; + /** + * The list of target account ID filters. + */ + targetAccountIdFilters?: AccountIdFilterList; + /** + * The list of target resource ID filters. + */ + targetResourceIdFilters?: ResourceIdFilterList; + /** + * The list of target resource tag filters. + */ + targetResourceTagFilters?: ResourceTagFilterList; + } + export type ListCisScansMaxResults = number; + export interface ListCisScansRequest { + /** + * The detail applied to the CIS scan. + */ + detailLevel?: ListCisScansDetailLevel; + /** + * The CIS scan filter criteria. + */ + filterCriteria?: ListCisScansFilterCriteria; + /** + * The maximum number of results to be returned. + */ + maxResults?: ListCisScansMaxResults; + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The CIS scans sort by order. + */ + sortBy?: ListCisScansSortBy; + /** + * The CIS scans sort order. + */ + sortOrder?: CisSortOrder; + } + export interface ListCisScansResponse { + /** + * The pagination token from a previous request that's used to retrieve the next page of results. + */ + nextToken?: NextToken; + /** + * The CIS scans. + */ + scans?: CisScanList; + } + export type ListCisScansSortBy = "STATUS"|"SCHEDULED_BY"|"SCAN_START_DATE"|"FAILED_CHECKS"|string; export type ListCoverageMaxResults = number; export interface ListCoverageRequest { /** @@ -2799,6 +3680,16 @@ declare namespace Inspector2 { export type MemberList = Member[]; export type MeteringAccountId = string; export type MonthlyCostEstimate = number; + export interface MonthlySchedule { + /** + * The monthly schedule's day. + */ + day: Day; + /** + * The monthly schedule's start time. + */ + startTime: Time; + } export interface NetworkPath { /** * The details on the steps in the network path. @@ -2834,6 +3725,9 @@ declare namespace Inspector2 { upperInclusive?: Double; } export type NumberFilterList = NumberFilter[]; + export type OneAccountIdFilterList = CisStringFilter[]; + export interface OneTimeSchedule { + } export type Operation = "ENABLE_SCANNING"|"DISABLE_SCANNING"|"ENABLE_REPOSITORY"|"DISABLE_REPOSITORY"|string; export type OwnerId = string; export interface PackageAggregation { @@ -2956,6 +3850,8 @@ declare namespace Inspector2 { } export type Permissions = Permission[]; export type Platform = string; + export type PlatformFilterList = CisStringFilter[]; + export type PlatformVersion = string; export type Port = number; export interface PortRange { /** @@ -2978,6 +3874,8 @@ declare namespace Inspector2 { endInclusive?: Port; } export type PortRangeFilterList = PortRangeFilter[]; + export type Product = string; + export type Reason = string; export interface Recommendation { /** * The URL address to the CVE remediation recommendations. @@ -3000,6 +3898,7 @@ declare namespace Inspector2 { } export type ReportFormat = "CSV"|"JSON"|string; export type ReportId = string; + export type ReportTargetAccounts = AccountId[]; export type ReportingErrorCode = "INTERNAL_ERROR"|"INVALID_PERMISSIONS"|"NO_FINDINGS_FOUND"|"BUCKET_NOT_FOUND"|"INCOMPATIBLE_BUCKET_REGION"|"MALFORMED_KMS_KEY"|string; export interface RepositoryAggregation { /** @@ -3121,6 +4020,7 @@ declare namespace Inspector2 { resourceType?: ResourceStringFilterList; } export type ResourceId = string; + export type ResourceIdFilterList = CisStringFilter[]; export type ResourceList = Resource[]; export type ResourceMapComparison = "EQUALS"|string; export interface ResourceMapFilter { @@ -3200,8 +4100,10 @@ declare namespace Inspector2 { } export type ResourceStringFilterList = ResourceStringFilter[]; export type ResourceStringInput = string; + export type ResourceTagFilterList = TagFilter[]; export type ResourceType = "AWS_EC2_INSTANCE"|"AWS_ECR_CONTAINER_IMAGE"|"AWS_ECR_REPOSITORY"|"AWS_LAMBDA_FUNCTION"|string; export type RiskScore = number; + export type RuleId = string; export type Runtime = "NODEJS"|"NODEJS_12_X"|"NODEJS_14_X"|"NODEJS_16_X"|"JAVA_8"|"JAVA_8_AL2"|"JAVA_11"|"PYTHON_3_7"|"PYTHON_3_8"|"PYTHON_3_9"|"UNSUPPORTED"|"NODEJS_18_X"|"GO_1_X"|"JAVA_17"|"PYTHON_3_10"|string; export type SbomReportFormat = "CYCLONEDX_1_4"|"SPDX_2_3"|string; export interface ScanStatus { @@ -3217,6 +4119,24 @@ declare namespace Inspector2 { export type ScanStatusCode = "ACTIVE"|"INACTIVE"|string; export type ScanStatusReason = "PENDING_INITIAL_SCAN"|"ACCESS_DENIED"|"INTERNAL_ERROR"|"UNMANAGED_EC2_INSTANCE"|"UNSUPPORTED_OS"|"SCAN_ELIGIBILITY_EXPIRED"|"RESOURCE_TERMINATED"|"SUCCESSFUL"|"NO_RESOURCES_FOUND"|"IMAGE_SIZE_EXCEEDED"|"SCAN_FREQUENCY_MANUAL"|"SCAN_FREQUENCY_SCAN_ON_PUSH"|"EC2_INSTANCE_STOPPED"|"PENDING_DISABLE"|"NO_INVENTORY"|"STALE_INVENTORY"|"EXCLUDED_BY_TAG"|"UNSUPPORTED_RUNTIME"|"UNSUPPORTED_MEDIA_TYPE"|"UNSUPPORTED_CONFIG_FILE"|"DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED"|"DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED"|"DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"|"DEEP_INSPECTION_NO_INVENTORY"|string; export type ScanType = "NETWORK"|"PACKAGE"|"CODE"|string; + export interface Schedule { + /** + * The schedule's daily. + */ + daily?: DailySchedule; + /** + * The schedule's monthly. + */ + monthly?: MonthlySchedule; + /** + * The schedule's one time. + */ + oneTime?: OneTimeSchedule; + /** + * The schedule's weekly. + */ + weekly?: WeeklySchedule; + } export interface SearchVulnerabilitiesFilterCriteria { /** * The IDs for specific vulnerabilities. @@ -3245,6 +4165,34 @@ declare namespace Inspector2 { } export type SecurityGroupId = string; export type SecurityGroupIdList = SecurityGroupId[]; + export interface SendCisSessionHealthRequest { + /** + * A unique identifier for the scan job. + */ + scanJobId: UUID; + /** + * The unique token that identifies the CIS session. + */ + sessionToken: UUID; + } + export interface SendCisSessionHealthResponse { + } + export interface SendCisSessionTelemetryRequest { + /** + * The CIS session telemetry messages. + */ + messages: CisSessionMessages; + /** + * A unique identifier for the scan job. + */ + scanJobId: UUID; + /** + * The unique token that identifies the CIS session. + */ + sessionToken: UUID; + } + export interface SendCisSessionTelemetryResponse { + } export type Service = "EC2"|"ECR"|"LAMBDA"|string; export type Severity = "INFORMATIONAL"|"LOW"|"MEDIUM"|"HIGH"|"CRITICAL"|"UNTRIAGED"|string; export interface SeverityCounts { @@ -3278,6 +4226,24 @@ declare namespace Inspector2 { export type SortField = "AWS_ACCOUNT_ID"|"FINDING_TYPE"|"SEVERITY"|"FIRST_OBSERVED_AT"|"LAST_OBSERVED_AT"|"FINDING_STATUS"|"RESOURCE_TYPE"|"ECR_IMAGE_PUSHED_AT"|"ECR_IMAGE_REPOSITORY_NAME"|"ECR_IMAGE_REGISTRY"|"NETWORK_PROTOCOL"|"COMPONENT_TYPE"|"VULNERABILITY_ID"|"VULNERABILITY_SOURCE"|"INSPECTOR_SCORE"|"VENDOR_SEVERITY"|"EPSS_SCORE"|string; export type SortOrder = "ASC"|"DESC"|string; export type SourceLayerHash = string; + export interface StartCisSessionMessage { + /** + * The unique token that identifies the CIS session. + */ + sessionToken: UUID; + } + export interface StartCisSessionRequest { + /** + * The start CIS session message. + */ + message: StartCisSessionMessage; + /** + * A unique identifier for the scan job. + */ + scanJobId: UUID; + } + export interface StartCisSessionResponse { + } export interface State { /** * The error code explaining why the account failed to enable Amazon Inspector. @@ -3293,6 +4259,20 @@ declare namespace Inspector2 { status: Status; } export type Status = "ENABLING"|"ENABLED"|"DISABLING"|"DISABLED"|"SUSPENDING"|"SUSPENDED"|string; + export interface StatusCounts { + /** + * The number of checks that failed. + */ + failed?: Integer; + /** + * The number of checks that passed. + */ + passed?: Integer; + /** + * The number of checks that were skipped. + */ + skipped?: Integer; + } export interface Step { /** * The component ID. @@ -3304,6 +4284,83 @@ declare namespace Inspector2 { componentType: ComponentType; } export type StepList = Step[]; + export interface StopCisMessageProgress { + /** + * The progress' error checks. + */ + errorChecks?: CheckCount; + /** + * The progress' failed checks. + */ + failedChecks?: CheckCount; + /** + * The progress' informational checks. + */ + informationalChecks?: CheckCount; + /** + * The progress' not applicable checks. + */ + notApplicableChecks?: CheckCount; + /** + * The progress' not evaluated checks. + */ + notEvaluatedChecks?: CheckCount; + /** + * The progress' successful checks. + */ + successfulChecks?: CheckCount; + /** + * The progress' total checks. + */ + totalChecks?: CheckCount; + /** + * The progress' unknown checks. + */ + unknownChecks?: CheckCount; + } + export interface StopCisSessionMessage { + /** + * The message benchmark profile. + */ + benchmarkProfile?: BenchmarkProfile; + /** + * The message benchmark version. + */ + benchmarkVersion?: BenchmarkVersion; + /** + * The message compute platform. + */ + computePlatform?: ComputePlatform; + /** + * The progress of the message. + */ + progress: StopCisMessageProgress; + /** + * The reason for the message. + */ + reason?: Reason; + /** + * The status of the message. + */ + status: StopCisSessionStatus; + } + export interface StopCisSessionRequest { + /** + * The stop CIS session message. + */ + message: StopCisSessionMessage; + /** + * A unique identifier for the scan job. + */ + scanJobId: UUID; + /** + * The unique token that identifies the CIS session. + */ + sessionToken: UUID; + } + export interface StopCisSessionResponse { + } + export type StopCisSessionStatus = "SUCCESS"|"FAILED"|"INTERRUPTED"|"UNSUPPORTED_OS"|string; export type String = string; export type StringComparison = "EQUALS"|"PREFIX"|"NOT_EQUALS"|string; export interface StringFilter { @@ -3334,6 +4391,21 @@ declare namespace Inspector2 { export type SuggestedFixCodeString = string; export type SuggestedFixDescriptionString = string; export type SuggestedFixes = SuggestedFix[]; + export type TagComparison = "EQUALS"|string; + export interface TagFilter { + /** + * The tag filter comparison value. + */ + comparison: TagComparison; + /** + * The tag filter key. + */ + key: NonEmptyString; + /** + * The tag filter value. + */ + value: NonEmptyString; + } export type TagKey = string; export type TagKeyList = TagKey[]; export type TagList = String[]; @@ -3350,9 +4422,27 @@ declare namespace Inspector2 { } export interface TagResourceResponse { } + export type TagValueList = String[]; export type Target = string; + export type TargetAccount = string; + export type TargetAccountList = TargetAccount[]; + export type TargetResourceTags = {[key: string]: TagValueList}; + export type TargetStatusFilterList = CisTargetStatusFilter[]; + export type TargetStatusReasonFilterList = CisTargetStatusReasonFilter[]; export type Targets = Target[]; + export interface Time { + /** + * The time of day in 24-hour format (00:00). + */ + timeOfDay: TimeOfDay; + /** + * The timezone. + */ + timezone: Timezone; + } + export type TimeOfDay = string; export type Timestamp = Date; + export type Timezone = string; export interface TitleAggregation { /** * The type of finding to aggregate on. @@ -3397,11 +4487,13 @@ declare namespace Inspector2 { */ vulnerabilityId?: String; } + export type TitleFilterList = CisStringFilter[]; export type TitleSortBy = "CRITICAL"|"HIGH"|"ALL"|string; export type Tool = string; export type Tools = Tool[]; export type Ttp = string; export type Ttps = Ttp[]; + export type UUID = string; export interface UntagResourceRequest { /** * The Amazon Resource Name (ARN) for the resource to remove tags from. @@ -3414,6 +4506,44 @@ declare namespace Inspector2 { } export interface UntagResourceResponse { } + export interface UpdateCisScanConfigurationRequest { + /** + * The CIS scan configuration ARN. + */ + scanConfigurationArn: CisScanConfigurationArn; + /** + * The scan name for the CIS scan configuration. + */ + scanName?: CisScanName; + /** + * The schedule for the CIS scan configuration. + */ + schedule?: Schedule; + /** + * The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile. + */ + securityLevel?: CisSecurityLevel; + /** + * The targets for the CIS scan configuration. + */ + targets?: UpdateCisTargets; + } + export interface UpdateCisScanConfigurationResponse { + /** + * The CIS scan configuration ARN. + */ + scanConfigurationArn: CisScanConfigurationArn; + } + export interface UpdateCisTargets { + /** + * The target account ids. + */ + accountIds?: TargetAccountList; + /** + * The target resource tags. + */ + targetResourceTags?: TargetResourceTags; + } export interface UpdateConfigurationRequest { /** * Specifies how the ECR automated re-scan will be updated for your environment. @@ -3552,6 +4682,7 @@ declare namespace Inspector2 { export type UsageTotalList = UsageTotal[]; export type UsageType = "EC2_INSTANCE_HOURS"|"ECR_INITIAL_SCAN"|"ECR_RESCAN"|"LAMBDA_FUNCTION_HOURS"|"LAMBDA_FUNCTION_CODE_HOURS"|string; export type UsageValue = number; + export type Vendor = string; export type VendorCreatedAt = Date; export type VendorSeverity = string; export type VendorUpdatedAt = Date; @@ -3685,6 +4816,16 @@ declare namespace Inspector2 { } export type VulnerablePackageList = VulnerablePackage[]; export type VulnerablePackageRemediation = string; + export interface WeeklySchedule { + /** + * The weekly schedule's days. + */ + days: DaysList; + /** + * The weekly schedule's start time. + */ + startTime: Time; + } /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ diff --git a/dist/aws-sdk-core-react-native.js b/dist/aws-sdk-core-react-native.js index ac5eba62e0..5b781e1758 100644 --- a/dist/aws-sdk-core-react-native.js +++ b/dist/aws-sdk-core-react-native.js @@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * @constant */ - VERSION: '2.1541.0', + VERSION: '2.1542.0', /** * @api private diff --git a/dist/aws-sdk-react-native.js b/dist/aws-sdk-react-native.js index 40b4ea37a4..a2695dcba0 100644 --- a/dist/aws-sdk-react-native.js +++ b/dist/aws-sdk-react-native.js @@ -395,7 +395,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * @constant */ - VERSION: '2.1541.0', + VERSION: '2.1542.0', /** * @api private @@ -26237,7 +26237,7 @@ return /******/ (function(modules) { // webpackBootstrap // Generated by CoffeeScript 1.12.7 (function() { "use strict"; - var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate, + var bom, defaults, defineProperty, events, isEmpty, processItem, processors, sax, setImmediate, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; @@ -26267,6 +26267,16 @@ return /******/ (function(modules) { // webpackBootstrap return item; }; + defineProperty = function(obj, key, value) { + var descriptor; + descriptor = Object.create(null); + descriptor.value = value; + descriptor.writable = true; + descriptor.enumerable = true; + descriptor.configurable = true; + return Object.defineProperty(obj, key, descriptor); + }; + exports.Parser = (function(superClass) { extend(Parser, superClass); @@ -26330,13 +26340,13 @@ return /******/ (function(modules) { // webpackBootstrap Parser.prototype.assignOrPush = function(obj, key, newValue) { if (!(key in obj)) { if (!this.options.explicitArray) { - return obj[key] = newValue; + return defineProperty(obj, key, newValue); } else { - return obj[key] = [newValue]; + return defineProperty(obj, key, [newValue]); } } else { if (!(obj[key] instanceof Array)) { - obj[key] = [obj[key]]; + defineProperty(obj, key, [obj[key]]); } return obj[key].push(newValue); } @@ -26377,21 +26387,21 @@ return /******/ (function(modules) { // webpackBootstrap this.saxParser.onopentag = (function(_this) { return function(node) { var key, newValue, obj, processedKey, ref; - obj = Object.create(null); + obj = {}; obj[charkey] = ""; if (!_this.options.ignoreAttrs) { ref = node.attributes; for (key in ref) { if (!hasProp.call(ref, key)) continue; if (!(attrkey in obj) && !_this.options.mergeAttrs) { - obj[attrkey] = Object.create(null); + obj[attrkey] = {}; } newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key]; processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key; if (_this.options.mergeAttrs) { _this.assignOrPush(obj, processedKey, newValue); } else { - obj[attrkey][processedKey] = newValue; + defineProperty(obj[attrkey], processedKey, newValue); } } } @@ -26462,7 +26472,7 @@ return /******/ (function(modules) { // webpackBootstrap } if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') { if (!_this.options.preserveChildrenOrder) { - node = Object.create(null); + node = {}; if (_this.options.attrkey in obj) { node[_this.options.attrkey] = obj[_this.options.attrkey]; delete obj[_this.options.attrkey]; @@ -26477,10 +26487,10 @@ return /******/ (function(modules) { // webpackBootstrap obj = node; } else if (s) { s[_this.options.childkey] = s[_this.options.childkey] || []; - objClone = Object.create(null); + objClone = {}; for (key in obj) { if (!hasProp.call(obj, key)) continue; - objClone[key] = obj[key]; + defineProperty(objClone, key, obj[key]); } s[_this.options.childkey].push(objClone); delete obj["#name"]; @@ -26494,8 +26504,8 @@ return /******/ (function(modules) { // webpackBootstrap } else { if (_this.options.explicitRoot) { old = obj; - obj = Object.create(null); - obj[nodeName] = old; + obj = {}; + defineProperty(obj, nodeName, old); } _this.resultObject = obj; _this.saxParser.ended = true; @@ -62282,13 +62292,13 @@ return /******/ (function(modules) { // webpackBootstrap /* 1132 */ /***/ (function(module, exports) { - module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-06-08","endpointPrefix":"inspector2","jsonVersion":"1.1","protocol":"rest-json","serviceAbbreviation":"Inspector2","serviceFullName":"Inspector2","serviceId":"Inspector2","signatureVersion":"v4","signingName":"inspector2","uid":"inspector2-2020-06-08"},"operations":{"AssociateMember":{"http":{"requestUri":"/members/associate","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","required":["accountId"],"members":{"accountId":{}}}},"BatchGetAccountStatus":{"http":{"requestUri":"/status/batch/get","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"type":"list","member":{"type":"structure","required":["accountId","resourceState","state"],"members":{"accountId":{},"resourceState":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{"shape":"Sa"},"ecr":{"shape":"Sa"},"lambda":{"shape":"Sa"},"lambdaCode":{"shape":"Sa"}}},"state":{"shape":"Sa"}}}},"failedAccounts":{"shape":"Se"}}}},"BatchGetCodeSnippet":{"http":{"requestUri":"/codesnippet/batchget","responseCode":200},"input":{"type":"structure","required":["findingArns"],"members":{"findingArns":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"codeSnippetResults":{"type":"list","member":{"type":"structure","members":{"codeSnippet":{"type":"list","member":{"type":"structure","required":["content","lineNumber"],"members":{"content":{},"lineNumber":{"type":"integer"}}}},"endLine":{"type":"integer"},"findingArn":{},"startLine":{"type":"integer"},"suggestedFixes":{"type":"list","member":{"type":"structure","members":{"code":{},"description":{}}}}}}},"errors":{"type":"list","member":{"type":"structure","required":["errorCode","errorMessage","findingArn"],"members":{"errorCode":{},"errorMessage":{},"findingArn":{}}}}}}},"BatchGetFindingDetails":{"http":{"requestUri":"/findings/details/batch/get","responseCode":200},"input":{"type":"structure","required":["findingArns"],"members":{"findingArns":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"errors":{"type":"list","member":{"type":"structure","required":["errorCode","errorMessage","findingArn"],"members":{"errorCode":{},"errorMessage":{},"findingArn":{}}}},"findingDetails":{"type":"list","member":{"type":"structure","members":{"cisaData":{"shape":"S16"},"cwes":{"shape":"S1a"},"epssScore":{"type":"double"},"evidences":{"type":"list","member":{"type":"structure","members":{"evidenceDetail":{},"evidenceRule":{},"severity":{}}}},"exploitObserved":{"shape":"S1i"},"findingArn":{},"referenceUrls":{"shape":"S1l"},"riskScore":{"type":"integer"},"tools":{"type":"list","member":{}},"ttps":{"shape":"S1q"}}}}}}},"BatchGetFreeTrialInfo":{"http":{"requestUri":"/freetrialinfo/batchget","responseCode":200},"input":{"type":"structure","required":["accountIds"],"members":{"accountIds":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts","failedAccounts"],"members":{"accounts":{"type":"list","member":{"type":"structure","required":["accountId","freeTrialInfo"],"members":{"accountId":{},"freeTrialInfo":{"type":"list","member":{"type":"structure","required":["end","start","status","type"],"members":{"end":{"type":"timestamp"},"start":{"type":"timestamp"},"status":{},"type":{}}}}}}},"failedAccounts":{"type":"list","member":{"type":"structure","required":["accountId","code","message"],"members":{"accountId":{},"code":{},"message":{}}}}}}},"BatchGetMemberEc2DeepInspectionStatus":{"http":{"requestUri":"/ec2deepinspectionstatus/member/batch/get","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"}}},"output":{"type":"structure","members":{"accountIds":{"shape":"S29"},"failedAccountIds":{"shape":"S2c"}}}},"BatchUpdateMemberEc2DeepInspectionStatus":{"http":{"requestUri":"/ec2deepinspectionstatus/member/batch/update","responseCode":200},"input":{"type":"structure","required":["accountIds"],"members":{"accountIds":{"type":"list","member":{"type":"structure","required":["accountId","activateDeepInspection"],"members":{"accountId":{},"activateDeepInspection":{"type":"boolean"}}}}}},"output":{"type":"structure","members":{"accountIds":{"shape":"S29"},"failedAccountIds":{"shape":"S2c"}}}},"CancelFindingsReport":{"http":{"requestUri":"/reporting/cancel","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","required":["reportId"],"members":{"reportId":{}}}},"CancelSbomExport":{"http":{"requestUri":"/sbomexport/cancel","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","members":{"reportId":{}}},"idempotent":true},"CreateFilter":{"http":{"requestUri":"/filters/create","responseCode":200},"input":{"type":"structure","required":["action","filterCriteria","name"],"members":{"action":{},"description":{},"filterCriteria":{"shape":"S2r"},"name":{},"reason":{},"tags":{"shape":"S3c"}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"CreateFindingsReport":{"http":{"requestUri":"/reporting/create","responseCode":200},"input":{"type":"structure","required":["reportFormat","s3Destination"],"members":{"filterCriteria":{"shape":"S2r"},"reportFormat":{},"s3Destination":{"shape":"S3h"}}},"output":{"type":"structure","members":{"reportId":{}}}},"CreateSbomExport":{"http":{"requestUri":"/sbomexport/create","responseCode":200},"input":{"type":"structure","required":["reportFormat","s3Destination"],"members":{"reportFormat":{},"resourceFilterCriteria":{"shape":"S3l"},"s3Destination":{"shape":"S3h"}}},"output":{"type":"structure","members":{"reportId":{}}},"idempotent":true},"DeleteFilter":{"http":{"requestUri":"/filters/delete","responseCode":200},"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"DescribeOrganizationConfiguration":{"http":{"requestUri":"/organizationconfiguration/describe","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"autoEnable":{"shape":"S3y"},"maxAccountLimitReached":{"type":"boolean"}}}},"Disable":{"http":{"requestUri":"/disable","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"},"resourceTypes":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"shape":"S43"},"failedAccounts":{"shape":"Se"}}}},"DisableDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/disable","responseCode":200},"input":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}},"output":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}}},"DisassociateMember":{"http":{"requestUri":"/members/disassociate","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","required":["accountId"],"members":{"accountId":{}}}},"Enable":{"http":{"requestUri":"/enable","responseCode":200},"input":{"type":"structure","required":["resourceTypes"],"members":{"accountIds":{"shape":"S5"},"clientToken":{"idempotencyToken":true},"resourceTypes":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"shape":"S43"},"failedAccounts":{"shape":"Se"}}}},"EnableDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/enable","responseCode":200},"input":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"clientToken":{"idempotencyToken":true},"delegatedAdminAccountId":{}}},"output":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}}},"GetConfiguration":{"http":{"requestUri":"/configuration/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"ecrConfiguration":{"type":"structure","members":{"rescanDurationState":{"type":"structure","members":{"rescanDuration":{},"status":{},"updatedAt":{"type":"timestamp"}}}}}}}},"GetDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"delegatedAdmin":{"type":"structure","members":{"accountId":{},"relationshipStatus":{}}}}}},"GetEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"errorMessage":{},"orgPackagePaths":{"shape":"S4s"},"packagePaths":{"shape":"S4s"},"status":{}}}},"GetEncryptionKey":{"http":{"method":"GET","requestUri":"/encryptionkey/get","responseCode":200},"input":{"type":"structure","required":["resourceType","scanType"],"members":{"resourceType":{"location":"querystring","locationName":"resourceType"},"scanType":{"location":"querystring","locationName":"scanType"}}},"output":{"type":"structure","required":["kmsKeyId"],"members":{"kmsKeyId":{}}}},"GetFindingsReportStatus":{"http":{"requestUri":"/reporting/status/get","responseCode":200},"input":{"type":"structure","members":{"reportId":{}}},"output":{"type":"structure","members":{"destination":{"shape":"S3h"},"errorCode":{},"errorMessage":{},"filterCriteria":{"shape":"S2r"},"reportId":{},"status":{}}}},"GetMember":{"http":{"requestUri":"/members/get","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","members":{"member":{"shape":"S56"}}}},"GetSbomExport":{"http":{"requestUri":"/sbomexport/get","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","members":{"errorCode":{},"errorMessage":{},"filterCriteria":{"shape":"S3l"},"format":{},"reportId":{},"s3Destination":{"shape":"S3h"},"status":{}}},"idempotent":true},"ListAccountPermissions":{"http":{"requestUri":"/accountpermissions/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{},"service":{}}},"output":{"type":"structure","required":["permissions"],"members":{"nextToken":{},"permissions":{"type":"list","member":{"type":"structure","required":["operation","service"],"members":{"operation":{},"service":{}}}}}}},"ListCoverage":{"http":{"requestUri":"/coverage/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S5i"},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"coveredResources":{"type":"list","member":{"type":"structure","required":["accountId","resourceId","resourceType","scanType"],"members":{"accountId":{},"lastScannedAt":{"type":"timestamp"},"resourceId":{},"resourceMetadata":{"type":"structure","members":{"ec2":{"type":"structure","members":{"amiId":{},"platform":{},"tags":{"shape":"S3c"}}},"ecrImage":{"type":"structure","members":{"tags":{"type":"list","member":{}}}},"ecrRepository":{"type":"structure","members":{"name":{},"scanFrequency":{}}},"lambdaFunction":{"type":"structure","members":{"functionName":{},"functionTags":{"shape":"S3c"},"layers":{"type":"list","member":{}},"runtime":{}}}}},"resourceType":{},"scanStatus":{"type":"structure","required":["reason","statusCode"],"members":{"reason":{},"statusCode":{}}},"scanType":{}}}},"nextToken":{}}}},"ListCoverageStatistics":{"http":{"requestUri":"/coverage/statistics/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S5i"},"groupBy":{},"nextToken":{}}},"output":{"type":"structure","required":["totalCounts"],"members":{"countsByGroup":{"type":"list","member":{"type":"structure","members":{"count":{"type":"long"},"groupKey":{}}}},"nextToken":{},"totalCounts":{"type":"long"}}}},"ListDelegatedAdminAccounts":{"http":{"requestUri":"/delegatedadminaccounts/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"delegatedAdminAccounts":{"type":"list","member":{"type":"structure","members":{"accountId":{},"status":{}}}},"nextToken":{}}}},"ListFilters":{"http":{"requestUri":"/filters/list","responseCode":200},"input":{"type":"structure","members":{"action":{},"arns":{"type":"list","member":{}},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["filters"],"members":{"filters":{"type":"list","member":{"type":"structure","required":["action","arn","createdAt","criteria","name","ownerId","updatedAt"],"members":{"action":{},"arn":{},"createdAt":{"type":"timestamp"},"criteria":{"shape":"S2r"},"description":{},"name":{},"ownerId":{},"reason":{},"tags":{"shape":"S3c"},"updatedAt":{"type":"timestamp"}}}},"nextToken":{}}}},"ListFindingAggregations":{"http":{"requestUri":"/findings/aggregation/list","responseCode":200},"input":{"type":"structure","required":["aggregationType"],"members":{"accountIds":{"shape":"S2s"},"aggregationRequest":{"type":"structure","members":{"accountAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{}}},"amiAggregation":{"type":"structure","members":{"amis":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"awsEcrContainerAggregation":{"type":"structure","members":{"architectures":{"shape":"S2s"},"imageShas":{"shape":"S2s"},"imageTags":{"shape":"S2s"},"repositories":{"shape":"S2s"},"resourceIds":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"ec2InstanceAggregation":{"type":"structure","members":{"amis":{"shape":"S2s"},"instanceIds":{"shape":"S2s"},"instanceTags":{"shape":"S33"},"operatingSystems":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"findingTypeAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{}}},"imageLayerAggregation":{"type":"structure","members":{"layerHashes":{"shape":"S2s"},"repositories":{"shape":"S2s"},"resourceIds":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"lambdaFunctionAggregation":{"type":"structure","members":{"functionNames":{"shape":"S2s"},"functionTags":{"shape":"S33"},"resourceIds":{"shape":"S2s"},"runtimes":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"lambdaLayerAggregation":{"type":"structure","members":{"functionNames":{"shape":"S2s"},"layerArns":{"shape":"S2s"},"resourceIds":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"packageAggregation":{"type":"structure","members":{"packageNames":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"repositoryAggregation":{"type":"structure","members":{"repositories":{"shape":"S2s"},"sortBy":{},"sortOrder":{}}},"titleAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{},"titles":{"shape":"S2s"},"vulnerabilityIds":{"shape":"S2s"}}}},"union":true},"aggregationType":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["aggregationType"],"members":{"aggregationType":{},"nextToken":{},"responses":{"type":"list","member":{"type":"structure","members":{"accountAggregation":{"type":"structure","members":{"accountId":{},"severityCounts":{"shape":"S7t"}}},"amiAggregation":{"type":"structure","required":["ami"],"members":{"accountId":{},"affectedInstances":{"type":"long"},"ami":{},"severityCounts":{"shape":"S7t"}}},"awsEcrContainerAggregation":{"type":"structure","required":["resourceId"],"members":{"accountId":{},"architecture":{},"imageSha":{},"imageTags":{"type":"list","member":{}},"repository":{},"resourceId":{},"severityCounts":{"shape":"S7t"}}},"ec2InstanceAggregation":{"type":"structure","required":["instanceId"],"members":{"accountId":{},"ami":{},"instanceId":{},"instanceTags":{"shape":"S3c"},"networkFindings":{"type":"long"},"operatingSystem":{},"severityCounts":{"shape":"S7t"}}},"findingTypeAggregation":{"type":"structure","members":{"accountId":{},"severityCounts":{"shape":"S7t"}}},"imageLayerAggregation":{"type":"structure","required":["accountId","layerHash","repository","resourceId"],"members":{"accountId":{},"layerHash":{},"repository":{},"resourceId":{},"severityCounts":{"shape":"S7t"}}},"lambdaFunctionAggregation":{"type":"structure","required":["resourceId"],"members":{"accountId":{},"functionName":{},"lambdaTags":{"shape":"S3c"},"lastModifiedAt":{"type":"timestamp"},"resourceId":{},"runtime":{},"severityCounts":{"shape":"S7t"}}},"lambdaLayerAggregation":{"type":"structure","required":["accountId","functionName","layerArn","resourceId"],"members":{"accountId":{},"functionName":{},"layerArn":{},"resourceId":{},"severityCounts":{"shape":"S7t"}}},"packageAggregation":{"type":"structure","required":["packageName"],"members":{"accountId":{},"packageName":{},"severityCounts":{"shape":"S7t"}}},"repositoryAggregation":{"type":"structure","required":["repository"],"members":{"accountId":{},"affectedImages":{"type":"long"},"repository":{},"severityCounts":{"shape":"S7t"}}},"titleAggregation":{"type":"structure","required":["title"],"members":{"accountId":{},"severityCounts":{"shape":"S7t"},"title":{},"vulnerabilityId":{}}}},"union":true}}}}},"ListFindings":{"http":{"requestUri":"/findings/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S2r"},"maxResults":{"type":"integer"},"nextToken":{},"sortCriteria":{"type":"structure","required":["field","sortOrder"],"members":{"field":{},"sortOrder":{}}}}},"output":{"type":"structure","members":{"findings":{"type":"list","member":{"type":"structure","required":["awsAccountId","description","findingArn","firstObservedAt","lastObservedAt","remediation","resources","severity","status","type"],"members":{"awsAccountId":{},"codeVulnerabilityDetails":{"type":"structure","required":["cwes","detectorId","detectorName","filePath"],"members":{"cwes":{"type":"list","member":{}},"detectorId":{},"detectorName":{},"detectorTags":{"type":"list","member":{}},"filePath":{"type":"structure","required":["endLine","fileName","filePath","startLine"],"members":{"endLine":{"type":"integer"},"fileName":{},"filePath":{},"startLine":{"type":"integer"}}},"referenceUrls":{"type":"list","member":{}},"ruleId":{},"sourceLambdaLayerArn":{}}},"description":{},"epss":{"type":"structure","members":{"score":{"type":"double"}}},"exploitAvailable":{},"exploitabilityDetails":{"type":"structure","members":{"lastKnownExploitAt":{"type":"timestamp"}}},"findingArn":{},"firstObservedAt":{"type":"timestamp"},"fixAvailable":{},"inspectorScore":{"type":"double"},"inspectorScoreDetails":{"type":"structure","members":{"adjustedCvss":{"type":"structure","required":["score","scoreSource","scoringVector","version"],"members":{"adjustments":{"type":"list","member":{"type":"structure","required":["metric","reason"],"members":{"metric":{},"reason":{}}}},"cvssSource":{},"score":{"type":"double"},"scoreSource":{},"scoringVector":{},"version":{}}}}},"lastObservedAt":{"type":"timestamp"},"networkReachabilityDetails":{"type":"structure","required":["networkPath","openPortRange","protocol"],"members":{"networkPath":{"type":"structure","members":{"steps":{"type":"list","member":{"type":"structure","required":["componentId","componentType"],"members":{"componentId":{},"componentType":{}}}}}},"openPortRange":{"type":"structure","required":["begin","end"],"members":{"begin":{"type":"integer"},"end":{"type":"integer"}}},"protocol":{}}},"packageVulnerabilityDetails":{"type":"structure","required":["source","vulnerabilityId"],"members":{"cvss":{"type":"list","member":{"type":"structure","required":["baseScore","scoringVector","source","version"],"members":{"baseScore":{"type":"double"},"scoringVector":{},"source":{},"version":{}}}},"referenceUrls":{"type":"list","member":{}},"relatedVulnerabilities":{"type":"list","member":{}},"source":{},"sourceUrl":{},"vendorCreatedAt":{"type":"timestamp"},"vendorSeverity":{},"vendorUpdatedAt":{"type":"timestamp"},"vulnerabilityId":{},"vulnerablePackages":{"type":"list","member":{"type":"structure","required":["name","version"],"members":{"arch":{},"epoch":{"type":"integer"},"filePath":{},"fixedInVersion":{},"name":{},"packageManager":{},"release":{},"remediation":{},"sourceLambdaLayerArn":{},"sourceLayerHash":{},"version":{}}}}}},"remediation":{"type":"structure","members":{"recommendation":{"type":"structure","members":{"Url":{},"text":{}}}}},"resources":{"type":"list","member":{"type":"structure","required":["id","type"],"members":{"details":{"type":"structure","members":{"awsEc2Instance":{"type":"structure","members":{"iamInstanceProfileArn":{},"imageId":{},"ipV4Addresses":{"type":"list","member":{}},"ipV6Addresses":{"type":"list","member":{}},"keyName":{},"launchedAt":{"type":"timestamp"},"platform":{},"subnetId":{},"type":{},"vpcId":{}}},"awsEcrContainerImage":{"type":"structure","required":["imageHash","registry","repositoryName"],"members":{"architecture":{},"author":{},"imageHash":{},"imageTags":{"type":"list","member":{}},"platform":{},"pushedAt":{"type":"timestamp"},"registry":{},"repositoryName":{}}},"awsLambdaFunction":{"type":"structure","required":["codeSha256","executionRoleArn","functionName","runtime","version"],"members":{"architectures":{"type":"list","member":{}},"codeSha256":{},"executionRoleArn":{},"functionName":{},"lastModifiedAt":{"type":"timestamp"},"layers":{"type":"list","member":{}},"packageType":{},"runtime":{},"version":{},"vpcConfig":{"type":"structure","members":{"securityGroupIds":{"type":"list","member":{}},"subnetIds":{"type":"list","member":{}},"vpcId":{}}}}}}},"id":{},"partition":{},"region":{},"tags":{"shape":"S3c"},"type":{}}}},"severity":{},"status":{},"title":{},"type":{},"updatedAt":{"type":"timestamp"}}}},"nextToken":{}}}},"ListMembers":{"http":{"requestUri":"/members/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{},"onlyAssociated":{"type":"boolean"}}},"output":{"type":"structure","members":{"members":{"type":"list","member":{"shape":"S56"}},"nextToken":{}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"S3c"}}}},"ListUsageTotals":{"http":{"requestUri":"/usage/list","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"type":"list","member":{}},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"nextToken":{},"totals":{"type":"list","member":{"type":"structure","members":{"accountId":{},"usage":{"type":"list","member":{"type":"structure","members":{"currency":{},"estimatedMonthlyCost":{"type":"double"},"total":{"type":"double"},"type":{}}}}}}}}}},"ResetEncryptionKey":{"http":{"method":"PUT","requestUri":"/encryptionkey/reset","responseCode":200},"input":{"type":"structure","required":["resourceType","scanType"],"members":{"resourceType":{},"scanType":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"SearchVulnerabilities":{"http":{"requestUri":"/vulnerabilities/search","responseCode":200},"input":{"type":"structure","required":["filterCriteria"],"members":{"filterCriteria":{"type":"structure","required":["vulnerabilityIds"],"members":{"vulnerabilityIds":{"type":"list","member":{}}}},"nextToken":{}}},"output":{"type":"structure","required":["vulnerabilities"],"members":{"nextToken":{},"vulnerabilities":{"type":"list","member":{"type":"structure","required":["id"],"members":{"atigData":{"type":"structure","members":{"firstSeen":{"type":"timestamp"},"lastSeen":{"type":"timestamp"},"targets":{"type":"list","member":{}},"ttps":{"shape":"S1q"}}},"cisaData":{"shape":"S16"},"cvss2":{"type":"structure","members":{"baseScore":{"type":"double"},"scoringVector":{}}},"cvss3":{"type":"structure","members":{"baseScore":{"type":"double"},"scoringVector":{}}},"cwes":{"shape":"S1a"},"description":{},"detectionPlatforms":{"type":"list","member":{}},"epss":{"type":"structure","members":{"score":{"type":"double"}}},"exploitObserved":{"shape":"S1i"},"id":{},"referenceUrls":{"shape":"S1l"},"relatedVulnerabilities":{"type":"list","member":{}},"source":{},"sourceUrl":{},"vendorCreatedAt":{"type":"timestamp"},"vendorSeverity":{},"vendorUpdatedAt":{"type":"timestamp"}}}}}}},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tags":{"shape":"S3c"}}},"output":{"type":"structure","members":{}},"idempotent":true},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateConfiguration":{"http":{"requestUri":"/configuration/update","responseCode":200},"input":{"type":"structure","required":["ecrConfiguration"],"members":{"ecrConfiguration":{"type":"structure","required":["rescanDuration"],"members":{"rescanDuration":{}}}}},"output":{"type":"structure","members":{}}},"UpdateEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/update","responseCode":200},"input":{"type":"structure","members":{"activateDeepInspection":{"type":"boolean"},"packagePaths":{"shape":"S4s"}}},"output":{"type":"structure","members":{"errorMessage":{},"orgPackagePaths":{"shape":"S4s"},"packagePaths":{"shape":"S4s"},"status":{}}}},"UpdateEncryptionKey":{"http":{"method":"PUT","requestUri":"/encryptionkey/update","responseCode":200},"input":{"type":"structure","required":["kmsKeyId","resourceType","scanType"],"members":{"kmsKeyId":{},"resourceType":{},"scanType":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"UpdateFilter":{"http":{"requestUri":"/filters/update","responseCode":200},"input":{"type":"structure","required":["filterArn"],"members":{"action":{},"description":{},"filterArn":{},"filterCriteria":{"shape":"S2r"},"name":{},"reason":{}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"UpdateOrgEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/org/update","responseCode":200},"input":{"type":"structure","required":["orgPackagePaths"],"members":{"orgPackagePaths":{"shape":"S4s"}}},"output":{"type":"structure","members":{}}},"UpdateOrganizationConfiguration":{"http":{"requestUri":"/organizationconfiguration/update","responseCode":200},"input":{"type":"structure","required":["autoEnable"],"members":{"autoEnable":{"shape":"S3y"}}},"output":{"type":"structure","required":["autoEnable"],"members":{"autoEnable":{"shape":"S3y"}}}}},"shapes":{"S5":{"type":"list","member":{}},"Sa":{"type":"structure","required":["errorCode","errorMessage","status"],"members":{"errorCode":{},"errorMessage":{},"status":{}}},"Se":{"type":"list","member":{"type":"structure","required":["accountId","errorCode","errorMessage"],"members":{"accountId":{},"errorCode":{},"errorMessage":{},"resourceStatus":{"shape":"Sg"},"status":{}}}},"Sg":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{},"ecr":{},"lambda":{},"lambdaCode":{}}},"S16":{"type":"structure","members":{"action":{},"dateAdded":{"type":"timestamp"},"dateDue":{"type":"timestamp"}}},"S1a":{"type":"list","member":{}},"S1i":{"type":"structure","members":{"firstSeen":{"type":"timestamp"},"lastSeen":{"type":"timestamp"}}},"S1l":{"type":"list","member":{}},"S1q":{"type":"list","member":{}},"S29":{"type":"list","member":{"type":"structure","required":["accountId"],"members":{"accountId":{},"errorMessage":{},"status":{}}}},"S2c":{"type":"list","member":{"type":"structure","required":["accountId"],"members":{"accountId":{},"ec2ScanStatus":{},"errorMessage":{}}}},"S2r":{"type":"structure","members":{"awsAccountId":{"shape":"S2s"},"codeVulnerabilityDetectorName":{"shape":"S2s"},"codeVulnerabilityDetectorTags":{"shape":"S2s"},"codeVulnerabilityFilePath":{"shape":"S2s"},"componentId":{"shape":"S2s"},"componentType":{"shape":"S2s"},"ec2InstanceImageId":{"shape":"S2s"},"ec2InstanceSubnetId":{"shape":"S2s"},"ec2InstanceVpcId":{"shape":"S2s"},"ecrImageArchitecture":{"shape":"S2s"},"ecrImageHash":{"shape":"S2s"},"ecrImagePushedAt":{"shape":"S2w"},"ecrImageRegistry":{"shape":"S2s"},"ecrImageRepositoryName":{"shape":"S2s"},"ecrImageTags":{"shape":"S2s"},"epssScore":{"shape":"S2y"},"exploitAvailable":{"shape":"S2s"},"findingArn":{"shape":"S2s"},"findingStatus":{"shape":"S2s"},"findingType":{"shape":"S2s"},"firstObservedAt":{"shape":"S2w"},"fixAvailable":{"shape":"S2s"},"inspectorScore":{"shape":"S2y"},"lambdaFunctionExecutionRoleArn":{"shape":"S2s"},"lambdaFunctionLastModifiedAt":{"shape":"S2w"},"lambdaFunctionLayers":{"shape":"S2s"},"lambdaFunctionName":{"shape":"S2s"},"lambdaFunctionRuntime":{"shape":"S2s"},"lastObservedAt":{"shape":"S2w"},"networkProtocol":{"shape":"S2s"},"portRange":{"type":"list","member":{"type":"structure","members":{"beginInclusive":{"type":"integer"},"endInclusive":{"type":"integer"}}}},"relatedVulnerabilities":{"shape":"S2s"},"resourceId":{"shape":"S2s"},"resourceTags":{"shape":"S33"},"resourceType":{"shape":"S2s"},"severity":{"shape":"S2s"},"title":{"shape":"S2s"},"updatedAt":{"shape":"S2w"},"vendorSeverity":{"shape":"S2s"},"vulnerabilityId":{"shape":"S2s"},"vulnerabilitySource":{"shape":"S2s"},"vulnerablePackages":{"type":"list","member":{"type":"structure","members":{"architecture":{"shape":"S2t"},"epoch":{"shape":"S2z"},"name":{"shape":"S2t"},"release":{"shape":"S2t"},"sourceLambdaLayerArn":{"shape":"S2t"},"sourceLayerHash":{"shape":"S2t"},"version":{"shape":"S2t"}}}}}},"S2s":{"type":"list","member":{"shape":"S2t"}},"S2t":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}},"S2w":{"type":"list","member":{"type":"structure","members":{"endInclusive":{"type":"timestamp"},"startInclusive":{"type":"timestamp"}}}},"S2y":{"type":"list","member":{"shape":"S2z"}},"S2z":{"type":"structure","members":{"lowerInclusive":{"type":"double"},"upperInclusive":{"type":"double"}}},"S33":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"S3c":{"type":"map","key":{},"value":{}},"S3h":{"type":"structure","required":["bucketName","kmsKeyArn"],"members":{"bucketName":{},"keyPrefix":{},"kmsKeyArn":{}}},"S3l":{"type":"structure","members":{"accountId":{"shape":"S3m"},"ec2InstanceTags":{"shape":"S3q"},"ecrImageTags":{"shape":"S3m"},"ecrRepositoryName":{"shape":"S3m"},"lambdaFunctionName":{"shape":"S3m"},"lambdaFunctionTags":{"shape":"S3q"},"resourceId":{"shape":"S3m"},"resourceType":{"shape":"S3m"}}},"S3m":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"S3q":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"S3y":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{"type":"boolean"},"ecr":{"type":"boolean"},"lambda":{"type":"boolean"},"lambdaCode":{"type":"boolean"}}},"S43":{"type":"list","member":{"type":"structure","required":["accountId","resourceStatus","status"],"members":{"accountId":{},"resourceStatus":{"shape":"Sg"},"status":{}}}},"S4s":{"type":"list","member":{}},"S56":{"type":"structure","members":{"accountId":{},"delegatedAdminAccountId":{},"relationshipStatus":{},"updatedAt":{"type":"timestamp"}}},"S5i":{"type":"structure","members":{"accountId":{"shape":"S5j"},"ec2InstanceTags":{"shape":"S5n"},"ecrImageTags":{"shape":"S5j"},"ecrRepositoryName":{"shape":"S5j"},"lambdaFunctionName":{"shape":"S5j"},"lambdaFunctionRuntime":{"shape":"S5j"},"lambdaFunctionTags":{"shape":"S5n"},"lastScannedAt":{"type":"list","member":{"type":"structure","members":{"endInclusive":{"type":"timestamp"},"startInclusive":{"type":"timestamp"}}}},"resourceId":{"shape":"S5j"},"resourceType":{"shape":"S5j"},"scanStatusCode":{"shape":"S5j"},"scanStatusReason":{"shape":"S5j"},"scanType":{"shape":"S5j"}}},"S5j":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"S5n":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"S7t":{"type":"structure","members":{"all":{"type":"long"},"critical":{"type":"long"},"high":{"type":"long"},"medium":{"type":"long"}}}}} + module.exports = {"version":"2.0","metadata":{"apiVersion":"2020-06-08","endpointPrefix":"inspector2","jsonVersion":"1.1","protocol":"rest-json","serviceAbbreviation":"Inspector2","serviceFullName":"Inspector2","serviceId":"Inspector2","signatureVersion":"v4","signingName":"inspector2","uid":"inspector2-2020-06-08"},"operations":{"AssociateMember":{"http":{"requestUri":"/members/associate","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","required":["accountId"],"members":{"accountId":{}}}},"BatchGetAccountStatus":{"http":{"requestUri":"/status/batch/get","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"type":"list","member":{"type":"structure","required":["accountId","resourceState","state"],"members":{"accountId":{},"resourceState":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{"shape":"Sa"},"ecr":{"shape":"Sa"},"lambda":{"shape":"Sa"},"lambdaCode":{"shape":"Sa"}}},"state":{"shape":"Sa"}}}},"failedAccounts":{"shape":"Se"}}}},"BatchGetCodeSnippet":{"http":{"requestUri":"/codesnippet/batchget","responseCode":200},"input":{"type":"structure","required":["findingArns"],"members":{"findingArns":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"codeSnippetResults":{"type":"list","member":{"type":"structure","members":{"codeSnippet":{"type":"list","member":{"type":"structure","required":["content","lineNumber"],"members":{"content":{},"lineNumber":{"type":"integer"}}}},"endLine":{"type":"integer"},"findingArn":{},"startLine":{"type":"integer"},"suggestedFixes":{"type":"list","member":{"type":"structure","members":{"code":{},"description":{}}}}}}},"errors":{"type":"list","member":{"type":"structure","required":["errorCode","errorMessage","findingArn"],"members":{"errorCode":{},"errorMessage":{},"findingArn":{}}}}}}},"BatchGetFindingDetails":{"http":{"requestUri":"/findings/details/batch/get","responseCode":200},"input":{"type":"structure","required":["findingArns"],"members":{"findingArns":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"errors":{"type":"list","member":{"type":"structure","required":["errorCode","errorMessage","findingArn"],"members":{"errorCode":{},"errorMessage":{},"findingArn":{}}}},"findingDetails":{"type":"list","member":{"type":"structure","members":{"cisaData":{"shape":"S16"},"cwes":{"shape":"S1a"},"epssScore":{"type":"double"},"evidences":{"type":"list","member":{"type":"structure","members":{"evidenceDetail":{},"evidenceRule":{},"severity":{}}}},"exploitObserved":{"shape":"S1i"},"findingArn":{},"referenceUrls":{"shape":"S1l"},"riskScore":{"type":"integer"},"tools":{"type":"list","member":{}},"ttps":{"shape":"S1q"}}}}}}},"BatchGetFreeTrialInfo":{"http":{"requestUri":"/freetrialinfo/batchget","responseCode":200},"input":{"type":"structure","required":["accountIds"],"members":{"accountIds":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts","failedAccounts"],"members":{"accounts":{"type":"list","member":{"type":"structure","required":["accountId","freeTrialInfo"],"members":{"accountId":{},"freeTrialInfo":{"type":"list","member":{"type":"structure","required":["end","start","status","type"],"members":{"end":{"type":"timestamp"},"start":{"type":"timestamp"},"status":{},"type":{}}}}}}},"failedAccounts":{"type":"list","member":{"type":"structure","required":["accountId","code","message"],"members":{"accountId":{},"code":{},"message":{}}}}}}},"BatchGetMemberEc2DeepInspectionStatus":{"http":{"requestUri":"/ec2deepinspectionstatus/member/batch/get","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"}}},"output":{"type":"structure","members":{"accountIds":{"shape":"S29"},"failedAccountIds":{"shape":"S2c"}}}},"BatchUpdateMemberEc2DeepInspectionStatus":{"http":{"requestUri":"/ec2deepinspectionstatus/member/batch/update","responseCode":200},"input":{"type":"structure","required":["accountIds"],"members":{"accountIds":{"type":"list","member":{"type":"structure","required":["accountId","activateDeepInspection"],"members":{"accountId":{},"activateDeepInspection":{"type":"boolean"}}}}}},"output":{"type":"structure","members":{"accountIds":{"shape":"S29"},"failedAccountIds":{"shape":"S2c"}}}},"CancelFindingsReport":{"http":{"requestUri":"/reporting/cancel","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","required":["reportId"],"members":{"reportId":{}}}},"CancelSbomExport":{"http":{"requestUri":"/sbomexport/cancel","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","members":{"reportId":{}}},"idempotent":true},"CreateCisScanConfiguration":{"http":{"requestUri":"/cis/scan-configuration/create","responseCode":200},"input":{"type":"structure","required":["scanName","schedule","securityLevel","targets"],"members":{"scanName":{},"schedule":{"shape":"S2q"},"securityLevel":{},"tags":{"shape":"S31"},"targets":{"type":"structure","required":["accountIds","targetResourceTags"],"members":{"accountIds":{"shape":"S35"},"targetResourceTags":{"shape":"S37"}}}}},"output":{"type":"structure","members":{"scanConfigurationArn":{}}}},"CreateFilter":{"http":{"requestUri":"/filters/create","responseCode":200},"input":{"type":"structure","required":["action","filterCriteria","name"],"members":{"action":{},"description":{},"filterCriteria":{"shape":"S3e"},"name":{},"reason":{},"tags":{"shape":"S3x"}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"CreateFindingsReport":{"http":{"requestUri":"/reporting/create","responseCode":200},"input":{"type":"structure","required":["reportFormat","s3Destination"],"members":{"filterCriteria":{"shape":"S3e"},"reportFormat":{},"s3Destination":{"shape":"S42"}}},"output":{"type":"structure","members":{"reportId":{}}}},"CreateSbomExport":{"http":{"requestUri":"/sbomexport/create","responseCode":200},"input":{"type":"structure","required":["reportFormat","s3Destination"],"members":{"reportFormat":{},"resourceFilterCriteria":{"shape":"S46"},"s3Destination":{"shape":"S42"}}},"output":{"type":"structure","members":{"reportId":{}}},"idempotent":true},"DeleteCisScanConfiguration":{"http":{"requestUri":"/cis/scan-configuration/delete","responseCode":200},"input":{"type":"structure","required":["scanConfigurationArn"],"members":{"scanConfigurationArn":{}}},"output":{"type":"structure","required":["scanConfigurationArn"],"members":{"scanConfigurationArn":{}}}},"DeleteFilter":{"http":{"requestUri":"/filters/delete","responseCode":200},"input":{"type":"structure","required":["arn"],"members":{"arn":{}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"DescribeOrganizationConfiguration":{"http":{"requestUri":"/organizationconfiguration/describe","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"autoEnable":{"shape":"S4l"},"maxAccountLimitReached":{"type":"boolean"}}}},"Disable":{"http":{"requestUri":"/disable","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"shape":"S5"},"resourceTypes":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"shape":"S4q"},"failedAccounts":{"shape":"Se"}}}},"DisableDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/disable","responseCode":200},"input":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}},"output":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}}},"DisassociateMember":{"http":{"requestUri":"/members/disassociate","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","required":["accountId"],"members":{"accountId":{}}}},"Enable":{"http":{"requestUri":"/enable","responseCode":200},"input":{"type":"structure","required":["resourceTypes"],"members":{"accountIds":{"shape":"S5"},"clientToken":{"idempotencyToken":true},"resourceTypes":{"type":"list","member":{}}}},"output":{"type":"structure","required":["accounts"],"members":{"accounts":{"shape":"S4q"},"failedAccounts":{"shape":"Se"}}}},"EnableDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/enable","responseCode":200},"input":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"clientToken":{"idempotencyToken":true},"delegatedAdminAccountId":{}}},"output":{"type":"structure","required":["delegatedAdminAccountId"],"members":{"delegatedAdminAccountId":{}}}},"GetCisScanReport":{"http":{"requestUri":"/cis/scan/report/get","responseCode":200},"input":{"type":"structure","required":["scanArn"],"members":{"scanArn":{},"targetAccounts":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"status":{},"url":{}}}},"GetCisScanResultDetails":{"http":{"requestUri":"/cis/scan-result/details/get","responseCode":200},"input":{"type":"structure","required":["accountId","scanArn","targetResourceId"],"members":{"accountId":{},"filterCriteria":{"type":"structure","members":{"checkIdFilters":{"shape":"S59"},"findingArnFilters":{"type":"list","member":{"shape":"S5a"}},"findingStatusFilters":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"securityLevelFilters":{"shape":"S5h"},"titleFilters":{"shape":"S5k"}}},"maxResults":{"type":"integer"},"nextToken":{},"scanArn":{},"sortBy":{},"sortOrder":{},"targetResourceId":{}}},"output":{"type":"structure","members":{"nextToken":{},"scanResultDetails":{"type":"list","member":{"type":"structure","required":["scanArn"],"members":{"accountId":{},"checkDescription":{},"checkId":{},"findingArn":{},"level":{},"platform":{},"remediation":{},"scanArn":{},"status":{},"statusReason":{},"targetResourceId":{},"title":{}}}}}}},"GetConfiguration":{"http":{"requestUri":"/configuration/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"ecrConfiguration":{"type":"structure","members":{"rescanDurationState":{"type":"structure","members":{"rescanDuration":{},"status":{},"updatedAt":{"type":"timestamp"}}}}}}}},"GetDelegatedAdminAccount":{"http":{"requestUri":"/delegatedadminaccounts/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"delegatedAdmin":{"type":"structure","members":{"accountId":{},"relationshipStatus":{}}}}}},"GetEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/get","responseCode":200},"input":{"type":"structure","members":{}},"output":{"type":"structure","members":{"errorMessage":{},"orgPackagePaths":{"shape":"S67"},"packagePaths":{"shape":"S67"},"status":{}}}},"GetEncryptionKey":{"http":{"method":"GET","requestUri":"/encryptionkey/get","responseCode":200},"input":{"type":"structure","required":["resourceType","scanType"],"members":{"resourceType":{"location":"querystring","locationName":"resourceType"},"scanType":{"location":"querystring","locationName":"scanType"}}},"output":{"type":"structure","required":["kmsKeyId"],"members":{"kmsKeyId":{}}}},"GetFindingsReportStatus":{"http":{"requestUri":"/reporting/status/get","responseCode":200},"input":{"type":"structure","members":{"reportId":{}}},"output":{"type":"structure","members":{"destination":{"shape":"S42"},"errorCode":{},"errorMessage":{},"filterCriteria":{"shape":"S3e"},"reportId":{},"status":{}}}},"GetMember":{"http":{"requestUri":"/members/get","responseCode":200},"input":{"type":"structure","required":["accountId"],"members":{"accountId":{}}},"output":{"type":"structure","members":{"member":{"shape":"S6l"}}}},"GetSbomExport":{"http":{"requestUri":"/sbomexport/get","responseCode":200},"input":{"type":"structure","required":["reportId"],"members":{"reportId":{}}},"output":{"type":"structure","members":{"errorCode":{},"errorMessage":{},"filterCriteria":{"shape":"S46"},"format":{},"reportId":{},"s3Destination":{"shape":"S42"},"status":{}}},"idempotent":true},"ListAccountPermissions":{"http":{"requestUri":"/accountpermissions/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{},"service":{}}},"output":{"type":"structure","required":["permissions"],"members":{"nextToken":{},"permissions":{"type":"list","member":{"type":"structure","required":["operation","service"],"members":{"operation":{},"service":{}}}}}}},"ListCisScanConfigurations":{"http":{"requestUri":"/cis/scan-configuration/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"type":"structure","members":{"scanConfigurationArnFilters":{"shape":"S6x"},"scanNameFilters":{"shape":"S6y"},"targetResourceTagFilters":{"shape":"S6z"}}},"maxResults":{"type":"integer"},"nextToken":{},"sortBy":{},"sortOrder":{}}},"output":{"type":"structure","members":{"nextToken":{},"scanConfigurations":{"type":"list","member":{"type":"structure","required":["scanConfigurationArn"],"members":{"ownerId":{},"scanConfigurationArn":{},"scanName":{},"schedule":{"shape":"S2q"},"securityLevel":{},"tags":{"shape":"S31"},"targets":{"shape":"S78"}}}}}}},"ListCisScanResultsAggregatedByChecks":{"http":{"requestUri":"/cis/scan-result/check/list","responseCode":200},"input":{"type":"structure","required":["scanArn"],"members":{"filterCriteria":{"type":"structure","members":{"accountIdFilters":{"type":"list","member":{"shape":"S5a"}},"checkIdFilters":{"shape":"S59"},"failedResourcesFilters":{"shape":"S7d"},"platformFilters":{"shape":"S7f"},"securityLevelFilters":{"shape":"S5h"},"titleFilters":{"shape":"S5k"}}},"maxResults":{"type":"integer"},"nextToken":{},"scanArn":{},"sortBy":{},"sortOrder":{}}},"output":{"type":"structure","members":{"checkAggregations":{"type":"list","member":{"type":"structure","required":["scanArn"],"members":{"accountId":{},"checkDescription":{},"checkId":{},"level":{},"platform":{},"scanArn":{},"statusCounts":{"shape":"S7l"},"title":{}}}},"nextToken":{}}}},"ListCisScanResultsAggregatedByTargetResource":{"http":{"requestUri":"/cis/scan-result/resource/list","responseCode":200},"input":{"type":"structure","required":["scanArn"],"members":{"filterCriteria":{"type":"structure","members":{"accountIdFilters":{"shape":"S7o"},"checkIdFilters":{"shape":"S59"},"failedChecksFilters":{"shape":"S7d"},"platformFilters":{"shape":"S7f"},"statusFilters":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"targetResourceIdFilters":{"shape":"S7t"},"targetResourceTagFilters":{"shape":"S6z"},"targetStatusFilters":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"targetStatusReasonFilters":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}}}},"maxResults":{"type":"integer"},"nextToken":{},"scanArn":{},"sortBy":{},"sortOrder":{}}},"output":{"type":"structure","members":{"nextToken":{},"targetResourceAggregations":{"type":"list","member":{"type":"structure","required":["scanArn"],"members":{"accountId":{},"platform":{},"scanArn":{},"statusCounts":{"shape":"S7l"},"targetResourceId":{},"targetResourceTags":{"shape":"S37"},"targetStatus":{},"targetStatusReason":{}}}}}}},"ListCisScans":{"http":{"requestUri":"/cis/scan/list","responseCode":200},"input":{"type":"structure","members":{"detailLevel":{},"filterCriteria":{"type":"structure","members":{"failedChecksFilters":{"shape":"S7d"},"scanArnFilters":{"type":"list","member":{"shape":"S5a"}},"scanAtFilters":{"type":"list","member":{"type":"structure","members":{"earliestScanStartTime":{"type":"timestamp"},"latestScanStartTime":{"type":"timestamp"}}}},"scanConfigurationArnFilters":{"shape":"S6x"},"scanNameFilters":{"shape":"S6y"},"scanStatusFilters":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"scheduledByFilters":{"type":"list","member":{"shape":"S5a"}},"targetAccountIdFilters":{"shape":"S7o"},"targetResourceIdFilters":{"shape":"S7t"},"targetResourceTagFilters":{"shape":"S6z"}}},"maxResults":{"type":"integer"},"nextToken":{},"sortBy":{},"sortOrder":{}}},"output":{"type":"structure","members":{"nextToken":{},"scans":{"type":"list","member":{"type":"structure","required":["scanArn","scanConfigurationArn"],"members":{"failedChecks":{"type":"integer"},"scanArn":{},"scanConfigurationArn":{},"scanDate":{"type":"timestamp"},"scanName":{},"scheduledBy":{},"securityLevel":{},"status":{},"targets":{"shape":"S78"},"totalChecks":{"type":"integer"}}}}}}},"ListCoverage":{"http":{"requestUri":"/coverage/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S8m"},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"coveredResources":{"type":"list","member":{"type":"structure","required":["accountId","resourceId","resourceType","scanType"],"members":{"accountId":{},"lastScannedAt":{"type":"timestamp"},"resourceId":{},"resourceMetadata":{"type":"structure","members":{"ec2":{"type":"structure","members":{"amiId":{},"platform":{},"tags":{"shape":"S3x"}}},"ecrImage":{"type":"structure","members":{"tags":{"type":"list","member":{}}}},"ecrRepository":{"type":"structure","members":{"name":{},"scanFrequency":{}}},"lambdaFunction":{"type":"structure","members":{"functionName":{},"functionTags":{"shape":"S3x"},"layers":{"type":"list","member":{}},"runtime":{}}}}},"resourceType":{},"scanStatus":{"type":"structure","required":["reason","statusCode"],"members":{"reason":{},"statusCode":{}}},"scanType":{}}}},"nextToken":{}}}},"ListCoverageStatistics":{"http":{"requestUri":"/coverage/statistics/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S8m"},"groupBy":{},"nextToken":{}}},"output":{"type":"structure","required":["totalCounts"],"members":{"countsByGroup":{"type":"list","member":{"type":"structure","members":{"count":{"type":"long"},"groupKey":{}}}},"nextToken":{},"totalCounts":{"type":"long"}}}},"ListDelegatedAdminAccounts":{"http":{"requestUri":"/delegatedadminaccounts/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"delegatedAdminAccounts":{"type":"list","member":{"type":"structure","members":{"accountId":{},"status":{}}}},"nextToken":{}}}},"ListFilters":{"http":{"requestUri":"/filters/list","responseCode":200},"input":{"type":"structure","members":{"action":{},"arns":{"type":"list","member":{}},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["filters"],"members":{"filters":{"type":"list","member":{"type":"structure","required":["action","arn","createdAt","criteria","name","ownerId","updatedAt"],"members":{"action":{},"arn":{},"createdAt":{"type":"timestamp"},"criteria":{"shape":"S3e"},"description":{},"name":{},"ownerId":{},"reason":{},"tags":{"shape":"S3x"},"updatedAt":{"type":"timestamp"}}}},"nextToken":{}}}},"ListFindingAggregations":{"http":{"requestUri":"/findings/aggregation/list","responseCode":200},"input":{"type":"structure","required":["aggregationType"],"members":{"accountIds":{"shape":"S3f"},"aggregationRequest":{"type":"structure","members":{"accountAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{}}},"amiAggregation":{"type":"structure","members":{"amis":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"awsEcrContainerAggregation":{"type":"structure","members":{"architectures":{"shape":"S3f"},"imageShas":{"shape":"S3f"},"imageTags":{"shape":"S3f"},"repositories":{"shape":"S3f"},"resourceIds":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"ec2InstanceAggregation":{"type":"structure","members":{"amis":{"shape":"S3f"},"instanceIds":{"shape":"S3f"},"instanceTags":{"shape":"S3q"},"operatingSystems":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"findingTypeAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{}}},"imageLayerAggregation":{"type":"structure","members":{"layerHashes":{"shape":"S3f"},"repositories":{"shape":"S3f"},"resourceIds":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"lambdaFunctionAggregation":{"type":"structure","members":{"functionNames":{"shape":"S3f"},"functionTags":{"shape":"S3q"},"resourceIds":{"shape":"S3f"},"runtimes":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"lambdaLayerAggregation":{"type":"structure","members":{"functionNames":{"shape":"S3f"},"layerArns":{"shape":"S3f"},"resourceIds":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"packageAggregation":{"type":"structure","members":{"packageNames":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"repositoryAggregation":{"type":"structure","members":{"repositories":{"shape":"S3f"},"sortBy":{},"sortOrder":{}}},"titleAggregation":{"type":"structure","members":{"findingType":{},"resourceType":{},"sortBy":{},"sortOrder":{},"titles":{"shape":"S3f"},"vulnerabilityIds":{"shape":"S3f"}}}},"union":true},"aggregationType":{},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","required":["aggregationType"],"members":{"aggregationType":{},"nextToken":{},"responses":{"type":"list","member":{"type":"structure","members":{"accountAggregation":{"type":"structure","members":{"accountId":{},"severityCounts":{"shape":"Saw"}}},"amiAggregation":{"type":"structure","required":["ami"],"members":{"accountId":{},"affectedInstances":{"type":"long"},"ami":{},"severityCounts":{"shape":"Saw"}}},"awsEcrContainerAggregation":{"type":"structure","required":["resourceId"],"members":{"accountId":{},"architecture":{},"imageSha":{},"imageTags":{"type":"list","member":{}},"repository":{},"resourceId":{},"severityCounts":{"shape":"Saw"}}},"ec2InstanceAggregation":{"type":"structure","required":["instanceId"],"members":{"accountId":{},"ami":{},"instanceId":{},"instanceTags":{"shape":"S3x"},"networkFindings":{"type":"long"},"operatingSystem":{},"severityCounts":{"shape":"Saw"}}},"findingTypeAggregation":{"type":"structure","members":{"accountId":{},"severityCounts":{"shape":"Saw"}}},"imageLayerAggregation":{"type":"structure","required":["accountId","layerHash","repository","resourceId"],"members":{"accountId":{},"layerHash":{},"repository":{},"resourceId":{},"severityCounts":{"shape":"Saw"}}},"lambdaFunctionAggregation":{"type":"structure","required":["resourceId"],"members":{"accountId":{},"functionName":{},"lambdaTags":{"shape":"S3x"},"lastModifiedAt":{"type":"timestamp"},"resourceId":{},"runtime":{},"severityCounts":{"shape":"Saw"}}},"lambdaLayerAggregation":{"type":"structure","required":["accountId","functionName","layerArn","resourceId"],"members":{"accountId":{},"functionName":{},"layerArn":{},"resourceId":{},"severityCounts":{"shape":"Saw"}}},"packageAggregation":{"type":"structure","required":["packageName"],"members":{"accountId":{},"packageName":{},"severityCounts":{"shape":"Saw"}}},"repositoryAggregation":{"type":"structure","required":["repository"],"members":{"accountId":{},"affectedImages":{"type":"long"},"repository":{},"severityCounts":{"shape":"Saw"}}},"titleAggregation":{"type":"structure","required":["title"],"members":{"accountId":{},"severityCounts":{"shape":"Saw"},"title":{},"vulnerabilityId":{}}}},"union":true}}}}},"ListFindings":{"http":{"requestUri":"/findings/list","responseCode":200},"input":{"type":"structure","members":{"filterCriteria":{"shape":"S3e"},"maxResults":{"type":"integer"},"nextToken":{},"sortCriteria":{"type":"structure","required":["field","sortOrder"],"members":{"field":{},"sortOrder":{}}}}},"output":{"type":"structure","members":{"findings":{"type":"list","member":{"type":"structure","required":["awsAccountId","description","findingArn","firstObservedAt","lastObservedAt","remediation","resources","severity","status","type"],"members":{"awsAccountId":{},"codeVulnerabilityDetails":{"type":"structure","required":["cwes","detectorId","detectorName","filePath"],"members":{"cwes":{"type":"list","member":{}},"detectorId":{},"detectorName":{},"detectorTags":{"type":"list","member":{}},"filePath":{"type":"structure","required":["endLine","fileName","filePath","startLine"],"members":{"endLine":{"type":"integer"},"fileName":{},"filePath":{},"startLine":{"type":"integer"}}},"referenceUrls":{"type":"list","member":{}},"ruleId":{},"sourceLambdaLayerArn":{}}},"description":{},"epss":{"type":"structure","members":{"score":{"type":"double"}}},"exploitAvailable":{},"exploitabilityDetails":{"type":"structure","members":{"lastKnownExploitAt":{"type":"timestamp"}}},"findingArn":{},"firstObservedAt":{"type":"timestamp"},"fixAvailable":{},"inspectorScore":{"type":"double"},"inspectorScoreDetails":{"type":"structure","members":{"adjustedCvss":{"type":"structure","required":["score","scoreSource","scoringVector","version"],"members":{"adjustments":{"type":"list","member":{"type":"structure","required":["metric","reason"],"members":{"metric":{},"reason":{}}}},"cvssSource":{},"score":{"type":"double"},"scoreSource":{},"scoringVector":{},"version":{}}}}},"lastObservedAt":{"type":"timestamp"},"networkReachabilityDetails":{"type":"structure","required":["networkPath","openPortRange","protocol"],"members":{"networkPath":{"type":"structure","members":{"steps":{"type":"list","member":{"type":"structure","required":["componentId","componentType"],"members":{"componentId":{},"componentType":{}}}}}},"openPortRange":{"type":"structure","required":["begin","end"],"members":{"begin":{"type":"integer"},"end":{"type":"integer"}}},"protocol":{}}},"packageVulnerabilityDetails":{"type":"structure","required":["source","vulnerabilityId"],"members":{"cvss":{"type":"list","member":{"type":"structure","required":["baseScore","scoringVector","source","version"],"members":{"baseScore":{"type":"double"},"scoringVector":{},"source":{},"version":{}}}},"referenceUrls":{"type":"list","member":{}},"relatedVulnerabilities":{"type":"list","member":{}},"source":{},"sourceUrl":{},"vendorCreatedAt":{"type":"timestamp"},"vendorSeverity":{},"vendorUpdatedAt":{"type":"timestamp"},"vulnerabilityId":{},"vulnerablePackages":{"type":"list","member":{"type":"structure","required":["name","version"],"members":{"arch":{},"epoch":{"type":"integer"},"filePath":{},"fixedInVersion":{},"name":{},"packageManager":{},"release":{},"remediation":{},"sourceLambdaLayerArn":{},"sourceLayerHash":{},"version":{}}}}}},"remediation":{"type":"structure","members":{"recommendation":{"type":"structure","members":{"Url":{},"text":{}}}}},"resources":{"type":"list","member":{"type":"structure","required":["id","type"],"members":{"details":{"type":"structure","members":{"awsEc2Instance":{"type":"structure","members":{"iamInstanceProfileArn":{},"imageId":{},"ipV4Addresses":{"type":"list","member":{}},"ipV6Addresses":{"type":"list","member":{}},"keyName":{},"launchedAt":{"type":"timestamp"},"platform":{},"subnetId":{},"type":{},"vpcId":{}}},"awsEcrContainerImage":{"type":"structure","required":["imageHash","registry","repositoryName"],"members":{"architecture":{},"author":{},"imageHash":{},"imageTags":{"type":"list","member":{}},"platform":{},"pushedAt":{"type":"timestamp"},"registry":{},"repositoryName":{}}},"awsLambdaFunction":{"type":"structure","required":["codeSha256","executionRoleArn","functionName","runtime","version"],"members":{"architectures":{"type":"list","member":{}},"codeSha256":{},"executionRoleArn":{},"functionName":{},"lastModifiedAt":{"type":"timestamp"},"layers":{"type":"list","member":{}},"packageType":{},"runtime":{},"version":{},"vpcConfig":{"type":"structure","members":{"securityGroupIds":{"type":"list","member":{}},"subnetIds":{"type":"list","member":{}},"vpcId":{}}}}}}},"id":{},"partition":{},"region":{},"tags":{"shape":"S3x"},"type":{}}}},"severity":{},"status":{},"title":{},"type":{},"updatedAt":{"type":"timestamp"}}}},"nextToken":{}}}},"ListMembers":{"http":{"requestUri":"/members/list","responseCode":200},"input":{"type":"structure","members":{"maxResults":{"type":"integer"},"nextToken":{},"onlyAssociated":{"type":"boolean"}}},"output":{"type":"structure","members":{"members":{"type":"list","member":{"shape":"S6l"}},"nextToken":{}}}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"}}},"output":{"type":"structure","members":{"tags":{"shape":"S3x"}}}},"ListUsageTotals":{"http":{"requestUri":"/usage/list","responseCode":200},"input":{"type":"structure","members":{"accountIds":{"type":"list","member":{}},"maxResults":{"type":"integer"},"nextToken":{}}},"output":{"type":"structure","members":{"nextToken":{},"totals":{"type":"list","member":{"type":"structure","members":{"accountId":{},"usage":{"type":"list","member":{"type":"structure","members":{"currency":{},"estimatedMonthlyCost":{"type":"double"},"total":{"type":"double"},"type":{}}}}}}}}}},"ResetEncryptionKey":{"http":{"method":"PUT","requestUri":"/encryptionkey/reset","responseCode":200},"input":{"type":"structure","required":["resourceType","scanType"],"members":{"resourceType":{},"scanType":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"SearchVulnerabilities":{"http":{"requestUri":"/vulnerabilities/search","responseCode":200},"input":{"type":"structure","required":["filterCriteria"],"members":{"filterCriteria":{"type":"structure","required":["vulnerabilityIds"],"members":{"vulnerabilityIds":{"type":"list","member":{}}}},"nextToken":{}}},"output":{"type":"structure","required":["vulnerabilities"],"members":{"nextToken":{},"vulnerabilities":{"type":"list","member":{"type":"structure","required":["id"],"members":{"atigData":{"type":"structure","members":{"firstSeen":{"type":"timestamp"},"lastSeen":{"type":"timestamp"},"targets":{"type":"list","member":{}},"ttps":{"shape":"S1q"}}},"cisaData":{"shape":"S16"},"cvss2":{"type":"structure","members":{"baseScore":{"type":"double"},"scoringVector":{}}},"cvss3":{"type":"structure","members":{"baseScore":{"type":"double"},"scoringVector":{}}},"cwes":{"shape":"S1a"},"description":{},"detectionPlatforms":{"type":"list","member":{}},"epss":{"type":"structure","members":{"score":{"type":"double"}}},"exploitObserved":{"shape":"S1i"},"id":{},"referenceUrls":{"shape":"S1l"},"relatedVulnerabilities":{"type":"list","member":{}},"source":{},"sourceUrl":{},"vendorCreatedAt":{"type":"timestamp"},"vendorSeverity":{},"vendorUpdatedAt":{"type":"timestamp"}}}}}}},"SendCisSessionHealth":{"http":{"method":"PUT","requestUri":"/cissession/health/send","responseCode":200},"input":{"type":"structure","required":["scanJobId","sessionToken"],"members":{"scanJobId":{},"sessionToken":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"SendCisSessionTelemetry":{"http":{"method":"PUT","requestUri":"/cissession/telemetry/send","responseCode":200},"input":{"type":"structure","required":["messages","scanJobId","sessionToken"],"members":{"messages":{"type":"list","member":{"type":"structure","required":["cisRuleDetails","ruleId","status"],"members":{"cisRuleDetails":{"type":"blob"},"ruleId":{},"status":{}}}},"scanJobId":{},"sessionToken":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"StartCisSession":{"http":{"method":"PUT","requestUri":"/cissession/start","responseCode":200},"input":{"type":"structure","required":["message","scanJobId"],"members":{"message":{"type":"structure","required":["sessionToken"],"members":{"sessionToken":{}}},"scanJobId":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"StopCisSession":{"http":{"method":"PUT","requestUri":"/cissession/stop","responseCode":200},"input":{"type":"structure","required":["message","scanJobId","sessionToken"],"members":{"message":{"type":"structure","required":["progress","status"],"members":{"benchmarkProfile":{},"benchmarkVersion":{},"computePlatform":{"type":"structure","members":{"product":{},"vendor":{},"version":{}}},"progress":{"type":"structure","members":{"errorChecks":{"type":"integer"},"failedChecks":{"type":"integer"},"informationalChecks":{"type":"integer"},"notApplicableChecks":{"type":"integer"},"notEvaluatedChecks":{"type":"integer"},"successfulChecks":{"type":"integer"},"totalChecks":{"type":"integer"},"unknownChecks":{"type":"integer"}}},"reason":{},"status":{}}},"scanJobId":{},"sessionToken":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"TagResource":{"http":{"requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tags"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tags":{"shape":"S3x"}}},"output":{"type":"structure","members":{}},"idempotent":true},"UntagResource":{"http":{"method":"DELETE","requestUri":"/tags/{resourceArn}","responseCode":200},"input":{"type":"structure","required":["resourceArn","tagKeys"],"members":{"resourceArn":{"location":"uri","locationName":"resourceArn"},"tagKeys":{"location":"querystring","locationName":"tagKeys","type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateCisScanConfiguration":{"http":{"requestUri":"/cis/scan-configuration/update","responseCode":200},"input":{"type":"structure","required":["scanConfigurationArn"],"members":{"scanConfigurationArn":{},"scanName":{},"schedule":{"shape":"S2q"},"securityLevel":{},"targets":{"type":"structure","members":{"accountIds":{"shape":"S35"},"targetResourceTags":{"shape":"S37"}}}}},"output":{"type":"structure","required":["scanConfigurationArn"],"members":{"scanConfigurationArn":{}}}},"UpdateConfiguration":{"http":{"requestUri":"/configuration/update","responseCode":200},"input":{"type":"structure","required":["ecrConfiguration"],"members":{"ecrConfiguration":{"type":"structure","required":["rescanDuration"],"members":{"rescanDuration":{}}}}},"output":{"type":"structure","members":{}}},"UpdateEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/update","responseCode":200},"input":{"type":"structure","members":{"activateDeepInspection":{"type":"boolean"},"packagePaths":{"shape":"S67"}}},"output":{"type":"structure","members":{"errorMessage":{},"orgPackagePaths":{"shape":"S67"},"packagePaths":{"shape":"S67"},"status":{}}}},"UpdateEncryptionKey":{"http":{"method":"PUT","requestUri":"/encryptionkey/update","responseCode":200},"input":{"type":"structure","required":["kmsKeyId","resourceType","scanType"],"members":{"kmsKeyId":{},"resourceType":{},"scanType":{}}},"output":{"type":"structure","members":{}},"idempotent":true},"UpdateFilter":{"http":{"requestUri":"/filters/update","responseCode":200},"input":{"type":"structure","required":["filterArn"],"members":{"action":{},"description":{},"filterArn":{},"filterCriteria":{"shape":"S3e"},"name":{},"reason":{}}},"output":{"type":"structure","required":["arn"],"members":{"arn":{}}}},"UpdateOrgEc2DeepInspectionConfiguration":{"http":{"requestUri":"/ec2deepinspectionconfiguration/org/update","responseCode":200},"input":{"type":"structure","required":["orgPackagePaths"],"members":{"orgPackagePaths":{"shape":"S67"}}},"output":{"type":"structure","members":{}}},"UpdateOrganizationConfiguration":{"http":{"requestUri":"/organizationconfiguration/update","responseCode":200},"input":{"type":"structure","required":["autoEnable"],"members":{"autoEnable":{"shape":"S4l"}}},"output":{"type":"structure","required":["autoEnable"],"members":{"autoEnable":{"shape":"S4l"}}}}},"shapes":{"S5":{"type":"list","member":{}},"Sa":{"type":"structure","required":["errorCode","errorMessage","status"],"members":{"errorCode":{},"errorMessage":{},"status":{}}},"Se":{"type":"list","member":{"type":"structure","required":["accountId","errorCode","errorMessage"],"members":{"accountId":{},"errorCode":{},"errorMessage":{},"resourceStatus":{"shape":"Sg"},"status":{}}}},"Sg":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{},"ecr":{},"lambda":{},"lambdaCode":{}}},"S16":{"type":"structure","members":{"action":{},"dateAdded":{"type":"timestamp"},"dateDue":{"type":"timestamp"}}},"S1a":{"type":"list","member":{}},"S1i":{"type":"structure","members":{"firstSeen":{"type":"timestamp"},"lastSeen":{"type":"timestamp"}}},"S1l":{"type":"list","member":{}},"S1q":{"type":"list","member":{}},"S29":{"type":"list","member":{"type":"structure","required":["accountId"],"members":{"accountId":{},"errorMessage":{},"status":{}}}},"S2c":{"type":"list","member":{"type":"structure","required":["accountId"],"members":{"accountId":{},"ec2ScanStatus":{},"errorMessage":{}}}},"S2q":{"type":"structure","members":{"daily":{"type":"structure","required":["startTime"],"members":{"startTime":{"shape":"S2s"}}},"monthly":{"type":"structure","required":["day","startTime"],"members":{"day":{},"startTime":{"shape":"S2s"}}},"oneTime":{"type":"structure","members":{}},"weekly":{"type":"structure","required":["days","startTime"],"members":{"days":{"type":"list","member":{}},"startTime":{"shape":"S2s"}}}},"union":true},"S2s":{"type":"structure","required":["timeOfDay","timezone"],"members":{"timeOfDay":{},"timezone":{}}},"S31":{"type":"map","key":{},"value":{}},"S35":{"type":"list","member":{}},"S37":{"type":"map","key":{},"value":{"type":"list","member":{}}},"S3e":{"type":"structure","members":{"awsAccountId":{"shape":"S3f"},"codeVulnerabilityDetectorName":{"shape":"S3f"},"codeVulnerabilityDetectorTags":{"shape":"S3f"},"codeVulnerabilityFilePath":{"shape":"S3f"},"componentId":{"shape":"S3f"},"componentType":{"shape":"S3f"},"ec2InstanceImageId":{"shape":"S3f"},"ec2InstanceSubnetId":{"shape":"S3f"},"ec2InstanceVpcId":{"shape":"S3f"},"ecrImageArchitecture":{"shape":"S3f"},"ecrImageHash":{"shape":"S3f"},"ecrImagePushedAt":{"shape":"S3j"},"ecrImageRegistry":{"shape":"S3f"},"ecrImageRepositoryName":{"shape":"S3f"},"ecrImageTags":{"shape":"S3f"},"epssScore":{"shape":"S3l"},"exploitAvailable":{"shape":"S3f"},"findingArn":{"shape":"S3f"},"findingStatus":{"shape":"S3f"},"findingType":{"shape":"S3f"},"firstObservedAt":{"shape":"S3j"},"fixAvailable":{"shape":"S3f"},"inspectorScore":{"shape":"S3l"},"lambdaFunctionExecutionRoleArn":{"shape":"S3f"},"lambdaFunctionLastModifiedAt":{"shape":"S3j"},"lambdaFunctionLayers":{"shape":"S3f"},"lambdaFunctionName":{"shape":"S3f"},"lambdaFunctionRuntime":{"shape":"S3f"},"lastObservedAt":{"shape":"S3j"},"networkProtocol":{"shape":"S3f"},"portRange":{"type":"list","member":{"type":"structure","members":{"beginInclusive":{"type":"integer"},"endInclusive":{"type":"integer"}}}},"relatedVulnerabilities":{"shape":"S3f"},"resourceId":{"shape":"S3f"},"resourceTags":{"shape":"S3q"},"resourceType":{"shape":"S3f"},"severity":{"shape":"S3f"},"title":{"shape":"S3f"},"updatedAt":{"shape":"S3j"},"vendorSeverity":{"shape":"S3f"},"vulnerabilityId":{"shape":"S3f"},"vulnerabilitySource":{"shape":"S3f"},"vulnerablePackages":{"type":"list","member":{"type":"structure","members":{"architecture":{"shape":"S3g"},"epoch":{"shape":"S3m"},"name":{"shape":"S3g"},"release":{"shape":"S3g"},"sourceLambdaLayerArn":{"shape":"S3g"},"sourceLayerHash":{"shape":"S3g"},"version":{"shape":"S3g"}}}}}},"S3f":{"type":"list","member":{"shape":"S3g"}},"S3g":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}},"S3j":{"type":"list","member":{"type":"structure","members":{"endInclusive":{"type":"timestamp"},"startInclusive":{"type":"timestamp"}}}},"S3l":{"type":"list","member":{"shape":"S3m"}},"S3m":{"type":"structure","members":{"lowerInclusive":{"type":"double"},"upperInclusive":{"type":"double"}}},"S3q":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"S3x":{"type":"map","key":{},"value":{}},"S42":{"type":"structure","required":["bucketName","kmsKeyArn"],"members":{"bucketName":{},"keyPrefix":{},"kmsKeyArn":{}}},"S46":{"type":"structure","members":{"accountId":{"shape":"S47"},"ec2InstanceTags":{"shape":"S4b"},"ecrImageTags":{"shape":"S47"},"ecrRepositoryName":{"shape":"S47"},"lambdaFunctionName":{"shape":"S47"},"lambdaFunctionTags":{"shape":"S4b"},"resourceId":{"shape":"S47"},"resourceType":{"shape":"S47"}}},"S47":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"S4b":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"S4l":{"type":"structure","required":["ec2","ecr"],"members":{"ec2":{"type":"boolean"},"ecr":{"type":"boolean"},"lambda":{"type":"boolean"},"lambdaCode":{"type":"boolean"}}},"S4q":{"type":"list","member":{"type":"structure","required":["accountId","resourceStatus","status"],"members":{"accountId":{},"resourceStatus":{"shape":"Sg"},"status":{}}}},"S59":{"type":"list","member":{"shape":"S5a"}},"S5a":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}},"S5h":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"S5k":{"type":"list","member":{"shape":"S5a"}},"S67":{"type":"list","member":{}},"S6l":{"type":"structure","members":{"accountId":{},"delegatedAdminAccountId":{},"relationshipStatus":{},"updatedAt":{"type":"timestamp"}}},"S6x":{"type":"list","member":{"shape":"S5a"}},"S6y":{"type":"list","member":{"shape":"S5a"}},"S6z":{"type":"list","member":{"type":"structure","required":["comparison","key","value"],"members":{"comparison":{},"key":{},"value":{}}}},"S78":{"type":"structure","members":{"accountIds":{"type":"list","member":{}},"targetResourceTags":{"shape":"S37"}}},"S7d":{"type":"list","member":{"type":"structure","members":{"lowerInclusive":{"type":"integer"},"upperInclusive":{"type":"integer"}}}},"S7f":{"type":"list","member":{"shape":"S5a"}},"S7l":{"type":"structure","members":{"failed":{"type":"integer"},"passed":{"type":"integer"},"skipped":{"type":"integer"}}},"S7o":{"type":"list","member":{"shape":"S5a"}},"S7t":{"type":"list","member":{"shape":"S5a"}},"S8m":{"type":"structure","members":{"accountId":{"shape":"S8n"},"ec2InstanceTags":{"shape":"S8r"},"ecrImageTags":{"shape":"S8n"},"ecrRepositoryName":{"shape":"S8n"},"lambdaFunctionName":{"shape":"S8n"},"lambdaFunctionRuntime":{"shape":"S8n"},"lambdaFunctionTags":{"shape":"S8r"},"lastScannedAt":{"type":"list","member":{"type":"structure","members":{"endInclusive":{"type":"timestamp"},"startInclusive":{"type":"timestamp"}}}},"resourceId":{"shape":"S8n"},"resourceType":{"shape":"S8n"},"scanStatusCode":{"shape":"S8n"},"scanStatusReason":{"shape":"S8n"},"scanType":{"shape":"S8n"}}},"S8n":{"type":"list","member":{"type":"structure","required":["comparison","value"],"members":{"comparison":{},"value":{}}}},"S8r":{"type":"list","member":{"type":"structure","required":["comparison","key"],"members":{"comparison":{},"key":{},"value":{}}}},"Saw":{"type":"structure","members":{"all":{"type":"long"},"critical":{"type":"long"},"high":{"type":"long"},"medium":{"type":"long"}}}}} /***/ }), /* 1133 */ /***/ (function(module, exports) { - module.exports = {"pagination":{"ListAccountPermissions":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"permissions"},"ListCoverage":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"coveredResources"},"ListCoverageStatistics":{"input_token":"nextToken","output_token":"nextToken","result_key":"countsByGroup"},"ListDelegatedAdminAccounts":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"delegatedAdminAccounts"},"ListFilters":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"filters"},"ListFindingAggregations":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"responses"},"ListFindings":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"findings"},"ListMembers":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"members"},"ListUsageTotals":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"totals"},"SearchVulnerabilities":{"input_token":"nextToken","output_token":"nextToken","result_key":"vulnerabilities"}}} + module.exports = {"pagination":{"GetCisScanResultDetails":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"scanResultDetails"},"ListAccountPermissions":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"permissions"},"ListCisScanConfigurations":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"scanConfigurations"},"ListCisScanResultsAggregatedByChecks":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"checkAggregations"},"ListCisScanResultsAggregatedByTargetResource":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"targetResourceAggregations"},"ListCisScans":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"scans"},"ListCoverage":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"coveredResources"},"ListCoverageStatistics":{"input_token":"nextToken","output_token":"nextToken","result_key":"countsByGroup"},"ListDelegatedAdminAccounts":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"delegatedAdminAccounts"},"ListFilters":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"filters"},"ListFindingAggregations":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"responses"},"ListFindings":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"findings"},"ListMembers":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"members"},"ListUsageTotals":{"input_token":"nextToken","output_token":"nextToken","limit_key":"maxResults","result_key":"totals"},"SearchVulnerabilities":{"input_token":"nextToken","output_token":"nextToken","result_key":"vulnerabilities"}}} /***/ }), /* 1134 */ diff --git a/dist/aws-sdk.js b/dist/aws-sdk.js index 6c8f96046d..0e335ae613 100644 --- a/dist/aws-sdk.js +++ b/dist/aws-sdk.js @@ -1,4 +1,4 @@ -// AWS SDK for JavaScript v2.1541.0 +// AWS SDK for JavaScript v2.1542.0 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:a,convertToBuffer:i}},{"buffer/":440}],342:[function(e,t,r){function a(e,t){this.hash=new e,this.outer=new e;var r=i(e,t),a=new Uint8Array(e.BLOCK_SIZE);a.set(r);for(var s=0;se.BLOCK_SIZE){var a=new e;a.update(r),r=a.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}var s=e("./browserHashUtils");t.exports=a,a.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},a.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":341}],343:[function(e,t,r){function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(c)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function i(e,t,r,a,i,s){return((t=(t+e&4294967295)+(a+s&4294967295)&4294967295)<>>32-i)+r&4294967295}function s(e,t,r,a,s,o,n){return i(t&r|~t&a,e,t,s,o,n)}function o(e,t,r,a,s,o,n){return i(t&a|r&~a,e,t,s,o,n)}function n(e,t,r,a,s,o,n){return i(t^r^a,e,t,s,o,n)}function u(e,t,r,a,s,o,n){return i(r^(t|~a),e,t,s,o,n)}var p=e("./browserHashUtils"),m=e("buffer/").Buffer,c=64;t.exports=a,a.BLOCK_SIZE=c,a.prototype.update=function(e){if(p.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=p.convertToBuffer(e),r=0,a=t.byteLength;for(this.bytesHashed+=a;a>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),a--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,a=t.bufferLength,i=t.bytesHashed,s=8*i;if(r.setUint8(this.bufferLength++,128),a%c>=c-8){for(var o=this.bufferLength;o>>0,!0),r.setUint32(c-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var n=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)n.setUint32(4*o,this.state[o],!0);var u=new m(n.buffer,n.byteOffset,n.byteLength);return e?u.toString(e):u},a.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],p=r[2],m=r[3];a=s(a,i,p,m,t.getUint32(0,!0),7,3614090360),m=s(m,a,i,p,t.getUint32(4,!0),12,3905402710),p=s(p,m,a,i,t.getUint32(8,!0),17,606105819),i=s(i,p,m,a,t.getUint32(12,!0),22,3250441966),a=s(a,i,p,m,t.getUint32(16,!0),7,4118548399),m=s(m,a,i,p,t.getUint32(20,!0),12,1200080426),p=s(p,m,a,i,t.getUint32(24,!0),17,2821735955),i=s(i,p,m,a,t.getUint32(28,!0),22,4249261313),a=s(a,i,p,m,t.getUint32(32,!0),7,1770035416),m=s(m,a,i,p,t.getUint32(36,!0),12,2336552879),p=s(p,m,a,i,t.getUint32(40,!0),17,4294925233),i=s(i,p,m,a,t.getUint32(44,!0),22,2304563134),a=s(a,i,p,m,t.getUint32(48,!0),7,1804603682),m=s(m,a,i,p,t.getUint32(52,!0),12,4254626195),p=s(p,m,a,i,t.getUint32(56,!0),17,2792965006),i=s(i,p,m,a,t.getUint32(60,!0),22,1236535329),a=o(a,i,p,m,t.getUint32(4,!0),5,4129170786),m=o(m,a,i,p,t.getUint32(24,!0),9,3225465664),p=o(p,m,a,i,t.getUint32(44,!0),14,643717713),i=o(i,p,m,a,t.getUint32(0,!0),20,3921069994),a=o(a,i,p,m,t.getUint32(20,!0),5,3593408605),m=o(m,a,i,p,t.getUint32(40,!0),9,38016083),p=o(p,m,a,i,t.getUint32(60,!0),14,3634488961),i=o(i,p,m,a,t.getUint32(16,!0),20,3889429448),a=o(a,i,p,m,t.getUint32(36,!0),5,568446438),m=o(m,a,i,p,t.getUint32(56,!0),9,3275163606),p=o(p,m,a,i,t.getUint32(12,!0),14,4107603335),i=o(i,p,m,a,t.getUint32(32,!0),20,1163531501),a=o(a,i,p,m,t.getUint32(52,!0),5,2850285829),m=o(m,a,i,p,t.getUint32(8,!0),9,4243563512),p=o(p,m,a,i,t.getUint32(28,!0),14,1735328473),i=o(i,p,m,a,t.getUint32(48,!0),20,2368359562),a=n(a,i,p,m,t.getUint32(20,!0),4,4294588738),m=n(m,a,i,p,t.getUint32(32,!0),11,2272392833),p=n(p,m,a,i,t.getUint32(44,!0),16,1839030562),i=n(i,p,m,a,t.getUint32(56,!0),23,4259657740),a=n(a,i,p,m,t.getUint32(4,!0),4,2763975236),m=n(m,a,i,p,t.getUint32(16,!0),11,1272893353),p=n(p,m,a,i,t.getUint32(28,!0),16,4139469664),i=n(i,p,m,a,t.getUint32(40,!0),23,3200236656),a=n(a,i,p,m,t.getUint32(52,!0),4,681279174),m=n(m,a,i,p,t.getUint32(0,!0),11,3936430074),p=n(p,m,a,i,t.getUint32(12,!0),16,3572445317),i=n(i,p,m,a,t.getUint32(24,!0),23,76029189),a=n(a,i,p,m,t.getUint32(36,!0),4,3654602809),m=n(m,a,i,p,t.getUint32(48,!0),11,3873151461),p=n(p,m,a,i,t.getUint32(60,!0),16,530742520),i=n(i,p,m,a,t.getUint32(8,!0),23,3299628645),a=u(a,i,p,m,t.getUint32(0,!0),6,4096336452),m=u(m,a,i,p,t.getUint32(28,!0),10,1126891415),p=u(p,m,a,i,t.getUint32(56,!0),15,2878612391),i=u(i,p,m,a,t.getUint32(20,!0),21,4237533241),a=u(a,i,p,m,t.getUint32(48,!0),6,1700485571),m=u(m,a,i,p,t.getUint32(12,!0),10,2399980690),p=u(p,m,a,i,t.getUint32(40,!0),15,4293915773),i=u(i,p,m,a,t.getUint32(4,!0),21,2240044497),a=u(a,i,p,m,t.getUint32(32,!0),6,1873313359),m=u(m,a,i,p,t.getUint32(60,!0),10,4264355552),p=u(p,m,a,i,t.getUint32(24,!0),15,2734768916),i=u(i,p,m,a,t.getUint32(52,!0),21,1309151649),a=u(a,i,p,m,t.getUint32(16,!0),6,4149444226),m=u(m,a,i,p,t.getUint32(44,!0),10,3174756917),p=u(p,m,a,i,t.getUint32(8,!0),15,718787259),i=u(i,p,m,a,t.getUint32(36,!0),21,3951481745),r[0]=a+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=p+r[2]&4294967295,r[3]=m+r[3]&4294967295}},{"./browserHashUtils":341,"buffer/":440}],344:[function(e,t,r){function a(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var i=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new i(20),a=new DataView(r.buffer);return a.setUint32(0,this.h0,!1),a.setUint32(4,this.h1,!1),a.setUint32(8,this.h2,!1),a.setUint32(12,this.h3,!1),a.setUint32(16,this.h4,!1),e?r.toString(e):r},a.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,a,i=this.h0,s=this.h1,o=this.h2,n=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=n^s&(o^n),a=1518500249):e<40?(r=s^o^n,a=1859775393):e<60?(r=s&o|n&(s|o),a=2400959708):(r=s^o^n,a=3395469782);var p=(i<<5|i>>>27)+r+u+a+(0|this.block[e]);u=n,n=o,o=s<<30|s>>>2,s=i,i=p}for(this.h0=this.h0+i|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+n|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":341,"buffer/":440}],345:[function(e,t,r){function a(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var i=e("buffer/").Buffer,s=e("./browserHashUtils"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=Math.pow(2,53)-1;t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(r.setUint8(this.bufferLength++,128),a%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new i(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},a.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],s=r[2],n=r[3],u=r[4],p=r[5],m=r[6],c=r[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&t[4*l])<<24|(255&t[4*l+1])<<16|(255&t[4*l+2])<<8|255&t[4*l+3];else{var d=this.temp[l-2],y=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10;d=this.temp[l-15];var b=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(y+this.temp[l-7]|0)+(b+this.temp[l-16]|0)}var S=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&m)|0)+(c+(o[l]+this.temp[l]|0)|0)|0,g=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&i^a&s^i&s)|0;c=m,m=p,p=u,u=n+S|0,n=s,s=i,i=a,a=S+g|0}r[0]+=a,r[1]+=i,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":341,"buffer/":440}],346:[function(e,t,r){(function(r){(function(){var r=e("./util");r.crypto.lib=e("./browserCryptoLib"),r.Buffer=e("buffer/").Buffer,r.url=e("url/"),r.querystring=e("querystring/"),r.realClock=e("./realclock/browserClock"),r.environment="js",r.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var a=e("./core");if(t.exports=a,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/chainable_temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),a.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===i)var i={browser:!0}}).call(this)}).call(this,e("_process"))},{"./browserCryptoLib":340,"./core":350,"./credentials":351,"./credentials/chainable_temporary_credentials":352,"./credentials/cognito_identity_credentials":353,"./credentials/credential_provider_chain":354,"./credentials/saml_credentials":355,"./credentials/temporary_credentials":356,"./credentials/web_identity_credentials":357,"./event-stream/buffered-create-event-stream":365,"./http/xhr":373,"./realclock/browserClock":393,"./util":428,"./xml/browser_parser":429,_process:445,"buffer/":440,"querystring/":452,"url/":454}],347:[function(e,t,r){var a=e("../core"),i=a.util.url,s=a.util.crypto.lib,o=a.util.base64.encode,n=a.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,a){var i=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(i.toString(),a)}},c=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=i.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},S=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};a.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a["CloudFront-"+i]=r[i]);return S(a,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var a=i.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);a.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(i.format(a)):i.format(a)}catch(e){return b(e,t)}return S(n,t)}}),t.exports=a.CloudFront.Signer},{"../core":350}],348:[function(e,t,r){var a=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;a.Config=a.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),a.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new a.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,a){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=a,t(e)}):t(r("No credentials to load"))},getToken:function(e){function t(t){e(t,t?null:i.token)}function r(e,t){return new a.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}var i=this;i.token?"function"==typeof i.token.get?function(){i.token.get(function(e){e&&(e=r("Could not load token from "+i.token.constructor.name,e)),t(e)})}():function(){var e=null;i.token.token||(e=r("Missing token")),t(e)}():i.tokenProvider?i.tokenProvider.resolve(function(e,a){e&&(e=r("Could not load token from any providers",e)),i.token=a,t(e)}):t(r("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),a.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||a.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(a.util.readFileSync(e)),r=new a.FileSystemCredentials(e),i=new a.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){a.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=a.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=a.util.copy(e),e.credentials=new a.Credentials(e)),e},setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&(t.push(a.S3),a.S3.ManagedUpload&&t.push(a.S3.ManagedUpload)),a.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),a.config=new a.Config},{"./core":350,"./credentials":351,"./credentials/credential_provider_chain":354}],349:[function(e,t,r){(function(r){(function(){function a(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function i(e,t){e=e||{};var i;if(e[t.clientConfig]&&(i=a(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!s.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(i=a(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return i}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(i=a(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return i}return i}var s=e("./core");t.exports=i}).call(this)}).call(this,e("_process"))},{"./core":350,_process:445}],350:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.1541.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),e("./maintenance_mode_message"),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":465,"./api_loader":339,"./config":348,"./event_listeners":371,"./http":372,"./json/builder":374,"./json/parser":375,"./maintenance_mode_message":376,"./model/api":377,"./model/operation":379,"./model/paginator":380,"./model/resource_waiter":381,"./model/shape":382,"./param_validator":383,"./protocol/json":386,"./protocol/query":387,"./protocol/rest":388,"./protocol/rest_json":389,"./protocol/rest_xml":390,"./request":397,"./resource_waiter":398,"./response":399,"./sequential_executor":401,"./service":402,"./signers/request_signer":420,"./util":428,"./xml/builder":430}],351:[function(e,t,r){var a=e("./core");a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){a.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):a.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),a.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=a.util.promisifyMethod("get",e),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",e)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},{"./core":350}],352:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=a.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=a.util.merge({params:t,credentials:e.masterCredentials||a.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(a,i){var s={};if(a)return void e(a);i&&(s.TokenCode=i),t.service[r](s,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(a.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,i)}):e(null)}})},{"../../clients/sts":334,"../core":350}],353:[function(e,t,r){var a=e("../core"),i=e("../../clients/cognitoidentity"),s=e("../../clients/sts");a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,a){r?t.clearIdOnNotAuthorized(r):(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,a){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,e),!this.cognito){var t=a.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":265,"../../clients/sts":334,"../core":350}],354:[function(e,t,r){var a=e("../core");a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(e){ +"../lib/node_loader":346,"../lib/services/sqs":416}],332:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.ssm={},a.SSM=i.defineService("ssm",["2014-11-06"]),Object.defineProperty(s.services.ssm,"2014-11-06",{get:function(){var t=e("../apis/ssm-2014-11-06.min.json");return t.paginators=e("../apis/ssm-2014-11-06.paginators.json").pagination,t.waiters=e("../apis/ssm-2014-11-06.waiters2.json").waiters,t},enumerable:!0,configurable:!0}),t.exports=a.SSM},{"../apis/ssm-2014-11-06.min.json":229,"../apis/ssm-2014-11-06.paginators.json":230,"../apis/ssm-2014-11-06.waiters2.json":231,"../lib/core":350,"../lib/node_loader":346}],333:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.storagegateway={},a.StorageGateway=i.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(s.services.storagegateway,"2013-06-30",{get:function(){var t=e("../apis/storagegateway-2013-06-30.min.json");return t.paginators=e("../apis/storagegateway-2013-06-30.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.StorageGateway},{"../apis/storagegateway-2013-06-30.min.json":232,"../apis/storagegateway-2013-06-30.paginators.json":233,"../lib/core":350,"../lib/node_loader":346}],334:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.sts={},a.STS=i.defineService("sts",["2011-06-15"]),e("../lib/services/sts"),Object.defineProperty(s.services.sts,"2011-06-15",{get:function(){var t=e("../apis/sts-2011-06-15.min.json");return t.paginators=e("../apis/sts-2011-06-15.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.STS},{"../apis/sts-2011-06-15.min.json":236,"../apis/sts-2011-06-15.paginators.json":237,"../lib/core":350,"../lib/node_loader":346,"../lib/services/sts":417}],335:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.translate={},a.Translate=i.defineService("translate",["2017-07-01"]),Object.defineProperty(s.services.translate,"2017-07-01",{get:function(){var t=e("../apis/translate-2017-07-01.min.json");return t.paginators=e("../apis/translate-2017-07-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.Translate},{"../apis/translate-2017-07-01.min.json":238,"../apis/translate-2017-07-01.paginators.json":239,"../lib/core":350,"../lib/node_loader":346}],336:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.waf={},a.WAF=i.defineService("waf",["2015-08-24"]),Object.defineProperty(s.services.waf,"2015-08-24",{get:function(){var t=e("../apis/waf-2015-08-24.min.json");return t.paginators=e("../apis/waf-2015-08-24.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.WAF},{"../apis/waf-2015-08-24.min.json":240,"../apis/waf-2015-08-24.paginators.json":241,"../lib/core":350,"../lib/node_loader":346}],337:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.workdocs={},a.WorkDocs=i.defineService("workdocs",["2016-05-01"]),Object.defineProperty(s.services.workdocs,"2016-05-01",{get:function(){var t=e("../apis/workdocs-2016-05-01.min.json");return t.paginators=e("../apis/workdocs-2016-05-01.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.WorkDocs},{"../apis/workdocs-2016-05-01.min.json":242,"../apis/workdocs-2016-05-01.paginators.json":243,"../lib/core":350,"../lib/node_loader":346}],338:[function(e,t,r){e("../lib/node_loader");var a=e("../lib/core"),i=a.Service,s=a.apiLoader;s.services.xray={},a.XRay=i.defineService("xray",["2016-04-12"]),Object.defineProperty(s.services.xray,"2016-04-12",{get:function(){var t=e("../apis/xray-2016-04-12.min.json");return t.paginators=e("../apis/xray-2016-04-12.paginators.json").pagination,t},enumerable:!0,configurable:!0}),t.exports=a.XRay},{"../apis/xray-2016-04-12.min.json":244,"../apis/xray-2016-04-12.paginators.json":245,"../lib/core":350,"../lib/node_loader":346}],339:[function(e,t,r){function a(e,t){if(!a.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return a.services[e][t]}a.services={},t.exports=a},{}],340:[function(e,t,r){var a=e("./browserHmac"),i=e("./browserMd5"),s=e("./browserSha1"),o=e("./browserSha256");t.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new i;if("sha256"===e)return new o;if("sha1"===e)return new s;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new a(i,t);if("sha256"===e)return new a(o,t);if("sha1"===e)return new a(s,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},{"./browserHmac":342,"./browserMd5":343,"./browserSha1":344,"./browserSha256":345}],341:[function(e,t,r){function a(e){return"string"==typeof e?0===e.length:0===e.byteLength}function i(e){return"string"==typeof e&&(e=new s(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var s=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:a,convertToBuffer:i}},{"buffer/":440}],342:[function(e,t,r){function a(e,t){this.hash=new e,this.outer=new e;var r=i(e,t),a=new Uint8Array(e.BLOCK_SIZE);a.set(r);for(var s=0;se.BLOCK_SIZE){var a=new e;a.update(r),r=a.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}var s=e("./browserHashUtils");t.exports=a,a.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},a.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":341}],343:[function(e,t,r){function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(c)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function i(e,t,r,a,i,s){return((t=(t+e&4294967295)+(a+s&4294967295)&4294967295)<>>32-i)+r&4294967295}function s(e,t,r,a,s,o,n){return i(t&r|~t&a,e,t,s,o,n)}function o(e,t,r,a,s,o,n){return i(t&a|r&~a,e,t,s,o,n)}function n(e,t,r,a,s,o,n){return i(t^r^a,e,t,s,o,n)}function u(e,t,r,a,s,o,n){return i(r^(t|~a),e,t,s,o,n)}var p=e("./browserHashUtils"),m=e("buffer/").Buffer,c=64;t.exports=a,a.BLOCK_SIZE=c,a.prototype.update=function(e){if(p.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=p.convertToBuffer(e),r=0,a=t.byteLength;for(this.bytesHashed+=a;a>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),a--,this.bufferLength===c&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,a=t.bufferLength,i=t.bytesHashed,s=8*i;if(r.setUint8(this.bufferLength++,128),a%c>=c-8){for(var o=this.bufferLength;o>>0,!0),r.setUint32(c-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var n=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)n.setUint32(4*o,this.state[o],!0);var u=new m(n.buffer,n.byteOffset,n.byteLength);return e?u.toString(e):u},a.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],p=r[2],m=r[3];a=s(a,i,p,m,t.getUint32(0,!0),7,3614090360),m=s(m,a,i,p,t.getUint32(4,!0),12,3905402710),p=s(p,m,a,i,t.getUint32(8,!0),17,606105819),i=s(i,p,m,a,t.getUint32(12,!0),22,3250441966),a=s(a,i,p,m,t.getUint32(16,!0),7,4118548399),m=s(m,a,i,p,t.getUint32(20,!0),12,1200080426),p=s(p,m,a,i,t.getUint32(24,!0),17,2821735955),i=s(i,p,m,a,t.getUint32(28,!0),22,4249261313),a=s(a,i,p,m,t.getUint32(32,!0),7,1770035416),m=s(m,a,i,p,t.getUint32(36,!0),12,2336552879),p=s(p,m,a,i,t.getUint32(40,!0),17,4294925233),i=s(i,p,m,a,t.getUint32(44,!0),22,2304563134),a=s(a,i,p,m,t.getUint32(48,!0),7,1804603682),m=s(m,a,i,p,t.getUint32(52,!0),12,4254626195),p=s(p,m,a,i,t.getUint32(56,!0),17,2792965006),i=s(i,p,m,a,t.getUint32(60,!0),22,1236535329),a=o(a,i,p,m,t.getUint32(4,!0),5,4129170786),m=o(m,a,i,p,t.getUint32(24,!0),9,3225465664),p=o(p,m,a,i,t.getUint32(44,!0),14,643717713),i=o(i,p,m,a,t.getUint32(0,!0),20,3921069994),a=o(a,i,p,m,t.getUint32(20,!0),5,3593408605),m=o(m,a,i,p,t.getUint32(40,!0),9,38016083),p=o(p,m,a,i,t.getUint32(60,!0),14,3634488961),i=o(i,p,m,a,t.getUint32(16,!0),20,3889429448),a=o(a,i,p,m,t.getUint32(36,!0),5,568446438),m=o(m,a,i,p,t.getUint32(56,!0),9,3275163606),p=o(p,m,a,i,t.getUint32(12,!0),14,4107603335),i=o(i,p,m,a,t.getUint32(32,!0),20,1163531501),a=o(a,i,p,m,t.getUint32(52,!0),5,2850285829),m=o(m,a,i,p,t.getUint32(8,!0),9,4243563512),p=o(p,m,a,i,t.getUint32(28,!0),14,1735328473),i=o(i,p,m,a,t.getUint32(48,!0),20,2368359562),a=n(a,i,p,m,t.getUint32(20,!0),4,4294588738),m=n(m,a,i,p,t.getUint32(32,!0),11,2272392833),p=n(p,m,a,i,t.getUint32(44,!0),16,1839030562),i=n(i,p,m,a,t.getUint32(56,!0),23,4259657740),a=n(a,i,p,m,t.getUint32(4,!0),4,2763975236),m=n(m,a,i,p,t.getUint32(16,!0),11,1272893353),p=n(p,m,a,i,t.getUint32(28,!0),16,4139469664),i=n(i,p,m,a,t.getUint32(40,!0),23,3200236656),a=n(a,i,p,m,t.getUint32(52,!0),4,681279174),m=n(m,a,i,p,t.getUint32(0,!0),11,3936430074),p=n(p,m,a,i,t.getUint32(12,!0),16,3572445317),i=n(i,p,m,a,t.getUint32(24,!0),23,76029189),a=n(a,i,p,m,t.getUint32(36,!0),4,3654602809),m=n(m,a,i,p,t.getUint32(48,!0),11,3873151461),p=n(p,m,a,i,t.getUint32(60,!0),16,530742520),i=n(i,p,m,a,t.getUint32(8,!0),23,3299628645),a=u(a,i,p,m,t.getUint32(0,!0),6,4096336452),m=u(m,a,i,p,t.getUint32(28,!0),10,1126891415),p=u(p,m,a,i,t.getUint32(56,!0),15,2878612391),i=u(i,p,m,a,t.getUint32(20,!0),21,4237533241),a=u(a,i,p,m,t.getUint32(48,!0),6,1700485571),m=u(m,a,i,p,t.getUint32(12,!0),10,2399980690),p=u(p,m,a,i,t.getUint32(40,!0),15,4293915773),i=u(i,p,m,a,t.getUint32(4,!0),21,2240044497),a=u(a,i,p,m,t.getUint32(32,!0),6,1873313359),m=u(m,a,i,p,t.getUint32(60,!0),10,4264355552),p=u(p,m,a,i,t.getUint32(24,!0),15,2734768916),i=u(i,p,m,a,t.getUint32(52,!0),21,1309151649),a=u(a,i,p,m,t.getUint32(16,!0),6,4149444226),m=u(m,a,i,p,t.getUint32(44,!0),10,3174756917),p=u(p,m,a,i,t.getUint32(8,!0),15,718787259),i=u(i,p,m,a,t.getUint32(36,!0),21,3951481745),r[0]=a+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=p+r[2]&4294967295,r[3]=m+r[3]&4294967295}},{"./browserHashUtils":341,"buffer/":440}],344:[function(e,t,r){function a(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var i=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new i(20),a=new DataView(r.buffer);return a.setUint32(0,this.h0,!1),a.setUint32(4,this.h1,!1),a.setUint32(8,this.h2,!1),a.setUint32(12,this.h3,!1),a.setUint32(16,this.h4,!1),e?r.toString(e):r},a.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,a,i=this.h0,s=this.h1,o=this.h2,n=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=n^s&(o^n),a=1518500249):e<40?(r=s^o^n,a=1859775393):e<60?(r=s&o|n&(s|o),a=2400959708):(r=s^o^n,a=3395469782);var p=(i<<5|i>>>27)+r+u+a+(0|this.block[e]);u=n,n=o,o=s<<30|s>>>2,s=i,i=p}for(this.h0=this.h0+i|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+n|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":341,"buffer/":440}],345:[function(e,t,r){function a(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var i=e("buffer/").Buffer,s=e("./browserHashUtils"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=Math.pow(2,53)-1;t.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(r.setUint8(this.bufferLength++,128),a%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new i(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},a.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,a=r[0],i=r[1],s=r[2],n=r[3],u=r[4],p=r[5],m=r[6],c=r[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&t[4*l])<<24|(255&t[4*l+1])<<16|(255&t[4*l+2])<<8|255&t[4*l+3];else{var d=this.temp[l-2],y=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10;d=this.temp[l-15];var b=(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(y+this.temp[l-7]|0)+(b+this.temp[l-16]|0)}var S=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&m)|0)+(c+(o[l]+this.temp[l]|0)|0)|0,g=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&i^a&s^i&s)|0;c=m,m=p,p=u,u=n+S|0,n=s,s=i,i=a,a=S+g|0}r[0]+=a,r[1]+=i,r[2]+=s,r[3]+=n,r[4]+=u,r[5]+=p,r[6]+=m,r[7]+=c}},{"./browserHashUtils":341,"buffer/":440}],346:[function(e,t,r){(function(r){(function(){var r=e("./util");r.crypto.lib=e("./browserCryptoLib"),r.Buffer=e("buffer/").Buffer,r.url=e("url/"),r.querystring=e("querystring/"),r.realClock=e("./realclock/browserClock"),r.environment="js",r.createEventStream=e("./event-stream/buffered-create-event-stream").createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var a=e("./core");if(t.exports=a,e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/chainable_temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),a.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),void 0===i)var i={browser:!0}}).call(this)}).call(this,e("_process"))},{"./browserCryptoLib":340,"./core":350,"./credentials":351,"./credentials/chainable_temporary_credentials":352,"./credentials/cognito_identity_credentials":353,"./credentials/credential_provider_chain":354,"./credentials/saml_credentials":355,"./credentials/temporary_credentials":356,"./credentials/web_identity_credentials":357,"./event-stream/buffered-create-event-stream":365,"./http/xhr":373,"./realclock/browserClock":393,"./util":428,"./xml/browser_parser":429,_process:445,"buffer/":440,"querystring/":452,"url/":454}],347:[function(e,t,r){var a=e("../core"),i=a.util.url,s=a.util.crypto.lib,o=a.util.base64.encode,n=a.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},p=function(e,t){var r=s.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},m=function(e,t,r,a){var i=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(i.toString(),a)}},c=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=i.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},b=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},S=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};a.CloudFront.Signer=n({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?c(e.policy,this.keyPairId,this.privateKey):m(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a["CloudFront-"+i]=r[i]);return S(a,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(e){return b(e,t)}var a=i.parse(e.url,!0),s=Object.prototype.hasOwnProperty.call(e,"policy")?c(e.policy,this.keyPairId,this.privateKey):m(r,e.expires,this.keyPairId,this.privateKey);a.search=null;for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a.query[o]=s[o]);try{var n="rtmp"===l(e.url)?d(i.format(a)):i.format(a)}catch(e){return b(e,t)}return S(n,t)}}),t.exports=a.CloudFront.Signer},{"../core":350}],348:[function(e,t,r){var a=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;a.Config=a.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),a.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new a.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,a){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=a,t(e)}):t(r("No credentials to load"))},getToken:function(e){function t(t){e(t,t?null:i.token)}function r(e,t){return new a.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}var i=this;i.token?"function"==typeof i.token.get?function(){i.token.get(function(e){e&&(e=r("Could not load token from "+i.token.constructor.name,e)),t(e)})}():function(){var e=null;i.token.token||(e=r("Missing token")),t(e)}():i.tokenProvider?i.tokenProvider.resolve(function(e,a){e&&(e=r("Could not load token from any providers",e)),i.token=a,t(e)}):t(r("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),a.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||a.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(a.util.readFileSync(e)),r=new a.FileSystemCredentials(e),i=new a.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){a.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=a.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=a.util.copy(e),e.credentials=new a.Credentials(e)),e},setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&(t.push(a.S3),a.S3.ManagedUpload&&t.push(a.S3.ManagedUpload)),a.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),a.config=new a.Config},{"./core":350,"./credentials":351,"./credentials/credential_provider_chain":354}],349:[function(e,t,r){(function(r){(function(){function a(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw s.util.error(new Error,t)}}function i(e,t){e=e||{};var i;if(e[t.clientConfig]&&(i=a(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!s.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(i=a(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return i}var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[r.env.AWS_PROFILE||s.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){if(i=a(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'}))return i}return i}var s=e("./core");t.exports=i}).call(this)}).call(this,e("_process"))},{"./core":350,_process:445}],350:[function(e,t,r){var a={util:e("./util")};({}).toString(),t.exports=a,a.util.update(a,{VERSION:"2.1542.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),e("./maintenance_mode_message"),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":465,"./api_loader":339,"./config":348,"./event_listeners":371,"./http":372,"./json/builder":374,"./json/parser":375,"./maintenance_mode_message":376,"./model/api":377,"./model/operation":379,"./model/paginator":380,"./model/resource_waiter":381,"./model/shape":382,"./param_validator":383,"./protocol/json":386,"./protocol/query":387,"./protocol/rest":388,"./protocol/rest_json":389,"./protocol/rest_xml":390,"./request":397,"./resource_waiter":398,"./response":399,"./sequential_executor":401,"./service":402,"./signers/request_signer":420,"./util":428,"./xml/builder":430}],351:[function(e,t,r){var a=e("./core");a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){a.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):a.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),a.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=a.util.promisifyMethod("get",e),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",e)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},{"./core":350}],352:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=a.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=a.util.merge({params:t,credentials:e.masterCredentials||a.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(a,i){var s={};if(a)return void e(a);i&&(s.TokenCode=i),t.service[r](s,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var s=r;return r instanceof Error&&(s=r.message),void e(a.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}))}e(null,i)}):e(null)}})},{"../../clients/sts":334,"../core":350}],353:[function(e,t,r){var a=e("../core"),i=e("../../clients/cognitoidentity"),s=e("../../clients/sts");a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){var t=this;"NotAuthorizedException"==e.code&&t.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,a){r?t.clearIdOnNotAuthorized(r):(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,a){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,e),!this.cognito){var t=a.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new s(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},{"../../clients/cognitoidentity":265,"../../clients/sts":334,"../core":350}],354:[function(e,t,r){var a=e("../core");a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(e){ this.providers=e||a.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){function t(e,o){if(!e&&o||i===s.length)return a.util.arrayEach(r.resolveCallbacks,function(t){t(e,o)}),void(r.resolveCallbacks.length=0);var n=s[i++];o="function"==typeof n?n.call():n,o.get?o.get(function(e){t(e,e?null:o)}):t(null,o)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var i=0,s=r.providers.slice(0);t()}return r}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",e)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},{"../core":350}],355:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(r,a){r||t.service.credentialsFrom(a,t),e(r)})},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":334,"../core":350}],356:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},{"../../clients/sts":334,"../core":350}],357:[function(e,t,r){var a=e("../core"),i=e("../../clients/sts");a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(r,a){t.data=null,r||(t.data=a,t.service.credentialsFrom(a,t)),e(r)})},createClients:function(){if(!this.service){var e=a.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},{"../../clients/sts":334,"../core":350}],358:[function(e,t,r){(function(r){(function(){function a(e){var t=e.service,r=t.api||{},a={};return t.config.region&&(a.region=t.config.region),r.serviceId&&(a.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(a.accessKeyId=t.config.credentials.accessKeyId),a}function i(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&b.arrayEach(r.required,function(a){var s=r.members[a];if(!0===s.endpointDiscoveryId){var o=s.isLocationName?s.name:a;e[o]=String(t[a])}else i(e,t[a],s)})}function s(e,t){var r={};return i(r,e.params,t),r}function o(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,o=i?i.input:void 0,n=s(e,o),p=a(e);Object.keys(n).length>0&&(p=b.update(p,n),i&&(p.operation=i.name));var m=y.endpointCache.get(p);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address);else{var c=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:n});u(c),c.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),c.removeListener("retry",y.EventListeners.Core.RETRY_CHECK),y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}]),c.send(function(e,t){t&&t.Endpoints?y.endpointCache.put(p,t.Endpoints):e&&y.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}])})}}function n(e,t){var r=e.service,i=r.api,o=i.operations?i.operations[e.operation]:void 0,n=o?o.input:void 0,p=s(e,n),m=a(e);Object.keys(p).length>0&&(m=b.update(m,p),o&&(m.operation=o.name));var c=y.EndpointCache.getKeyString(m),l=y.endpointCache.get(c);if(l&&1===l.length&&""===l[0].Address)return g[c]||(g[c]=[]),void g[c].push({request:e,callback:t});if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address),t();else{var d=r.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:p});d.removeListener("validate",y.EventListeners.Core.VALIDATE_PARAMETERS),u(d),y.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:60}]),d.send(function(r,a){if(r){if(e.response.error=b.error(r,{retryable:!1}),y.endpointCache.remove(m),g[c]){var i=g[c];b.arrayEach(i,function(e){e.request.response.error=b.error(r,{retryable:!1}),e.callback()}),delete g[c]}}else if(a&&(y.endpointCache.put(c,a.Endpoints),e.httpRequest.updateEndpoint(a.Endpoints[0].Address),g[c])){var i=g[c];b.arrayEach(i,function(e){e.request.httpRequest.updateEndpoint(a.Endpoints[0].Address),e.callback()}),delete g[c]}t()})}}function u(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function p(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,o=i.service.api.operations||{},n=o[i.operation]?o[i.operation].input:void 0,u=s(i,n),p=a(i);Object.keys(u).length>0&&(p=b.update(p,u),o[i.operation]&&(p.operation=o[i.operation].name)),y.endpointCache.remove(p)}}function m(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw b.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=y.config[e.serviceIdentifier]||{};return Boolean(y.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function c(e){return["false","0"].indexOf(e)>=0}function l(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!b.isBrowser()){for(var a=0;a-1&&0===++e[t];t--);}var s=e("../core").util,o=s.buffer.toBuffer;a.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,s=Math.abs(Math.round(e));r>-1&&s>0;r--,s/=256)t[r]=s;return e<0&&i(t),new a(t)},a.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt(e.toString("hex"),16)*(t?-1:1)},a.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:a}},{"../core":350}],368:[function(e,t,r){function a(e,t,r){var a=s(t),o=a.headers[":message-type"];if(o){if("error"===o.value)throw i(a);if("event"!==o.value)return}var n=a.headers[":event-type"],u=r.members[n.value];if(u){var p={},m=u.eventPayloadMemberName;if(m){var c=u.members[m];"binary"===c.type?p[m]=a.body:p[m]=e.parse(a.body.toString(),c)}for(var l=u.eventHeaderMemberNames,d=0;d=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();i.util.computeSha256(s,function(r,a){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=a,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=r(e),a=i.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var s=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=s}catch(r){if(a&&a.isStreaming){if(a.requiresLength)throw r;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw r}throw r}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("SET_TRACE_ID","afterBuild",function(e){if(i.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,"X-Amzn-Trace-Id")){var r=t.env.AWS_LAMBDA_FUNCTION_NAME,a=t.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof a&&a.length>0&&(e.httpRequest.headers["X-Amzn-Trace-Id"]=a)}}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,a){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=a,r.httpResponse.headers=t,r.httpResponse.body=i.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var s=t.date||t.Date,o=r.request.service;if(s){var n=Date.parse(s);o.config.correctClockSkew&&o.isClockSkewed(n)&&o.applyClockOffset(n)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],a={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[a,t])}t.httpResponse.buffers.push(i.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new s).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",i.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",i.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof i.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(i.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=i.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new s).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var a={};return i.util.each(t,function(t,i){Object.prototype.hasOwnProperty.call(e.members,t)?a[t]=r(e.members[t],i):a[t]=i}),a;case"list":var s=[];return i.util.arrayEach(t,function(t,a){s.push(r(e.member,t))}),s;case"map":var o={};return i.util.each(t,function(t,a){o[t]=r(e.value,a)}),o;default:return t}}var a=t.request,s=a.service.config.logger;if(s){var o=function(){var o=t.request.service.getSkewCorrectedDate().getTime(),n=(o-a.startTime.getTime())/1e3,u=!!s.isTTY,p=t.httpResponse.statusCode,m=a.params;if(a.service.api.operations&&a.service.api.operations[a.operation]&&a.service.api.operations[a.operation].input){m=r(a.service.api.operations[a.operation].input,a.params)}var c=e("util").inspect(m,!0,null),l="";return u&&(l+=""),l+="[AWS "+a.service.serviceIdentifier+" "+p,l+=" "+n.toString()+"s "+t.retryCount+" retries]",u&&(l+=""),l+=" "+i.util.string.lowerFirst(a.operation),l+="("+c+")",u&&(l+=""),l}();"function"==typeof s.log?s.log(o):"function"==typeof s.write&&s.write(o+"\n")}})}),Json:(new s).addNamedListeners(function(t){var r=e("./protocol/json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Rest:(new s).addNamedListeners(function(t){ var r=e("./protocol/rest");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestJson:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError),t("UNSET_CONTENT_LENGTH","afterBuild",r.unsetContentLength)}),RestXml:(new s).addNamedListeners(function(t){var r=e("./protocol/rest_xml");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Query:(new s).addNamedListeners(function(t){var r=e("./protocol/query");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)})}}).call(this)}).call(this,e("_process"))},{"./core":350,"./discover_endpoint":358,"./protocol/json":386,"./protocol/query":387,"./protocol/rest":388,"./protocol/rest_json":389,"./protocol/rest_xml":390,"./sequential_executor":401,_process:445,util:439}],372:[function(e,t,r){var a=e("./core"),i=a.util.inherit;a.Endpoint=i({constructor:function(e,t){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return a.util.copy(e);if(!e.match(/^http/)){e=((t&&void 0!==t.sslEnabled?t.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+e}a.util.update(this,a.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),a.HttpRequest=i({constructor:function(e,t){e=new a.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=a.util.userAgent()},getUserAgentHeaderName:function(){return(a.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=a.util.queryStringParse(e),a.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new a.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),a.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),a.HttpClient=i({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},{"./core":350}],373:[function(e,t,r){var a=e("../core"),i=e("events").EventEmitter;e("../http"),a.XHRClient=a.util.inherit({handleRequest:function(e,t,r,s){var o=this,n=e.endpoint,u=new i,p=n.protocol+"//"+n.hostname;80!==n.port&&443!==n.port&&(p+=":"+n.port),p+=e.path;var m=new XMLHttpRequest,c=!1;e.stream=m,m.addEventListener("readystatechange",function(){try{if(0===m.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!c&&(u.statusCode=m.status,u.headers=o.parseHeaders(m.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,m.statusText),c=!0),this.readyState===this.DONE&&o.finishRequest(m,u)},!1),m.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),m.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),m.addEventListener("timeout",function(){s(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),m.addEventListener("error",function(){s(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),m.addEventListener("abort",function(){s(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),m.open(e.method,p,!1!==t.xhrAsync),a.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&m.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(m.timeout=t.timeout),t.xhrWithCredentials&&(m.withCredentials=!0);try{m.responseType="arraybuffer"}catch(e){}try{e.body?m.send(e.body):m.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;m.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return a.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],a=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=a)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new a.util.Buffer(i.byteLength);for(var s=new Uint8Array(i),o=0;o-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function l(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function d(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function y(){s.apply(this,arguments),this.toType=function(e){var t=h.base64.decode(e);if(this.isSensitive&&h.isNode()&&"function"==typeof h.Buffer.alloc){var r=h.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=h.base64.encode}function b(){y.apply(this,arguments)}function S(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),h=e("../util");s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:n,list:u,map:p,boolean:S,timestamp:m,float:l,integer:d,string:c,base64:b,binary:y},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var a=s.resolve(e,t);if(a){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){a.constructor.call(this,e,t,r)};return o.prototype=a,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var n=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+n)},s.shapes={StructureShape:n,ListShape:u,MapShape:p,StringShape:c,BooleanShape:S,Base64Shape:b},t.exports=s},{"../util":428,"./collection":378}],383:[function(e,t,r){var a=e("./core");a.ParamValidator=a.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,a.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(a.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;this.validateType(t,r,["object"],"structure");for(var a,i=0;e.required&&i= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,a){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+a+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var s=!1,o=0;o63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw p.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),p=e("../core");t.exports={populateHostPrefix:a}},{"../core":350,"../util":428}],386:[function(e,t,r){function a(e){var t=e.httpRequest,r=e.service.api,a=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new n;1===i&&(i="1.0"),r.awsQueryCompatible&&(t.params||(t.params={}),Object.assign(t.params,e.params)),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=a,p(e)}function i(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var a=JSON.parse(r.body.toString()),i=a.__type||a.code||a.Code;i&&(t.code=i.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=a.message||a.Message||null;for(var s in a||{})"code"!==s&&"message"!==s&&(t["["+s+"]"]="See error."+s+" for details.",Object.defineProperty(t,s,{value:a[s],enumerable:!1,writable:!0}))}catch(a){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=o.error(new Error,t)}function s(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],a=r.output||{},i=new u;e.data=i.parse(t,a)}}var o=e("../util"),n=e("../json/builder"),u=e("../json/parser"),p=e("./helpers").populateHostPrefix;t.exports={buildRequest:a,extractError:i,extractData:s}},{"../json/builder":374,"../json/parser":375,"../util":428,"./helpers":385}],387:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new u).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=n.queryParamsToString(r.params),m(e)}function i(e){var t,r=e.httpResponse.body.toString();if(r.match("=0?"&":"?";var n=[];m.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t=0&&delete e.httpRequest.headers["Content-Length"]}function i(e){var t=new l,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},i=r.members[r.payload];a=e.params[r.payload],"structure"===i.type?(e.httpRequest.body=t.build(a||{},i),s(e)):void 0!==a&&(e.httpRequest.body=a,("binary"===i.type||i.isStreaming)&&s(e,!0))}else e.httpRequest.body=t.build(e.params,r),s(e)}function s(e,t){if(!e.httpRequest.headers["Content-Type"]){ var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function o(e){m.buildRequest(e),y.indexOf(e.httpRequest.method)<0&&i(e)}function n(e){c.extractError(e)}function u(e){m.extractData(e);var t,r=e.request,a=r.service.api.operations[r.operation],i=r.service.api.operations[r.operation].output||{};a.hasEventOutput;if(i.payload){var s=i.members[i.payload],o=e.httpResponse.body;if(s.isEventStream)t=new d,e.data[payload]=p.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new d;e.data[i.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[i.payload]=o:e.data[i.payload]=s.toType(o)}else{var n=e.data;c.extractData(e),e.data=p.merge(n,e.data)}}var p=e("../util"),m=e("./rest"),c=e("./json"),l=e("../json/builder"),d=e("../json/parser"),y=["GET","HEAD","DELETE"];t.exports={buildRequest:o,extractError:n,extractData:u,unsetContentLength:a}},{"../json/builder":374,"../json/parser":375,"../util":428,"./json":386,"./rest":388}],390:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,a=e.params,i=t.payload;if(i){var s=t.members[i];if(void 0===(a=a[i]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(a,s,o,!0)}else e.httpRequest.body=a}else e.httpRequest.body=r.toXML(a,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function i(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&a(e)}function s(e){p.extractError(e);var t;try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){p.extractData(e);var t,r=e.request,a=e.httpResponse.body,i=r.service.api.operations[r.operation],s=i.output,o=(i.hasEventOutput,s.payload);if(o){var m=s.members[o];m.isEventStream?(t=new n.XML.Parser,e.data[o]=u.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,m)):"structure"===m.type?(t=new n.XML.Parser,e.data[o]=t.parse(a.toString(),m)):"binary"===m.type||m.isStreaming?e.data[o]=a:e.data[o]=m.toType(a)}else if(a.length>0){t=new n.XML.Parser;var c=t.parse(a.toString(),s);u.update(e.data,c)}}var n=e("../core"),u=e("../util"),p=e("./rest");t.exports={buildRequest:i,extractError:s,extractData:o}},{"../core":350,"../util":428,"./rest":388}],391:[function(e,t,r){function a(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,a){p.each(r.members,function(r,s){var o=t[r];if(null!==o&&void 0!==o){var n=i(s);n=e?e+"."+n:n,u(n,o,s,a)}})}function o(e,t,r,a){var i=1;p.each(t,function(t,s){var o=r.flattened?".":".entry.",n=o+i+++".",p=n+(r.key.name||"key"),m=n+(r.value.name||"value");u(e+p,t,r.key,a),u(e+m,s,r.value,a)})}function n(e,t,r,a){var s=r.member||{};if(0===t.length)return void a.call(this,e,null);p.arrayEach(t,function(t,o){var n="."+(o+1);if("ec2"===r.api.protocol)n+="";else if(r.flattened){if(s.name){var p=e.split(".");p.pop(),p.push(i(s)),e=p.join(".")}}else n="."+(s.name?s.name:"member")+n;u(e+n,t,s,a)})}function u(e,t,r,a){null!==t&&void 0!==t&&("structure"===r.type?s(e,t,r,a):"list"===r.type?n(e,t,r,a):"map"===r.type?o(e,t,r,a):a(e,r.toWireFormat(t).toString()))}var p=e("../util");a.prototype.serialize=function(e,t,r){s("",e,t,r)},t.exports=a},{"../util":428}],392:[function(e,t,r){var a=e("../core"),i=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};a.RDS.Signer=a.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){if(0===e.indexOf("https://"))return e.substring("https://".length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=a.util.merge(this.options,e);var n=this.validateAuthTokenOptions(e);if(!0!==n){if(o)return t(n,null);throw n}var u={region:e.region,endpoint:new a.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),i=new a.Service(u),i.api=s;var p=i.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var m=p.presign(900);return this.convertUrlToAuthToken(m)}p.presign(900,function(e,a){a&&(a=r.convertUrlToAuthToken(a)),t(e,a)})},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=a.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";e=e||{};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||a.util.error(new Error,{code:"InvalidParameter",message:t})}})},{"../core":350}],393:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],394:[function(e,t,r){function a(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))}function i(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)}function s(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}t.exports={isFipsRegion:a,isGlobalRegion:i,getRealRegion:s}},{}],395:[function(e,t,r){function a(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function i(e){var t=e.config.region,r=a(t),i=e.api.endpointPrefix;return[[t,i],[r,i],[t,"*"],[r,"*"],["*",i],[t,"internal-*"],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function s(e,t){u.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}function o(e){for(var t=i(e),r=e.config.useFipsEndpoint,a=e.config.useDualstackEndpoint,o=0;o=0){u=!0;var p=0}var m=function(){u&&p!==n?i.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+p+" of "+n+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?i.end():i.emit("end")},c=o.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(u){var l=new e.PassThrough;l._write=function(t){return t&&t.length&&(p+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},l.on("end",m),i.on("error",function(e){u=!1,c.unpipe(l),l.emit("end"),l.end()}),c.pipe(l).pipe(i,{end:!1})}else c.pipe(i);else u&&c.on("data",function(e){e&&e.length&&(p+=e.length)}),c.on("data",function(e){i.emit("data",e)}),c.on("end",m);c.on("error",function(e){u=!1,i.emit("error",e)})}}),i},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),a.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new a.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)}).call(this)}).call(this,e("_process"))},{"./core":350,"./state_machine":427,_process:445,jmespath:444}],398:[function(e,t,r){function a(e){var t=e.request._waiter,r=t.config.acceptors,a=!1,i="retry";r.forEach(function(r){if(!a){var s=t.matchers[r.matcher];s&&s(e,r.expected,r.argument)&&(a=!0,i=r.state)}}),!a&&e.error&&(i="failure"),"success"===i?t.setSuccess(e):t.setError(e,"retry"===i)}var i=e("./core"),s=i.util.inherit,o=e("jmespath");i.ResourceWaiter=s({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var a=o.search(e.data,r)}catch(e){return!1}return o.strictDeepEqual(a,t)},pathAll:function(e,t,r){try{var a=o.search(e.data,r)}catch(e){return!1}Array.isArray(a)||(a=[a]);var i=a.length;if(!i)return!1;for(var s=0;s=1&&t.doneParts===t.numParts&&t.finishMultiPart()}))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"==typeof e.body)e.body=a.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=a.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,i=a.util.copy(r.config);i.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(i),t.service.config.params=a.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}else t.service=new a.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=i(e.body)}catch(e){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=i(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var a=r.slice(e.partSize);e.partBuffers.push(a),e.partBufferLength+=a.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:s.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var i={Body:e};this.tags&&(i.Tagging=this.getTaggingHeader());var s=t.service.putObject(i);return s._managedUpload=t,s.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=s,null}if(t.service.config.params.ContentMD5){var o=a.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null}),t.queueChunks(e,r),t.multipartReq.on("error",function(e){t.cleanup(e)}),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t