@aws-sdk/client-guardduty 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/GuardDuty.js +0 -20
- package/dist-cjs/GuardDutyClient.js +0 -25
- package/dist-cjs/commands/AcceptInvitationCommand.js +0 -25
- package/dist-cjs/commands/ArchiveFindingsCommand.js +0 -29
- package/dist-cjs/commands/CreateDetectorCommand.js +0 -28
- package/dist-cjs/commands/CreateFilterCommand.js +0 -25
- package/dist-cjs/commands/CreateIPSetCommand.js +0 -28
- package/dist-cjs/commands/CreateMembersCommand.js +0 -36
- package/dist-cjs/commands/CreatePublishingDestinationCommand.js +0 -26
- package/dist-cjs/commands/CreateSampleFindingsCommand.js +0 -27
- package/dist-cjs/commands/CreateThreatIntelSetCommand.js +0 -27
- package/dist-cjs/commands/DeclineInvitationsCommand.js +0 -26
- package/dist-cjs/commands/DeleteDetectorCommand.js +0 -25
- package/dist-cjs/commands/DeleteFilterCommand.js +0 -25
- package/dist-cjs/commands/DeleteIPSetCommand.js +0 -26
- package/dist-cjs/commands/DeleteInvitationsCommand.js +0 -26
- package/dist-cjs/commands/DeleteMembersCommand.js +0 -26
- package/dist-cjs/commands/DeletePublishingDestinationCommand.js +0 -25
- package/dist-cjs/commands/DeleteThreatIntelSetCommand.js +0 -25
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +0 -26
- package/dist-cjs/commands/DescribePublishingDestinationCommand.js +0 -26
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +0 -26
- package/dist-cjs/commands/DisassociateFromMasterAccountCommand.js +0 -25
- package/dist-cjs/commands/DisassociateMembersCommand.js +0 -26
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +0 -26
- package/dist-cjs/commands/GetDetectorCommand.js +0 -25
- package/dist-cjs/commands/GetFilterCommand.js +0 -25
- package/dist-cjs/commands/GetFindingsCommand.js +0 -25
- package/dist-cjs/commands/GetFindingsStatisticsCommand.js +0 -25
- package/dist-cjs/commands/GetIPSetCommand.js +0 -25
- package/dist-cjs/commands/GetInvitationsCountCommand.js +0 -26
- package/dist-cjs/commands/GetMasterAccountCommand.js +0 -26
- package/dist-cjs/commands/GetMemberDetectorsCommand.js +0 -25
- package/dist-cjs/commands/GetMembersCommand.js +0 -26
- package/dist-cjs/commands/GetThreatIntelSetCommand.js +0 -25
- package/dist-cjs/commands/GetUsageStatisticsCommand.js +0 -28
- package/dist-cjs/commands/InviteMembersCommand.js +0 -27
- package/dist-cjs/commands/ListDetectorsCommand.js +0 -25
- package/dist-cjs/commands/ListFiltersCommand.js +0 -25
- package/dist-cjs/commands/ListFindingsCommand.js +0 -25
- package/dist-cjs/commands/ListIPSetsCommand.js +0 -27
- package/dist-cjs/commands/ListInvitationsCommand.js +0 -26
- package/dist-cjs/commands/ListMembersCommand.js +0 -25
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +0 -25
- package/dist-cjs/commands/ListPublishingDestinationsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
- package/dist-cjs/commands/ListThreatIntelSetsCommand.js +0 -27
- package/dist-cjs/commands/StartMonitoringMembersCommand.js +0 -27
- package/dist-cjs/commands/StopMonitoringMembersCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UnarchiveFindingsCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateDetectorCommand.js +0 -25
- package/dist-cjs/commands/UpdateFilterCommand.js +0 -25
- package/dist-cjs/commands/UpdateFindingsFeedbackCommand.js +0 -25
- package/dist-cjs/commands/UpdateIPSetCommand.js +0 -25
- package/dist-cjs/commands/UpdateMemberDetectorsCommand.js +0 -25
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +0 -25
- package/dist-cjs/commands/UpdatePublishingDestinationCommand.js +0 -26
- package/dist-cjs/commands/UpdateThreatIntelSetCommand.js +0 -25
- package/dist-cjs/commands/index.js +61 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -72
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -559
- package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDetectorsPaginator.js +0 -11
- package/dist-cjs/pagination/ListFiltersPaginator.js +0 -11
- package/dist-cjs/pagination/ListFindingsPaginator.js +0 -11
- package/dist-cjs/pagination/ListIPSetsPaginator.js +0 -11
- package/dist-cjs/pagination/ListInvitationsPaginator.js +0 -11
- package/dist-cjs/pagination/ListMembersPaginator.js +0 -11
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +0 -11
- package/dist-cjs/pagination/ListPublishingDestinationsPaginator.js +0 -11
- package/dist-cjs/pagination/ListThreatIntelSetsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/GuardDuty.js +0 -1
- package/dist-es/GuardDutyClient.js +0 -1
- package/dist-es/commands/AcceptInvitationCommand.js +0 -1
- package/dist-es/commands/ArchiveFindingsCommand.js +0 -1
- package/dist-es/commands/CreateDetectorCommand.js +0 -1
- package/dist-es/commands/CreateFilterCommand.js +0 -1
- package/dist-es/commands/CreateIPSetCommand.js +0 -1
- package/dist-es/commands/CreateMembersCommand.js +0 -1
- package/dist-es/commands/CreatePublishingDestinationCommand.js +0 -1
- package/dist-es/commands/CreateSampleFindingsCommand.js +0 -1
- package/dist-es/commands/CreateThreatIntelSetCommand.js +0 -1
- package/dist-es/commands/DeclineInvitationsCommand.js +0 -1
- package/dist-es/commands/DeleteDetectorCommand.js +0 -1
- package/dist-es/commands/DeleteFilterCommand.js +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js +0 -1
- package/dist-es/commands/DeleteInvitationsCommand.js +0 -1
- package/dist-es/commands/DeleteMembersCommand.js +0 -1
- package/dist-es/commands/DeletePublishingDestinationCommand.js +0 -1
- package/dist-es/commands/DeleteThreatIntelSetCommand.js +0 -1
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +0 -1
- package/dist-es/commands/DescribePublishingDestinationCommand.js +0 -1
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +0 -1
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +0 -1
- package/dist-es/commands/DisassociateMembersCommand.js +0 -1
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +0 -1
- package/dist-es/commands/GetDetectorCommand.js +0 -1
- package/dist-es/commands/GetFilterCommand.js +0 -1
- package/dist-es/commands/GetFindingsCommand.js +0 -1
- package/dist-es/commands/GetFindingsStatisticsCommand.js +0 -1
- package/dist-es/commands/GetIPSetCommand.js +0 -1
- package/dist-es/commands/GetInvitationsCountCommand.js +0 -1
- package/dist-es/commands/GetMasterAccountCommand.js +0 -1
- package/dist-es/commands/GetMemberDetectorsCommand.js +0 -1
- package/dist-es/commands/GetMembersCommand.js +0 -1
- package/dist-es/commands/GetThreatIntelSetCommand.js +0 -1
- package/dist-es/commands/GetUsageStatisticsCommand.js +0 -1
- package/dist-es/commands/InviteMembersCommand.js +0 -1
- package/dist-es/commands/ListDetectorsCommand.js +0 -1
- package/dist-es/commands/ListFiltersCommand.js +0 -1
- package/dist-es/commands/ListFindingsCommand.js +0 -1
- package/dist-es/commands/ListIPSetsCommand.js +0 -1
- package/dist-es/commands/ListInvitationsCommand.js +0 -1
- package/dist-es/commands/ListMembersCommand.js +0 -1
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +0 -1
- package/dist-es/commands/ListPublishingDestinationsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListThreatIntelSetsCommand.js +0 -1
- package/dist-es/commands/StartMonitoringMembersCommand.js +0 -1
- package/dist-es/commands/StopMonitoringMembersCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UnarchiveFindingsCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateDetectorCommand.js +0 -1
- package/dist-es/commands/UpdateFilterCommand.js +0 -1
- package/dist-es/commands/UpdateFindingsFeedbackCommand.js +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js +0 -1
- package/dist-es/commands/UpdateMemberDetectorsCommand.js +0 -1
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +0 -1
- package/dist-es/commands/UpdatePublishingDestinationCommand.js +0 -1
- package/dist-es/commands/UpdateThreatIntelSetCommand.js +0 -1
- package/dist-es/commands/index.js +58 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -72
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetUsageStatisticsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDetectorsPaginator.js +0 -1
- package/dist-es/pagination/ListFiltersPaginator.js +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js +0 -1
- package/dist-es/pagination/ListIPSetsPaginator.js +0 -1
- package/dist-es/pagination/ListInvitationsPaginator.js +0 -1
- package/dist-es/pagination/ListMembersPaginator.js +0 -1
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +0 -1
- package/dist-es/pagination/ListPublishingDestinationsPaginator.js +0 -1
- package/dist-es/pagination/ListThreatIntelSetsPaginator.js +0 -1
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +58 -0
- package/dist-types/index.d.ts +4 -71
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +59 -249
- package/dist-types/ts3.4/GuardDutyClient.d.ts +24 -105
- package/dist-types/ts3.4/commands/AcceptInvitationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ArchiveFindingsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CreateDetectorCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateIPSetCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateMembersCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/CreatePublishingDestinationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateSampleFindingsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateThreatIntelSetCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeclineInvitationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteDetectorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteIPSetCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteInvitationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteMembersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeletePublishingDestinationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteThreatIntelSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePublishingDestinationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisassociateFromMasterAccountCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateMembersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetDetectorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFindingsStatisticsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetIPSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetMemberDetectorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMembersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetThreatIntelSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetUsageStatisticsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListDetectorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListIPSetsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPublishingDestinationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListThreatIntelSetsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartMonitoringMembersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StopMonitoringMembersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UnarchiveFindingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +58 -0
- package/dist-types/ts3.4/index.d.ts +4 -71
- package/dist-types/ts3.4/models/models_0.d.ts +708 -2623
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/GuardDuty.js.map +0 -1
- package/dist-cjs/GuardDutyClient.js.map +0 -1
- package/dist-cjs/commands/AcceptInvitationCommand.js.map +0 -1
- package/dist-cjs/commands/ArchiveFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDetectorCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFilterCommand.js.map +0 -1
- package/dist-cjs/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateMembersCommand.js.map +0 -1
- package/dist-cjs/commands/CreatePublishingDestinationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSampleFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateThreatIntelSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeclineInvitationsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDetectorCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFilterCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteInvitationsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMembersCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePublishingDestinationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteThreatIntelSetCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePublishingDestinationCommand.js.map +0 -1
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateFromMasterAccountCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateMembersCommand.js.map +0 -1
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js.map +0 -1
- package/dist-cjs/commands/GetDetectorCommand.js.map +0 -1
- package/dist-cjs/commands/GetFilterCommand.js.map +0 -1
- package/dist-cjs/commands/GetFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/GetFindingsStatisticsCommand.js.map +0 -1
- package/dist-cjs/commands/GetIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetInvitationsCountCommand.js.map +0 -1
- package/dist-cjs/commands/GetMasterAccountCommand.js.map +0 -1
- package/dist-cjs/commands/GetMemberDetectorsCommand.js.map +0 -1
- package/dist-cjs/commands/GetMembersCommand.js.map +0 -1
- package/dist-cjs/commands/GetThreatIntelSetCommand.js.map +0 -1
- package/dist-cjs/commands/GetUsageStatisticsCommand.js.map +0 -1
- package/dist-cjs/commands/InviteMembersCommand.js.map +0 -1
- package/dist-cjs/commands/ListDetectorsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFiltersCommand.js.map +0 -1
- package/dist-cjs/commands/ListFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListInvitationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListMembersCommand.js.map +0 -1
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPublishingDestinationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListThreatIntelSetsCommand.js.map +0 -1
- package/dist-cjs/commands/StartMonitoringMembersCommand.js.map +0 -1
- package/dist-cjs/commands/StopMonitoringMembersCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UnarchiveFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDetectorCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFilterCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFindingsFeedbackCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateMemberDetectorsCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdatePublishingDestinationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateThreatIntelSetCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetUsageStatisticsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDetectorsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFiltersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListIPSetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListInvitationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListMembersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPublishingDestinationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListThreatIntelSetsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/GuardDuty.js.map +0 -1
- package/dist-es/GuardDutyClient.js.map +0 -1
- package/dist-es/commands/AcceptInvitationCommand.js.map +0 -1
- package/dist-es/commands/ArchiveFindingsCommand.js.map +0 -1
- package/dist-es/commands/CreateDetectorCommand.js.map +0 -1
- package/dist-es/commands/CreateFilterCommand.js.map +0 -1
- package/dist-es/commands/CreateIPSetCommand.js.map +0 -1
- package/dist-es/commands/CreateMembersCommand.js.map +0 -1
- package/dist-es/commands/CreatePublishingDestinationCommand.js.map +0 -1
- package/dist-es/commands/CreateSampleFindingsCommand.js.map +0 -1
- package/dist-es/commands/CreateThreatIntelSetCommand.js.map +0 -1
- package/dist-es/commands/DeclineInvitationsCommand.js.map +0 -1
- package/dist-es/commands/DeleteDetectorCommand.js.map +0 -1
- package/dist-es/commands/DeleteFilterCommand.js.map +0 -1
- package/dist-es/commands/DeleteIPSetCommand.js.map +0 -1
- package/dist-es/commands/DeleteInvitationsCommand.js.map +0 -1
- package/dist-es/commands/DeleteMembersCommand.js.map +0 -1
- package/dist-es/commands/DeletePublishingDestinationCommand.js.map +0 -1
- package/dist-es/commands/DeleteThreatIntelSetCommand.js.map +0 -1
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DescribePublishingDestinationCommand.js.map +0 -1
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js.map +0 -1
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js.map +0 -1
- package/dist-es/commands/DisassociateMembersCommand.js.map +0 -1
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js.map +0 -1
- package/dist-es/commands/GetDetectorCommand.js.map +0 -1
- package/dist-es/commands/GetFilterCommand.js.map +0 -1
- package/dist-es/commands/GetFindingsCommand.js.map +0 -1
- package/dist-es/commands/GetFindingsStatisticsCommand.js.map +0 -1
- package/dist-es/commands/GetIPSetCommand.js.map +0 -1
- package/dist-es/commands/GetInvitationsCountCommand.js.map +0 -1
- package/dist-es/commands/GetMasterAccountCommand.js.map +0 -1
- package/dist-es/commands/GetMemberDetectorsCommand.js.map +0 -1
- package/dist-es/commands/GetMembersCommand.js.map +0 -1
- package/dist-es/commands/GetThreatIntelSetCommand.js.map +0 -1
- package/dist-es/commands/GetUsageStatisticsCommand.js.map +0 -1
- package/dist-es/commands/InviteMembersCommand.js.map +0 -1
- package/dist-es/commands/ListDetectorsCommand.js.map +0 -1
- package/dist-es/commands/ListFiltersCommand.js.map +0 -1
- package/dist-es/commands/ListFindingsCommand.js.map +0 -1
- package/dist-es/commands/ListIPSetsCommand.js.map +0 -1
- package/dist-es/commands/ListInvitationsCommand.js.map +0 -1
- package/dist-es/commands/ListMembersCommand.js.map +0 -1
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js.map +0 -1
- package/dist-es/commands/ListPublishingDestinationsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListThreatIntelSetsCommand.js.map +0 -1
- package/dist-es/commands/StartMonitoringMembersCommand.js.map +0 -1
- package/dist-es/commands/StopMonitoringMembersCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UnarchiveFindingsCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateDetectorCommand.js.map +0 -1
- package/dist-es/commands/UpdateFilterCommand.js.map +0 -1
- package/dist-es/commands/UpdateFindingsFeedbackCommand.js.map +0 -1
- package/dist-es/commands/UpdateIPSetCommand.js.map +0 -1
- package/dist-es/commands/UpdateMemberDetectorsCommand.js.map +0 -1
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js.map +0 -1
- package/dist-es/commands/UpdatePublishingDestinationCommand.js.map +0 -1
- package/dist-es/commands/UpdateThreatIntelSetCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetUsageStatisticsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDetectorsPaginator.js.map +0 -1
- package/dist-es/pagination/ListFiltersPaginator.js.map +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-es/pagination/ListIPSetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListInvitationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListMembersPaginator.js.map +0 -1
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPublishingDestinationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListThreatIntelSetsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/GuardDuty.ts +0 -2094
- package/src/GuardDutyClient.ts +0 -498
- package/src/commands/AcceptInvitationCommand.ts +0 -95
- package/src/commands/ArchiveFindingsCommand.ts +0 -99
- package/src/commands/CreateDetectorCommand.ts +0 -98
- package/src/commands/CreateFilterCommand.ts +0 -95
- package/src/commands/CreateIPSetCommand.ts +0 -98
- package/src/commands/CreateMembersCommand.ts +0 -106
- package/src/commands/CreatePublishingDestinationCommand.ts +0 -101
- package/src/commands/CreateSampleFindingsCommand.ts +0 -97
- package/src/commands/CreateThreatIntelSetCommand.ts +0 -97
- package/src/commands/DeclineInvitationsCommand.ts +0 -96
- package/src/commands/DeleteDetectorCommand.ts +0 -95
- package/src/commands/DeleteFilterCommand.ts +0 -95
- package/src/commands/DeleteIPSetCommand.ts +0 -96
- package/src/commands/DeleteInvitationsCommand.ts +0 -96
- package/src/commands/DeleteMembersCommand.ts +0 -96
- package/src/commands/DeletePublishingDestinationCommand.ts +0 -100
- package/src/commands/DeleteThreatIntelSetCommand.ts +0 -95
- package/src/commands/DescribeOrganizationConfigurationCommand.ts +0 -107
- package/src/commands/DescribePublishingDestinationCommand.ts +0 -101
- package/src/commands/DisableOrganizationAdminAccountCommand.ts +0 -104
- package/src/commands/DisassociateFromMasterAccountCommand.ts +0 -100
- package/src/commands/DisassociateMembersCommand.ts +0 -96
- package/src/commands/EnableOrganizationAdminAccountCommand.ts +0 -104
- package/src/commands/GetDetectorCommand.ts +0 -95
- package/src/commands/GetFilterCommand.ts +0 -95
- package/src/commands/GetFindingsCommand.ts +0 -95
- package/src/commands/GetFindingsStatisticsCommand.ts +0 -95
- package/src/commands/GetIPSetCommand.ts +0 -95
- package/src/commands/GetInvitationsCountCommand.ts +0 -96
- package/src/commands/GetMasterAccountCommand.ts +0 -96
- package/src/commands/GetMemberDetectorsCommand.ts +0 -95
- package/src/commands/GetMembersCommand.ts +0 -96
- package/src/commands/GetThreatIntelSetCommand.ts +0 -95
- package/src/commands/GetUsageStatisticsCommand.ts +0 -98
- package/src/commands/InviteMembersCommand.ts +0 -97
- package/src/commands/ListDetectorsCommand.ts +0 -95
- package/src/commands/ListFiltersCommand.ts +0 -95
- package/src/commands/ListFindingsCommand.ts +0 -95
- package/src/commands/ListIPSetsCommand.ts +0 -97
- package/src/commands/ListInvitationsCommand.ts +0 -96
- package/src/commands/ListMembersCommand.ts +0 -95
- package/src/commands/ListOrganizationAdminAccountsCommand.ts +0 -100
- package/src/commands/ListPublishingDestinationsCommand.ts +0 -99
- package/src/commands/ListTagsForResourceCommand.ts +0 -97
- package/src/commands/ListThreatIntelSetsCommand.ts +0 -97
- package/src/commands/StartMonitoringMembersCommand.ts +0 -97
- package/src/commands/StopMonitoringMembersCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UnarchiveFindingsCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateDetectorCommand.ts +0 -95
- package/src/commands/UpdateFilterCommand.ts +0 -95
- package/src/commands/UpdateFindingsFeedbackCommand.ts +0 -95
- package/src/commands/UpdateIPSetCommand.ts +0 -95
- package/src/commands/UpdateMemberDetectorsCommand.ts +0 -95
- package/src/commands/UpdateOrganizationConfigurationCommand.ts +0 -103
- package/src/commands/UpdatePublishingDestinationCommand.ts +0 -101
- package/src/commands/UpdateThreatIntelSetCommand.ts +0 -95
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -72
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -5123
- package/src/pagination/GetUsageStatisticsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDetectorsPaginator.ts +0 -59
- package/src/pagination/ListFiltersPaginator.ts +0 -55
- package/src/pagination/ListFindingsPaginator.ts +0 -59
- package/src/pagination/ListIPSetsPaginator.ts +0 -55
- package/src/pagination/ListInvitationsPaginator.ts +0 -59
- package/src/pagination/ListMembersPaginator.ts +0 -55
- package/src/pagination/ListOrganizationAdminAccountsPaginator.ts +0 -59
- package/src/pagination/ListPublishingDestinationsPaginator.ts +0 -59
- package/src/pagination/ListThreatIntelSetsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -7458
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
GetUsageStatisticsCommand,
|
|
5
|
-
GetUsageStatisticsCommandInput,
|
|
6
|
-
GetUsageStatisticsCommandOutput,
|
|
7
|
-
} from "../commands/GetUsageStatisticsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: GetUsageStatisticsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<GetUsageStatisticsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new GetUsageStatisticsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: GetUsageStatisticsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<GetUsageStatisticsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.getUsageStatistics(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateGetUsageStatistics(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: GetUsageStatisticsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<GetUsageStatisticsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: GetUsageStatisticsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { GuardDuty } from "../GuardDuty";
|
|
4
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
5
|
-
|
|
6
|
-
export interface GuardDutyPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: GuardDuty | GuardDutyClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDetectorsCommand,
|
|
5
|
-
ListDetectorsCommandInput,
|
|
6
|
-
ListDetectorsCommandOutput,
|
|
7
|
-
} from "../commands/ListDetectorsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListDetectorsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDetectorsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDetectorsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListDetectorsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDetectorsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDetectors(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDetectors(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListDetectorsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDetectorsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDetectorsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListFiltersCommand, ListFiltersCommandInput, ListFiltersCommandOutput } from "../commands/ListFiltersCommand";
|
|
4
|
-
import { GuardDuty } from "../GuardDuty";
|
|
5
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
6
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: GuardDutyClient,
|
|
13
|
-
input: ListFiltersCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListFiltersCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListFiltersCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: GuardDuty,
|
|
24
|
-
input: ListFiltersCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListFiltersCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listFilters(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListFilters(
|
|
31
|
-
config: GuardDutyPaginationConfiguration,
|
|
32
|
-
input: ListFiltersCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListFiltersCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListFiltersCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof GuardDuty) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListFindingsCommand,
|
|
5
|
-
ListFindingsCommandInput,
|
|
6
|
-
ListFindingsCommandOutput,
|
|
7
|
-
} from "../commands/ListFindingsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListFindingsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListFindingsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListFindingsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listFindings(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListFindings(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListFindingsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListFindingsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListFindingsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListIPSetsCommand, ListIPSetsCommandInput, ListIPSetsCommandOutput } from "../commands/ListIPSetsCommand";
|
|
4
|
-
import { GuardDuty } from "../GuardDuty";
|
|
5
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
6
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: GuardDutyClient,
|
|
13
|
-
input: ListIPSetsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListIPSetsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListIPSetsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: GuardDuty,
|
|
24
|
-
input: ListIPSetsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListIPSetsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listIPSets(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListIPSets(
|
|
31
|
-
config: GuardDutyPaginationConfiguration,
|
|
32
|
-
input: ListIPSetsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListIPSetsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListIPSetsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof GuardDuty) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListInvitationsCommand,
|
|
5
|
-
ListInvitationsCommandInput,
|
|
6
|
-
ListInvitationsCommandOutput,
|
|
7
|
-
} from "../commands/ListInvitationsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListInvitationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListInvitationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListInvitationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListInvitationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListInvitationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listInvitations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListInvitations(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListInvitationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListInvitationsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListInvitationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListMembersCommand, ListMembersCommandInput, ListMembersCommandOutput } from "../commands/ListMembersCommand";
|
|
4
|
-
import { GuardDuty } from "../GuardDuty";
|
|
5
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
6
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: GuardDutyClient,
|
|
13
|
-
input: ListMembersCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListMembersCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListMembersCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: GuardDuty,
|
|
24
|
-
input: ListMembersCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListMembersCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listMembers(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListMembers(
|
|
31
|
-
config: GuardDutyPaginationConfiguration,
|
|
32
|
-
input: ListMembersCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListMembersCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListMembersCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof GuardDuty) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListOrganizationAdminAccountsCommand,
|
|
5
|
-
ListOrganizationAdminAccountsCommandInput,
|
|
6
|
-
ListOrganizationAdminAccountsCommandOutput,
|
|
7
|
-
} from "../commands/ListOrganizationAdminAccountsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListOrganizationAdminAccountsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListOrganizationAdminAccountsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListOrganizationAdminAccountsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListOrganizationAdminAccountsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListOrganizationAdminAccountsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listOrganizationAdminAccounts(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListOrganizationAdminAccounts(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListOrganizationAdminAccountsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListOrganizationAdminAccountsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListOrganizationAdminAccountsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListPublishingDestinationsCommand,
|
|
5
|
-
ListPublishingDestinationsCommandInput,
|
|
6
|
-
ListPublishingDestinationsCommandOutput,
|
|
7
|
-
} from "../commands/ListPublishingDestinationsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListPublishingDestinationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListPublishingDestinationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListPublishingDestinationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListPublishingDestinationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListPublishingDestinationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listPublishingDestinations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListPublishingDestinations(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListPublishingDestinationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListPublishingDestinationsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListPublishingDestinationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListThreatIntelSetsCommand,
|
|
5
|
-
ListThreatIntelSetsCommandInput,
|
|
6
|
-
ListThreatIntelSetsCommandOutput,
|
|
7
|
-
} from "../commands/ListThreatIntelSetsCommand";
|
|
8
|
-
import { GuardDuty } from "../GuardDuty";
|
|
9
|
-
import { GuardDutyClient } from "../GuardDutyClient";
|
|
10
|
-
import { GuardDutyPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GuardDutyClient,
|
|
17
|
-
input: ListThreatIntelSetsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListThreatIntelSetsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListThreatIntelSetsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GuardDuty,
|
|
28
|
-
input: ListThreatIntelSetsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListThreatIntelSetsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listThreatIntelSets(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListThreatIntelSets(
|
|
35
|
-
config: GuardDutyPaginationConfiguration,
|
|
36
|
-
input: ListThreatIntelSetsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListThreatIntelSetsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListThreatIntelSetsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GuardDuty) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GuardDutyClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|