PrimaryContactArgs

data class PrimaryContactArgs(val accountId: Output<String>? = null, val addressLine1: Output<String>? = null, val addressLine2: Output<String>? = null, val addressLine3: Output<String>? = null, val city: Output<String>? = null, val companyName: Output<String>? = null, val countryCode: Output<String>? = null, val districtOrCounty: Output<String>? = null, val fullName: Output<String>? = null, val phoneNumber: Output<String>? = null, val postalCode: Output<String>? = null, val stateOrRegion: Output<String>? = null, val websiteUrl: Output<String>? = null) : ConvertibleToJava<PrimaryContactArgs>

Manages the specified primary contact information associated with an AWS Account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.account.PrimaryContact("test", {
addressLine1: "123 Any Street",
city: "Seattle",
companyName: "Example Corp, Inc.",
countryCode: "US",
districtOrCounty: "King",
fullName: "My Name",
phoneNumber: "+64211111111",
postalCode: "98101",
stateOrRegion: "WA",
websiteUrl: "https://www.examplecorp.com",
});
import pulumi
import pulumi_aws as aws
test = aws.account.PrimaryContact("test",
address_line1="123 Any Street",
city="Seattle",
company_name="Example Corp, Inc.",
country_code="US",
district_or_county="King",
full_name="My Name",
phone_number="+64211111111",
postal_code="98101",
state_or_region="WA",
website_url="https://www.examplecorp.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Account.PrimaryContact("test", new()
{
AddressLine1 = "123 Any Street",
City = "Seattle",
CompanyName = "Example Corp, Inc.",
CountryCode = "US",
DistrictOrCounty = "King",
FullName = "My Name",
PhoneNumber = "+64211111111",
PostalCode = "98101",
StateOrRegion = "WA",
WebsiteUrl = "https://www.examplecorp.com",
});
});
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.NewPrimaryContact(ctx, "test", &account.PrimaryContactArgs{
AddressLine1: pulumi.String("123 Any Street"),
City: pulumi.String("Seattle"),
CompanyName: pulumi.String("Example Corp, Inc."),
CountryCode: pulumi.String("US"),
DistrictOrCounty: pulumi.String("King"),
FullName: pulumi.String("My Name"),
PhoneNumber: pulumi.String("+64211111111"),
PostalCode: pulumi.String("98101"),
StateOrRegion: pulumi.String("WA"),
WebsiteUrl: pulumi.String("https://www.examplecorp.com"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.account.PrimaryContact;
import com.pulumi.aws.account.PrimaryContactArgs;
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 test = new PrimaryContact("test", PrimaryContactArgs.builder()
.addressLine1("123 Any Street")
.city("Seattle")
.companyName("Example Corp, Inc.")
.countryCode("US")
.districtOrCounty("King")
.fullName("My Name")
.phoneNumber("+64211111111")
.postalCode("98101")
.stateOrRegion("WA")
.websiteUrl("https://www.examplecorp.com")
.build());
}
}
resources:
test:
type: aws:account:PrimaryContact
properties:
addressLine1: 123 Any Street
city: Seattle
companyName: Example Corp, Inc.
countryCode: US
districtOrCounty: King
fullName: My Name
phoneNumber: '+64211111111'
postalCode: '98101'
stateOrRegion: WA
websiteUrl: https://www.examplecorp.com

Import

Using pulumi import, import the Primary Contact using the account_id. For example:

$ pulumi import aws:account/primaryContact:PrimaryContact test 1234567890

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, addressLine1: Output<String>? = null, addressLine2: Output<String>? = null, addressLine3: Output<String>? = null, city: Output<String>? = null, companyName: Output<String>? = null, countryCode: Output<String>? = null, districtOrCounty: Output<String>? = null, fullName: Output<String>? = null, phoneNumber: Output<String>? = null, postalCode: Output<String>? = null, stateOrRegion: Output<String>? = null, websiteUrl: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The ID of the target account when managing member accounts. Will manage current user's account by default if omitted.

Link copied to clipboard
val addressLine1: Output<String>? = null

The first line of the primary contact address.

Link copied to clipboard
val addressLine2: Output<String>? = null

The second line of the primary contact address, if any.

Link copied to clipboard
val addressLine3: Output<String>? = null

The third line of the primary contact address, if any.

Link copied to clipboard
val city: Output<String>? = null

The city of the primary contact address.

Link copied to clipboard
val companyName: Output<String>? = null

The name of the company associated with the primary contact information, if any.

Link copied to clipboard
val countryCode: Output<String>? = null

The ISO-3166 two-letter country code for the primary contact address.

Link copied to clipboard
val districtOrCounty: Output<String>? = null

The district or county of the primary contact address, if any.

Link copied to clipboard
val fullName: Output<String>? = null

The full name of the primary contact address.

Link copied to clipboard
val phoneNumber: Output<String>? = null

The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.

Link copied to clipboard
val postalCode: Output<String>? = null

The postal code of the primary contact address.

Link copied to clipboard
val stateOrRegion: Output<String>? = null

The state or region of the primary contact address. This field is required in selected countries.

Link copied to clipboard
val websiteUrl: Output<String>? = null

The URL of the website associated with the primary contact information, if any.

Functions

Link copied to clipboard
open override fun toJava(): PrimaryContactArgs