AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.guardduty.getFindingIds
Explore with Pulumi AI
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:
- Detector
Id string - ID of the GuardDuty detector.
- Detector
Id string - ID of the GuardDuty detector.
- detector
Id String - ID of the GuardDuty detector.
- detector
Id string - ID of the GuardDuty detector.
- detector_
id str - ID of the GuardDuty detector.
- detector
Id String - ID of the GuardDuty detector.
getFindingIds Result
The following output properties are available:
- Detector
Id string - Finding
Ids List<string> - A list of finding IDs for the specified detector.
- Has
Findings bool - Indicates whether findings are present for the specified detector.
- Id string
- Detector
Id string - Finding
Ids []string - A list of finding IDs for the specified detector.
- Has
Findings bool - Indicates whether findings are present for the specified detector.
- Id string
- detector
Id String - finding
Ids List<String> - A list of finding IDs for the specified detector.
- has
Findings Boolean - Indicates whether findings are present for the specified detector.
- id String
- detector
Id string - finding
Ids string[] - A list of finding IDs for the specified detector.
- has
Findings 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
- detector
Id String - finding
Ids List<String> - A list of finding IDs for the specified detector.
- has
Findings 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.