@aws-sdk/client-macie2 3.450.0 → 3.453.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +11 -1
- package/dist-cjs/protocols/Aws_restJson1.js +16 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +16 -0
- package/dist-types/commands/GetRevealConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingsFiltersCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRevealConfigurationCommand.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +57 -43
- package/dist-types/models/models_1.d.ts +60 -4
- package/dist-types/ts3.4/commands/ListFindingsFiltersCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +17 -8
- package/dist-types/ts3.4/models/models_1.d.ts +17 -0
- package/package.json +36 -36
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ManagedDataIdentifierSelector = exports.ClassificationScopeUpdateOperation = exports.OrderBy = exports.AvailabilityCode = exports.AutomatedDiscoveryStatus = exports.AllowListStatusCode = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = exports.UsageStatisticsFilterKey = exports.UsageStatisticsFilterComparator = exports.UsageType = exports.Unit = exports.Currency = exports.ErrorCode = exports.UnavailabilityReasonCode = exports.SearchResourcesSimpleCriterionKey = exports.SearchResourcesComparator = exports.ListJobsFilterKey = exports.LastRunErrorStatusCode = exports.JobType = exports.JobStatus = exports.TagTarget = exports.ScopeFilterKey = exports.RelationshipStatus = exports.FindingsFilterAction = exports.FindingType = exports.SeverityDescription = exports.StorageClass = exports.EncryptionType = exports.UserIdentityType = exports.FindingActionType = exports.SensitiveDataItemCategory = exports.OriginType = exports.FindingCategory = exports.DataIdentifierType = exports.SimpleCriterionKeyForJob = exports.JobComparator = exports.SharedAccess = exports.Type = exports.EffectivePermission = exports.IsMonitoredByJob = exports.IsDefinedInJob = exports.BucketMetadataErrorCode = exports.AllowsUnencryptedObjectUploads = exports.AdminStatus = void 0;
|
|
4
|
-
exports.ListJobsSortAttributeName = exports.TimeRange = exports.UsageStatisticsSortKey = exports.UnprocessableEntityException = exports.RevealRequestStatus = exports.RevealStatus = exports.GroupBy = exports.FindingStatisticsSortAttributeName = exports.MacieStatus = exports.FindingPublishingFrequency = exports.DataIdentifierSeverity = exports.DayOfWeek = void 0;
|
|
4
|
+
exports.ListJobsSortAttributeName = exports.TimeRange = exports.UsageStatisticsSortKey = exports.UnprocessableEntityException = exports.RevealRequestStatus = exports.RetrievalMode = exports.RevealStatus = exports.GroupBy = exports.FindingStatisticsSortAttributeName = exports.MacieStatus = exports.FindingPublishingFrequency = exports.DataIdentifierSeverity = exports.DayOfWeek = void 0;
|
|
5
5
|
const Macie2ServiceException_1 = require("./Macie2ServiceException");
|
|
6
6
|
exports.AdminStatus = {
|
|
7
7
|
DISABLING_IN_PROGRESS: "DISABLING_IN_PROGRESS",
|
|
@@ -179,9 +179,15 @@ exports.SearchResourcesSimpleCriterionKey = {
|
|
|
179
179
|
S3_BUCKET_SHARED_ACCESS: "S3_BUCKET_SHARED_ACCESS",
|
|
180
180
|
};
|
|
181
181
|
exports.UnavailabilityReasonCode = {
|
|
182
|
+
ACCOUNT_NOT_IN_ORGANIZATION: "ACCOUNT_NOT_IN_ORGANIZATION",
|
|
182
183
|
INVALID_CLASSIFICATION_RESULT: "INVALID_CLASSIFICATION_RESULT",
|
|
184
|
+
INVALID_RESULT_SIGNATURE: "INVALID_RESULT_SIGNATURE",
|
|
185
|
+
MEMBER_ROLE_TOO_PERMISSIVE: "MEMBER_ROLE_TOO_PERMISSIVE",
|
|
186
|
+
MISSING_GET_MEMBER_PERMISSION: "MISSING_GET_MEMBER_PERMISSION",
|
|
183
187
|
OBJECT_EXCEEDS_SIZE_QUOTA: "OBJECT_EXCEEDS_SIZE_QUOTA",
|
|
184
188
|
OBJECT_UNAVAILABLE: "OBJECT_UNAVAILABLE",
|
|
189
|
+
RESULT_NOT_SIGNED: "RESULT_NOT_SIGNED",
|
|
190
|
+
ROLE_TOO_PERMISSIVE: "ROLE_TOO_PERMISSIVE",
|
|
185
191
|
UNSUPPORTED_FINDING_TYPE: "UNSUPPORTED_FINDING_TYPE",
|
|
186
192
|
UNSUPPORTED_OBJECT_TYPE: "UNSUPPORTED_OBJECT_TYPE",
|
|
187
193
|
};
|
|
@@ -378,6 +384,10 @@ exports.RevealStatus = {
|
|
|
378
384
|
DISABLED: "DISABLED",
|
|
379
385
|
ENABLED: "ENABLED",
|
|
380
386
|
};
|
|
387
|
+
exports.RetrievalMode = {
|
|
388
|
+
ASSUME_ROLE: "ASSUME_ROLE",
|
|
389
|
+
CALLER_CREDENTIALS: "CALLER_CREDENTIALS",
|
|
390
|
+
};
|
|
381
391
|
exports.RevealRequestStatus = {
|
|
382
392
|
ERROR: "ERROR",
|
|
383
393
|
PROCESSING: "PROCESSING",
|
|
@@ -1643,6 +1643,7 @@ const se_UpdateRevealConfigurationCommand = async (input, context) => {
|
|
|
1643
1643
|
let body;
|
|
1644
1644
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1645
1645
|
configuration: [, (_) => se_RevealConfiguration(_, context), `configuration`],
|
|
1646
|
+
retrievalConfiguration: [, (_) => se_UpdateRetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
1646
1647
|
}));
|
|
1647
1648
|
return new protocol_http_1.HttpRequest({
|
|
1648
1649
|
protocol,
|
|
@@ -3846,6 +3847,7 @@ const de_GetRevealConfigurationCommand = async (output, context) => {
|
|
|
3846
3847
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3847
3848
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3848
3849
|
configuration: [, (_) => de_RevealConfiguration(_, context), `configuration`],
|
|
3850
|
+
retrievalConfiguration: [, (_) => de_RetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
3849
3851
|
});
|
|
3850
3852
|
Object.assign(contents, doc);
|
|
3851
3853
|
return contents;
|
|
@@ -5521,6 +5523,7 @@ const de_UpdateRevealConfigurationCommand = async (output, context) => {
|
|
|
5521
5523
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5522
5524
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5523
5525
|
configuration: [, (_) => de_RevealConfiguration(_, context), `configuration`],
|
|
5526
|
+
retrievalConfiguration: [, (_) => de_RetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
5524
5527
|
});
|
|
5525
5528
|
Object.assign(contents, doc);
|
|
5526
5529
|
return contents;
|
|
@@ -6078,6 +6081,12 @@ const se_TagValuePair = (input, context) => {
|
|
|
6078
6081
|
value: [, , `value`],
|
|
6079
6082
|
});
|
|
6080
6083
|
};
|
|
6084
|
+
const se_UpdateRetrievalConfiguration = (input, context) => {
|
|
6085
|
+
return (0, smithy_client_1.take)(input, {
|
|
6086
|
+
retrievalMode: [, , `retrievalMode`],
|
|
6087
|
+
roleName: [, , `roleName`],
|
|
6088
|
+
});
|
|
6089
|
+
};
|
|
6081
6090
|
const se_UsageStatisticsFilter = (input, context) => {
|
|
6082
6091
|
return (0, smithy_client_1.take)(input, {
|
|
6083
6092
|
comparator: [, , `comparator`],
|
|
@@ -7006,6 +7015,13 @@ const de_ResourceStatistics = (output, context) => {
|
|
|
7006
7015
|
totalItemsSkippedPermissionDenied: [, smithy_client_1.expectLong, `totalItemsSkippedPermissionDenied`],
|
|
7007
7016
|
});
|
|
7008
7017
|
};
|
|
7018
|
+
const de_RetrievalConfiguration = (output, context) => {
|
|
7019
|
+
return (0, smithy_client_1.take)(output, {
|
|
7020
|
+
externalId: [, smithy_client_1.expectString, `externalId`],
|
|
7021
|
+
retrievalMode: [, smithy_client_1.expectString, `retrievalMode`],
|
|
7022
|
+
roleName: [, smithy_client_1.expectString, `roleName`],
|
|
7023
|
+
});
|
|
7024
|
+
};
|
|
7009
7025
|
const de_RevealConfiguration = (output, context) => {
|
|
7010
7026
|
return (0, smithy_client_1.take)(output, {
|
|
7011
7027
|
kmsKeyId: [, smithy_client_1.expectString, `kmsKeyId`],
|
|
@@ -175,9 +175,15 @@ export const SearchResourcesSimpleCriterionKey = {
|
|
|
175
175
|
S3_BUCKET_SHARED_ACCESS: "S3_BUCKET_SHARED_ACCESS",
|
|
176
176
|
};
|
|
177
177
|
export const UnavailabilityReasonCode = {
|
|
178
|
+
ACCOUNT_NOT_IN_ORGANIZATION: "ACCOUNT_NOT_IN_ORGANIZATION",
|
|
178
179
|
INVALID_CLASSIFICATION_RESULT: "INVALID_CLASSIFICATION_RESULT",
|
|
180
|
+
INVALID_RESULT_SIGNATURE: "INVALID_RESULT_SIGNATURE",
|
|
181
|
+
MEMBER_ROLE_TOO_PERMISSIVE: "MEMBER_ROLE_TOO_PERMISSIVE",
|
|
182
|
+
MISSING_GET_MEMBER_PERMISSION: "MISSING_GET_MEMBER_PERMISSION",
|
|
179
183
|
OBJECT_EXCEEDS_SIZE_QUOTA: "OBJECT_EXCEEDS_SIZE_QUOTA",
|
|
180
184
|
OBJECT_UNAVAILABLE: "OBJECT_UNAVAILABLE",
|
|
185
|
+
RESULT_NOT_SIGNED: "RESULT_NOT_SIGNED",
|
|
186
|
+
ROLE_TOO_PERMISSIVE: "ROLE_TOO_PERMISSIVE",
|
|
181
187
|
UNSUPPORTED_FINDING_TYPE: "UNSUPPORTED_FINDING_TYPE",
|
|
182
188
|
UNSUPPORTED_OBJECT_TYPE: "UNSUPPORTED_OBJECT_TYPE",
|
|
183
189
|
};
|
|
@@ -367,6 +373,10 @@ export const RevealStatus = {
|
|
|
367
373
|
DISABLED: "DISABLED",
|
|
368
374
|
ENABLED: "ENABLED",
|
|
369
375
|
};
|
|
376
|
+
export const RetrievalMode = {
|
|
377
|
+
ASSUME_ROLE: "ASSUME_ROLE",
|
|
378
|
+
CALLER_CREDENTIALS: "CALLER_CREDENTIALS",
|
|
379
|
+
};
|
|
370
380
|
export const RevealRequestStatus = {
|
|
371
381
|
ERROR: "ERROR",
|
|
372
382
|
PROCESSING: "PROCESSING",
|
|
@@ -1560,6 +1560,7 @@ export const se_UpdateRevealConfigurationCommand = async (input, context) => {
|
|
|
1560
1560
|
let body;
|
|
1561
1561
|
body = JSON.stringify(take(input, {
|
|
1562
1562
|
configuration: [, (_) => se_RevealConfiguration(_, context), `configuration`],
|
|
1563
|
+
retrievalConfiguration: [, (_) => se_UpdateRetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
1563
1564
|
}));
|
|
1564
1565
|
return new __HttpRequest({
|
|
1565
1566
|
protocol,
|
|
@@ -3720,6 +3721,7 @@ export const de_GetRevealConfigurationCommand = async (output, context) => {
|
|
|
3720
3721
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3721
3722
|
const doc = take(data, {
|
|
3722
3723
|
configuration: [, (_) => de_RevealConfiguration(_, context), `configuration`],
|
|
3724
|
+
retrievalConfiguration: [, (_) => de_RetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
3723
3725
|
});
|
|
3724
3726
|
Object.assign(contents, doc);
|
|
3725
3727
|
return contents;
|
|
@@ -5359,6 +5361,7 @@ export const de_UpdateRevealConfigurationCommand = async (output, context) => {
|
|
|
5359
5361
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5360
5362
|
const doc = take(data, {
|
|
5361
5363
|
configuration: [, (_) => de_RevealConfiguration(_, context), `configuration`],
|
|
5364
|
+
retrievalConfiguration: [, (_) => de_RetrievalConfiguration(_, context), `retrievalConfiguration`],
|
|
5362
5365
|
});
|
|
5363
5366
|
Object.assign(contents, doc);
|
|
5364
5367
|
return contents;
|
|
@@ -5914,6 +5917,12 @@ const se_TagValuePair = (input, context) => {
|
|
|
5914
5917
|
value: [, , `value`],
|
|
5915
5918
|
});
|
|
5916
5919
|
};
|
|
5920
|
+
const se_UpdateRetrievalConfiguration = (input, context) => {
|
|
5921
|
+
return take(input, {
|
|
5922
|
+
retrievalMode: [, , `retrievalMode`],
|
|
5923
|
+
roleName: [, , `roleName`],
|
|
5924
|
+
});
|
|
5925
|
+
};
|
|
5917
5926
|
const se_UsageStatisticsFilter = (input, context) => {
|
|
5918
5927
|
return take(input, {
|
|
5919
5928
|
comparator: [, , `comparator`],
|
|
@@ -6842,6 +6851,13 @@ const de_ResourceStatistics = (output, context) => {
|
|
|
6842
6851
|
totalItemsSkippedPermissionDenied: [, __expectLong, `totalItemsSkippedPermissionDenied`],
|
|
6843
6852
|
});
|
|
6844
6853
|
};
|
|
6854
|
+
const de_RetrievalConfiguration = (output, context) => {
|
|
6855
|
+
return take(output, {
|
|
6856
|
+
externalId: [, __expectString, `externalId`],
|
|
6857
|
+
retrievalMode: [, __expectString, `retrievalMode`],
|
|
6858
|
+
roleName: [, __expectString, `roleName`],
|
|
6859
|
+
});
|
|
6860
|
+
};
|
|
6845
6861
|
const de_RevealConfiguration = (output, context) => {
|
|
6846
6862
|
return take(output, {
|
|
6847
6863
|
kmsKeyId: [, __expectString, `kmsKeyId`],
|
|
@@ -38,6 +38,11 @@ export interface GetRevealConfigurationCommandOutput extends GetRevealConfigurat
|
|
|
38
38
|
* // kmsKeyId: "STRING_VALUE",
|
|
39
39
|
* // status: "ENABLED" || "DISABLED", // required
|
|
40
40
|
* // },
|
|
41
|
+
* // retrievalConfiguration: { // RetrievalConfiguration
|
|
42
|
+
* // externalId: "STRING_VALUE",
|
|
43
|
+
* // retrievalMode: "CALLER_CREDENTIALS" || "ASSUME_ROLE", // required
|
|
44
|
+
* // roleName: "STRING_VALUE",
|
|
45
|
+
* // },
|
|
41
46
|
* // };
|
|
42
47
|
*
|
|
43
48
|
* ```
|
|
@@ -38,7 +38,7 @@ export interface GetSensitiveDataOccurrencesAvailabilityCommandOutput extends Ge
|
|
|
38
38
|
* // { // GetSensitiveDataOccurrencesAvailabilityResponse
|
|
39
39
|
* // code: "AVAILABLE" || "UNAVAILABLE",
|
|
40
40
|
* // reasons: [ // __listOfUnavailabilityReasonCode
|
|
41
|
-
* // "OBJECT_EXCEEDS_SIZE_QUOTA" || "UNSUPPORTED_OBJECT_TYPE" || "UNSUPPORTED_FINDING_TYPE" || "INVALID_CLASSIFICATION_RESULT" || "OBJECT_UNAVAILABLE",
|
|
41
|
+
* // "OBJECT_EXCEEDS_SIZE_QUOTA" || "UNSUPPORTED_OBJECT_TYPE" || "UNSUPPORTED_FINDING_TYPE" || "INVALID_CLASSIFICATION_RESULT" || "OBJECT_UNAVAILABLE" || "ACCOUNT_NOT_IN_ORGANIZATION" || "MISSING_GET_MEMBER_PERMISSION" || "ROLE_TOO_PERMISSIVE" || "MEMBER_ROLE_TOO_PERMISSIVE" || "INVALID_RESULT_SIGNATURE" || "RESULT_NOT_SIGNED",
|
|
42
42
|
* // ],
|
|
43
43
|
* // };
|
|
44
44
|
*
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { Macie2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Macie2Client";
|
|
5
|
-
import { ListFindingsFiltersRequest, ListFindingsFiltersResponse } from "../models/
|
|
5
|
+
import { ListFindingsFiltersRequest, ListFindingsFiltersResponse } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -35,6 +35,10 @@ export interface UpdateRevealConfigurationCommandOutput extends UpdateRevealConf
|
|
|
35
35
|
* kmsKeyId: "STRING_VALUE",
|
|
36
36
|
* status: "ENABLED" || "DISABLED", // required
|
|
37
37
|
* },
|
|
38
|
+
* retrievalConfiguration: { // UpdateRetrievalConfiguration
|
|
39
|
+
* retrievalMode: "CALLER_CREDENTIALS" || "ASSUME_ROLE", // required
|
|
40
|
+
* roleName: "STRING_VALUE",
|
|
41
|
+
* },
|
|
38
42
|
* };
|
|
39
43
|
* const command = new UpdateRevealConfigurationCommand(input);
|
|
40
44
|
* const response = await client.send(command);
|
|
@@ -43,6 +47,11 @@ export interface UpdateRevealConfigurationCommandOutput extends UpdateRevealConf
|
|
|
43
47
|
* // kmsKeyId: "STRING_VALUE",
|
|
44
48
|
* // status: "ENABLED" || "DISABLED", // required
|
|
45
49
|
* // },
|
|
50
|
+
* // retrievalConfiguration: { // RetrievalConfiguration
|
|
51
|
+
* // externalId: "STRING_VALUE",
|
|
52
|
+
* // retrievalMode: "CALLER_CREDENTIALS" || "ASSUME_ROLE", // required
|
|
53
|
+
* // roleName: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
46
55
|
* // };
|
|
47
56
|
*
|
|
48
57
|
* ```
|
|
@@ -734,7 +734,7 @@ export interface CustomDataIdentifierSummary {
|
|
|
734
734
|
export interface DetectedDataDetails {
|
|
735
735
|
/**
|
|
736
736
|
* @public
|
|
737
|
-
* <p>An occurrence of the specified type of sensitive data. Each occurrence
|
|
737
|
+
* <p>An occurrence of the specified type of sensitive data. Each occurrence contains 1-128 characters.</p>
|
|
738
738
|
*/
|
|
739
739
|
value: string | undefined;
|
|
740
740
|
}
|
|
@@ -885,7 +885,7 @@ export interface Page {
|
|
|
885
885
|
export interface _Record {
|
|
886
886
|
/**
|
|
887
887
|
* @public
|
|
888
|
-
* <p>The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.</p> <p>If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds
|
|
888
|
+
* <p>The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.</p> <p>If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.</p>
|
|
889
889
|
*/
|
|
890
890
|
jsonPath?: string;
|
|
891
891
|
/**
|
|
@@ -2028,7 +2028,7 @@ export type ScopeFilterKey = (typeof ScopeFilterKey)[keyof typeof ScopeFilterKey
|
|
|
2028
2028
|
export interface SimpleScopeTerm {
|
|
2029
2029
|
/**
|
|
2030
2030
|
* @public
|
|
2031
|
-
* <p>The operator to use in the condition. Valid values for each supported property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not equals)</p></li> <li><p>OBJECT_KEY - STARTS_WITH</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE -
|
|
2031
|
+
* <p>The operator to use in the condition. Valid values for each supported property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not equals)</p></li> <li><p>OBJECT_KEY - STARTS_WITH</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - EQ (equals), GT (greater than), GTE (greater than or equals), LT (less than), LTE (less than or equals), or NE (not equals)</p></li> <li><p>OBJECT_SIZE - EQ (equals), GT (greater than), GTE (greater than or equals), LT (less than), LTE (less than or equals), or NE (not equals)</p></li></ul>
|
|
2032
2032
|
*/
|
|
2033
2033
|
comparator?: JobComparator;
|
|
2034
2034
|
/**
|
|
@@ -2038,7 +2038,7 @@ export interface SimpleScopeTerm {
|
|
|
2038
2038
|
key?: ScopeFilterKey;
|
|
2039
2039
|
/**
|
|
2040
2040
|
* @public
|
|
2041
|
-
* <p>An array that lists the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.</p> <p>Valid values for each supported property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf</p></li> <li><p>OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example:
|
|
2041
|
+
* <p>An array that lists the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.</p> <p>Valid values for each supported property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf</p></li> <li><p>OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example: 2023-09-24T14:31:13Z</p></li> <li><p>OBJECT_SIZE - An integer that represents the storage size (in bytes) of an object.</p></li></ul> <p>Macie doesn't support use of wildcard characters in these values. Also, string values are case sensitive.</p>
|
|
2042
2042
|
*/
|
|
2043
2043
|
values?: string[];
|
|
2044
2044
|
}
|
|
@@ -2624,9 +2624,15 @@ export interface SuppressDataIdentifier {
|
|
|
2624
2624
|
* @enum
|
|
2625
2625
|
*/
|
|
2626
2626
|
export declare const UnavailabilityReasonCode: {
|
|
2627
|
+
readonly ACCOUNT_NOT_IN_ORGANIZATION: "ACCOUNT_NOT_IN_ORGANIZATION";
|
|
2627
2628
|
readonly INVALID_CLASSIFICATION_RESULT: "INVALID_CLASSIFICATION_RESULT";
|
|
2629
|
+
readonly INVALID_RESULT_SIGNATURE: "INVALID_RESULT_SIGNATURE";
|
|
2630
|
+
readonly MEMBER_ROLE_TOO_PERMISSIVE: "MEMBER_ROLE_TOO_PERMISSIVE";
|
|
2631
|
+
readonly MISSING_GET_MEMBER_PERMISSION: "MISSING_GET_MEMBER_PERMISSION";
|
|
2628
2632
|
readonly OBJECT_EXCEEDS_SIZE_QUOTA: "OBJECT_EXCEEDS_SIZE_QUOTA";
|
|
2629
2633
|
readonly OBJECT_UNAVAILABLE: "OBJECT_UNAVAILABLE";
|
|
2634
|
+
readonly RESULT_NOT_SIGNED: "RESULT_NOT_SIGNED";
|
|
2635
|
+
readonly ROLE_TOO_PERMISSIVE: "ROLE_TOO_PERMISSIVE";
|
|
2630
2636
|
readonly UNSUPPORTED_FINDING_TYPE: "UNSUPPORTED_FINDING_TYPE";
|
|
2631
2637
|
readonly UNSUPPORTED_OBJECT_TYPE: "UNSUPPORTED_OBJECT_TYPE";
|
|
2632
2638
|
};
|
|
@@ -3326,7 +3332,7 @@ export interface S3Destination {
|
|
|
3326
3332
|
keyPrefix?: string;
|
|
3327
3333
|
/**
|
|
3328
3334
|
* @public
|
|
3329
|
-
* <p>The Amazon Resource Name (ARN) of the customer managed KMS key to use for encryption of the results. This must be the ARN of an existing, symmetric encryption KMS key that's in the same Amazon Web Services Region as the bucket.</p>
|
|
3335
|
+
* <p>The Amazon Resource Name (ARN) of the customer managed KMS key to use for encryption of the results. This must be the ARN of an existing, symmetric encryption KMS key that's enabled in the same Amazon Web Services Region as the bucket.</p>
|
|
3330
3336
|
*/
|
|
3331
3337
|
kmsKeyArn: string | undefined;
|
|
3332
3338
|
}
|
|
@@ -3569,7 +3575,7 @@ export interface CreateClassificationJobRequest {
|
|
|
3569
3575
|
managedDataIdentifierIds?: string[];
|
|
3570
3576
|
/**
|
|
3571
3577
|
* @public
|
|
3572
|
-
* <p>The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:</p> <ul><li><p>ALL - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.</p></li> <li><p>EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.</p></li> <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>NONE - Don't use any managed data identifiers. If you specify this value, specify at least one value for the customDataIdentifierIds property and don't specify any values for the managedDataIdentifierIds property.</p></li> <li><p>RECOMMENDED (default) - Use the recommended set of managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.</p></li></ul> <p>If you don't specify a value for this property, the job uses the recommended set of managed data identifiers.</p> <p>If the job is a recurring job and you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the run starts.</p> <p>For information about individual managed data identifiers or to determine which ones are in the recommended set, see <a href="https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html">Using managed data identifiers</a> and <a href="https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-mdis-recommended.html">Recommended managed data identifiers</a> in the <i>Amazon Macie User Guide</i>.</p>
|
|
3578
|
+
* <p>The selection type to apply when determining which managed data identifiers the job uses to analyze data. Valid values are:</p> <ul><li><p>ALL - Use all managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.</p></li> <li><p>EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.</p></li> <li><p>INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.</p></li> <li><p>NONE - Don't use any managed data identifiers. If you specify this value, specify at least one value for the customDataIdentifierIds property and don't specify any values for the managedDataIdentifierIds property.</p></li> <li><p>RECOMMENDED (default) - Use the recommended set of managed data identifiers. If you specify this value, don't specify any values for the managedDataIdentifierIds property.</p></li></ul> <p>If you don't specify a value for this property, the job uses the recommended set of managed data identifiers.</p> <p>If the job is a recurring job and you specify ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If you don't specify a value for this property or you specify RECOMMENDED for a recurring job, each job run automatically uses all the managed data identifiers that are in the recommended set when the run starts.</p> <p>For information about individual managed data identifiers or to determine which ones are in the recommended set, see <a href="https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html">Using managed data identifiers</a> and <a href="https://docs.aws.amazon.com/macie/latest/user/discovery-jobs-mdis-recommended.html">Recommended managed data identifiers</a> in the <i>Amazon Macie User Guide</i>.</p>
|
|
3573
3579
|
*/
|
|
3574
3580
|
managedDataIdentifierSelector?: ManagedDataIdentifierSelector;
|
|
3575
3581
|
/**
|
|
@@ -4902,7 +4908,7 @@ export interface GetMacieSessionResponse {
|
|
|
4902
4908
|
status?: MacieStatus;
|
|
4903
4909
|
/**
|
|
4904
4910
|
* @public
|
|
4905
|
-
* <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status
|
|
4911
|
+
* <p>The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration settings for the Amazon Macie account.</p>
|
|
4906
4912
|
*/
|
|
4907
4913
|
updatedAt?: Date;
|
|
4908
4914
|
}
|
|
@@ -5023,7 +5029,7 @@ export interface ResourceStatistics {
|
|
|
5023
5029
|
totalItemsSensitive?: number;
|
|
5024
5030
|
/**
|
|
5025
5031
|
* @public
|
|
5026
|
-
* <p>The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to an object-level issue or error. For example,
|
|
5032
|
+
* <p>The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to an object-level issue or error. For example, an object is a malformed file. This value includes objects that Macie wasn't able to analyze for reasons reported by other statistics in the ResourceStatistics object.</p>
|
|
5027
5033
|
*/
|
|
5028
5034
|
totalItemsSkipped?: number;
|
|
5029
5035
|
/**
|
|
@@ -5086,12 +5092,12 @@ export declare const RevealStatus: {
|
|
|
5086
5092
|
export type RevealStatus = (typeof RevealStatus)[keyof typeof RevealStatus];
|
|
5087
5093
|
/**
|
|
5088
5094
|
* @public
|
|
5089
|
-
* <p>Specifies the configuration
|
|
5095
|
+
* <p>Specifies the status of the Amazon Macie configuration for retrieving occurrences of sensitive data reported by findings, and the Key Management Service (KMS) key to use to encrypt sensitive data that's retrieved. When you enable the configuration for the first time, your request must specify an KMS key. Otherwise, an error occurs.</p>
|
|
5090
5096
|
*/
|
|
5091
5097
|
export interface RevealConfiguration {
|
|
5092
5098
|
/**
|
|
5093
5099
|
* @public
|
|
5094
|
-
* <p>The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's in the same Amazon Web Services Region as the Amazon Macie account.</p> <p>If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.</p>
|
|
5100
|
+
* <p>The Amazon Resource Name (ARN), ID, or alias of the KMS key to use to encrypt sensitive data that's retrieved. The key must be an existing, customer managed, symmetric encryption key that's enabled in the same Amazon Web Services Region as the Amazon Macie account.</p> <p>If this value specifies an alias, it must include the following prefix: alias/. If this value specifies a key that's owned by another Amazon Web Services account, it must specify the ARN of the key or the ARN of the key's alias.</p>
|
|
5095
5101
|
*/
|
|
5096
5102
|
kmsKeyId?: string;
|
|
5097
5103
|
/**
|
|
@@ -5100,15 +5106,53 @@ export interface RevealConfiguration {
|
|
|
5100
5106
|
*/
|
|
5101
5107
|
status: RevealStatus | undefined;
|
|
5102
5108
|
}
|
|
5109
|
+
/**
|
|
5110
|
+
* @public
|
|
5111
|
+
* @enum
|
|
5112
|
+
*/
|
|
5113
|
+
export declare const RetrievalMode: {
|
|
5114
|
+
readonly ASSUME_ROLE: "ASSUME_ROLE";
|
|
5115
|
+
readonly CALLER_CREDENTIALS: "CALLER_CREDENTIALS";
|
|
5116
|
+
};
|
|
5117
|
+
/**
|
|
5118
|
+
* @public
|
|
5119
|
+
*/
|
|
5120
|
+
export type RetrievalMode = (typeof RetrievalMode)[keyof typeof RetrievalMode];
|
|
5121
|
+
/**
|
|
5122
|
+
* @public
|
|
5123
|
+
* <p>Provides information about the access method and settings that are used to retrieve occurrences of sensitive data reported by findings.</p>
|
|
5124
|
+
*/
|
|
5125
|
+
export interface RetrievalConfiguration {
|
|
5126
|
+
/**
|
|
5127
|
+
* @public
|
|
5128
|
+
* <p>The external ID to specify in the trust policy for the IAM role to assume when retrieving sensitive data from affected S3 objects (roleName). The trust policy must include an sts:ExternalId condition that requires this ID.</p> <p>This ID is a unique alphanumeric string that Amazon Macie generates automatically after you configure it to assume a role. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.</p>
|
|
5129
|
+
*/
|
|
5130
|
+
externalId?: string;
|
|
5131
|
+
/**
|
|
5132
|
+
* @public
|
|
5133
|
+
* <p>The access method that's used when retrieving sensitive data from affected S3 objects. Valid values are: ASSUME_ROLE, assume an IAM role that is in the affected Amazon Web Services account and delegates access to Amazon Macie (roleName); and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data.</p>
|
|
5134
|
+
*/
|
|
5135
|
+
retrievalMode: RetrievalMode | undefined;
|
|
5136
|
+
/**
|
|
5137
|
+
* @public
|
|
5138
|
+
* <p>The name of the IAM role that is in the affected Amazon Web Services account and Amazon Macie is allowed to assume when retrieving sensitive data from affected S3 objects for the account. This value is null if the value for retrievalMode is CALLER_CREDENTIALS.</p>
|
|
5139
|
+
*/
|
|
5140
|
+
roleName?: string;
|
|
5141
|
+
}
|
|
5103
5142
|
/**
|
|
5104
5143
|
* @public
|
|
5105
5144
|
*/
|
|
5106
5145
|
export interface GetRevealConfigurationResponse {
|
|
5107
5146
|
/**
|
|
5108
5147
|
* @public
|
|
5109
|
-
* <p>The
|
|
5148
|
+
* <p>The KMS key that's used to encrypt the sensitive data, and the status of the configuration for the Amazon Macie account.</p>
|
|
5110
5149
|
*/
|
|
5111
5150
|
configuration?: RevealConfiguration;
|
|
5151
|
+
/**
|
|
5152
|
+
* @public
|
|
5153
|
+
* <p>The access method and settings that are used to retrieve the sensitive data.</p>
|
|
5154
|
+
*/
|
|
5155
|
+
retrievalConfiguration?: RetrievalConfiguration;
|
|
5112
5156
|
}
|
|
5113
5157
|
/**
|
|
5114
5158
|
* @public
|
|
@@ -5186,7 +5230,7 @@ export interface GetSensitiveDataOccurrencesAvailabilityResponse {
|
|
|
5186
5230
|
code?: AvailabilityCode;
|
|
5187
5231
|
/**
|
|
5188
5232
|
* @public
|
|
5189
|
-
* <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p> <ul><li><p>
|
|
5233
|
+
* <p>Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:</p> <ul><li><p>ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the affected S3 object by using Macie.</p></li> <li><p>INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or the corresponding sensitive data discovery result isn't available, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive data to retrieve.</p></li> <li><p>INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve.</p></li> <li><p>MEMBER_ROLE_TOO_PERMISSIVE - The affected member account is configured to retrieve occurrences of sensitive data by using an IAM role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify the correct external ID. Macie can't assume the role to retrieve the sensitive data.</p></li> <li><p>MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object as the delegated Macie administrator for the affected account.</p></li> <li><p>OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data from this type of file.</p></li> <li><p>OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, or deleted. Or the object was changed after Macie created the finding.</p></li> <li><p>RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve.</p></li> <li><p>ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t assume the role to retrieve the sensitive data.</p></li> <li><p>UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.</p></li> <li><p>UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for retrieving occurrences of sensitive data.</p></li></ul> <p>This value is null if sensitive data can be retrieved for the finding.</p>
|
|
5190
5234
|
*/
|
|
5191
5235
|
reasons?: UnavailabilityReasonCode[];
|
|
5192
5236
|
}
|
|
@@ -5248,7 +5292,7 @@ export interface GetSensitivityInspectionTemplateResponse {
|
|
|
5248
5292
|
excludes?: SensitivityInspectionTemplateExcludes;
|
|
5249
5293
|
/**
|
|
5250
5294
|
* @public
|
|
5251
|
-
* <p>The allow lists, custom data identifiers, and managed data identifiers that are included (used) when analyzing data.</p>
|
|
5295
|
+
* <p>The allow lists, custom data identifiers, and managed data identifiers that are explicitly included (used) when analyzing data.</p>
|
|
5252
5296
|
*/
|
|
5253
5297
|
includes?: SensitivityInspectionTemplateIncludes;
|
|
5254
5298
|
/**
|
|
@@ -5595,33 +5639,3 @@ export interface ListFindingsResponse {
|
|
|
5595
5639
|
*/
|
|
5596
5640
|
nextToken?: string;
|
|
5597
5641
|
}
|
|
5598
|
-
/**
|
|
5599
|
-
* @public
|
|
5600
|
-
*/
|
|
5601
|
-
export interface ListFindingsFiltersRequest {
|
|
5602
|
-
/**
|
|
5603
|
-
* @public
|
|
5604
|
-
* <p>The maximum number of items to include in each page of a paginated response.</p>
|
|
5605
|
-
*/
|
|
5606
|
-
maxResults?: number;
|
|
5607
|
-
/**
|
|
5608
|
-
* @public
|
|
5609
|
-
* <p>The nextToken string that specifies which page of results to return in a paginated response.</p>
|
|
5610
|
-
*/
|
|
5611
|
-
nextToken?: string;
|
|
5612
|
-
}
|
|
5613
|
-
/**
|
|
5614
|
-
* @public
|
|
5615
|
-
*/
|
|
5616
|
-
export interface ListFindingsFiltersResponse {
|
|
5617
|
-
/**
|
|
5618
|
-
* @public
|
|
5619
|
-
* <p>An array of objects, one for each filter that's associated with the account.</p>
|
|
5620
|
-
*/
|
|
5621
|
-
findingsFilterListItems?: FindingsFilterListItem[];
|
|
5622
|
-
/**
|
|
5623
|
-
* @public
|
|
5624
|
-
* <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
|
|
5625
|
-
*/
|
|
5626
|
-
nextToken?: string;
|
|
5627
|
-
}
|
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
import { AdminAccount, AllowListCriteria, AutomatedDiscoveryStatus, ClassificationExportConfiguration, ClassificationScopeUpdateOperation, Detection, FindingCriteria, FindingPublishingFrequency, FindingsFilterAction, Invitation, JobStatus, MacieStatus, ManagedDataIdentifierSummary, MatchingResource, Member, OrderBy, ResourceProfileArtifact, RevealConfiguration, SearchResourcesCriteria, SecurityHubConfiguration, SensitivityInspectionTemplateExcludes, SensitivityInspectionTemplateIncludes, SensitivityInspectionTemplatesEntry, SuppressDataIdentifier } from "./models_0";
|
|
1
|
+
import { AdminAccount, AllowListCriteria, AutomatedDiscoveryStatus, ClassificationExportConfiguration, ClassificationScopeUpdateOperation, Detection, FindingCriteria, FindingPublishingFrequency, FindingsFilterAction, FindingsFilterListItem, Invitation, JobStatus, MacieStatus, ManagedDataIdentifierSummary, MatchingResource, Member, OrderBy, ResourceProfileArtifact, RetrievalConfiguration, RetrievalMode, RevealConfiguration, SearchResourcesCriteria, SecurityHubConfiguration, SensitivityInspectionTemplateExcludes, SensitivityInspectionTemplateIncludes, SensitivityInspectionTemplatesEntry, SuppressDataIdentifier } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ListFindingsFiltersRequest {
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
* <p>The maximum number of items to include in each page of a paginated response.</p>
|
|
9
|
+
*/
|
|
10
|
+
maxResults?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
* <p>The nextToken string that specifies which page of results to return in a paginated response.</p>
|
|
14
|
+
*/
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface ListFindingsFiltersResponse {
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
* <p>An array of objects, one for each filter that's associated with the account.</p>
|
|
24
|
+
*/
|
|
25
|
+
findingsFilterListItems?: FindingsFilterListItem[];
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
|
|
29
|
+
*/
|
|
30
|
+
nextToken?: string;
|
|
31
|
+
}
|
|
2
32
|
/**
|
|
3
33
|
* @public
|
|
4
34
|
*/
|
|
@@ -723,15 +753,36 @@ export interface UpdateResourceProfileDetectionsRequest {
|
|
|
723
753
|
*/
|
|
724
754
|
export interface UpdateResourceProfileDetectionsResponse {
|
|
725
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* @public
|
|
758
|
+
* <p>Specifies the access method and settings to use when retrieving occurrences of sensitive data reported by findings. If your request specifies an Identity and Access Management (IAM) role to assume when retrieving the sensitive data, Amazon Macie verifies that the role exists and the attached policies are configured correctly. If there's an issue, Macie returns an error. For information about addressing the issue, see <a href="https://docs.aws.amazon.com/macie/latest/user/findings-retrieve-sd.html">Retrieving sensitive data samples with findings</a> in the <i>Amazon Macie User Guide</i>.</p>
|
|
759
|
+
*/
|
|
760
|
+
export interface UpdateRetrievalConfiguration {
|
|
761
|
+
/**
|
|
762
|
+
* @public
|
|
763
|
+
* <p>The access method to use when retrieving sensitive data from affected S3 objects. Valid values are: ASSUME_ROLE, assume an IAM role that is in the affected Amazon Web Services account and delegates access to Amazon Macie; and, CALLER_CREDENTIALS, use the credentials of the IAM user who requests the sensitive data. If you specify ASSUME_ROLE, also specify the name of an existing IAM role for Macie to assume (roleName).</p> <important><p>If you change this value from ASSUME_ROLE to CALLER_CREDENTIALS for an existing configuration, Macie permanently deletes the external ID and role name currently specified for the configuration. These settings can't be recovered after they're deleted.</p></important>
|
|
764
|
+
*/
|
|
765
|
+
retrievalMode: RetrievalMode | undefined;
|
|
766
|
+
/**
|
|
767
|
+
* @public
|
|
768
|
+
* <p>The name of the IAM role that is in the affected Amazon Web Services account and Amazon Macie is allowed to assume when retrieving sensitive data from affected S3 objects for the account. The trust and permissions policies for the role must meet all requirements for Macie to assume the role.</p>
|
|
769
|
+
*/
|
|
770
|
+
roleName?: string;
|
|
771
|
+
}
|
|
726
772
|
/**
|
|
727
773
|
* @public
|
|
728
774
|
*/
|
|
729
775
|
export interface UpdateRevealConfigurationRequest {
|
|
730
776
|
/**
|
|
731
777
|
* @public
|
|
732
|
-
* <p>The
|
|
778
|
+
* <p>The KMS key to use to encrypt the sensitive data, and the status of the configuration for the Amazon Macie account.</p>
|
|
733
779
|
*/
|
|
734
780
|
configuration: RevealConfiguration | undefined;
|
|
781
|
+
/**
|
|
782
|
+
* @public
|
|
783
|
+
* <p>The access method and settings to use to retrieve the sensitive data.</p>
|
|
784
|
+
*/
|
|
785
|
+
retrievalConfiguration?: UpdateRetrievalConfiguration;
|
|
735
786
|
}
|
|
736
787
|
/**
|
|
737
788
|
* @public
|
|
@@ -739,9 +790,14 @@ export interface UpdateRevealConfigurationRequest {
|
|
|
739
790
|
export interface UpdateRevealConfigurationResponse {
|
|
740
791
|
/**
|
|
741
792
|
* @public
|
|
742
|
-
* <p>The
|
|
793
|
+
* <p>The KMS key to use to encrypt the sensitive data, and the status of the configuration for the Amazon Macie account.</p>
|
|
743
794
|
*/
|
|
744
795
|
configuration?: RevealConfiguration;
|
|
796
|
+
/**
|
|
797
|
+
* @public
|
|
798
|
+
* <p>The access method and settings to use to retrieve the sensitive data.</p>
|
|
799
|
+
*/
|
|
800
|
+
retrievalConfiguration?: RetrievalConfiguration;
|
|
745
801
|
}
|
|
746
802
|
/**
|
|
747
803
|
* @public
|
|
@@ -764,7 +820,7 @@ export interface UpdateSensitivityInspectionTemplateRequest {
|
|
|
764
820
|
id: string | undefined;
|
|
765
821
|
/**
|
|
766
822
|
* @public
|
|
767
|
-
* <p>The allow lists, custom data identifiers, and managed data identifiers to include (use) when analyzing data.</p>
|
|
823
|
+
* <p>The allow lists, custom data identifiers, and managed data identifiers to explicitly include (use) when analyzing data.</p>
|
|
768
824
|
*/
|
|
769
825
|
includes?: SensitivityInspectionTemplateIncludes;
|
|
770
826
|
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
ListFindingsFiltersRequest,
|
|
16
16
|
ListFindingsFiltersResponse,
|
|
17
|
-
} from "../models/
|
|
17
|
+
} from "../models/models_1";
|
|
18
18
|
export { __MetadataBearer, $Command };
|
|
19
19
|
export interface ListFindingsFiltersCommandInput
|
|
20
20
|
extends ListFindingsFiltersRequest {}
|
|
@@ -738,9 +738,15 @@ export interface SuppressDataIdentifier {
|
|
|
738
738
|
type?: DataIdentifierType;
|
|
739
739
|
}
|
|
740
740
|
export declare const UnavailabilityReasonCode: {
|
|
741
|
+
readonly ACCOUNT_NOT_IN_ORGANIZATION: "ACCOUNT_NOT_IN_ORGANIZATION";
|
|
741
742
|
readonly INVALID_CLASSIFICATION_RESULT: "INVALID_CLASSIFICATION_RESULT";
|
|
743
|
+
readonly INVALID_RESULT_SIGNATURE: "INVALID_RESULT_SIGNATURE";
|
|
744
|
+
readonly MEMBER_ROLE_TOO_PERMISSIVE: "MEMBER_ROLE_TOO_PERMISSIVE";
|
|
745
|
+
readonly MISSING_GET_MEMBER_PERMISSION: "MISSING_GET_MEMBER_PERMISSION";
|
|
742
746
|
readonly OBJECT_EXCEEDS_SIZE_QUOTA: "OBJECT_EXCEEDS_SIZE_QUOTA";
|
|
743
747
|
readonly OBJECT_UNAVAILABLE: "OBJECT_UNAVAILABLE";
|
|
748
|
+
readonly RESULT_NOT_SIGNED: "RESULT_NOT_SIGNED";
|
|
749
|
+
readonly ROLE_TOO_PERMISSIVE: "ROLE_TOO_PERMISSIVE";
|
|
744
750
|
readonly UNSUPPORTED_FINDING_TYPE: "UNSUPPORTED_FINDING_TYPE";
|
|
745
751
|
readonly UNSUPPORTED_OBJECT_TYPE: "UNSUPPORTED_OBJECT_TYPE";
|
|
746
752
|
};
|
|
@@ -1437,8 +1443,19 @@ export interface RevealConfiguration {
|
|
|
1437
1443
|
kmsKeyId?: string;
|
|
1438
1444
|
status: RevealStatus | undefined;
|
|
1439
1445
|
}
|
|
1446
|
+
export declare const RetrievalMode: {
|
|
1447
|
+
readonly ASSUME_ROLE: "ASSUME_ROLE";
|
|
1448
|
+
readonly CALLER_CREDENTIALS: "CALLER_CREDENTIALS";
|
|
1449
|
+
};
|
|
1450
|
+
export type RetrievalMode = (typeof RetrievalMode)[keyof typeof RetrievalMode];
|
|
1451
|
+
export interface RetrievalConfiguration {
|
|
1452
|
+
externalId?: string;
|
|
1453
|
+
retrievalMode: RetrievalMode | undefined;
|
|
1454
|
+
roleName?: string;
|
|
1455
|
+
}
|
|
1440
1456
|
export interface GetRevealConfigurationResponse {
|
|
1441
1457
|
configuration?: RevealConfiguration;
|
|
1458
|
+
retrievalConfiguration?: RetrievalConfiguration;
|
|
1442
1459
|
}
|
|
1443
1460
|
export interface GetSensitiveDataOccurrencesRequest {
|
|
1444
1461
|
findingId: string | undefined;
|
|
@@ -1583,11 +1600,3 @@ export interface ListFindingsResponse {
|
|
|
1583
1600
|
findingIds?: string[];
|
|
1584
1601
|
nextToken?: string;
|
|
1585
1602
|
}
|
|
1586
|
-
export interface ListFindingsFiltersRequest {
|
|
1587
|
-
maxResults?: number;
|
|
1588
|
-
nextToken?: string;
|
|
1589
|
-
}
|
|
1590
|
-
export interface ListFindingsFiltersResponse {
|
|
1591
|
-
findingsFilterListItems?: FindingsFilterListItem[];
|
|
1592
|
-
nextToken?: string;
|
|
1593
|
-
}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
FindingCriteria,
|
|
9
9
|
FindingPublishingFrequency,
|
|
10
10
|
FindingsFilterAction,
|
|
11
|
+
FindingsFilterListItem,
|
|
11
12
|
Invitation,
|
|
12
13
|
JobStatus,
|
|
13
14
|
MacieStatus,
|
|
@@ -16,6 +17,8 @@ import {
|
|
|
16
17
|
Member,
|
|
17
18
|
OrderBy,
|
|
18
19
|
ResourceProfileArtifact,
|
|
20
|
+
RetrievalConfiguration,
|
|
21
|
+
RetrievalMode,
|
|
19
22
|
RevealConfiguration,
|
|
20
23
|
SearchResourcesCriteria,
|
|
21
24
|
SecurityHubConfiguration,
|
|
@@ -24,6 +27,14 @@ import {
|
|
|
24
27
|
SensitivityInspectionTemplatesEntry,
|
|
25
28
|
SuppressDataIdentifier,
|
|
26
29
|
} from "./models_0";
|
|
30
|
+
export interface ListFindingsFiltersRequest {
|
|
31
|
+
maxResults?: number;
|
|
32
|
+
nextToken?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ListFindingsFiltersResponse {
|
|
35
|
+
findingsFilterListItems?: FindingsFilterListItem[];
|
|
36
|
+
nextToken?: string;
|
|
37
|
+
}
|
|
27
38
|
export interface ListInvitationsRequest {
|
|
28
39
|
maxResults?: number;
|
|
29
40
|
nextToken?: string;
|
|
@@ -215,11 +226,17 @@ export interface UpdateResourceProfileDetectionsRequest {
|
|
|
215
226
|
suppressDataIdentifiers?: SuppressDataIdentifier[];
|
|
216
227
|
}
|
|
217
228
|
export interface UpdateResourceProfileDetectionsResponse {}
|
|
229
|
+
export interface UpdateRetrievalConfiguration {
|
|
230
|
+
retrievalMode: RetrievalMode | undefined;
|
|
231
|
+
roleName?: string;
|
|
232
|
+
}
|
|
218
233
|
export interface UpdateRevealConfigurationRequest {
|
|
219
234
|
configuration: RevealConfiguration | undefined;
|
|
235
|
+
retrievalConfiguration?: UpdateRetrievalConfiguration;
|
|
220
236
|
}
|
|
221
237
|
export interface UpdateRevealConfigurationResponse {
|
|
222
238
|
configuration?: RevealConfiguration;
|
|
239
|
+
retrievalConfiguration?: RetrievalConfiguration;
|
|
223
240
|
}
|
|
224
241
|
export interface UpdateSensitivityInspectionTemplateRequest {
|
|
225
242
|
description?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-macie2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Macie2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.453.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,43 +21,43 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-signing": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^2.0.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.2.
|
|
39
|
-
"@smithy/hash-node": "^2.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0.
|
|
44
|
-
"@smithy/middleware-serde": "^2.0.
|
|
45
|
-
"@smithy/middleware-stack": "^2.0.
|
|
46
|
-
"@smithy/node-config-provider": "^2.1.
|
|
47
|
-
"@smithy/node-http-handler": "^2.1.
|
|
48
|
-
"@smithy/protocol-http": "^3.0.
|
|
49
|
-
"@smithy/smithy-client": "^2.1.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0.
|
|
52
|
-
"@smithy/util-base64": "^2.0.
|
|
24
|
+
"@aws-sdk/client-sts": "3.451.0",
|
|
25
|
+
"@aws-sdk/core": "3.451.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.451.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.451.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.451.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.451.0",
|
|
30
|
+
"@aws-sdk/middleware-signing": "3.451.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.451.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.451.0",
|
|
33
|
+
"@aws-sdk/types": "3.451.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.451.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.451.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.451.0",
|
|
37
|
+
"@smithy/config-resolver": "^2.0.18",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.2.6",
|
|
39
|
+
"@smithy/hash-node": "^2.0.15",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.0.13",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.0.15",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.2.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.0.20",
|
|
44
|
+
"@smithy/middleware-serde": "^2.0.13",
|
|
45
|
+
"@smithy/middleware-stack": "^2.0.7",
|
|
46
|
+
"@smithy/node-config-provider": "^2.1.5",
|
|
47
|
+
"@smithy/node-http-handler": "^2.1.9",
|
|
48
|
+
"@smithy/protocol-http": "^3.0.9",
|
|
49
|
+
"@smithy/smithy-client": "^2.1.15",
|
|
50
|
+
"@smithy/types": "^2.5.0",
|
|
51
|
+
"@smithy/url-parser": "^2.0.13",
|
|
52
|
+
"@smithy/util-base64": "^2.0.1",
|
|
53
53
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
57
|
-
"@smithy/util-endpoints": "^1.0.
|
|
58
|
-
"@smithy/util-retry": "^2.0.
|
|
59
|
-
"@smithy/util-utf8": "^2.0.
|
|
60
|
-
"@smithy/util-waiter": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.0.19",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.0.25",
|
|
57
|
+
"@smithy/util-endpoints": "^1.0.4",
|
|
58
|
+
"@smithy/util-retry": "^2.0.6",
|
|
59
|
+
"@smithy/util-utf8": "^2.0.2",
|
|
60
|
+
"@smithy/util-waiter": "^2.0.13",
|
|
61
61
|
"tslib": "^2.5.0",
|
|
62
62
|
"uuid": "^8.3.2"
|
|
63
63
|
},
|