AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.2 published on Friday, Jun 24, 2022 by Pulumi

getDetector

Retrieve information about a GuardDuty detector.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.GuardDuty.GetDetector.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/guardduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := guardduty.LookupDetector(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(GuarddutyFunctions.getDetector());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.guardduty.get_detector()
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.guardduty.getDetector());
variables:
  example:
    Fn::Invoke:
      Function: aws:guardduty:getDetector
      Arguments: {}

Using getDetector

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 getDetector(args: GetDetectorArgs, opts?: InvokeOptions): Promise<GetDetectorResult>
function getDetectorOutput(args: GetDetectorOutputArgs, opts?: InvokeOptions): Output<GetDetectorResult>
def get_detector(id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDetectorResult
def get_detector_output(id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDetectorResult]
func LookupDetector(ctx *Context, args *LookupDetectorArgs, opts ...InvokeOption) (*LookupDetectorResult, error)
func LookupDetectorOutput(ctx *Context, args *LookupDetectorOutputArgs, opts ...InvokeOption) LookupDetectorResultOutput

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

public static class GetDetector 
{
    public static Task<GetDetectorResult> InvokeAsync(GetDetectorArgs args, InvokeOptions? opts = null)
    public static Output<GetDetectorResult> Invoke(GetDetectorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDetectorResult> getDetector(GetDetectorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:guardduty/getDetector:getDetector
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string

The ID of the detector.

Id string

The ID of the detector.

id String

The ID of the detector.

id string

The ID of the detector.

id str

The ID of the detector.

id String

The ID of the detector.

getDetector Result

The following output properties are available:

FindingPublishingFrequency string

The frequency of notifications sent about subsequent finding occurrences.

Id string
ServiceRoleArn string

The service-linked role that grants GuardDuty access to the resources in the AWS account.

Status string

The current status of the detector.

FindingPublishingFrequency string

The frequency of notifications sent about subsequent finding occurrences.

Id string
ServiceRoleArn string

The service-linked role that grants GuardDuty access to the resources in the AWS account.

Status string

The current status of the detector.

findingPublishingFrequency String

The frequency of notifications sent about subsequent finding occurrences.

id String
serviceRoleArn String

The service-linked role that grants GuardDuty access to the resources in the AWS account.

status String

The current status of the detector.

findingPublishingFrequency string

The frequency of notifications sent about subsequent finding occurrences.

id string
serviceRoleArn string

The service-linked role that grants GuardDuty access to the resources in the AWS account.

status string

The current status of the detector.

finding_publishing_frequency str

The frequency of notifications sent about subsequent finding occurrences.

id str
service_role_arn str

The service-linked role that grants GuardDuty access to the resources in the AWS account.

status str

The current status of the detector.

findingPublishingFrequency String

The frequency of notifications sent about subsequent finding occurrences.

id String
serviceRoleArn String

The service-linked role that grants GuardDuty access to the resources in the AWS account.

status String

The current status of the detector.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.