Skip to content

Resource: awsAccountAlternateContact

Manages the specified alternate contact attached to an AWS 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";
new aws.accountAlternateContact.AccountAlternateContact(this, "operations", {
  alternateContactType: "OPERATIONS",
  emailAddress: "test@example.com",
  name: "Example",
  phoneNumber: "+1234567890",
  title: "Example",
});

Argument Reference

The following arguments are supported:

  • accountId - (Optional) ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
  • alternateContactType - (Required) Type of the alternate contact. Allowed values are: billing, operations, security.
  • emailAddress - (Required) An email address for the alternate contact.
  • name - (Required) Name of the alternate contact.
  • phoneNumber - (Required) Phone number for the alternate contact.
  • title - (Required) Title for the alternate contact.

Attributes Reference

No additional attributes are exported.

Timeouts

Configuration options:

  • create - (Default 5M)
  • update - (Default 5M)
  • delete - (Default 5M)

Import

The Alternate Contact for the current account can be imported using the alternateContactType, e.g.,

$ terraform import aws_account_alternate_contact.operations OPERATIONS

If you provide an account ID, the Alternate Contact can be imported using the accountId and alternateContactType separated by a forward slash (/) e.g.,

$ terraform import aws_account_alternate_contact.operations 1234567890/OPERATIONS