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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.GuardDuty
Assembly: Pulumi.Aws.dll
Syntax
public class InviteAccepter : CustomResource
Constructors
View SourceInviteAccepter(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 SourceDetectorId
The detector ID of the member GuardDuty account.
Declaration
public Output<string> DetectorId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MasterAccountId
AWS account ID for master account.
Declaration
public Output<string> MasterAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |