1. Packages
  2. AWS
  3. API Docs
  4. account
  5. AlternativeContact
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.account.AlternativeContact

Explore with Pulumi AI

Manages the specified alternate contact attached to an AWS Account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const operations = new aws.account.AlternativeContact("operations", {
    alternateContactType: "OPERATIONS",
    name: "Example",
    title: "Example",
    emailAddress: "test@example.com",
    phoneNumber: "+1234567890",
});
Copy
import pulumi
import pulumi_aws as aws

operations = aws.account.AlternativeContact("operations",
    alternate_contact_type="OPERATIONS",
    name="Example",
    title="Example",
    email_address="test@example.com",
    phone_number="+1234567890")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/account"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := account.NewAlternativeContact(ctx, "operations", &account.AlternativeContactArgs{
			AlternateContactType: pulumi.String("OPERATIONS"),
			Name:                 pulumi.String("Example"),
			Title:                pulumi.String("Example"),
			EmailAddress:         pulumi.String("test@example.com"),
			PhoneNumber:          pulumi.String("+1234567890"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var operations = new Aws.Account.AlternativeContact("operations", new()
    {
        AlternateContactType = "OPERATIONS",
        Name = "Example",
        Title = "Example",
        EmailAddress = "test@example.com",
        PhoneNumber = "+1234567890",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.account.AlternativeContact;
import com.pulumi.aws.account.AlternativeContactArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var operations = new AlternativeContact("operations", AlternativeContactArgs.builder()
            .alternateContactType("OPERATIONS")
            .name("Example")
            .title("Example")
            .emailAddress("test@example.com")
            .phoneNumber("+1234567890")
            .build());

    }
}
Copy
resources:
  operations:
    type: aws:account:AlternativeContact
    properties:
      alternateContactType: OPERATIONS
      name: Example
      title: Example
      emailAddress: test@example.com
      phoneNumber: '+1234567890'
Copy

Create AlternativeContact Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AlternativeContact(name: string, args: AlternativeContactArgs, opts?: CustomResourceOptions);
@overload
def AlternativeContact(resource_name: str,
                       args: AlternativeContactArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def AlternativeContact(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       alternate_contact_type: Optional[str] = None,
                       email_address: Optional[str] = None,
                       phone_number: Optional[str] = None,
                       title: Optional[str] = None,
                       account_id: Optional[str] = None,
                       name: Optional[str] = None)
func NewAlternativeContact(ctx *Context, name string, args AlternativeContactArgs, opts ...ResourceOption) (*AlternativeContact, error)
public AlternativeContact(string name, AlternativeContactArgs args, CustomResourceOptions? opts = null)
public AlternativeContact(String name, AlternativeContactArgs args)
public AlternativeContact(String name, AlternativeContactArgs args, CustomResourceOptions options)
type: aws:account:AlternativeContact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AlternativeContactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AlternativeContactArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AlternativeContactArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AlternativeContactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AlternativeContactArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var alternativeContactResource = new Aws.Account.AlternativeContact("alternativeContactResource", new()
{
    AlternateContactType = "string",
    EmailAddress = "string",
    PhoneNumber = "string",
    Title = "string",
    AccountId = "string",
    Name = "string",
});
Copy
example, err := account.NewAlternativeContact(ctx, "alternativeContactResource", &account.AlternativeContactArgs{
	AlternateContactType: pulumi.String("string"),
	EmailAddress:         pulumi.String("string"),
	PhoneNumber:          pulumi.String("string"),
	Title:                pulumi.String("string"),
	AccountId:            pulumi.String("string"),
	Name:                 pulumi.String("string"),
})
Copy
var alternativeContactResource = new AlternativeContact("alternativeContactResource", AlternativeContactArgs.builder()
    .alternateContactType("string")
    .emailAddress("string")
    .phoneNumber("string")
    .title("string")
    .accountId("string")
    .name("string")
    .build());
Copy
alternative_contact_resource = aws.account.AlternativeContact("alternativeContactResource",
    alternate_contact_type="string",
    email_address="string",
    phone_number="string",
    title="string",
    account_id="string",
    name="string")
Copy
const alternativeContactResource = new aws.account.AlternativeContact("alternativeContactResource", {
    alternateContactType: "string",
    emailAddress: "string",
    phoneNumber: "string",
    title: "string",
    accountId: "string",
    name: "string",
});
Copy
type: aws:account:AlternativeContact
properties:
    accountId: string
    alternateContactType: string
    emailAddress: string
    name: string
    phoneNumber: string
    title: string
Copy

AlternativeContact Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AlternativeContact resource accepts the following input properties:

AlternateContactType
This property is required.
Changes to this property will trigger replacement.
string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
EmailAddress This property is required. string
An email address for the alternate contact.
PhoneNumber This property is required. string
Phone number for the alternate contact.
Title This property is required. string
Title for the alternate contact.
AccountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
Name string
Name of the alternate contact.
AlternateContactType
This property is required.
Changes to this property will trigger replacement.
string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
EmailAddress This property is required. string
An email address for the alternate contact.
PhoneNumber This property is required. string
Phone number for the alternate contact.
Title This property is required. string
Title for the alternate contact.
AccountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
Name string
Name of the alternate contact.
alternateContactType
This property is required.
Changes to this property will trigger replacement.
String
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress This property is required. String
An email address for the alternate contact.
phoneNumber This property is required. String
Phone number for the alternate contact.
title This property is required. String
Title for the alternate contact.
accountId Changes to this property will trigger replacement. String
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
name String
Name of the alternate contact.
alternateContactType
This property is required.
Changes to this property will trigger replacement.
string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress This property is required. string
An email address for the alternate contact.
phoneNumber This property is required. string
Phone number for the alternate contact.
title This property is required. string
Title for the alternate contact.
accountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
name string
Name of the alternate contact.
alternate_contact_type
This property is required.
Changes to this property will trigger replacement.
str
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
email_address This property is required. str
An email address for the alternate contact.
phone_number This property is required. str
Phone number for the alternate contact.
title This property is required. str
Title for the alternate contact.
account_id Changes to this property will trigger replacement. str
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
name str
Name of the alternate contact.
alternateContactType
This property is required.
Changes to this property will trigger replacement.
String
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress This property is required. String
An email address for the alternate contact.
phoneNumber This property is required. String
Phone number for the alternate contact.
title This property is required. String
Title for the alternate contact.
accountId Changes to this property will trigger replacement. String
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
name String
Name of the alternate contact.

Outputs

All input properties are implicitly available as output properties. Additionally, the AlternativeContact resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AlternativeContact Resource

Get an existing AlternativeContact resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AlternativeContactState, opts?: CustomResourceOptions): AlternativeContact
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        alternate_contact_type: Optional[str] = None,
        email_address: Optional[str] = None,
        name: Optional[str] = None,
        phone_number: Optional[str] = None,
        title: Optional[str] = None) -> AlternativeContact
