Alternative Contact Args
data class AlternativeContactArgs(val accountId: Output<String>? = null, val alternateContactType: Output<String>? = null, val emailAddress: Output<String>? = null, val name: Output<String>? = null, val phoneNumber: Output<String>? = null, val title: Output<String>? = null) : ConvertibleToJava<AlternativeContactArgs>
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",
});
Content copied to clipboard
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")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
operations:
type: aws:account:AlternativeContact
properties:
alternateContactType: OPERATIONS
name: Example
title: Example
emailAddress: test@example.com
phoneNumber: '+1234567890'
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard