AWS.Macie2 reference
AcceptInvitation
Section titled “AcceptInvitation”Source:
src/AWS/Macie2/AcceptInvitation.ts
Runtime binding for macie2:AcceptInvitation.
Accepts an Amazon Macie membership invitation that was received from a specific account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.AcceptInvitationHttp).
AcceptInvitation: Administrator & Invitations
Section titled “AcceptInvitation: Administrator & Invitations”// init — account-level binding, no resource argumentconst acceptInvitation = yield* AWS.Macie2.AcceptInvitation();
// runtimeyield* acceptInvitation({ administratorAccountId, invitationId });AllowList
Section titled “AllowList”Source:
src/AWS/Macie2/AllowList.ts
An Amazon Macie allow list — text patterns or predefined words that Macie
ignores when it inspects S3 objects for sensitive data. Requires Macie to be
enabled for the account (see Macie2.Session). Name, description, and
criteria are all updatable in place; destroy deletes the list even if
classification jobs reference it.
AllowList: Creating an allow list
Section titled “AllowList: Creating an allow list”Regex allow list
const allowList = yield* Macie2.AllowList("InternalIds", { description: "Internal ticket ids are not sensitive", criteria: { regex: "TICKET-[0-9]{6}" },});Predefined words from S3
const allowList = yield* Macie2.AllowList("KnownTestData", { criteria: { s3WordsList: { bucketName: bucket.bucketName, objectKey: "words.txt" }, },});BatchGetCustomDataIdentifiers
Section titled “BatchGetCustomDataIdentifiers”Source:
src/AWS/Macie2/BatchGetCustomDataIdentifiers.ts
Runtime binding for macie2:BatchGetCustomDataIdentifiers.
Retrieves information about one or more custom data identifiers.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.BatchGetCustomDataIdentifiersHttp).
BatchGetCustomDataIdentifiers: Custom Data Identifiers & Lists
Section titled “BatchGetCustomDataIdentifiers: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst batchGetCustomDataIdentifiers = yield* AWS.Macie2.BatchGetCustomDataIdentifiers();
// runtimeconst { customDataIdentifiers } = yield* batchGetCustomDataIdentifiers({ ids });BatchUpdateAutomatedDiscoveryAccounts
Section titled “BatchUpdateAutomatedDiscoveryAccounts”Source:
src/AWS/Macie2/BatchUpdateAutomatedDiscoveryAccounts.ts
Runtime binding for macie2:BatchUpdateAutomatedDiscoveryAccounts.
Changes the status of automated sensitive data discovery for one or more accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.BatchUpdateAutomatedDiscoveryAccountsHttp).
BatchUpdateAutomatedDiscoveryAccounts: Automated Discovery
Section titled “BatchUpdateAutomatedDiscoveryAccounts: Automated Discovery”// init — account-level binding, no resource argumentconst batchUpdateAutomatedDiscoveryAccounts = yield* AWS.Macie2.BatchUpdateAutomatedDiscoveryAccounts();
// runtimeyield* batchUpdateAutomatedDiscoveryAccounts({ accounts: [{ accountId, status: "ENABLED" }],});ClassificationJob
Section titled “ClassificationJob”Source:
src/AWS/Macie2/ClassificationJob.ts
An Amazon Macie classification job — scans one or more S3 buckets for
sensitive data. Requires Macie to be enabled for the account (see
Macie2.Session). Jobs are immutable once created; changing the job type,
name, or bucket set replaces the job. Destroy cancels the job.
ClassificationJob: Creating a classification job
Section titled “ClassificationJob: Creating a classification job”One-time job over a bucket
const job = yield* Macie2.ClassificationJob("Scan", { jobType: "ONE_TIME", bucketDefinitions: [{ accountId, buckets: ["my-bucket"] }],});Sampled scan with a description
const job = yield* Macie2.ClassificationJob("Scan", { jobType: "ONE_TIME", bucketDefinitions: [{ accountId, buckets: ["my-bucket"] }], samplingPercentage: 20, description: "PII sweep",});CreateInvitations
Section titled “CreateInvitations”Source:
src/AWS/Macie2/CreateInvitations.ts
Runtime binding for macie2:CreateInvitations.
Sends an Amazon Macie membership invitation to one or more accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.CreateInvitationsHttp).
CreateInvitations: Administrator & Invitations
Section titled “CreateInvitations: Administrator & Invitations”// init — account-level binding, no resource argumentconst createInvitations = yield* AWS.Macie2.CreateInvitations();
// runtimeconst { unprocessedAccounts } = yield* createInvitations({ accountIds });CreateMember
Section titled “CreateMember”Source:
src/AWS/Macie2/CreateMember.ts
Runtime binding for macie2:CreateMember.
Associates an account with an Amazon Macie administrator account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.CreateMemberHttp).
CreateMember: Organization & Members
Section titled “CreateMember: Organization & Members”// init — account-level binding, no resource argumentconst createMember = yield* AWS.Macie2.CreateMember();
// runtimeyield* createMember({ account: { accountId, email } });CreateSampleFindings
Section titled “CreateSampleFindings”Source:
src/AWS/Macie2/CreateSampleFindings.ts
Runtime binding for macie2:CreateSampleFindings.
Creates sample findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.CreateSampleFindingsHttp).
CreateSampleFindings: Working with Findings
Section titled “CreateSampleFindings: Working with Findings”// init — account-level binding, no resource argumentconst createSampleFindings = yield* AWS.Macie2.CreateSampleFindings();
// runtimeyield* createSampleFindings({});CustomDataIdentifier
Section titled “CustomDataIdentifier”Source:
src/AWS/Macie2/CustomDataIdentifier.ts
An Amazon Macie custom data identifier — a regex-based detection criterion
(with optional keywords, ignore words, and severity thresholds) that
classification jobs and automated discovery use to detect organization-
specific sensitive data. Requires Macie to be enabled for the account (see
Macie2.Session). Definitions are immutable: any change other than tags
replaces the identifier. Destroy soft-deletes it.
CustomDataIdentifier: Creating a custom data identifier
Section titled “CustomDataIdentifier: Creating a custom data identifier”Employee-id detector
const identifier = yield* Macie2.CustomDataIdentifier("EmployeeId", { regex: "EMP-[0-9]{8}", description: "Internal employee id format",});Keyword-scoped detector with severity thresholds
const identifier = yield* Macie2.CustomDataIdentifier("AccountNumber", { regex: "[0-9]{12}", keywords: ["account number", "acct no"], maximumMatchDistance: 30, severityLevels: [ { occurrencesThreshold: 1, severity: "LOW" }, { occurrencesThreshold: 25, severity: "HIGH" }, ],});DeclineInvitations
Section titled “DeclineInvitations”Source:
src/AWS/Macie2/DeclineInvitations.ts
Runtime binding for macie2:DeclineInvitations.
Declines Amazon Macie membership invitations that were received from specific accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DeclineInvitationsHttp).
DeclineInvitations: Administrator & Invitations
Section titled “DeclineInvitations: Administrator & Invitations”// init — account-level binding, no resource argumentconst declineInvitations = yield* AWS.Macie2.DeclineInvitations();
// runtimeyield* declineInvitations({ accountIds });DeleteInvitations
Section titled “DeleteInvitations”Source:
src/AWS/Macie2/DeleteInvitations.ts
Runtime binding for macie2:DeleteInvitations.
Deletes Amazon Macie membership invitations that were received from specific accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DeleteInvitationsHttp).
DeleteInvitations: Administrator & Invitations
Section titled “DeleteInvitations: Administrator & Invitations”// init — account-level binding, no resource argumentconst deleteInvitations = yield* AWS.Macie2.DeleteInvitations();
// runtimeyield* deleteInvitations({ accountIds });DeleteMember
Section titled “DeleteMember”Source:
src/AWS/Macie2/DeleteMember.ts
Runtime binding for macie2:DeleteMember.
Deletes the association between an Amazon Macie administrator account and an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DeleteMemberHttp).
DeleteMember: Organization & Members
Section titled “DeleteMember: Organization & Members”// init — account-level binding, no resource argumentconst deleteMember = yield* AWS.Macie2.DeleteMember();
// runtimeyield* deleteMember({ id: accountId });DescribeBuckets
Section titled “DescribeBuckets”Source:
src/AWS/Macie2/DescribeBuckets.ts
Runtime binding for macie2:DescribeBuckets.
Retrieves (queries) statistical data and other information about one or more S3 buckets that Amazon Macie monitors and analyzes for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DescribeBucketsHttp).
DescribeBuckets: S3 Bucket Inventory
Section titled “DescribeBuckets: S3 Bucket Inventory”// init — account-level binding, no resource argumentconst describeBuckets = yield* AWS.Macie2.DescribeBuckets();
// runtimeconst { buckets } = yield* describeBuckets({});DescribeOrganizationConfiguration
Section titled “DescribeOrganizationConfiguration”Source:
src/AWS/Macie2/DescribeOrganizationConfiguration.ts
Runtime binding for macie2:DescribeOrganizationConfiguration.
Retrieves the Amazon Macie configuration settings for an organization in Organizations.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DescribeOrganizationConfigurationHttp).
DescribeOrganizationConfiguration: Organization & Members
Section titled “DescribeOrganizationConfiguration: Organization & Members”// init — account-level binding, no resource argumentconst describeOrganizationConfiguration = yield* AWS.Macie2.DescribeOrganizationConfiguration();
// runtimeconst { autoEnable } = yield* describeOrganizationConfiguration();DisableOrganizationAdminAccount
Section titled “DisableOrganizationAdminAccount”Source:
src/AWS/Macie2/DisableOrganizationAdminAccount.ts
Runtime binding for macie2:DisableOrganizationAdminAccount.
Disables an account as the delegated Amazon Macie administrator account for an organization in Organizations.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DisableOrganizationAdminAccountHttp).
DisableOrganizationAdminAccount: Organization & Members
Section titled “DisableOrganizationAdminAccount: Organization & Members”// init — account-level binding, no resource argumentconst disableOrganizationAdminAccount = yield* AWS.Macie2.DisableOrganizationAdminAccount();
// runtimeyield* disableOrganizationAdminAccount({ adminAccountId });DisassociateFromAdministratorAccount
Section titled “DisassociateFromAdministratorAccount”Source:
src/AWS/Macie2/DisassociateFromAdministratorAccount.ts
Runtime binding for macie2:DisassociateFromAdministratorAccount.
Disassociates a member account from its Amazon Macie administrator account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DisassociateFromAdministratorAccountHttp).
DisassociateFromAdministratorAccount: Administrator & Invitations
Section titled “DisassociateFromAdministratorAccount: Administrator & Invitations”// init — account-level binding, no resource argumentconst disassociateFromAdministratorAccount = yield* AWS.Macie2.DisassociateFromAdministratorAccount();
// runtimeyield* disassociateFromAdministratorAccount();DisassociateMember
Section titled “DisassociateMember”Source:
src/AWS/Macie2/DisassociateMember.ts
Runtime binding for macie2:DisassociateMember.
Disassociates an Amazon Macie administrator account from a member account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.DisassociateMemberHttp).
DisassociateMember: Organization & Members
Section titled “DisassociateMember: Organization & Members”// init — account-level binding, no resource argumentconst disassociateMember = yield* AWS.Macie2.DisassociateMember();
// runtimeyield* disassociateMember({ id: accountId });EnableOrganizationAdminAccount
Section titled “EnableOrganizationAdminAccount”Source:
src/AWS/Macie2/EnableOrganizationAdminAccount.ts
Runtime binding for macie2:EnableOrganizationAdminAccount.
Designates an account as the delegated Amazon Macie administrator account for an organization in Organizations.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.EnableOrganizationAdminAccountHttp).
EnableOrganizationAdminAccount: Organization & Members
Section titled “EnableOrganizationAdminAccount: Organization & Members”// init — account-level binding, no resource argumentconst enableOrganizationAdminAccount = yield* AWS.Macie2.EnableOrganizationAdminAccount();
// runtimeyield* enableOrganizationAdminAccount({ adminAccountId });FindingsFilter
Section titled “FindingsFilter”Source:
src/AWS/Macie2/FindingsFilter.ts
An Amazon Macie findings filter — matches findings against criteria and
either keeps (NOOP) or auto-suppresses (ARCHIVE) them. Requires Macie to
be enabled for the account (see Macie2.Session). Name, description,
action, position, and criteria are all updatable in place.
FindingsFilter: Filtering findings
Section titled “FindingsFilter: Filtering findings”Suppress low-severity findings
const filter = yield* Macie2.FindingsFilter("LowSeverity", { action: "ARCHIVE", position: 1, findingCriteria: { criterion: { "severity.description": { eq: ["Low"] } }, },});Keep a named filter for the console
const filter = yield* Macie2.FindingsFilter("ProdBuckets", { name: "prod-buckets-only", description: "Findings on production buckets", findingCriteria: { criterion: { "resourcesAffected.s3Bucket.name": { eq: ["prod-data"] }, }, },});GetAdministratorAccount
Section titled “GetAdministratorAccount”Source:
src/AWS/Macie2/GetAdministratorAccount.ts
Runtime binding for macie2:GetAdministratorAccount.
Retrieves information about the Amazon Macie administrator account for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetAdministratorAccountHttp).
GetAdministratorAccount: Administrator & Invitations
Section titled “GetAdministratorAccount: Administrator & Invitations”// init — account-level binding, no resource argumentconst getAdministratorAccount = yield* AWS.Macie2.GetAdministratorAccount();
// runtimeconst { administrator } = yield* getAdministratorAccount();GetAutomatedDiscoveryConfiguration
Section titled “GetAutomatedDiscoveryConfiguration”Source:
src/AWS/Macie2/GetAutomatedDiscoveryConfiguration.ts
Runtime binding for macie2:GetAutomatedDiscoveryConfiguration.
Retrieves the configuration settings and status of automated sensitive data discovery for an organization or standalone account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetAutomatedDiscoveryConfigurationHttp).
GetAutomatedDiscoveryConfiguration: Automated Discovery
Section titled “GetAutomatedDiscoveryConfiguration: Automated Discovery”// init — account-level binding, no resource argumentconst getAutomatedDiscoveryConfiguration = yield* AWS.Macie2.GetAutomatedDiscoveryConfiguration();
// runtimeconst { status } = yield* getAutomatedDiscoveryConfiguration();GetBucketStatistics
Section titled “GetBucketStatistics”Source:
src/AWS/Macie2/GetBucketStatistics.ts
Runtime binding for macie2:GetBucketStatistics.
Retrieves (queries) aggregated statistical data about all the S3 buckets that Amazon Macie monitors and analyzes for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetBucketStatisticsHttp).
GetBucketStatistics: S3 Bucket Inventory
Section titled “GetBucketStatistics: S3 Bucket Inventory”// init — account-level binding, no resource argumentconst getBucketStatistics = yield* AWS.Macie2.GetBucketStatistics();
// runtimeconst { bucketCount } = yield* getBucketStatistics({});GetClassificationExportConfiguration
Section titled “GetClassificationExportConfiguration”Source:
src/AWS/Macie2/GetClassificationExportConfiguration.ts
Runtime binding for macie2:GetClassificationExportConfiguration.
Retrieves the configuration settings for storing data classification results.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetClassificationExportConfigurationHttp).
GetClassificationExportConfiguration: Classification Jobs & Export
Section titled “GetClassificationExportConfiguration: Classification Jobs & Export”// init — account-level binding, no resource argumentconst getClassificationExportConfiguration = yield* AWS.Macie2.GetClassificationExportConfiguration();
// runtimeconst { configuration } = yield* getClassificationExportConfiguration();GetClassificationScope
Section titled “GetClassificationScope”Source:
src/AWS/Macie2/GetClassificationScope.ts
Runtime binding for macie2:GetClassificationScope.
Retrieves the classification scope settings for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetClassificationScopeHttp).
GetClassificationScope: Automated Discovery
Section titled “GetClassificationScope: Automated Discovery”// init — account-level binding, no resource argumentconst getClassificationScope = yield* AWS.Macie2.GetClassificationScope();
// runtimeconst scope = yield* getClassificationScope({ id: scopeId });GetFindings
Section titled “GetFindings”Source:
src/AWS/Macie2/GetFindings.ts
Runtime binding for macie2:GetFindings.
Retrieves the details of one or more findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetFindingsHttp).
GetFindings: Working with Findings
Section titled “GetFindings: Working with Findings”// init — account-level binding, no resource argumentconst getFindings = yield* AWS.Macie2.GetFindings();
// runtimeconst { findings } = yield* getFindings({ findingIds });GetFindingsPublicationConfiguration
Section titled “GetFindingsPublicationConfiguration”Source:
src/AWS/Macie2/GetFindingsPublicationConfiguration.ts
Runtime binding for macie2:GetFindingsPublicationConfiguration.
Retrieves the configuration settings for publishing findings to Security Hub.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetFindingsPublicationConfigurationHttp).
GetFindingsPublicationConfiguration: Publishing Findings
Section titled “GetFindingsPublicationConfiguration: Publishing Findings”// init — account-level binding, no resource argumentconst getFindingsPublicationConfiguration = yield* AWS.Macie2.GetFindingsPublicationConfiguration();
// runtimeconst { securityHubConfiguration } = yield* getFindingsPublicationConfiguration();GetFindingStatistics
Section titled “GetFindingStatistics”Source:
src/AWS/Macie2/GetFindingStatistics.ts
Runtime binding for macie2:GetFindingStatistics.
Retrieves (queries) aggregated statistical data about findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetFindingStatisticsHttp).
GetFindingStatistics: Working with Findings
Section titled “GetFindingStatistics: Working with Findings”// init — account-level binding, no resource argumentconst getFindingStatistics = yield* AWS.Macie2.GetFindingStatistics();
// runtimeconst { countsByGroup } = yield* getFindingStatistics({ groupBy: "severity.description" });GetInvitationsCount
Section titled “GetInvitationsCount”Source:
src/AWS/Macie2/GetInvitationsCount.ts
Runtime binding for macie2:GetInvitationsCount.
Retrieves the count of Amazon Macie membership invitations that were received by an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetInvitationsCountHttp).
GetInvitationsCount: Administrator & Invitations
Section titled “GetInvitationsCount: Administrator & Invitations”// init — account-level binding, no resource argumentconst getInvitationsCount = yield* AWS.Macie2.GetInvitationsCount();
// runtimeconst { invitationsCount } = yield* getInvitationsCount();GetMember
Section titled “GetMember”Source:
src/AWS/Macie2/GetMember.ts
Runtime binding for macie2:GetMember.
Retrieves information about an account that’s associated with an Amazon Macie administrator account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetMemberHttp).
GetMember: Organization & Members
Section titled “GetMember: Organization & Members”// init — account-level binding, no resource argumentconst getMember = yield* AWS.Macie2.GetMember();
// runtimeconst { relationshipStatus } = yield* getMember({ id: accountId });GetResourceProfile
Section titled “GetResourceProfile”Source:
src/AWS/Macie2/GetResourceProfile.ts
Runtime binding for macie2:GetResourceProfile.
Retrieves (queries) sensitive data discovery statistics and the sensitivity score for an S3 bucket.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetResourceProfileHttp).
GetResourceProfile: Automated Discovery
Section titled “GetResourceProfile: Automated Discovery”// init — account-level binding, no resource argumentconst getResourceProfile = yield* AWS.Macie2.GetResourceProfile();
// runtimeconst profile = yield* getResourceProfile({ resourceArn: bucketArn });GetRevealConfiguration
Section titled “GetRevealConfiguration”Source:
src/AWS/Macie2/GetRevealConfiguration.ts
Runtime binding for macie2:GetRevealConfiguration.
Retrieves the status and configuration settings for retrieving occurrences of sensitive data reported by findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetRevealConfigurationHttp).
GetRevealConfiguration: Retrieving Sensitive Data Samples
Section titled “GetRevealConfiguration: Retrieving Sensitive Data Samples”// init — account-level binding, no resource argumentconst getRevealConfiguration = yield* AWS.Macie2.GetRevealConfiguration();
// runtimeconst { configuration } = yield* getRevealConfiguration();GetSensitiveDataOccurrences
Section titled “GetSensitiveDataOccurrences”Source:
src/AWS/Macie2/GetSensitiveDataOccurrences.ts
Runtime binding for macie2:GetSensitiveDataOccurrences.
Retrieves occurrences of sensitive data reported by a finding.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetSensitiveDataOccurrencesHttp).
GetSensitiveDataOccurrences: Retrieving Sensitive Data Samples
Section titled “GetSensitiveDataOccurrences: Retrieving Sensitive Data Samples”// init — account-level binding, no resource argumentconst getSensitiveDataOccurrences = yield* AWS.Macie2.GetSensitiveDataOccurrences();
// runtimeconst { sensitiveDataOccurrences } = yield* getSensitiveDataOccurrences({ findingId });GetSensitiveDataOccurrencesAvailability
Section titled “GetSensitiveDataOccurrencesAvailability”Source:
src/AWS/Macie2/GetSensitiveDataOccurrencesAvailability.ts
Runtime binding for macie2:GetSensitiveDataOccurrencesAvailability.
Checks whether occurrences of sensitive data can be retrieved for a finding.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetSensitiveDataOccurrencesAvailabilityHttp).
GetSensitiveDataOccurrencesAvailability: Retrieving Sensitive Data Samples
Section titled “GetSensitiveDataOccurrencesAvailability: Retrieving Sensitive Data Samples”// init — account-level binding, no resource argumentconst getSensitiveDataOccurrencesAvailability = yield* AWS.Macie2.GetSensitiveDataOccurrencesAvailability();
// runtimeconst { code } = yield* getSensitiveDataOccurrencesAvailability({ findingId });GetSensitivityInspectionTemplate
Section titled “GetSensitivityInspectionTemplate”Source:
src/AWS/Macie2/GetSensitivityInspectionTemplate.ts
Runtime binding for macie2:GetSensitivityInspectionTemplate.
Retrieves the settings for the sensitivity inspection template for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetSensitivityInspectionTemplateHttp).
GetSensitivityInspectionTemplate: Automated Discovery
Section titled “GetSensitivityInspectionTemplate: Automated Discovery”// init — account-level binding, no resource argumentconst getSensitivityInspectionTemplate = yield* AWS.Macie2.GetSensitivityInspectionTemplate();
// runtimeconst template = yield* getSensitivityInspectionTemplate({ id: templateId });GetUsageStatistics
Section titled “GetUsageStatistics”Source:
src/AWS/Macie2/GetUsageStatistics.ts
Runtime binding for macie2:GetUsageStatistics.
Retrieves (queries) quotas and aggregated usage data for one or more accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetUsageStatisticsHttp).
GetUsageStatistics: Usage & Quotas
Section titled “GetUsageStatistics: Usage & Quotas”// init — account-level binding, no resource argumentconst getUsageStatistics = yield* AWS.Macie2.GetUsageStatistics();
// runtimeconst { records } = yield* getUsageStatistics({});GetUsageTotals
Section titled “GetUsageTotals”Source:
src/AWS/Macie2/GetUsageTotals.ts
Runtime binding for macie2:GetUsageTotals.
Retrieves (queries) aggregated usage data for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.GetUsageTotalsHttp).
GetUsageTotals: Usage & Quotas
Section titled “GetUsageTotals: Usage & Quotas”// init — account-level binding, no resource argumentconst getUsageTotals = yield* AWS.Macie2.GetUsageTotals();
// runtimeconst { usageTotals } = yield* getUsageTotals();ListAllowLists
Section titled “ListAllowLists”Source:
src/AWS/Macie2/ListAllowLists.ts
Runtime binding for macie2:ListAllowLists.
Retrieves a subset of information about all the allow lists for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListAllowListsHttp).
ListAllowLists: Custom Data Identifiers & Lists
Section titled “ListAllowLists: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst listAllowLists = yield* AWS.Macie2.ListAllowLists();
// runtimeconst { allowLists } = yield* listAllowLists();ListAutomatedDiscoveryAccounts
Section titled “ListAutomatedDiscoveryAccounts”Source:
src/AWS/Macie2/ListAutomatedDiscoveryAccounts.ts
Runtime binding for macie2:ListAutomatedDiscoveryAccounts.
Retrieves the status of automated sensitive data discovery for one or more accounts.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListAutomatedDiscoveryAccountsHttp).
ListAutomatedDiscoveryAccounts: Automated Discovery
Section titled “ListAutomatedDiscoveryAccounts: Automated Discovery”// init — account-level binding, no resource argumentconst listAutomatedDiscoveryAccounts = yield* AWS.Macie2.ListAutomatedDiscoveryAccounts();
// runtimeconst { items } = yield* listAutomatedDiscoveryAccounts();ListClassificationJobs
Section titled “ListClassificationJobs”Source:
src/AWS/Macie2/ListClassificationJobs.ts
Runtime binding for macie2:ListClassificationJobs.
Retrieves a subset of information about one or more classification jobs.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListClassificationJobsHttp).
ListClassificationJobs: Classification Jobs & Export
Section titled “ListClassificationJobs: Classification Jobs & Export”// init — account-level binding, no resource argumentconst listClassificationJobs = yield* AWS.Macie2.ListClassificationJobs();
// runtimeconst { items } = yield* listClassificationJobs();ListClassificationScopes
Section titled “ListClassificationScopes”Source:
src/AWS/Macie2/ListClassificationScopes.ts
Runtime binding for macie2:ListClassificationScopes.
Retrieves a subset of information about the classification scope for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListClassificationScopesHttp).
ListClassificationScopes: Automated Discovery
Section titled “ListClassificationScopes: Automated Discovery”// init — account-level binding, no resource argumentconst listClassificationScopes = yield* AWS.Macie2.ListClassificationScopes();
// runtimeconst { classificationScopes } = yield* listClassificationScopes();ListCustomDataIdentifiers
Section titled “ListCustomDataIdentifiers”Source:
src/AWS/Macie2/ListCustomDataIdentifiers.ts
Runtime binding for macie2:ListCustomDataIdentifiers.
Retrieves a subset of information about the custom data identifiers for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListCustomDataIdentifiersHttp).
ListCustomDataIdentifiers: Custom Data Identifiers & Lists
Section titled “ListCustomDataIdentifiers: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst listCustomDataIdentifiers = yield* AWS.Macie2.ListCustomDataIdentifiers();
// runtimeconst { items } = yield* listCustomDataIdentifiers();ListFindings
Section titled “ListFindings”Source:
src/AWS/Macie2/ListFindings.ts
Runtime binding for macie2:ListFindings.
Retrieves a subset of information about one or more findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListFindingsHttp).
ListFindings: Working with Findings
Section titled “ListFindings: Working with Findings”// init — account-level binding, no resource argumentconst listFindings = yield* AWS.Macie2.ListFindings();
// runtimeconst { findingIds } = yield* listFindings();ListFindingsFilters
Section titled “ListFindingsFilters”Source:
src/AWS/Macie2/ListFindingsFilters.ts
Runtime binding for macie2:ListFindingsFilters.
Retrieves a subset of information about all the findings filters for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListFindingsFiltersHttp).
ListFindingsFilters: Custom Data Identifiers & Lists
Section titled “ListFindingsFilters: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst listFindingsFilters = yield* AWS.Macie2.ListFindingsFilters();
// runtimeconst { findingsFilterListItems } = yield* listFindingsFilters();ListInvitations
Section titled “ListInvitations”Source:
src/AWS/Macie2/ListInvitations.ts
Runtime binding for macie2:ListInvitations.
Retrieves information about Amazon Macie membership invitations that were received by an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListInvitationsHttp).
ListInvitations: Administrator & Invitations
Section titled “ListInvitations: Administrator & Invitations”// init — account-level binding, no resource argumentconst listInvitations = yield* AWS.Macie2.ListInvitations();
// runtimeconst { invitations } = yield* listInvitations();ListManagedDataIdentifiers
Section titled “ListManagedDataIdentifiers”Source:
src/AWS/Macie2/ListManagedDataIdentifiers.ts
Runtime binding for macie2:ListManagedDataIdentifiers.
Retrieves information about all the managed data identifiers that Amazon Macie currently provides.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListManagedDataIdentifiersHttp).
ListManagedDataIdentifiers: Custom Data Identifiers & Lists
Section titled “ListManagedDataIdentifiers: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst listManagedDataIdentifiers = yield* AWS.Macie2.ListManagedDataIdentifiers();
// runtimeconst { items } = yield* listManagedDataIdentifiers();ListMembers
Section titled “ListMembers”Source:
src/AWS/Macie2/ListMembers.ts
Runtime binding for macie2:ListMembers.
Retrieves information about the accounts that are associated with an Amazon Macie administrator account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListMembersHttp).
ListMembers: Organization & Members
Section titled “ListMembers: Organization & Members”// init — account-level binding, no resource argumentconst listMembers = yield* AWS.Macie2.ListMembers();
// runtimeconst { members } = yield* listMembers();ListOrganizationAdminAccounts
Section titled “ListOrganizationAdminAccounts”Source:
src/AWS/Macie2/ListOrganizationAdminAccounts.ts
Runtime binding for macie2:ListOrganizationAdminAccounts.
Retrieves information about the delegated Amazon Macie administrator account for an organization in Organizations.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListOrganizationAdminAccountsHttp).
ListOrganizationAdminAccounts: Organization & Members
Section titled “ListOrganizationAdminAccounts: Organization & Members”// init — account-level binding, no resource argumentconst listOrganizationAdminAccounts = yield* AWS.Macie2.ListOrganizationAdminAccounts();
// runtimeconst { adminAccounts } = yield* listOrganizationAdminAccounts();ListResourceProfileArtifacts
Section titled “ListResourceProfileArtifacts”Source:
src/AWS/Macie2/ListResourceProfileArtifacts.ts
Runtime binding for macie2:ListResourceProfileArtifacts.
Retrieves information about objects that Amazon Macie selected from an S3 bucket for automated sensitive data discovery.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListResourceProfileArtifactsHttp).
ListResourceProfileArtifacts: Automated Discovery
Section titled “ListResourceProfileArtifacts: Automated Discovery”// init — account-level binding, no resource argumentconst listResourceProfileArtifacts = yield* AWS.Macie2.ListResourceProfileArtifacts();
// runtimeconst { artifacts } = yield* listResourceProfileArtifacts({ resourceArn: bucketArn });ListResourceProfileDetections
Section titled “ListResourceProfileDetections”Source:
src/AWS/Macie2/ListResourceProfileDetections.ts
Runtime binding for macie2:ListResourceProfileDetections.
Retrieves information about the types and amount of sensitive data that Amazon Macie found in an S3 bucket.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListResourceProfileDetectionsHttp).
ListResourceProfileDetections: Automated Discovery
Section titled “ListResourceProfileDetections: Automated Discovery”// init — account-level binding, no resource argumentconst listResourceProfileDetections = yield* AWS.Macie2.ListResourceProfileDetections();
// runtimeconst { detections } = yield* listResourceProfileDetections({ resourceArn: bucketArn });ListSensitivityInspectionTemplates
Section titled “ListSensitivityInspectionTemplates”Source:
src/AWS/Macie2/ListSensitivityInspectionTemplates.ts
Runtime binding for macie2:ListSensitivityInspectionTemplates.
Retrieves a subset of information about the sensitivity inspection template for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.ListSensitivityInspectionTemplatesHttp).
ListSensitivityInspectionTemplates: Automated Discovery
Section titled “ListSensitivityInspectionTemplates: Automated Discovery”// init — account-level binding, no resource argumentconst listSensitivityInspectionTemplates = yield* AWS.Macie2.ListSensitivityInspectionTemplates();
// runtimeconst { sensitivityInspectionTemplates } = yield* listSensitivityInspectionTemplates();PutClassificationExportConfiguration
Section titled “PutClassificationExportConfiguration”Source:
src/AWS/Macie2/PutClassificationExportConfiguration.ts
Runtime binding for macie2:PutClassificationExportConfiguration.
Adds or updates the configuration settings for storing data classification results.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.PutClassificationExportConfigurationHttp).
PutClassificationExportConfiguration: Classification Jobs & Export
Section titled “PutClassificationExportConfiguration: Classification Jobs & Export”// init — account-level binding, no resource argumentconst putClassificationExportConfiguration = yield* AWS.Macie2.PutClassificationExportConfiguration();
// runtimeyield* putClassificationExportConfiguration({ configuration: { s3Destination: { bucketName, keyPrefix: "macie/", kmsKeyArn }, },});PutFindingsPublicationConfiguration
Section titled “PutFindingsPublicationConfiguration”Source:
src/AWS/Macie2/PutFindingsPublicationConfiguration.ts
Runtime binding for macie2:PutFindingsPublicationConfiguration.
Updates the configuration settings for publishing findings to Security Hub.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.PutFindingsPublicationConfigurationHttp).
PutFindingsPublicationConfiguration: Publishing Findings
Section titled “PutFindingsPublicationConfiguration: Publishing Findings”// init — account-level binding, no resource argumentconst putFindingsPublicationConfiguration = yield* AWS.Macie2.PutFindingsPublicationConfiguration();
// runtimeyield* putFindingsPublicationConfiguration({ securityHubConfiguration: { publishClassificationFindings: false, publishPolicyFindings: true, },});SearchResources
Section titled “SearchResources”Source:
src/AWS/Macie2/SearchResources.ts
Runtime binding for macie2:SearchResources.
Retrieves (queries) statistical data and other information about Amazon Web Services resources that Amazon Macie monitors and analyzes for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.SearchResourcesHttp).
SearchResources: S3 Bucket Inventory
Section titled “SearchResources: S3 Bucket Inventory”// init — account-level binding, no resource argumentconst searchResources = yield* AWS.Macie2.SearchResources();
// runtimeconst { matchingResources } = yield* searchResources({});Session
Section titled “Session”Source:
src/AWS/Macie2/Session.ts
The Amazon Macie session — the account/region singleton that enables Macie
data-security scanning. Only one session can exist per region, so this is a
capture-and-restore singleton: Macie exposes no session tags, so ownership is
tracked by Alchemy state. Adopting a session that Alchemy did not create
requires --adopt, and destroy disables Macie for the account.
Session: Enabling Macie
Section titled “Session: Enabling Macie”Enable Macie
const macie = yield* Macie2.Session("Macie", {});Enable with frequent findings and pause later
const macie = yield* Macie2.Session("Macie", { status: "ENABLED", findingPublishingFrequency: "FIFTEEN_MINUTES",});TestCustomDataIdentifier
Section titled “TestCustomDataIdentifier”Source:
src/AWS/Macie2/TestCustomDataIdentifier.ts
Runtime binding for macie2:TestCustomDataIdentifier.
Tests criteria for a custom data identifier.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.TestCustomDataIdentifierHttp).
TestCustomDataIdentifier: Custom Data Identifiers & Lists
Section titled “TestCustomDataIdentifier: Custom Data Identifiers & Lists”// init — account-level binding, no resource argumentconst testCustomDataIdentifier = yield* AWS.Macie2.TestCustomDataIdentifier();
// runtimeconst { matchCount } = yield* testCustomDataIdentifier({ regex: "EMP-[0-9]{8}", sampleText: "id EMP-12345678",});UpdateAutomatedDiscoveryConfiguration
Section titled “UpdateAutomatedDiscoveryConfiguration”Source:
src/AWS/Macie2/UpdateAutomatedDiscoveryConfiguration.ts
Runtime binding for macie2:UpdateAutomatedDiscoveryConfiguration.
Changes the configuration settings and status of automated sensitive data discovery for an organization or standalone account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateAutomatedDiscoveryConfigurationHttp).
UpdateAutomatedDiscoveryConfiguration: Automated Discovery
Section titled “UpdateAutomatedDiscoveryConfiguration: Automated Discovery”// init — account-level binding, no resource argumentconst updateAutomatedDiscoveryConfiguration = yield* AWS.Macie2.UpdateAutomatedDiscoveryConfiguration();
// runtimeyield* updateAutomatedDiscoveryConfiguration({ status: "ENABLED" });UpdateClassificationScope
Section titled “UpdateClassificationScope”Source:
src/AWS/Macie2/UpdateClassificationScope.ts
Runtime binding for macie2:UpdateClassificationScope.
Updates the classification scope settings for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateClassificationScopeHttp).
UpdateClassificationScope: Automated Discovery
Section titled “UpdateClassificationScope: Automated Discovery”// init — account-level binding, no resource argumentconst updateClassificationScope = yield* AWS.Macie2.UpdateClassificationScope();
// runtimeyield* updateClassificationScope({ id: scopeId, s3: { excludes: { bucketNames: ["logs-bucket"], operation: "ADD" } },});UpdateMemberSession
Section titled “UpdateMemberSession”Source:
src/AWS/Macie2/UpdateMemberSession.ts
Runtime binding for macie2:UpdateMemberSession.
Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateMemberSessionHttp).
UpdateMemberSession: Organization & Members
Section titled “UpdateMemberSession: Organization & Members”// init — account-level binding, no resource argumentconst updateMemberSession = yield* AWS.Macie2.UpdateMemberSession();
// runtimeyield* updateMemberSession({ id: accountId, status: "PAUSED" });UpdateOrganizationConfiguration
Section titled “UpdateOrganizationConfiguration”Source:
src/AWS/Macie2/UpdateOrganizationConfiguration.ts
Runtime binding for macie2:UpdateOrganizationConfiguration.
Updates the Amazon Macie configuration settings for an organization in Organizations.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateOrganizationConfigurationHttp).
UpdateOrganizationConfiguration: Organization & Members
Section titled “UpdateOrganizationConfiguration: Organization & Members”// init — account-level binding, no resource argumentconst updateOrganizationConfiguration = yield* AWS.Macie2.UpdateOrganizationConfiguration();
// runtimeyield* updateOrganizationConfiguration({ autoEnable: true });UpdateResourceProfile
Section titled “UpdateResourceProfile”Source:
src/AWS/Macie2/UpdateResourceProfile.ts
Runtime binding for macie2:UpdateResourceProfile.
Updates the sensitivity score for an S3 bucket.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateResourceProfileHttp).
UpdateResourceProfile: Automated Discovery
Section titled “UpdateResourceProfile: Automated Discovery”// init — account-level binding, no resource argumentconst updateResourceProfile = yield* AWS.Macie2.UpdateResourceProfile();
// runtimeyield* updateResourceProfile({ resourceArn: bucketArn, sensitivityScoreOverride: 100 });UpdateResourceProfileDetections
Section titled “UpdateResourceProfileDetections”Source:
src/AWS/Macie2/UpdateResourceProfileDetections.ts
Runtime binding for macie2:UpdateResourceProfileDetections.
Updates the sensitivity scoring settings for an S3 bucket.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateResourceProfileDetectionsHttp).
UpdateResourceProfileDetections: Automated Discovery
Section titled “UpdateResourceProfileDetections: Automated Discovery”// init — account-level binding, no resource argumentconst updateResourceProfileDetections = yield* AWS.Macie2.UpdateResourceProfileDetections();
// runtimeyield* updateResourceProfileDetections({ resourceArn: bucketArn, suppressDataIdentifiers: [{ id: identifierId, type: "MANAGED" }],});UpdateRevealConfiguration
Section titled “UpdateRevealConfiguration”Source:
src/AWS/Macie2/UpdateRevealConfiguration.ts
Runtime binding for macie2:UpdateRevealConfiguration.
Updates the status and configuration settings for retrieving occurrences of sensitive data reported by findings.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateRevealConfigurationHttp).
UpdateRevealConfiguration: Retrieving Sensitive Data Samples
Section titled “UpdateRevealConfiguration: Retrieving Sensitive Data Samples”// init — account-level binding, no resource argumentconst updateRevealConfiguration = yield* AWS.Macie2.UpdateRevealConfiguration();
// runtimeyield* updateRevealConfiguration({ configuration: { status: "ENABLED" },});UpdateSensitivityInspectionTemplate
Section titled “UpdateSensitivityInspectionTemplate”Source:
src/AWS/Macie2/UpdateSensitivityInspectionTemplate.ts
Runtime binding for macie2:UpdateSensitivityInspectionTemplate.
Updates the settings for the sensitivity inspection template for an account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.Macie2.UpdateSensitivityInspectionTemplateHttp).
UpdateSensitivityInspectionTemplate: Automated Discovery
Section titled “UpdateSensitivityInspectionTemplate: Automated Discovery”// init — account-level binding, no resource argumentconst updateSensitivityInspectionTemplate = yield* AWS.Macie2.UpdateSensitivityInspectionTemplate();
// runtimeyield* updateSensitivityInspectionTemplate({ id: templateId, includes: { managedDataIdentifierIds: ["CREDIT_CARD_NUMBER"] },});