Show / Hide Table of Contents

Class InviteAccepter

Provides a resource to accept a pending GuardDuty invite on creation, ensure the detector has the correct master account on read, and disassociate with the master account upon removal.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var master = new Aws.GuardDuty.Detector("master", new Aws.GuardDuty.DetectorArgs
    {
    });
    var memberDetector = new Aws.GuardDuty.Detector("memberDetector", new Aws.GuardDuty.DetectorArgs
    {
    });
    var dev = new Aws.GuardDuty.Member("dev", new Aws.GuardDuty.MemberArgs
    {
        AccountId = memberDetector.AccountId,
        DetectorId = master.Id,
        Email = "required@example.com",
        Invite = true,
    });
    var memberInviteAccepter = new Aws.GuardDuty.InviteAccepter("memberInviteAccepter", new Aws.GuardDuty.InviteAccepterArgs
    {
        DetectorId = memberDetector.Id,
        MasterAccountId = master.AccountId,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
InviteAccepter
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.GuardDuty
Assembly: Pulumi.Aws.dll
Syntax
public class InviteAccepter : CustomResource

Constructors

View Source

InviteAccepter(String, InviteAccepterArgs, CustomResourceOptions)

Create a InviteAccepter resource with the given unique name, arguments, and options.

Declaration
public InviteAccepter(string name, InviteAccepterArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

InviteAccepterArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DetectorId

The detector ID of the member GuardDuty account.

Declaration
public Output<string> DetectorId { get; }
Property Value
Type Description
Output<System.String>
View Source

MasterAccountId

AWS account ID for master account.

Declaration
public Output<string> MasterAccountId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, InviteAccepterState, CustomResourceOptions)

Get an existing InviteAccepter resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static InviteAccepter Get(string name, Input<string> id, InviteAccepterState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

InviteAccepterState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
InviteAccepter
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.