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/v2/go/aws/guardduty"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := guardduty.LookupDetector(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}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({ async: true }));Using GetDetector
function getDetector(args: GetDetectorArgs, opts?: InvokeOptions): Promise<GetDetectorResult>function get_detector(id=None, opts=None)func LookupDetector(ctx *Context, args *LookupDetectorArgs, opts ...InvokeOption) (*LookupDetectorResult, error)Note: This function is named
LookupDetectorin the Go SDK.
public static class GetDetector {
public static Task<GetDetectorResult> InvokeAsync(GetDetectorArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetDetector Result
The following output properties are available:
- Finding
Publishing stringFrequency The frequency of notifications sent about subsequent finding occurrences.
- Service
Role stringArn The service-linked role that grants GuardDuty access to the resources in the AWS account.
- Status string
The current status of the detector.
- Id string
- Finding
Publishing stringFrequency The frequency of notifications sent about subsequent finding occurrences.
- Service
Role stringArn The service-linked role that grants GuardDuty access to the resources in the AWS account.
- Status string
The current status of the detector.
- Id string
- finding
Publishing stringFrequency The frequency of notifications sent about subsequent finding occurrences.
- service
Role stringArn The service-linked role that grants GuardDuty access to the resources in the AWS account.
- status string
The current status of the detector.
- id string
- finding_
publishing_ strfrequency The frequency of notifications sent about subsequent finding occurrences.
- service_
role_ strarn The service-linked role that grants GuardDuty access to the resources in the AWS account.
- status str
The current status of the detector.
- id str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.