1. Packages
  2. AWS
  3. API Docs
  4. guardduty
  5. getFindingIds
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.guardduty.getFindingIds

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Data source for managing an AWS GuardDuty Finding Ids.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.guardduty.getFindingIds({
        detectorId: exampleAwsGuarddutyDetector.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.guardduty.get_finding_ids(detector_id=example_aws_guardduty_detector["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/guardduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := guardduty.GetFindingIds(ctx, &guardduty.GetFindingIdsArgs{
    			DetectorId: exampleAwsGuarddutyDetector.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.GuardDuty.GetFindingIds.Invoke(new()
        {
            DetectorId = exampleAwsGuarddutyDetector.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.guardduty.GuarddutyFunctions;
    import com.pulumi.aws.guardduty.inputs.GetFindingIdsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = GuarddutyFunctions.getFindingIds(GetFindingIdsArgs.builder()
                .detectorId(exampleAwsGuarddutyDetector.id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:guardduty:getFindingIds
          Arguments:
            detectorId: ${exampleAwsGuarddutyDetector.id}
    

    Using getFindingIds

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFindingIds(args: GetFindingIdsArgs, opts?: InvokeOptions): Promise<GetFindingIdsResult>
    function getFindingIdsOutput(args: GetFindingIdsOutputArgs, opts?: InvokeOptions): Output<GetFindingIdsResult>
    def get_finding_ids(detector_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetFindingIdsResult
    def get_finding_ids_output(detector_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetFindingIdsResult]
    func GetFindingIds(ctx *Context, args *GetFindingIdsArgs, opts ...InvokeOption) (*GetFindingIdsResult, error)
    func GetFindingIdsOutput(ctx *Context, args *GetFindingIdsOutputArgs, opts ...InvokeOption) GetFindingIdsResultOutput

    > Note: This function is named GetFindingIds in the Go SDK.

    public static class GetFindingIds 
    {
        public static Task<GetFindingIdsResult> InvokeAsync(GetFindingIdsArgs args, InvokeOptions? opts = null)
        public static Output<GetFindingIdsResult> Invoke(GetFindingIdsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFindingIdsResult> getFindingIds(GetFindingIdsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:guardduty/getFindingIds:getFindingIds
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DetectorId string
    ID of the GuardDuty detector.
    DetectorId string
    ID of the GuardDuty detector.
    detectorId String
    ID of the GuardDuty detector.
    detectorId string
    ID of the GuardDuty detector.
    detector_id str
    ID of the GuardDuty detector.
    detectorId String
    ID of the GuardDuty detector.

    getFindingIds Result

    The following output properties are available:

    DetectorId string
    FindingIds List<string>
    A list of finding IDs for the specified detector.
    HasFindings bool
    Indicates whether findings are present for the specified detector.
    Id string
    DetectorId string
    FindingIds []string
    A list of finding IDs for the specified detector.
    HasFindings bool
    Indicates whether findings are present for the specified detector.
    Id string
    detectorId String
    findingIds List<String>
    A list of finding IDs for the specified detector.
    hasFindings Boolean
    Indicates whether findings are present for the specified detector.
    id String
    detectorId string
    findingIds string[]
    A list of finding IDs for the specified detector.
    hasFindings boolean
    Indicates whether findings are present for the specified detector.
    id string
    detector_id str
    finding_ids Sequence[str]
    A list of finding IDs for the specified detector.
    has_findings bool
    Indicates whether findings are present for the specified detector.
    id str
    detectorId String
    findingIds List<String>
    A list of finding IDs for the specified detector.
    hasFindings Boolean
    Indicates whether findings are present for the specified detector.
    id String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi