Skip to content

Commit

Permalink
feat(client-macie2): Sensitive data findings in Amazon Macie now indi…
Browse files Browse the repository at this point in the history
…cate how Macie found the sensitive data that produced a finding (originType).
  • Loading branch information
awstools committed Apr 20, 2022
1 parent 8ffd6b2 commit cad1178
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
15 changes: 12 additions & 3 deletions clients/client-macie2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,10 @@ export enum FindingCategory {
POLICY = "POLICY",
}

export enum OriginType {
SENSITIVE_DATA_DISCOVERY_JOB = "SENSITIVE_DATA_DISCOVERY_JOB",
}

/**
* <p>Specifies the location of an occurrence of sensitive data in a Microsoft Excel workbook, CSV file, or TSV file.</p>
*/
Expand Down Expand Up @@ -1118,7 +1122,7 @@ export namespace ClassificationResult {
}

/**
* <p>Provides information about a sensitive data finding, including the classification job that produced the finding.</p>
* <p>Provides information about a sensitive data finding and the details of the finding.</p>
*/
export interface ClassificationDetails {
/**
Expand All @@ -1136,6 +1140,11 @@ export interface ClassificationDetails {
*/
jobId?: string;

/**
* <p>Specifies how Amazon Macie found the sensitive data that produced the finding: SENSITIVE_DATA_DISCOVERY_JOB, for a classification job.</p>
*/
originType?: OriginType | string;

/**
* <p>The status and other details of the finding.</p>
*/
Expand Down Expand Up @@ -5053,7 +5062,7 @@ export namespace SortCriteria {

export interface GetFindingsRequest {
/**
* <p>An array of strings that lists the unique identifiers for the findings to retrieve.</p>
* <p>An array of strings that lists the unique identifiers for the findings to retrieve. You can specify as many as 50 unique identifiers in this array.</p>
*/
findingIds: string[] | undefined;

Expand Down Expand Up @@ -6292,7 +6301,7 @@ export interface UntagResourceRequest {
resourceArn: string | undefined;

/**
* <p>The key of the tag to remove from the resource. To remove multiple tags, append the tagKeys parameter and argument for each additional tag to remove, separated by an ampersand (&amp;).</p>
* <p>One or more tags (keys) to remove from the resource. In an HTTP request to remove multiple tags, append the tagKeys parameter and argument for each tag to remove, and separate them with an ampersand (&amp;).</p>
*/
tagKeys: string[] | undefined;
}
Expand Down
1 change: 1 addition & 0 deletions clients/client-macie2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6937,6 +6937,7 @@ const deserializeAws_restJson1ClassificationDetails = (output: any, context: __S
detailedResultsLocation: __expectString(output.detailedResultsLocation),
jobArn: __expectString(output.jobArn),
jobId: __expectString(output.jobId),
originType: __expectString(output.originType),
result:
output.result !== undefined && output.result !== null
? deserializeAws_restJson1ClassificationResult(output.result, context)
Expand Down
33 changes: 29 additions & 4 deletions codegen/sdk-codegen/aws-models/macie2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,13 @@
"smithy.api#jsonName": "jobId"
}
},
"originType": {
"target": "com.amazonaws.macie2#OriginType",
"traits": {
"smithy.api#documentation": "<p>Specifies how Amazon Macie found the sensitive data that produced the finding: SENSITIVE_DATA_DISCOVERY_JOB, for a classification job.</p>",
"smithy.api#jsonName": "originType"
}
},
"result": {
"target": "com.amazonaws.macie2#ClassificationResult",
"traits": {
Expand All @@ -1119,7 +1126,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Provides information about a sensitive data finding, including the classification job that produced the finding.</p>"
"smithy.api#documentation": "<p>Provides information about a sensitive data finding and the details of the finding.</p>"
}
},
"com.amazonaws.macie2#ClassificationExportConfiguration": {
Expand Down Expand Up @@ -4423,7 +4430,7 @@
"findingIds": {
"target": "com.amazonaws.macie2#__listOf__string",
"traits": {
"smithy.api#documentation": "<p>An array of strings that lists the unique identifiers for the findings to retrieve.</p>",
"smithy.api#documentation": "<p>An array of strings that lists the unique identifiers for the findings to retrieve. You can specify as many as 50 unique identifiers in this array.</p>",
"smithy.api#jsonName": "findingIds",
"smithy.api#required": {}
}
Expand Down Expand Up @@ -5262,7 +5269,7 @@
"com.amazonaws.macie2#JobComparator": {
"type": "string",
"traits": {
"smithy.api#documentation": "<p>The operator to use in a condition. Valid values are:</p>",
"smithy.api#documentation": "<p>The operator to use in a condition. Depending on the type of condition, possible values are:</p>",
"smithy.api#enum": [
{
"value": "EQ",
Expand Down Expand Up @@ -7009,6 +7016,18 @@
]
}
},
"com.amazonaws.macie2#OriginType": {
"type": "string",
"traits": {
"smithy.api#documentation": "<p>Specifies how Amazon Macie found the sensitive data that produced a finding. The only possible value is:</p>",
"smithy.api#enum": [
{
"value": "SENSITIVE_DATA_DISCOVERY_JOB",
"name": "SENSITIVE_DATA_DISCOVERY_JOB"
}
]
}
},
"com.amazonaws.macie2#Page": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -7231,6 +7250,9 @@
"type": "list",
"member": {
"target": "com.amazonaws.macie2#Range"
},
"traits": {
"smithy.api#documentation": "<p>Specifies the locations of occurrences of sensitive data in a non-binary text file.</p>"
}
},
"com.amazonaws.macie2#Record": {
Expand Down Expand Up @@ -7259,6 +7281,9 @@
"type": "list",
"member": {
"target": "com.amazonaws.macie2#Record"
},
"traits": {
"smithy.api#documentation": "<p>Specifies the locations of occurrences of sensitive data in an Apache Avro object container or a structured data file.</p>"
}
},
"com.amazonaws.macie2#RelationshipStatus": {
Expand Down Expand Up @@ -8909,7 +8934,7 @@
"tagKeys": {
"target": "com.amazonaws.macie2#__listOf__string",
"traits": {
"smithy.api#documentation": "<p>The key of the tag to remove from the resource. To remove multiple tags, append the tagKeys parameter and argument for each additional tag to remove, separated by an ampersand (&amp;).</p>",
"smithy.api#documentation": "<p>One or more tags (keys) to remove from the resource. In an HTTP request to remove multiple tags, append the tagKeys parameter and argument for each tag to remove, and separate them with an ampersand (&amp;).</p>",
"smithy.api#httpQuery": "tagKeys",
"smithy.api#required": {}
}
Expand Down

0 comments on commit cad1178

Please sign in to comment.