Skip to content

Resource: awsDetectiveInvitationAccepter

Provides a resource to manage an Amazon Detective Invitation Accepter. Ensure that the accepter is configured to use the AWS account you wish to accept the invitation from the primary graph owner account.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsDetectiveGraphPrimary = new aws.detectiveGraph.DetectiveGraph(
  this,
  "primary",
  {}
);
const awsDetectiveMemberPrimary = new aws.detectiveMember.DetectiveMember(
  this,
  "primary_1",
  {
    accountId: "ACCOUNT ID",
    emailAddress: "EMAIL",
    graphArn: awsDetectiveGraphPrimary.id,
    message: "Message of the invite",
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsDetectiveMemberPrimary.overrideLogicalId("primary");
new aws.detectiveInvitationAccepter.DetectiveInvitationAccepter(
  this,
  "member",
  {
    depends_on: [`\${${awsDetectiveMemberPrimary.fqn}}`],
    graphArn: awsDetectiveGraphPrimary.graphArn,
    provider: "awsalternate",
  }
);

Argument Reference

The following arguments are supported:

  • graphArn - (Required) ARN of the behavior graph that the member account is accepting the invitation for.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Unique identifier (ID) of the Detective invitation accepter.

Import

awsDetectiveInvitationAccepter can be imported using the graph ARN, e.g.

$ terraform import aws_detective_invitation_accepter.example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d