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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
operations:
type: aws:account:AlternativeContact
properties:
alternateContactType: OPERATIONS
name: Example
title: Example
emailAddress: test@example.com
phoneNumber: '+1234567890'
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 string
- The unique name of the resource.
- args AlternativeContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AlternativeContactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlternativeContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var alternativeContactResource = new AlternativeContact("alternativeContactResource", AlternativeContactArgs.builder()
.alternateContactType("string")
.emailAddress("string")
.phoneNumber("string")
.title("string")
.accountId("string")
.name("string")
.build());
alternative_contact_resource = aws.account.AlternativeContact("alternativeContactResource",
alternate_contact_type="string",
email_address="string",
phone_number="string",
title="string",
account_id="string",
name="string")
const alternativeContactResource = new aws.account.AlternativeContact("alternativeContactResource", {
alternateContactType: "string",
emailAddress: "string",
phoneNumber: "string",
title: "string",
accountId: "string",
name: "string",
});
type: aws:account:AlternativeContact
properties:
accountId: string
alternateContactType: string
emailAddress: string
name: string
phoneNumber: string
title: string
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
The AlternativeContact resource accepts the following input properties:
- Alternate
Contact stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - Email
Address string - An email address for the alternate contact.
- Phone
Number string - Phone number for the alternate contact.
- Title string
- Title for the alternate contact.
- Account
Id 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 stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - Email
Address string - An email address for the alternate contact.
- Phone
Number string - Phone number for the alternate contact.
- Title string
- Title for the alternate contact.
- Account
Id 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 StringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address String - An email address for the alternate contact.
- phone
Number String - Phone number for the alternate contact.
- title String
- Title for the alternate contact.
- account
Id 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 stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address string - An email address for the alternate contact.
- phone
Number string - Phone number for the alternate contact.
- title string
- Title for the alternate contact.
- account
Id 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_ strtype - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email_
address str - An email address for the alternate contact.
- phone_
number str - Phone number for the alternate contact.
- title str
- Title for the alternate contact.
- account_
id 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.
- alternate
Contact StringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address String - An email address for the alternate contact.
- phone
Number String - Phone number for the alternate contact.
- title String
- Title for the alternate contact.
- account
Id 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Account
Id string - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- Alternate
Contact stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - Email
Address string - An email address for the alternate contact.
- Name string
- Name of the alternate contact.
- Phone
Number string - Phone number for the alternate contact.
- Title string
- Title for the alternate contact.
- Account
Id string - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- Alternate
Contact stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - Email
Address string - An email address for the alternate contact.
- Name string
- Name of the alternate contact.
- Phone
Number string - Phone number for the alternate contact.
- Title string
- Title for the alternate contact.
- account
Id String - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- alternate
Contact StringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address String - An email address for the alternate contact.
- name String
- Name of the alternate contact.
- phone
Number String - Phone number for the alternate contact.
- title String
- Title for the alternate contact.
- account
Id string - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- alternate
Contact stringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address string - An email address for the alternate contact.
- name string
- Name of the alternate contact.
- phone
Number string - Phone number for the alternate contact.
- title string
- Title for the alternate contact.
- account_
id str - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- alternate_
contact_ strtype - 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.
- account
Id String - ID of the target account when managing member accounts. Will manage current user's account by default if omitted.
- alternate
Contact StringType - Type of the alternate contact. Allowed values are:
BILLING
,OPERATIONS
,SECURITY
. - email
Address String - An email address for the alternate contact.
- name String
- Name of the alternate contact.
- phone
Number 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
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
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.