Skip to content

Resource: awsInspector2DelegatedAdminAccount

Terraform resource for managing an AWS Inspector V2 Delegated Admin Account.

Example Usage

Basic 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 dataAwsCallerIdentityCurrent =
  new aws.dataAwsCallerIdentity.DataAwsCallerIdentity(this, "current", {});
new aws.inspector2DelegatedAdminAccount.Inspector2DelegatedAdminAccount(
  this,
  "example",
  {
    accountId: dataAwsCallerIdentityCurrent.accountId,
  }
);

Argument Reference

The following arguments are required:

  • accountId - (Required) Account to enable as delegated admin account.

Attributes Reference

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

  • relationshipStatus - Status of this delegated admin account.

Timeouts

Configuration options:

  • create - (Default 15M)
  • delete - (Default 15M)

Import

Inspector V2 Delegated Admin Account can be imported using the accountId, e.g.,

$ terraform import aws_inspector2_delegated_admin_account.example 012345678901