aws.customerprofiles.Profile
Explore with Pulumi AI
Resource for managing an Amazon Customer Profiles Profile. See the Create Profile for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.customerprofiles.Domain("example", {domainName: "example"});
const exampleProfile = new aws.customerprofiles.Profile("example", {domainName: example.domainName});
import pulumi
import pulumi_aws as aws
example = aws.customerprofiles.Domain("example", domain_name="example")
example_profile = aws.customerprofiles.Profile("example", domain_name=example.domain_name)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/customerprofiles"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := customerprofiles.NewDomain(ctx, "example", &customerprofiles.DomainArgs{
DomainName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = customerprofiles.NewProfile(ctx, "example", &customerprofiles.ProfileArgs{
DomainName: example.DomainName,
})
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 example = new Aws.CustomerProfiles.Domain("example", new()
{
DomainName = "example",
});
var exampleProfile = new Aws.CustomerProfiles.Profile("example", new()
{
DomainName = example.DomainName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.customerprofiles.Domain;
import com.pulumi.aws.customerprofiles.DomainArgs;
import com.pulumi.aws.customerprofiles.Profile;
import com.pulumi.aws.customerprofiles.ProfileArgs;
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 example = new Domain("example", DomainArgs.builder()
.domainName("example")
.build());
var exampleProfile = new Profile("exampleProfile", ProfileArgs.builder()
.domainName(example.domainName())
.build());
}
}
resources:
example:
type: aws:customerprofiles:Domain
properties:
domainName: example
exampleProfile:
type: aws:customerprofiles:Profile
name: example
properties:
domainName: ${example.domainName}
Create Profile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Profile(name: string, args: ProfileArgs, opts?: CustomResourceOptions);
@overload
def Profile(resource_name: str,
args: ProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Profile(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
email_address: Optional[str] = None,
birth_date: Optional[str] = None,
first_name: Optional[str] = None,
home_phone_number: Optional[str] = None,
gender_string: Optional[str] = None,
business_email_address: Optional[str] = None,
business_name: Optional[str] = None,
business_phone_number: Optional[str] = None,
additional_information: Optional[str] = None,
account_number: Optional[str] = None,
attributes: Optional[Mapping[str, str]] = None,
address: Optional[ProfileAddressArgs] = None,
billing_address: Optional[ProfileBillingAddressArgs] = None,
last_name: Optional[str] = None,
mailing_address: Optional[ProfileMailingAddressArgs] = None,
middle_name: Optional[str] = None,
mobile_phone_number: Optional[str] = None,
party_type_string: Optional[str] = None,
personal_email_address: Optional[str] = None,
phone_number: Optional[str] = None,
shipping_address: Optional[ProfileShippingAddressArgs] = None)
func NewProfile(ctx *Context, name string, args ProfileArgs, opts ...ResourceOption) (*Profile, error)
public Profile(string name, ProfileArgs args, CustomResourceOptions? opts = null)
public Profile(String name, ProfileArgs args)
public Profile(String name, ProfileArgs args, CustomResourceOptions options)
type: aws:customerprofiles:Profile
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 ProfileArgs
- 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 ProfileArgs
- 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 ProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProfileArgs
- 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 profileResource = new Aws.CustomerProfiles.Profile("profileResource", new()
{
DomainName = "string",
EmailAddress = "string",
BirthDate = "string",
FirstName = "string",
HomePhoneNumber = "string",
GenderString = "string",
BusinessEmailAddress = "string",
BusinessName = "string",
BusinessPhoneNumber = "string",
AdditionalInformation = "string",
AccountNumber = "string",
Attributes =
{
{ "string", "string" },
},
Address = new Aws.CustomerProfiles.Inputs.ProfileAddressArgs
{
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
Country = "string",
County = "string",
PostalCode = "string",
Province = "string",
State = "string",
},
BillingAddress = new Aws.CustomerProfiles.Inputs.ProfileBillingAddressArgs
{
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
Country = "string",
County = "string",
PostalCode = "string",
Province = "string",
State = "string",
},
LastName = "string",
MailingAddress = new Aws.CustomerProfiles.Inputs.ProfileMailingAddressArgs
{
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
Country = "string",
County = "string",
PostalCode = "string",
Province = "string",
State = "string",
},
MiddleName = "string",
MobilePhoneNumber = "string",
PartyTypeString = "string",
PersonalEmailAddress = "string",
PhoneNumber = "string",
ShippingAddress = new Aws.CustomerProfiles.Inputs.ProfileShippingAddressArgs
{
Address1 = "string",
Address2 = "string",
Address3 = "string",
Address4 = "string",
City = "string",
Country = "string",
County = "string",
PostalCode = "string",
Province = "string",
State = "string",
},
});
example, err := customerprofiles.NewProfile(ctx, "profileResource", &customerprofiles.ProfileArgs{
DomainName: pulumi.String("string"),
EmailAddress: pulumi.String("string"),
BirthDate: pulumi.String("string"),
FirstName: pulumi.String("string"),
HomePhoneNumber: pulumi.String("string"),
GenderString: pulumi.String("string"),
BusinessEmailAddress: pulumi.String("string"),
BusinessName: pulumi.String("string"),
BusinessPhoneNumber: pulumi.String("string"),
AdditionalInformation: pulumi.String("string"),
AccountNumber: pulumi.String("string"),
Attributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
Address: &customerprofiles.ProfileAddressArgs{
Address1: pulumi.String("string"),
Address2: pulumi.String("string"),
Address3: pulumi.String("string"),
Address4: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
County: pulumi.String("string"),
PostalCode: pulumi.String("string"),
Province: pulumi.String("string"),
State: pulumi.String("string"),
},
BillingAddress: &customerprofiles.ProfileBillingAddressArgs{
Address1: pulumi.String("string"),
Address2: pulumi.String("string"),
Address3: pulumi.String("string"),
Address4: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
County: pulumi.String("string"),
PostalCode: pulumi.String("string"),
Province: pulumi.String("string"),
State: pulumi.String("string"),
},
LastName: pulumi.String("string"),
MailingAddress: &customerprofiles.ProfileMailingAddressArgs{
Address1: pulumi.String("string"),
Address2: pulumi.String("string"),
Address3: pulumi.String("string"),
Address4: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
County: pulumi.String("string"),
PostalCode: pulumi.String("string"),
Province: pulumi.String("string"),
State: pulumi.String("string"),
},
MiddleName: pulumi.String("string"),
MobilePhoneNumber: pulumi.String("string"),
PartyTypeString: pulumi.String("string"),
PersonalEmailAddress: pulumi.String("string"),
PhoneNumber: pulumi.String("string"),
ShippingAddress: &customerprofiles.ProfileShippingAddressArgs{
Address1: pulumi.String("string"),
Address2: pulumi.String("string"),
Address3: pulumi.String("string"),
Address4: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
County: pulumi.String("string"),
PostalCode: pulumi.String("string"),
Province: pulumi.String("string"),
State: pulumi.String("string"),
},
})
var profileResource = new Profile("profileResource", ProfileArgs.builder()
.domainName("string")
.emailAddress("string")
.birthDate("string")
.firstName("string")
.homePhoneNumber("string")
.genderString("string")
.businessEmailAddress("string")
.businessName("string")
.businessPhoneNumber("string")
.additionalInformation("string")
.accountNumber("string")
.attributes(Map.of("string", "string"))
.address(ProfileAddressArgs.builder()
.address1("string")
.address2("string")
.address3("string")
.address4("string")
.city("string")
.country("string")
.county("string")
.postalCode("string")
.province("string")
.state("string")
.build())
.billingAddress(ProfileBillingAddressArgs.builder()
.address1("string")
.address2("string")
.address3("string")
.address4("string")
.city("string")
.country("string")
.county("string")
.postalCode("string")
.province("string")
.state("string")
.build())
.lastName("string")
.mailingAddress(ProfileMailingAddressArgs.builder()
.address1("string")
.address2("string")
.address3("string")
.address4("string")
.city("string")
.country("string")
.county("string")
.postalCode("string")
.province("string")
.state("string")
.build())
.middleName("string")
.mobilePhoneNumber("string")
.partyTypeString("string")
.personalEmailAddress("string")
.phoneNumber("string")
.shippingAddress(ProfileShippingAddressArgs.builder()
.address1("string")
.address2("string")
.address3("string")
.address4("string")
.city("string")
.country("string")
.county("string")
.postalCode("string")
.province("string")
.state("string")
.build())
.build());
profile_resource = aws.customerprofiles.Profile("profileResource",
domain_name="string",
email_address="string",
birth_date="string",
first_name="string",
home_phone_number="string",
gender_string="string",
business_email_address="string",
business_name="string",
business_phone_number="string",
additional_information="string",
account_number="string",
attributes={
"string": "string",
},
address={
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"province": "string",
"state": "string",
},
billing_address={
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"province": "string",
"state": "string",
},
last_name="string",
mailing_address={
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"province": "string",
"state": "string",
},
middle_name="string",
mobile_phone_number="string",
party_type_string="string",
personal_email_address="string",
phone_number="string",
shipping_address={
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"province": "string",
"state": "string",
})
const profileResource = new aws.customerprofiles.Profile("profileResource", {
domainName: "string",
emailAddress: "string",
birthDate: "string",
firstName: "string",
homePhoneNumber: "string",
genderString: "string",
businessEmailAddress: "string",
businessName: "string",
businessPhoneNumber: "string",
additionalInformation: "string",
accountNumber: "string",
attributes: {
string: "string",
},
address: {
address1: "string",
address2: "string",
address3: "string",
address4: "string",
city: "string",
country: "string",
county: "string",
postalCode: "string",
province: "string",
state: "string",
},
billingAddress: {
address1: "string",
address2: "string",
address3: "string",
address4: "string",
city: "string",
country: "string",
county: "string",
postalCode: "string",
province: "string",
state: "string",
},
lastName: "string",
mailingAddress: {
address1: "string",
address2: "string",
address3: "string",
address4: "string",
city: "string",
country: "string",
county: "string",
postalCode: "string",
province: "string",
state: "string",
},
middleName: "string",
mobilePhoneNumber: "string",
partyTypeString: "string",
personalEmailAddress: "string",
phoneNumber: "string",
shippingAddress: {
address1: "string",
address2: "string",
address3: "string",
address4: "string",
city: "string",
country: "string",
county: "string",
postalCode: "string",
province: "string",
state: "string",
},
});
type: aws:customerprofiles:Profile
properties:
accountNumber: string
additionalInformation: string
address:
address1: string
address2: string
address3: string
address4: string
city: string
country: string
county: string
postalCode: string
province: string
state: string
attributes:
string: string
billingAddress:
address1: string
address2: string
address3: string
address4: string
city: string
country: string
county: string
postalCode: string
province: string
state: string
birthDate: string
businessEmailAddress: string
businessName: string
businessPhoneNumber: string
domainName: string
emailAddress: string
firstName: string
genderString: string
homePhoneNumber: string
lastName: string
mailingAddress:
address1: string
address2: string
address3: string
address4: string
city: string
country: string
county: string
postalCode: string
province: string
state: string
middleName: string
mobilePhoneNumber: string
partyTypeString: string
personalEmailAddress: string
phoneNumber: string
shippingAddress:
address1: string
address2: string
address3: string
address4: string
city: string
country: string
county: string
postalCode: string
province: string
state: string
Profile 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 Profile resource accepts the following input properties:
- Domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- Account
Number string - A unique account number that you have given to the customer.
- Additional
Information string - Any additional information relevant to the customer’s profile.
- Address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- Attributes Dictionary<string, string>
- A key value pair of attributes of a customer profile.
- Billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- Birth
Date string - The customer’s birth date.
- Business
Email stringAddress - The customer’s business email address.
- Business
Name string - The name of the customer’s business.
- Business
Phone stringNumber - The customer’s business phone number.
- Email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- First
Name string - The customer’s first name.
- Gender
String string - The gender with which the customer identifies.
- Home
Phone stringNumber - The customer’s home phone number.
- Last
Name string - The customer’s last name.
- Mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- Middle
Name string - The customer’s middle name.
- Mobile
Phone stringNumber - The customer’s mobile phone number.
- Party
Type stringString - The type of profile used to describe the customer.
- Personal
Email stringAddress - The customer’s personal email address.
- Phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- Shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- Domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- Account
Number string - A unique account number that you have given to the customer.
- Additional
Information string - Any additional information relevant to the customer’s profile.
- Address
Profile
Address Args - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- Attributes map[string]string
- A key value pair of attributes of a customer profile.
- Billing
Address ProfileBilling Address Args - A block that specifies the customer’s billing address. Documented below.
- Birth
Date string - The customer’s birth date.
- Business
Email stringAddress - The customer’s business email address.
- Business
Name string - The name of the customer’s business.
- Business
Phone stringNumber - The customer’s business phone number.
- Email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- First
Name string - The customer’s first name.
- Gender
String string - The gender with which the customer identifies.
- Home
Phone stringNumber - The customer’s home phone number.
- Last
Name string - The customer’s last name.
- Mailing
Address ProfileMailing Address Args - A block that specifies the customer’s mailing address. Documented below.
- Middle
Name string - The customer’s middle name.
- Mobile
Phone stringNumber - The customer’s mobile phone number.
- Party
Type stringString - The type of profile used to describe the customer.
- Personal
Email stringAddress - The customer’s personal email address.
- Phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- Shipping
Address ProfileShipping Address Args - A block that specifies the customer’s shipping address. Documented below.
- domain
Name String The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- account
Number String - A unique account number that you have given to the customer.
- additional
Information String - Any additional information relevant to the customer’s profile.
- address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Map<String,String>
- A key value pair of attributes of a customer profile.
- billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- birth
Date String - The customer’s birth date.
- business
Email StringAddress - The customer’s business email address.
- business
Name String - The name of the customer’s business.
- business
Phone StringNumber - The customer’s business phone number.
- email
Address String - The customer’s email address, which has not been specified as a personal or business address.
- first
Name String - The customer’s first name.
- gender
String String - The gender with which the customer identifies.
- home
Phone StringNumber - The customer’s home phone number.
- last
Name String - The customer’s last name.
- mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- middle
Name String - The customer’s middle name.
- mobile
Phone StringNumber - The customer’s mobile phone number.
- party
Type StringString - The type of profile used to describe the customer.
- personal
Email StringAddress - The customer’s personal email address.
- phone
Number String - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- account
Number string - A unique account number that you have given to the customer.
- additional
Information string - Any additional information relevant to the customer’s profile.
- address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes {[key: string]: string}
- A key value pair of attributes of a customer profile.
- billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- birth
Date string - The customer’s birth date.
- business
Email stringAddress - The customer’s business email address.
- business
Name string - The name of the customer’s business.
- business
Phone stringNumber - The customer’s business phone number.
- email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- first
Name string - The customer’s first name.
- gender
String string - The gender with which the customer identifies.
- home
Phone stringNumber - The customer’s home phone number.
- last
Name string - The customer’s last name.
- mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- middle
Name string - The customer’s middle name.
- mobile
Phone stringNumber - The customer’s mobile phone number.
- party
Type stringString - The type of profile used to describe the customer.
- personal
Email stringAddress - The customer’s personal email address.
- phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- domain_
name str The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- account_
number str - A unique account number that you have given to the customer.
- additional_
information str - Any additional information relevant to the customer’s profile.
- address
Profile
Address Args - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Mapping[str, str]
- A key value pair of attributes of a customer profile.
- billing_
address ProfileBilling Address Args - A block that specifies the customer’s billing address. Documented below.
- birth_
date str - The customer’s birth date.
- business_
email_ straddress - The customer’s business email address.
- business_
name str - The name of the customer’s business.
- business_
phone_ strnumber - The customer’s business phone number.
- email_
address str - The customer’s email address, which has not been specified as a personal or business address.
- first_
name str - The customer’s first name.
- gender_
string str - The gender with which the customer identifies.
- home_
phone_ strnumber - The customer’s home phone number.
- last_
name str - The customer’s last name.
- mailing_
address ProfileMailing Address Args - A block that specifies the customer’s mailing address. Documented below.
- middle_
name str - The customer’s middle name.
- mobile_
phone_ strnumber - The customer’s mobile phone number.
- party_
type_ strstring - The type of profile used to describe the customer.
- personal_
email_ straddress - The customer’s personal email address.
- phone_
number str - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping_
address ProfileShipping Address Args - A block that specifies the customer’s shipping address. Documented below.
- domain
Name String The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- account
Number String - A unique account number that you have given to the customer.
- additional
Information String - Any additional information relevant to the customer’s profile.
- address Property Map
- A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Map<String>
- A key value pair of attributes of a customer profile.
- billing
Address Property Map - A block that specifies the customer’s billing address. Documented below.
- birth
Date String - The customer’s birth date.
- business
Email StringAddress - The customer’s business email address.
- business
Name String - The name of the customer’s business.
- business
Phone StringNumber - The customer’s business phone number.
- email
Address String - The customer’s email address, which has not been specified as a personal or business address.
- first
Name String - The customer’s first name.
- gender
String String - The gender with which the customer identifies.
- home
Phone StringNumber - The customer’s home phone number.
- last
Name String - The customer’s last name.
- mailing
Address Property Map - A block that specifies the customer’s mailing address. Documented below.
- middle
Name String - The customer’s middle name.
- mobile
Phone StringNumber - The customer’s mobile phone number.
- party
Type StringString - The type of profile used to describe the customer.
- personal
Email StringAddress - The customer’s personal email address.
- phone
Number String - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address Property Map - A block that specifies the customer’s shipping address. Documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Profile 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 Profile Resource
Get an existing Profile 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?: ProfileState, opts?: CustomResourceOptions): Profile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_number: Optional[str] = None,
additional_information: Optional[str] = None,
address: Optional[ProfileAddressArgs] = None,
attributes: Optional[Mapping[str, str]] = None,
billing_address: Optional[ProfileBillingAddressArgs] = None,
birth_date: Optional[str] = None,
business_email_address: Optional[str] = None,
business_name: Optional[str] = None,
business_phone_number: Optional[str] = None,
domain_name: Optional[str] = None,
email_address: Optional[str] = None,
first_name: Optional[str] = None,
gender_string: Optional[str] = None,
home_phone_number: Optional[str] = None,
last_name: Optional[str] = None,
mailing_address: Optional[ProfileMailingAddressArgs] = None,
middle_name: Optional[str] = None,
mobile_phone_number: Optional[str] = None,
party_type_string: Optional[str] = None,
personal_email_address: Optional[str] = None,
phone_number: Optional[str] = None,
shipping_address: Optional[ProfileShippingAddressArgs] = None) -> Profile
func GetProfile(ctx *Context, name string, id IDInput, state *ProfileState, opts ...ResourceOption) (*Profile, error)
public static Profile Get(string name, Input<string> id, ProfileState? state, CustomResourceOptions? opts = null)
public static Profile get(String name, Output<String> id, ProfileState 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
Number string - A unique account number that you have given to the customer.
- Additional
Information string - Any additional information relevant to the customer’s profile.
- Address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- Attributes Dictionary<string, string>
- A key value pair of attributes of a customer profile.
- Billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- Birth
Date string - The customer’s birth date.
- Business
Email stringAddress - The customer’s business email address.
- Business
Name string - The name of the customer’s business.
- Business
Phone stringNumber - The customer’s business phone number.
- Domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- Email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- First
Name string - The customer’s first name.
- Gender
String string - The gender with which the customer identifies.
- Home
Phone stringNumber - The customer’s home phone number.
- Last
Name string - The customer’s last name.
- Mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- Middle
Name string - The customer’s middle name.
- Mobile
Phone stringNumber - The customer’s mobile phone number.
- Party
Type stringString - The type of profile used to describe the customer.
- Personal
Email stringAddress - The customer’s personal email address.
- Phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- Shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- Account
Number string - A unique account number that you have given to the customer.
- Additional
Information string - Any additional information relevant to the customer’s profile.
- Address
Profile
Address Args - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- Attributes map[string]string
- A key value pair of attributes of a customer profile.
- Billing
Address ProfileBilling Address Args - A block that specifies the customer’s billing address. Documented below.
- Birth
Date string - The customer’s birth date.
- Business
Email stringAddress - The customer’s business email address.
- Business
Name string - The name of the customer’s business.
- Business
Phone stringNumber - The customer’s business phone number.
- Domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- Email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- First
Name string - The customer’s first name.
- Gender
String string - The gender with which the customer identifies.
- Home
Phone stringNumber - The customer’s home phone number.
- Last
Name string - The customer’s last name.
- Mailing
Address ProfileMailing Address Args - A block that specifies the customer’s mailing address. Documented below.
- Middle
Name string - The customer’s middle name.
- Mobile
Phone stringNumber - The customer’s mobile phone number.
- Party
Type stringString - The type of profile used to describe the customer.
- Personal
Email stringAddress - The customer’s personal email address.
- Phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- Shipping
Address ProfileShipping Address Args - A block that specifies the customer’s shipping address. Documented below.
- account
Number String - A unique account number that you have given to the customer.
- additional
Information String - Any additional information relevant to the customer’s profile.
- address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Map<String,String>
- A key value pair of attributes of a customer profile.
- billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- birth
Date String - The customer’s birth date.
- business
Email StringAddress - The customer’s business email address.
- business
Name String - The name of the customer’s business.
- business
Phone StringNumber - The customer’s business phone number.
- domain
Name String The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- email
Address String - The customer’s email address, which has not been specified as a personal or business address.
- first
Name String - The customer’s first name.
- gender
String String - The gender with which the customer identifies.
- home
Phone StringNumber - The customer’s home phone number.
- last
Name String - The customer’s last name.
- mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- middle
Name String - The customer’s middle name.
- mobile
Phone StringNumber - The customer’s mobile phone number.
- party
Type StringString - The type of profile used to describe the customer.
- personal
Email StringAddress - The customer’s personal email address.
- phone
Number String - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- account
Number string - A unique account number that you have given to the customer.
- additional
Information string - Any additional information relevant to the customer’s profile.
- address
Profile
Address - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes {[key: string]: string}
- A key value pair of attributes of a customer profile.
- billing
Address ProfileBilling Address - A block that specifies the customer’s billing address. Documented below.
- birth
Date string - The customer’s birth date.
- business
Email stringAddress - The customer’s business email address.
- business
Name string - The name of the customer’s business.
- business
Phone stringNumber - The customer’s business phone number.
- domain
Name string The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- email
Address string - The customer’s email address, which has not been specified as a personal or business address.
- first
Name string - The customer’s first name.
- gender
String string - The gender with which the customer identifies.
- home
Phone stringNumber - The customer’s home phone number.
- last
Name string - The customer’s last name.
- mailing
Address ProfileMailing Address - A block that specifies the customer’s mailing address. Documented below.
- middle
Name string - The customer’s middle name.
- mobile
Phone stringNumber - The customer’s mobile phone number.
- party
Type stringString - The type of profile used to describe the customer.
- personal
Email stringAddress - The customer’s personal email address.
- phone
Number string - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address ProfileShipping Address - A block that specifies the customer’s shipping address. Documented below.
- account_
number str - A unique account number that you have given to the customer.
- additional_
information str - Any additional information relevant to the customer’s profile.
- address
Profile
Address Args - A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Mapping[str, str]
- A key value pair of attributes of a customer profile.
- billing_
address ProfileBilling Address Args - A block that specifies the customer’s billing address. Documented below.
- birth_
date str - The customer’s birth date.
- business_
email_ straddress - The customer’s business email address.
- business_
name str - The name of the customer’s business.
- business_
phone_ strnumber - The customer’s business phone number.
- domain_
name str The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- email_
address str - The customer’s email address, which has not been specified as a personal or business address.
- first_
name str - The customer’s first name.
- gender_
string str - The gender with which the customer identifies.
- home_
phone_ strnumber - The customer’s home phone number.
- last_
name str - The customer’s last name.
- mailing_
address ProfileMailing Address Args - A block that specifies the customer’s mailing address. Documented below.
- middle_
name str - The customer’s middle name.
- mobile_
phone_ strnumber - The customer’s mobile phone number.
- party_
type_ strstring - The type of profile used to describe the customer.
- personal_
email_ straddress - The customer’s personal email address.
- phone_
number str - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping_
address ProfileShipping Address Args - A block that specifies the customer’s shipping address. Documented below.
- account
Number String - A unique account number that you have given to the customer.
- additional
Information String - Any additional information relevant to the customer’s profile.
- address Property Map
- A block that specifies a generic address associated with the customer that is not mailing, shipping, or billing. Documented below.
- attributes Map<String>
- A key value pair of attributes of a customer profile.
- billing
Address Property Map - A block that specifies the customer’s billing address. Documented below.
- birth
Date String - The customer’s birth date.
- business
Email StringAddress - The customer’s business email address.
- business
Name String - The name of the customer’s business.
- business
Phone StringNumber - The customer’s business phone number.
- domain
Name String The name of your Customer Profile domain. It must be unique for your AWS account.
The following arguments are optional:
- email
Address String - The customer’s email address, which has not been specified as a personal or business address.
- first
Name String - The customer’s first name.
- gender
String String - The gender with which the customer identifies.
- home
Phone StringNumber - The customer’s home phone number.
- last
Name String - The customer’s last name.
- mailing
Address Property Map - A block that specifies the customer’s mailing address. Documented below.
- middle
Name String - The customer’s middle name.
- mobile
Phone StringNumber - The customer’s mobile phone number.
- party
Type StringString - The type of profile used to describe the customer.
- personal
Email StringAddress - The customer’s personal email address.
- phone
Number String - The customer’s phone number, which has not been specified as a mobile, home, or business number.
- shipping
Address Property Map - A block that specifies the customer’s shipping address. Documented below.
Supporting Types
ProfileAddress, ProfileAddressArgs
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
- address1 string
- The first line of a customer address.
- address2 string
- The second line of a customer address.
- address3 string
- The third line of a customer address.
- address4 string
- The fourth line of a customer address.
- city string
- The city in which a customer lives.
- country string
- The country in which a customer lives.
- county string
- The county in which a customer lives.
- postal
Code string - The postal code of a customer address.
- province string
- The province in which a customer lives.
- state string
- The state in which a customer lives.
- address1 str
- The first line of a customer address.
- address2 str
- The second line of a customer address.
- address3 str
- The third line of a customer address.
- address4 str
- The fourth line of a customer address.
- city str
- The city in which a customer lives.
- country str
- The country in which a customer lives.
- county str
- The county in which a customer lives.
- postal_
code str - The postal code of a customer address.
- province str
- The province in which a customer lives.
- state str
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
ProfileBillingAddress, ProfileBillingAddressArgs
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
- address1 string
- The first line of a customer address.
- address2 string
- The second line of a customer address.
- address3 string
- The third line of a customer address.
- address4 string
- The fourth line of a customer address.
- city string
- The city in which a customer lives.
- country string
- The country in which a customer lives.
- county string
- The county in which a customer lives.
- postal
Code string - The postal code of a customer address.
- province string
- The province in which a customer lives.
- state string
- The state in which a customer lives.
- address1 str
- The first line of a customer address.
- address2 str
- The second line of a customer address.
- address3 str
- The third line of a customer address.
- address4 str
- The fourth line of a customer address.
- city str
- The city in which a customer lives.
- country str
- The country in which a customer lives.
- county str
- The county in which a customer lives.
- postal_
code str - The postal code of a customer address.
- province str
- The province in which a customer lives.
- state str
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
ProfileMailingAddress, ProfileMailingAddressArgs
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
- address1 string
- The first line of a customer address.
- address2 string
- The second line of a customer address.
- address3 string
- The third line of a customer address.
- address4 string
- The fourth line of a customer address.
- city string
- The city in which a customer lives.
- country string
- The country in which a customer lives.
- county string
- The county in which a customer lives.
- postal
Code string - The postal code of a customer address.
- province string
- The province in which a customer lives.
- state string
- The state in which a customer lives.
- address1 str
- The first line of a customer address.
- address2 str
- The second line of a customer address.
- address3 str
- The third line of a customer address.
- address4 str
- The fourth line of a customer address.
- city str
- The city in which a customer lives.
- country str
- The country in which a customer lives.
- county str
- The county in which a customer lives.
- postal_
code str - The postal code of a customer address.
- province str
- The province in which a customer lives.
- state str
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
ProfileShippingAddress, ProfileShippingAddressArgs
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- Address1 string
- The first line of a customer address.
- Address2 string
- The second line of a customer address.
- Address3 string
- The third line of a customer address.
- Address4 string
- The fourth line of a customer address.
- City string
- The city in which a customer lives.
- Country string
- The country in which a customer lives.
- County string
- The county in which a customer lives.
- Postal
Code string - The postal code of a customer address.
- Province string
- The province in which a customer lives.
- State string
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
- address1 string
- The first line of a customer address.
- address2 string
- The second line of a customer address.
- address3 string
- The third line of a customer address.
- address4 string
- The fourth line of a customer address.
- city string
- The city in which a customer lives.
- country string
- The country in which a customer lives.
- county string
- The county in which a customer lives.
- postal
Code string - The postal code of a customer address.
- province string
- The province in which a customer lives.
- state string
- The state in which a customer lives.
- address1 str
- The first line of a customer address.
- address2 str
- The second line of a customer address.
- address3 str
- The third line of a customer address.
- address4 str
- The fourth line of a customer address.
- city str
- The city in which a customer lives.
- country str
- The country in which a customer lives.
- county str
- The county in which a customer lives.
- postal_
code str - The postal code of a customer address.
- province str
- The province in which a customer lives.
- state str
- The state in which a customer lives.
- address1 String
- The first line of a customer address.
- address2 String
- The second line of a customer address.
- address3 String
- The third line of a customer address.
- address4 String
- The fourth line of a customer address.
- city String
- The city in which a customer lives.
- country String
- The country in which a customer lives.
- county String
- The county in which a customer lives.
- postal
Code String - The postal code of a customer address.
- province String
- The province in which a customer lives.
- state String
- The state in which a customer lives.
Import
Using pulumi import
, import Amazon Customer Profiles Profile using the resource id
. For example:
$ pulumi import aws:customerprofiles/profile:Profile example domain-name/5f2f473dfbe841eb8d05cfc2a4c926df
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.