CfnUserProps
Struct External
Properties for defining a CfnUser.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_identitystore as identitystore } from 'aws-cdk-lib';
const cfnUserProps: identitystore.CfnUserProps = {
identityStoreId: 'identityStoreId',
// the properties below are optional
addresses: [{
country: 'country',
formatted: 'formatted',
locality: 'locality',
postalCode: 'postalCode',
primary: false,
region: 'region',
streetAddress: 'streetAddress',
type: 'type',
}],
birthdate: 'birthdate',
displayName: 'displayName',
emails: [{
primary: false,
type: 'type',
value: 'value',
}],
locale: 'locale',
name: {
familyName: 'familyName',
formatted: 'formatted',
givenName: 'givenName',
honorificPrefix: 'honorificPrefix',
honorificSuffix: 'honorificSuffix',
middleName: 'middleName',
},
nickName: 'nickName',
phoneNumbers: [{
primary: false,
type: 'type',
value: 'value',
}],
photos: [{
value: 'value',
// the properties below are optional
display: 'display',
primary: false,
type: 'type',
}],
preferredLanguage: 'preferredLanguage',
profileUrl: 'profileUrl',
roles: [{
primary: false,
type: 'type',
value: 'value',
}],
timezone: 'timezone',
title: 'title',
userName: 'userName',
userType: 'userType',
website: 'website',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_identitystore as identitystore
cfn_user_props = identitystore.CfnUserProps(
identity_store_id="identityStoreId",
# the properties below are optional
addresses=[identitystore.CfnUser.AddressesItemsProperty(
country="country",
formatted="formatted",
locality="locality",
postal_code="postalCode",
primary=False,
region="region",
street_address="streetAddress",
type="type"
)],
birthdate="birthdate",
display_name="displayName",
emails=[identitystore.CfnUser.EmailsItemsProperty(
primary=False,
type="type",
value="value"
)],
locale="locale",
name=identitystore.CfnUser.NameProperty(
family_name="familyName",
formatted="formatted",
given_name="givenName",
honorific_prefix="honorificPrefix",
honorific_suffix="honorificSuffix",
middle_name="middleName"
),
nick_name="nickName",
phone_numbers=[identitystore.CfnUser.PhoneNumbersItemsProperty(
primary=False,
type="type",
value="value"
)],
photos=[identitystore.CfnUser.PhotosItemsProperty(
value="value",
# the properties below are optional
display="display",
primary=False,
type="type"
)],
preferred_language="preferredLanguage",
profile_url="profileUrl",
roles=[identitystore.CfnUser.RolesItemsProperty(
primary=False,
type="type",
value="value"
)],
timezone="timezone",
title="title",
user_name="userName",
user_type="userType",
website="website"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.identitystore.*;
CfnUserProps cfnUserProps = CfnUserProps.builder()
.identityStoreId("identityStoreId")
// the properties below are optional
.addresses(List.of(AddressesItemsProperty.builder()
.country("country")
.formatted("formatted")
.locality("locality")
.postalCode("postalCode")
.primary(false)
.region("region")
.streetAddress("streetAddress")
.type("type")
.build()))
.birthdate("birthdate")
.displayName("displayName")
.emails(List.of(EmailsItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.locale("locale")
.name(NameProperty.builder()
.familyName("familyName")
.formatted("formatted")
.givenName("givenName")
.honorificPrefix("honorificPrefix")
.honorificSuffix("honorificSuffix")
.middleName("middleName")
.build())
.nickName("nickName")
.phoneNumbers(List.of(PhoneNumbersItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.photos(List.of(PhotosItemsProperty.builder()
.value("value")
// the properties below are optional
.display("display")
.primary(false)
.type("type")
.build()))
.preferredLanguage("preferredLanguage")
.profileUrl("profileUrl")
.roles(List.of(RolesItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.timezone("timezone")
.title("title")
.userName("userName")
.userType("userType")
.website("website")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IdentityStore;
var cfnUserProps = new CfnUserProps {
IdentityStoreId = "identityStoreId",
// the properties below are optional
Addresses = new [] { new AddressesItemsProperty {
Country = "country",
Formatted = "formatted",
Locality = "locality",
PostalCode = "postalCode",
Primary = false,
Region = "region",
StreetAddress = "streetAddress",
Type = "type"
} },
Birthdate = "birthdate",
DisplayName = "displayName",
Emails = new [] { new EmailsItemsProperty {
Primary = false,
Type = "type",
Value = "value"
} },
Locale = "locale",
Name = new NameProperty {
FamilyName = "familyName",
Formatted = "formatted",
GivenName = "givenName",
HonorificPrefix = "honorificPrefix",
HonorificSuffix = "honorificSuffix",
MiddleName = "middleName"
},
NickName = "nickName",
PhoneNumbers = new [] { new PhoneNumbersItemsProperty {
Primary = false,
Type = "type",
Value = "value"
} },
Photos = new [] { new PhotosItemsProperty {
Value = "value",
// the properties below are optional
Display = "display",
Primary = false,
Type = "type"
} },
PreferredLanguage = "preferredLanguage",
ProfileUrl = "profileUrl",
Roles = new [] { new RolesItemsProperty {
Primary = false,
Type = "type",
Value = "value"
} },
Timezone = "timezone",
Title = "title",
UserName = "userName",
UserType = "userType",
Website = "website"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnUserProps := &CfnUserProps{
IdentityStoreId: jsii.String("identityStoreId"),
// the properties below are optional
Addresses: []interface{}{
&AddressesItemsProperty{
Country: jsii.String("country"),
Formatted: jsii.String("formatted"),
Locality: jsii.String("locality"),
PostalCode: jsii.String("postalCode"),
Primary: jsii.Boolean(false),
Region: jsii.String("region"),
StreetAddress: jsii.String("streetAddress"),
Type: jsii.String("type"),
},
},
Birthdate: jsii.String("birthdate"),
DisplayName: jsii.String("displayName"),
Emails: []interface{}{
&EmailsItemsProperty{
Primary: jsii.Boolean(false),
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
Locale: jsii.String("locale"),
Name: &NameProperty{
FamilyName: jsii.String("familyName"),
Formatted: jsii.String("formatted"),
GivenName: jsii.String("givenName"),
HonorificPrefix: jsii.String("honorificPrefix"),
HonorificSuffix: jsii.String("honorificSuffix"),
MiddleName: jsii.String("middleName"),
},
NickName: jsii.String("nickName"),
PhoneNumbers: []interface{}{
&PhoneNumbersItemsProperty{
Primary: jsii.Boolean(false),
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
Photos: []interface{}{
&PhotosItemsProperty{
Value: jsii.String("value"),
// the properties below are optional
Display: jsii.String("display"),
Primary: jsii.Boolean(false),
Type: jsii.String("type"),
},
},
PreferredLanguage: jsii.String("preferredLanguage"),
ProfileUrl: jsii.String("profileUrl"),
Roles: []interface{}{
&RolesItemsProperty{
Primary: jsii.Boolean(false),
Type: jsii.String("type"),
Value: jsii.String("value"),
},
},
Timezone: jsii.String("timezone"),
Title: jsii.String("title"),
UserName: jsii.String("userName"),
UserType: jsii.String("userType"),
Website: jsii.String("website"),
}
Properties
addressesoptionalIResolvable | IResolvable | CfnUser.AddressesItemsProperty[]addressesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AddressesItemsProperty]]]addressesoptionalIResolvableAddressesoptionalIResolvableAddressesoptionalinterface{} #A list of addresses associated with the user.
birthdateoptionalstringbirthdateoptionalstrbirthdateoptionalStringBirthdateoptionalstringBirthdateoptional*string #The user's birthdate in YYYY-MM-DD format.
displayNameoptionalstringdisplay_nameoptionalstrdisplayNameoptionalStringDisplayNameoptionalstringDisplayNameoptional*string #A string containing the name of the user for display.
emailsoptionalIResolvable | IResolvable | CfnUser.EmailsItemsProperty[]emailsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EmailsItemsProperty]]]emailsoptionalIResolvableEmailsoptionalIResolvableEmailsoptionalinterface{} #A list of email addresses associated with the user.
identityStoreIdstringidentity_store_idstridentityStoreIdStringIdentityStoreIdstringIdentityStoreId*string required #The globally unique identifier for the identity store.
localeoptionalstringlocaleoptionalstrlocaleoptionalStringLocaleoptionalstringLocaleoptional*string #The geographical region or location of the user.
nameoptionalIResolvable | CfnUser.NamePropertynameoptionaltyping.Union[IResolvable, NameProperty]nameoptionalIResolvableNameoptionalIResolvableNameoptionalinterface{} #The name of the user.
nickNameoptionalstringnick_nameoptionalstrnickNameoptionalStringNickNameoptionalstringNickNameoptional*string #An alternate name for the user.
phoneNumbersoptionalIResolvable | IResolvable | CfnUser.phone_numbersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PhoneNumbersItemsProperty]]]phoneNumbersoptionalIResolvablePhoneNumbersoptionalIResolvablePhoneNumbersoptionalinterface{} #A list of phone numbers associated with the user.
photosoptionalIResolvable | IResolvable | CfnUser.PhotosItemsProperty[]photosoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PhotosItemsProperty]]]photosoptionalIResolvablePhotosoptionalIResolvablePhotosoptionalinterface{} #A list of photos associated with the user.
preferredLanguageoptionalstringpreferred_languageoptionalstrpreferredLanguageoptionalStringPreferredLanguageoptionalstringPreferredLanguageoptional*string #The preferred language of the user.
profileUrloptionalstringprofile_urloptionalstrprofileUrloptionalStringProfileUrloptionalstringProfileUrloptional*string #A URL associated with the user.
rolesoptionalIResolvable | IResolvable | CfnUser.RolesItemsProperty[]rolesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RolesItemsProperty]]]rolesoptionalIResolvableRolesoptionalIResolvableRolesoptionalinterface{} #A list of roles associated with the user.
timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string #The time zone for the user.
The title of the user.
userNameoptionalstringuser_nameoptionalstruserNameoptionalStringUserNameoptionalstringUserNameoptional*string #A unique string used to identify the user.
userTypeoptionalstringuser_typeoptionalstruserTypeoptionalStringUserTypeoptionalstringUserTypeoptional*string #A string indicating the type of user.
websiteoptionalstringwebsiteoptionalstrwebsiteoptionalStringWebsiteoptionalstringWebsiteoptional*string #The user's personal website or blog URL.