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
create
- (Default15M
)delete
- (Default15M
)
Import
Inspector V2 Delegated Admin Account can be imported using the accountId
, e.g.,