AWS.GuardDuty reference
AcceptAdministratorInvitation
Section titled “AcceptAdministratorInvitation”Source:
src/AWS/GuardDuty/AcceptAdministratorInvitation.ts
Runtime binding for guardduty:AcceptAdministratorInvitation.
Accepts a GuardDuty administrator invitation — the member-account side of the invitation handshake.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.AcceptAdministratorInvitationHttp).
AcceptAdministratorInvitation: Administrator & Invitations
Section titled “AcceptAdministratorInvitation: Administrator & Invitations”// initconst acceptAdministratorInvitation = yield* AWS.GuardDuty.AcceptAdministratorInvitation(detector);
// runtimeyield* acceptAdministratorInvitation({ AdministratorId: adminAccountId, InvitationId: invitationId,});ArchiveFindings
Section titled “ArchiveFindings”Source:
src/AWS/GuardDuty/ArchiveFindings.ts
Runtime binding for guardduty:ArchiveFindings.
Archives triaged findings so they stop surfacing in the active queue. Only the administrator account owning the detector can archive.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ArchiveFindingsHttp).
ArchiveFindings: Working with Findings
Section titled “ArchiveFindings: Working with Findings”// initconst archiveFindings = yield* AWS.GuardDuty.ArchiveFindings(detector);
// runtimeyield* archiveFindings({ FindingIds: findingIds });CreateInvestigation
Section titled “CreateInvestigation”Source:
src/AWS/GuardDuty/CreateInvestigation.ts
Runtime binding for guardduty:CreateInvestigation.
Starts a GuardDuty Extended Threat Detection investigation from a natural-language trigger prompt.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.CreateInvestigationHttp).
CreateInvestigation: Extended Threat Detection
Section titled “CreateInvestigation: Extended Threat Detection”// initconst createInvestigation = yield* AWS.GuardDuty.CreateInvestigation(detector);
// runtimeconst { InvestigationId } = yield* createInvestigation({ TriggerPrompt: "Investigate the port probe findings on my web tier",});CreateMembers
Section titled “CreateMembers”Source:
src/AWS/GuardDuty/CreateMembers.ts
Runtime binding for guardduty:CreateMembers.
Associates member accounts with this administrator detector (organization-managed or invitation flow).
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.CreateMembersHttp).
CreateMembers: Member Administration
Section titled “CreateMembers: Member Administration”// initconst createMembers = yield* AWS.GuardDuty.CreateMembers(detector);
// runtimeyield* createMembers({ AccountDetails: [{ AccountId: "111122223333", Email: "security@example.com" }],});CreateSampleFindings
Section titled “CreateSampleFindings”Source:
src/AWS/GuardDuty/CreateSampleFindings.ts
Runtime binding for guardduty:CreateSampleFindings.
Generates sample findings of the requested types — the standard way to exercise a finding-consumer pipeline end-to-end without staging a real threat.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.CreateSampleFindingsHttp).
CreateSampleFindings: Working with Findings
Section titled “CreateSampleFindings: Working with Findings”// initconst createSampleFindings = yield* AWS.GuardDuty.CreateSampleFindings(detector);
// runtimeyield* createSampleFindings({ FindingTypes: ["Recon:EC2/PortProbeUnprotectedPort"],});DeclineInvitations
Section titled “DeclineInvitations”Source:
src/AWS/GuardDuty/DeclineInvitations.ts
Runtime binding for guardduty:DeclineInvitations.
Declines membership invitations from the given administrator account ids.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DeclineInvitationsHttp).
DeclineInvitations: Administrator & Invitations
Section titled “DeclineInvitations: Administrator & Invitations”// init// init — account-level binding, no resource argumentconst declineInvitations = yield* AWS.GuardDuty.DeclineInvitations();
// runtimeyield* declineInvitations({ AccountIds: ["111122223333"] });DeleteInvitations
Section titled “DeleteInvitations”Source:
src/AWS/GuardDuty/DeleteInvitations.ts
Runtime binding for guardduty:DeleteInvitations.
Deletes received membership invitations from the given administrator account ids.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DeleteInvitationsHttp).
DeleteInvitations: Administrator & Invitations
Section titled “DeleteInvitations: Administrator & Invitations”// init// init — account-level binding, no resource argumentconst deleteInvitations = yield* AWS.GuardDuty.DeleteInvitations();
// runtimeyield* deleteInvitations({ AccountIds: ["111122223333"] });DeleteMembers
Section titled “DeleteMembers”Source:
src/AWS/GuardDuty/DeleteMembers.ts
Runtime binding for guardduty:DeleteMembers.
Deletes member accounts from this administrator detector entirely.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DeleteMembersHttp).
DeleteMembers: Member Administration
Section titled “DeleteMembers: Member Administration”// initconst deleteMembers = yield* AWS.GuardDuty.DeleteMembers(detector);
// runtimeyield* deleteMembers({ AccountIds: ["111122223333"] });DescribeMalwareScans
Section titled “DescribeMalwareScans”Source:
src/AWS/GuardDuty/DescribeMalwareScans.ts
Runtime binding for guardduty:DescribeMalwareScans.
Lists EC2 malware scan results for the detector with optional filter and sort criteria.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DescribeMalwareScansHttp).
DescribeMalwareScans: Malware Protection
Section titled “DescribeMalwareScans: Malware Protection”// initconst describeMalwareScans = yield* AWS.GuardDuty.DescribeMalwareScans(detector);
// runtimeconst { Scans } = yield* describeMalwareScans();DescribeOrganizationConfiguration
Section titled “DescribeOrganizationConfiguration”Source:
src/AWS/GuardDuty/DescribeOrganizationConfiguration.ts
Runtime binding for guardduty:DescribeOrganizationConfiguration.
Reads the organization’s GuardDuty auto-enable configuration (delegated administrator only).
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DescribeOrganizationConfigurationHttp).
DescribeOrganizationConfiguration: Organization Administration
Section titled “DescribeOrganizationConfiguration: Organization Administration”// initconst describeOrganizationConfiguration = yield* AWS.GuardDuty.DescribeOrganizationConfiguration(detector);
// runtimeconst { AutoEnableOrganizationMembers } = yield* describeOrganizationConfiguration();Detector
Section titled “Detector”Source:
src/AWS/GuardDuty/Detector.ts
A GuardDuty detector — the account/region singleton that enables Amazon
GuardDuty threat detection. Only one detector can exist per region, so this
resource is a capture-and-restore singleton: adopting a pre-existing detector
that Alchemy did not create requires --adopt.
Detector: Enabling GuardDuty
Section titled “Detector: Enabling GuardDuty”Enable with default settings
const detector = yield* GuardDuty.Detector("Detector", {});Frequent finding publishing
const detector = yield* GuardDuty.Detector("Detector", { enable: true, findingPublishingFrequency: "FIFTEEN_MINUTES", tags: { team: "security" },});DisableOrganizationAdminAccount
Section titled “DisableOrganizationAdminAccount”Source:
src/AWS/GuardDuty/DisableOrganizationAdminAccount.ts
Runtime binding for guardduty:DisableOrganizationAdminAccount.
Removes an account’s delegation as the organization’s GuardDuty administrator (management account only).
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DisableOrganizationAdminAccountHttp).
DisableOrganizationAdminAccount: Organization Administration
Section titled “DisableOrganizationAdminAccount: Organization Administration”// init// init — account-level binding, no resource argumentconst disableOrganizationAdminAccount = yield* AWS.GuardDuty.DisableOrganizationAdminAccount();
// runtimeyield* disableOrganizationAdminAccount({ AdminAccountId: "111122223333" });DisassociateFromAdministratorAccount
Section titled “DisassociateFromAdministratorAccount”Source:
src/AWS/GuardDuty/DisassociateFromAdministratorAccount.ts
Runtime binding for guardduty:DisassociateFromAdministratorAccount.
Disassociates this member detector from its administrator account.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DisassociateFromAdministratorAccountHttp).
DisassociateFromAdministratorAccount: Administrator & Invitations
Section titled “DisassociateFromAdministratorAccount: Administrator & Invitations”// initconst disassociateFromAdministratorAccount = yield* AWS.GuardDuty.DisassociateFromAdministratorAccount(detector);
// runtimeyield* disassociateFromAdministratorAccount();DisassociateMembers
Section titled “DisassociateMembers”Source:
src/AWS/GuardDuty/DisassociateMembers.ts
Runtime binding for guardduty:DisassociateMembers.
Disassociates member accounts from this administrator detector without deleting them.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.DisassociateMembersHttp).
DisassociateMembers: Member Administration
Section titled “DisassociateMembers: Member Administration”// initconst disassociateMembers = yield* AWS.GuardDuty.DisassociateMembers(detector);
// runtimeyield* disassociateMembers({ AccountIds: ["111122223333"] });EnableOrganizationAdminAccount
Section titled “EnableOrganizationAdminAccount”Source:
src/AWS/GuardDuty/EnableOrganizationAdminAccount.ts
Runtime binding for guardduty:EnableOrganizationAdminAccount.
Delegates an account as the organization’s GuardDuty administrator (management account only).
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.EnableOrganizationAdminAccountHttp).
EnableOrganizationAdminAccount: Organization Administration
Section titled “EnableOrganizationAdminAccount: Organization Administration”// init// init — account-level binding, no resource argumentconst enableOrganizationAdminAccount = yield* AWS.GuardDuty.EnableOrganizationAdminAccount();
// runtimeyield* enableOrganizationAdminAccount({ AdminAccountId: "111122223333" });Filter
Section titled “Filter”Source:
src/AWS/GuardDuty/Filter.ts
A GuardDuty findings filter — matches findings against criteria and either
keeps (NOOP) or auto-archives (ARCHIVE) them. Identity is the
(detectorId, name) pair; description, action, rank, and criteria are
updatable in place.
Filter: Filtering Findings
Section titled “Filter: Filtering Findings”Auto-archive low-severity findings
const detector = yield* AWS.GuardDuty.Detector("Detector", {});const filter = yield* AWS.GuardDuty.Filter("LowSeverity", { detectorId: detector.detectorId, action: "ARCHIVE", rank: 1, findingCriteria: { Criterion: { severity: { LessThan: 4 } } },});Keep a named filter for the console
const filter = yield* AWS.GuardDuty.Filter("ProdOnly", { detectorId: detector.detectorId, name: "prod-only", description: "Findings on production resources", findingCriteria: { Criterion: { "resource.instanceDetails.tags.value": { Equals: ["prod"] } }, },});GetAdministratorAccount
Section titled “GetAdministratorAccount”Source:
src/AWS/GuardDuty/GetAdministratorAccount.ts
Runtime binding for guardduty:GetAdministratorAccount.
Reads the administrator account managing this detector (empty relationship for a standalone account).
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetAdministratorAccountHttp).
GetAdministratorAccount: Administrator & Invitations
Section titled “GetAdministratorAccount: Administrator & Invitations”// initconst getAdministratorAccount = yield* AWS.GuardDuty.GetAdministratorAccount(detector);
// runtimeconst { Administrator } = yield* getAdministratorAccount();GetCoverageStatistics
Section titled “GetCoverageStatistics”Source:
src/AWS/GuardDuty/GetCoverageStatistics.ts
Runtime binding for guardduty:GetCoverageStatistics.
Aggregates runtime-monitoring coverage counts (healthy vs unhealthy) for the detector’s monitored resources.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetCoverageStatisticsHttp).
GetCoverageStatistics: Usage & Coverage
Section titled “GetCoverageStatistics: Usage & Coverage”// initconst getCoverageStatistics = yield* AWS.GuardDuty.GetCoverageStatistics(detector);
// runtimeconst { CoverageStatistics } = yield* getCoverageStatistics({ StatisticsType: ["COUNT_BY_RESOURCE_TYPE"],});GetFindings
Section titled “GetFindings”Source:
src/AWS/GuardDuty/GetFindings.ts
Runtime binding for guardduty:GetFindings.
Hydrates full finding details for a batch of finding ids returned by ListFindings.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetFindingsHttp).
GetFindings: Working with Findings
Section titled “GetFindings: Working with Findings”// initconst getFindings = yield* AWS.GuardDuty.GetFindings(detector);
// runtimeconst { Findings } = yield* getFindings({ FindingIds: findingIds });GetFindingsStatistics
Section titled “GetFindingsStatistics”Source:
src/AWS/GuardDuty/GetFindingsStatistics.ts
Runtime binding for guardduty:GetFindingsStatistics.
Aggregates the detector’s findings into statistics (grouped by severity, account, resource, or finding type) for dashboards and alert thresholds.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetFindingsStatisticsHttp).
GetFindingsStatistics: Working with Findings
Section titled “GetFindingsStatistics: Working with Findings”// initconst getFindingsStatistics = yield* AWS.GuardDuty.GetFindingsStatistics(detector);
// runtimeconst { FindingStatistics } = yield* getFindingsStatistics({ GroupBy: "SEVERITY",});GetInvestigation
Section titled “GetInvestigation”Source:
src/AWS/GuardDuty/GetInvestigation.ts
Runtime binding for guardduty:GetInvestigation.
Reads an investigation’s status, risk details, and results by investigation id.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetInvestigationHttp).
GetInvestigation: Extended Threat Detection
Section titled “GetInvestigation: Extended Threat Detection”// initconst getInvestigation = yield* AWS.GuardDuty.GetInvestigation(detector);
// runtimeconst { Investigation } = yield* getInvestigation({ InvestigationId: investigationId,});GetInvitationsCount
Section titled “GetInvitationsCount”Source:
src/AWS/GuardDuty/GetInvitationsCount.ts
Runtime binding for guardduty:GetInvitationsCount.
Counts the membership invitations received by this account, excluding deleted ones.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetInvitationsCountHttp).
GetInvitationsCount: Administrator & Invitations
Section titled “GetInvitationsCount: Administrator & Invitations”// init// init — account-level binding, no resource argumentconst getInvitationsCount = yield* AWS.GuardDuty.GetInvitationsCount();
// runtimeconst { InvitationsCount } = yield* getInvitationsCount();GetMalwareScan
Section titled “GetMalwareScan”Source:
src/AWS/GuardDuty/GetMalwareScan.ts
Runtime binding for guardduty:GetMalwareScan.
Reads the status and result of an on-demand malware scan by scan id.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetMalwareScanHttp).
GetMalwareScan: Malware Protection
Section titled “GetMalwareScan: Malware Protection”// init// init — account-level binding, no resource argumentconst getMalwareScan = yield* AWS.GuardDuty.GetMalwareScan();
// runtimeconst { ScanStatus } = yield* getMalwareScan({ ScanId: scanId });GetMalwareScanSettings
Section titled “GetMalwareScanSettings”Source:
src/AWS/GuardDuty/GetMalwareScanSettings.ts
Runtime binding for guardduty:GetMalwareScanSettings.
Reads the detector’s EC2 malware scan settings — scan resource criteria and EBS snapshot preservation.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetMalwareScanSettingsHttp).
GetMalwareScanSettings: Malware Protection
Section titled “GetMalwareScanSettings: Malware Protection”// initconst getMalwareScanSettings = yield* AWS.GuardDuty.GetMalwareScanSettings(detector);
// runtimeconst { ScanResourceCriteria } = yield* getMalwareScanSettings();GetMemberDetectors
Section titled “GetMemberDetectors”Source:
src/AWS/GuardDuty/GetMemberDetectors.ts
Runtime binding for guardduty:GetMemberDetectors.
Reads the data-source and feature configuration of member detectors.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetMemberDetectorsHttp).
GetMemberDetectors: Member Administration
Section titled “GetMemberDetectors: Member Administration”// initconst getMemberDetectors = yield* AWS.GuardDuty.GetMemberDetectors(detector);
// runtimeconst { MemberDataSourceConfigurations } = yield* getMemberDetectors({ AccountIds: ["111122223333"],});GetMembers
Section titled “GetMembers”Source:
src/AWS/GuardDuty/GetMembers.ts
Runtime binding for guardduty:GetMembers.
Reads member account details for the given account ids; unknown accounts come back as UnprocessedAccounts.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetMembersHttp).
GetMembers: Member Administration
Section titled “GetMembers: Member Administration”// initconst getMembers = yield* AWS.GuardDuty.GetMembers(detector);
// runtimeconst { Members, UnprocessedAccounts } = yield* getMembers({ AccountIds: ["111122223333"],});GetOrganizationStatistics
Section titled “GetOrganizationStatistics”Source:
src/AWS/GuardDuty/GetOrganizationStatistics.ts
Runtime binding for guardduty:GetOrganizationStatistics.
Reports organization-wide GuardDuty enablement statistics (delegated administrator only).
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetOrganizationStatisticsHttp).
GetOrganizationStatistics: Organization Administration
Section titled “GetOrganizationStatistics: Organization Administration”// init// init — account-level binding, no resource argumentconst getOrganizationStatistics = yield* AWS.GuardDuty.GetOrganizationStatistics();
// runtimeconst { OrganizationDetails } = yield* getOrganizationStatistics();GetRemainingFreeTrialDays
Section titled “GetRemainingFreeTrialDays”Source:
src/AWS/GuardDuty/GetRemainingFreeTrialDays.ts
Runtime binding for guardduty:GetRemainingFreeTrialDays.
Reports the remaining free-trial days per data source for the given member account ids.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetRemainingFreeTrialDaysHttp).
GetRemainingFreeTrialDays: Usage & Coverage
Section titled “GetRemainingFreeTrialDays: Usage & Coverage”// initconst getRemainingFreeTrialDays = yield* AWS.GuardDuty.GetRemainingFreeTrialDays(detector);
// runtimeconst { Accounts } = yield* getRemainingFreeTrialDays({ AccountIds: ["111122223333"],});GetUsageStatistics
Section titled “GetUsageStatistics”Source:
src/AWS/GuardDuty/GetUsageStatistics.ts
Runtime binding for guardduty:GetUsageStatistics.
Reports GuardDuty usage (cost) statistics for the detector, grouped by data source, feature, or member account.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetUsageStatisticsHttp).
GetUsageStatistics: Usage & Coverage
Section titled “GetUsageStatistics: Usage & Coverage”// initconst getUsageStatistics = yield* AWS.GuardDuty.GetUsageStatistics(detector);
// runtimeconst { UsageStatistics } = yield* getUsageStatistics({ UsageStatisticType: "SUM_BY_DATA_SOURCE", UsageCriteria: { DataSources: ["FLOW_LOGS"] },});InviteMembers
Section titled “InviteMembers”Source:
src/AWS/GuardDuty/InviteMembers.ts
Runtime binding for guardduty:InviteMembers.
Invites member accounts (created via CreateMembers) to enable GuardDuty under this administrator.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.InviteMembersHttp).
InviteMembers: Member Administration
Section titled “InviteMembers: Member Administration”// initconst inviteMembers = yield* AWS.GuardDuty.InviteMembers(detector);
// runtimeyield* inviteMembers({ AccountIds: ["111122223333"], Message: "Please enable GuardDuty",});Source:
src/AWS/GuardDuty/IPSet.ts
A GuardDuty trusted IP set — an S3-hosted list of IP addresses GuardDuty treats as trusted, suppressing findings for traffic from them. The list file must exist in S3 before activation; name, location, and activation are updatable in place, while format changes replace the set.
IPSet: Trusting Known IPs
Section titled “IPSet: Trusting Known IPs”Trust the office IP range
const detector = yield* AWS.GuardDuty.Detector("Detector", {});const ipSet = yield* AWS.GuardDuty.IPSet("OfficeIPs", { detectorId: detector.detectorId, format: "TXT", location: "https://s3.amazonaws.com/my-security-bucket/office-ips.txt",});Stage a list without activating it
const ipSet = yield* AWS.GuardDuty.IPSet("StagedIPs", { detectorId: detector.detectorId, format: "TXT", location: "https://s3.amazonaws.com/my-security-bucket/staged.txt", activate: false,});ListCoverage
Section titled “ListCoverage”Source:
src/AWS/GuardDuty/ListCoverage.ts
Runtime binding for guardduty:ListCoverage.
Enumerates per-resource coverage details — which EKS clusters, EC2 instances, and ECS clusters report runtime telemetry and why any are unhealthy.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListCoverageHttp).
ListCoverage: Usage & Coverage
Section titled “ListCoverage: Usage & Coverage”// initconst listCoverage = yield* AWS.GuardDuty.ListCoverage(detector);
// runtimeconst { Resources } = yield* listCoverage();ListFindings
Section titled “ListFindings”Source:
src/AWS/GuardDuty/ListFindings.ts
Runtime binding for guardduty:ListFindings.
Lists finding ids for the detector, with optional finding criteria and sort order — the entry point for a findings-triage automation.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListFindingsHttp).
ListFindings: Working with Findings
Section titled “ListFindings: Working with Findings”// initconst listFindings = yield* AWS.GuardDuty.ListFindings(detector);
// runtimeconst { FindingIds } = yield* listFindings();ListInvestigations
Section titled “ListInvestigations”Source:
src/AWS/GuardDuty/ListInvestigations.ts
Runtime binding for guardduty:ListInvestigations.
Lists the detector’s investigations with optional sort criteria.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListInvestigationsHttp).
ListInvestigations: Extended Threat Detection
Section titled “ListInvestigations: Extended Threat Detection”// initconst listInvestigations = yield* AWS.GuardDuty.ListInvestigations(detector);
// runtimeconst { Investigations } = yield* listInvestigations();ListInvitations
Section titled “ListInvitations”Source:
src/AWS/GuardDuty/ListInvitations.ts
Runtime binding for guardduty:ListInvitations.
Lists GuardDuty membership invitations received by this account — ready for an automation that auto-accepts invitations from the security account.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListInvitationsHttp).
ListInvitations: Administrator & Invitations
Section titled “ListInvitations: Administrator & Invitations”// init// init — account-level binding, no resource argumentconst listInvitations = yield* AWS.GuardDuty.ListInvitations();
// runtimeconst { Invitations } = yield* listInvitations();ListMalwareScans
Section titled “ListMalwareScans”Source:
src/AWS/GuardDuty/ListMalwareScans.ts
Runtime binding for guardduty:ListMalwareScans.
Lists the account’s on-demand malware scans with optional filter and sort criteria.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListMalwareScansHttp).
ListMalwareScans: Malware Protection
Section titled “ListMalwareScans: Malware Protection”// init// init — account-level binding, no resource argumentconst listMalwareScans = yield* AWS.GuardDuty.ListMalwareScans();
// runtimeconst { Scans } = yield* listMalwareScans();ListMembers
Section titled “ListMembers”Source:
src/AWS/GuardDuty/ListMembers.ts
Runtime binding for guardduty:ListMembers.
Enumerates the member accounts associated with this administrator detector.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListMembersHttp).
ListMembers: Member Administration
Section titled “ListMembers: Member Administration”// initconst listMembers = yield* AWS.GuardDuty.ListMembers(detector);
// runtimeconst { Members } = yield* listMembers();ListOrganizationAdminAccounts
Section titled “ListOrganizationAdminAccounts”Source:
src/AWS/GuardDuty/ListOrganizationAdminAccounts.ts
Runtime binding for guardduty:ListOrganizationAdminAccounts.
Lists the accounts delegated as GuardDuty administrator for the organization.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.ListOrganizationAdminAccountsHttp).
ListOrganizationAdminAccounts: Organization Administration
Section titled “ListOrganizationAdminAccounts: Organization Administration”// init// init — account-level binding, no resource argumentconst listOrganizationAdminAccounts = yield* AWS.GuardDuty.ListOrganizationAdminAccounts();
// runtimeconst { AdminAccounts } = yield* listOrganizationAdminAccounts();SendObjectMalwareScan
Section titled “SendObjectMalwareScan”Source:
src/AWS/GuardDuty/SendObjectMalwareScan.ts
Runtime binding for guardduty:SendObjectMalwareScan.
Submits an S3 object for malware scanning under a Malware Protection plan covering its bucket.
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.SendObjectMalwareScanHttp).
SendObjectMalwareScan: Malware Protection
Section titled “SendObjectMalwareScan: Malware Protection”// init// init — account-level binding, no resource argumentconst sendObjectMalwareScan = yield* AWS.GuardDuty.SendObjectMalwareScan();
// runtimeyield* sendObjectMalwareScan({ S3Object: { Bucket: "my-bucket", Key: "upload.bin" },});StartMalwareScan
Section titled “StartMalwareScan”Source:
src/AWS/GuardDuty/StartMalwareScan.ts
Runtime binding for guardduty:StartMalwareScan.
Starts an on-demand malware scan of an EC2 instance by ARN (GuardDuty Malware Protection for EC2).
Account-level operation — invoked with the caller’s request as-is.
Provide the implementation with
Effect.provide(AWS.GuardDuty.StartMalwareScanHttp).
StartMalwareScan: Malware Protection
Section titled “StartMalwareScan: Malware Protection”// init// init — account-level binding, no resource argumentconst startMalwareScan = yield* AWS.GuardDuty.StartMalwareScan();
// runtimeconst { ScanId } = yield* startMalwareScan({ ResourceArn: instanceArn,});StartMonitoringMembers
Section titled “StartMonitoringMembers”Source:
src/AWS/GuardDuty/StartMonitoringMembers.ts
Runtime binding for guardduty:StartMonitoringMembers.
Resumes GuardDuty monitoring for member accounts previously stopped with StopMonitoringMembers.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.StartMonitoringMembersHttp).
StartMonitoringMembers: Member Administration
Section titled “StartMonitoringMembers: Member Administration”// initconst startMonitoringMembers = yield* AWS.GuardDuty.StartMonitoringMembers(detector);
// runtimeyield* startMonitoringMembers({ AccountIds: ["111122223333"] });StopMonitoringMembers
Section titled “StopMonitoringMembers”Source:
src/AWS/GuardDuty/StopMonitoringMembers.ts
Runtime binding for guardduty:StopMonitoringMembers.
Pauses GuardDuty monitoring for the given member accounts.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.StopMonitoringMembersHttp).
StopMonitoringMembers: Member Administration
Section titled “StopMonitoringMembers: Member Administration”// initconst stopMonitoringMembers = yield* AWS.GuardDuty.StopMonitoringMembers(detector);
// runtimeyield* stopMonitoringMembers({ AccountIds: ["111122223333"] });ThreatIntelSet
Section titled “ThreatIntelSet”Source:
src/AWS/GuardDuty/ThreatIntelSet.ts
A GuardDuty threat intelligence set — an S3-hosted list of known malicious IP addresses that GuardDuty generates findings for. The list file must exist in S3 before activation; name, location, and activation are updatable in place, while format changes replace the set.
ThreatIntelSet: Custom Threat Intelligence
Section titled “ThreatIntelSet: Custom Threat Intelligence”const detector = yield* AWS.GuardDuty.Detector("Detector", {});const threats = yield* AWS.GuardDuty.ThreatIntelSet("BadIPs", { detectorId: detector.detectorId, format: "TXT", location: "https://s3.amazonaws.com/my-security-bucket/threats.txt",});UnarchiveFindings
Section titled “UnarchiveFindings”Source:
src/AWS/GuardDuty/UnarchiveFindings.ts
Runtime binding for guardduty:UnarchiveFindings.
Restores archived findings back into the detector’s active queue.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.UnarchiveFindingsHttp).
UnarchiveFindings: Working with Findings
Section titled “UnarchiveFindings: Working with Findings”// initconst unarchiveFindings = yield* AWS.GuardDuty.UnarchiveFindings(detector);
// runtimeyield* unarchiveFindings({ FindingIds: findingIds });UpdateFindingsFeedback
Section titled “UpdateFindingsFeedback”Source:
src/AWS/GuardDuty/UpdateFindingsFeedback.ts
Runtime binding for guardduty:UpdateFindingsFeedback.
Marks findings as USEFUL or NOT_USEFUL to tune GuardDuty’s signal quality.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.UpdateFindingsFeedbackHttp).
UpdateFindingsFeedback: Working with Findings
Section titled “UpdateFindingsFeedback: Working with Findings”// initconst updateFindingsFeedback = yield* AWS.GuardDuty.UpdateFindingsFeedback(detector);
// runtimeyield* updateFindingsFeedback({ FindingIds: findingIds, Feedback: "USEFUL",});UpdateMalwareScanSettings
Section titled “UpdateMalwareScanSettings”Source:
src/AWS/GuardDuty/UpdateMalwareScanSettings.ts
Runtime binding for guardduty:UpdateMalwareScanSettings.
Updates the detector’s EC2 malware scan settings (scan inclusion/exclusion tags, snapshot retention).
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.UpdateMalwareScanSettingsHttp).
UpdateMalwareScanSettings: Malware Protection
Section titled “UpdateMalwareScanSettings: Malware Protection”// initconst updateMalwareScanSettings = yield* AWS.GuardDuty.UpdateMalwareScanSettings(detector);
// runtimeyield* updateMalwareScanSettings({ EbsSnapshotPreservation: "RETENTION_WITH_FINDING",});UpdateMemberDetectors
Section titled “UpdateMemberDetectors”Source:
src/AWS/GuardDuty/UpdateMemberDetectors.ts
Runtime binding for guardduty:UpdateMemberDetectors.
Updates the feature configuration of member detectors from the administrator account.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.UpdateMemberDetectorsHttp).
UpdateMemberDetectors: Member Administration
Section titled “UpdateMemberDetectors: Member Administration”// initconst updateMemberDetectors = yield* AWS.GuardDuty.UpdateMemberDetectors(detector);
// runtimeyield* updateMemberDetectors({ AccountIds: ["111122223333"], Features: [{ Name: "S3_DATA_EVENTS", Status: "ENABLED" }],});UpdateOrganizationConfiguration
Section titled “UpdateOrganizationConfiguration”Source:
src/AWS/GuardDuty/UpdateOrganizationConfiguration.ts
Runtime binding for guardduty:UpdateOrganizationConfiguration.
Updates the organization’s GuardDuty auto-enable configuration (delegated administrator only).
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.UpdateOrganizationConfigurationHttp).
UpdateOrganizationConfiguration: Organization Administration
Section titled “UpdateOrganizationConfiguration: Organization Administration”// initconst updateOrganizationConfiguration = yield* AWS.GuardDuty.UpdateOrganizationConfiguration(detector);
// runtimeyield* updateOrganizationConfiguration({ AutoEnableOrganizationMembers: "NEW",});