Resource: awsMacie2InvitationAccepter
Provides a resource to manage an Amazon Macie Invitation Accepter.
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";
new aws.macie2Account.Macie2Account(this, "member", {});
const awsMacie2AccountPrimary = new aws.macie2Account.Macie2Account(
this,
"primary",
{
provider: "awsalternate",
}
);
const awsMacie2MemberPrimary = new aws.macie2Member.Macie2Member(
this,
"primary_2",
{
accountId: "ACCOUNT ID",
depends_on: [`\${${awsMacie2AccountPrimary.fqn}}`],
email: "EMAIL",
invitationMessage: "Message of the invite",
invite: true,
provider: "awsalternate",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsMacie2MemberPrimary.overrideLogicalId("primary");
const awsMacie2InvitationAccepterMember =
new aws.macie2InvitationAccepter.Macie2InvitationAccepter(this, "member_3", {
administratorAccountId: "ADMINISTRATOR ACCOUNT ID",
depends_on: [`\${${awsMacie2MemberPrimary.fqn}}`],
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsMacie2InvitationAccepterMember.overrideLogicalId("member");
Argument Reference
The following arguments are supported:
administratorAccountId
- (Required) The AWS account ID for the account that sent the invitation.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The unique identifier (ID) of the macie invitation accepter.invitationId
- The unique identifier for the invitation.
Import
awsMacie2InvitationAccepter
can be imported using the admin account ID, e.g.,