func GetAlternativeContact(ctx *Context, name string, id IDInput, state *AlternativeContactState, opts ...ResourceOption) (*AlternativeContact, error)
public static AlternativeContact Get(string name, Input<string> id, AlternativeContactState? state, CustomResourceOptions? opts = null)
public static AlternativeContact get(String name, Output<String> id, AlternativeContactState state, CustomResourceOptions options)
resources:  _:    type: aws:account:AlternativeContact    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
AlternateContactType Changes to this property will trigger replacement. string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
EmailAddress string
An email address for the alternate contact.
Name string
Name of the alternate contact.
PhoneNumber string
Phone number for the alternate contact.
Title string
Title for the alternate contact.
AccountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
AlternateContactType Changes to this property will trigger replacement. string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
EmailAddress string
An email address for the alternate contact.
Name string
Name of the alternate contact.
PhoneNumber string
Phone number for the alternate contact.
Title string
Title for the alternate contact.
accountId Changes to this property will trigger replacement. String
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
alternateContactType Changes to this property will trigger replacement. String
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress String
An email address for the alternate contact.
name String
Name of the alternate contact.
phoneNumber String
Phone number for the alternate contact.
title String
Title for the alternate contact.
accountId Changes to this property will trigger replacement. string
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
alternateContactType Changes to this property will trigger replacement. string
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress string
An email address for the alternate contact.
name string
Name of the alternate contact.
phoneNumber string
Phone number for the alternate contact.
title string
Title for the alternate contact.
account_id Changes to this property will trigger replacement. str
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
alternate_contact_type Changes to this property will trigger replacement. str
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
email_address str
An email address for the alternate contact.
name str
Name of the alternate contact.
phone_number str
Phone number for the alternate contact.
title str
Title for the alternate contact.
accountId Changes to this property will trigger replacement. String
ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
alternateContactType Changes to this property will trigger replacement. String
Type of the alternate contact. Allowed values are: BILLING, OPERATIONS, SECURITY.
emailAddress String
An email address for the alternate contact.
name String
Name of the alternate contact.
phoneNumber String
Phone number for the alternate contact.
title String
Title for the alternate contact.

Import

Import the Alternate Contact for another account using the account_id and alternate_contact_type separated by a forward slash (/):

Using pulumi import to import the Alternate Contact for the current or another account using the alternate_contact_type. For example:

Import the Alternate Contact for the current account:

$ pulumi import aws:account/alternativeContact:AlternativeContact operations OPERATIONS
Copy

Import the Alternate Contact for another account using the account_id and alternate_contact_type separated by a forward slash (/):

$ pulumi import aws:account/alternativeContact:AlternativeContact operations 1234567890/OPERATIONS
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.