Skip to content

Commit cad1178

Browse files
author
awstools
committed
feat(client-macie2): Sensitive data findings in Amazon Macie now indicate how Macie found the sensitive data that produced a finding (originType).
1 parent 8ffd6b2 commit cad1178

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

clients/client-macie2/src/models/models_0.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,10 @@ export enum FindingCategory {
771771
POLICY = "POLICY",
772772
}
773773

774+
export enum OriginType {
775+
SENSITIVE_DATA_DISCOVERY_JOB = "SENSITIVE_DATA_DISCOVERY_JOB",
776+
}
777+
774778
/**
775779
* <p>Specifies the location of an occurrence of sensitive data in a Microsoft Excel workbook, CSV file, or TSV file.</p>
776780
*/
@@ -1118,7 +1122,7 @@ export namespace ClassificationResult {
11181122
}
11191123

11201124
/**
1121-
* <p>Provides information about a sensitive data finding, including the classification job that produced the finding.</p>
1125+
* <p>Provides information about a sensitive data finding and the details of the finding.</p>
11221126
*/
11231127
export interface ClassificationDetails {
11241128
/**
@@ -1136,6 +1140,11 @@ export interface ClassificationDetails {
11361140
*/
11371141
jobId?: string;
11381142

1143+
/**
1144+
* <p>Specifies how Amazon Macie found the sensitive data that produced the finding: SENSITIVE_DATA_DISCOVERY_JOB, for a classification job.</p>
1145+
*/
1146+
originType?: OriginType | string;
1147+
11391148
/**
11401149
* <p>The status and other details of the finding.</p>
11411150
*/
@@ -5053,7 +5062,7 @@ export namespace SortCriteria {
50535062

50545063
export interface GetFindingsRequest {
50555064
/**
5056-
* <p>An array of strings that lists the unique identifiers for the findings to retrieve.</p>
5065+
* <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>
50575066
*/
50585067
findingIds: string[] | undefined;
50595068

@@ -6292,7 +6301,7 @@ export interface UntagResourceRequest {
62926301
resourceArn: string | undefined;
62936302

62946303
/**
6295-
* <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>
6304+
* <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>
62966305
*/
62976306
tagKeys: string[] | undefined;
62986307
}

clients/client-macie2/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6937,6 +6937,7 @@ const deserializeAws_restJson1ClassificationDetails = (output: any, context: __S
69376937
detailedResultsLocation: __expectString(output.detailedResultsLocation),
69386938
jobArn: __expectString(output.jobArn),
69396939
jobId: __expectString(output.jobId),
6940+
originType: __expectString(output.originType),
69406941
result:
69416942
output.result !== undefined && output.result !== null
69426943
? deserializeAws_restJson1ClassificationResult(output.result, context)

codegen/sdk-codegen/aws-models/macie2.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,13 @@
11101110
"smithy.api#jsonName": "jobId"
11111111
}
11121112
},
1113+
"originType": {
1114+
"target": "com.amazonaws.macie2#OriginType",
1115+
"traits": {
1116+
"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>",
1117+
"smithy.api#jsonName": "originType"
1118+
}
1119+
},
11131120
"result": {
11141121
"target": "com.amazonaws.macie2#ClassificationResult",
11151122
"traits": {
@@ -1119,7 +1126,7 @@
11191126
}
11201127
},
11211128
"traits": {
1122-
"smithy.api#documentation": "<p>Provides information about a sensitive data finding, including the classification job that produced the finding.</p>"
1129+
"smithy.api#documentation": "<p>Provides information about a sensitive data finding and the details of the finding.</p>"
11231130
}
11241131
},
11251132
"com.amazonaws.macie2#ClassificationExportConfiguration": {
@@ -4423,7 +4430,7 @@
44234430
"findingIds": {
44244431
"target": "com.amazonaws.macie2#__listOf__string",
44254432
"traits": {
4426-
"smithy.api#documentation": "<p>An array of strings that lists the unique identifiers for the findings to retrieve.</p>",
4433+
"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>",
44274434
"smithy.api#jsonName": "findingIds",
44284435
"smithy.api#required": {}
44294436
}
@@ -5262,7 +5269,7 @@
52625269
"com.amazonaws.macie2#JobComparator": {
52635270
"type": "string",
52645271
"traits": {
5265-
"smithy.api#documentation": "<p>The operator to use in a condition. Valid values are:</p>",
5272+
"smithy.api#documentation": "<p>The operator to use in a condition. Depending on the type of condition, possible values are:</p>",
52665273
"smithy.api#enum": [
52675274
{
52685275
"value": "EQ",
@@ -7009,6 +7016,18 @@
70097016
]
70107017
}
70117018
},
7019+
"com.amazonaws.macie2#OriginType": {
7020+
"type": "string",
7021+
"traits": {
7022+
"smithy.api#documentation": "<p>Specifies how Amazon Macie found the sensitive data that produced a finding. The only possible value is:</p>",
7023+
"smithy.api#enum": [
7024+
{
7025+
"value": "SENSITIVE_DATA_DISCOVERY_JOB",
7026+
"name": "SENSITIVE_DATA_DISCOVERY_JOB"
7027+
}
7028+
]
7029+
}
7030+
},
70127031
"com.amazonaws.macie2#Page": {
70137032
"type": "structure",
70147033
"members": {
@@ -7231,6 +7250,9 @@
72317250
"type": "list",
72327251
"member": {
72337252
"target": "com.amazonaws.macie2#Range"
7253+
},
7254+
"traits": {
7255+
"smithy.api#documentation": "<p>Specifies the locations of occurrences of sensitive data in a non-binary text file.</p>"
72347256
}
72357257
},
72367258
"com.amazonaws.macie2#Record": {
@@ -7259,6 +7281,9 @@
72597281
"type": "list",
72607282
"member": {
72617283
"target": "com.amazonaws.macie2#Record"
7284+
},
7285+
"traits": {
7286+
"smithy.api#documentation": "<p>Specifies the locations of occurrences of sensitive data in an Apache Avro object container or a structured data file.</p>"
72627287
}
72637288
},
72647289
"com.amazonaws.macie2#RelationshipStatus": {
@@ -8909,7 +8934,7 @@
89098934
"tagKeys": {
89108935
"target": "com.amazonaws.macie2#__listOf__string",
89118936
"traits": {
8912-
"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>",
8937+
"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>",
89138938
"smithy.api#httpQuery": "tagKeys",
89148939
"smithy.api#required": {}
89158940
}

0 commit comments

Comments
 (0)