| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CustomerProfiles.PutProfileObject
Description
Adds additional objects to customer profiles of a given ObjectType.
When adding a specific profile object, like a Contact Record, an inferred profile can get created if it is not mapped to an existing profile. The resulting profile will only have a phone number populated in the standard ProfileObject. Any additional Contact Records with the same phone number will be mapped to the same inferred profile.
When a ProfileObject is created and if a ProfileObjectType already exists for the ProfileObject, it will provide data to a standard profile depending on the ProfileObjectType definition.
PutProfileObject needs an ObjectType, which can be created using PutProfileObjectType.
Synopsis
- data PutProfileObject = PutProfileObject' {
- objectTypeName :: Text
- object' :: Text
- domainName :: Text
- newPutProfileObject :: Text -> Text -> Text -> PutProfileObject
- putProfileObject_objectTypeName :: Lens' PutProfileObject Text
- putProfileObject_object :: Lens' PutProfileObject Text
- putProfileObject_domainName :: Lens' PutProfileObject Text
- data PutProfileObjectResponse = PutProfileObjectResponse' {}
- newPutProfileObjectResponse :: Int -> PutProfileObjectResponse
- putProfileObjectResponse_profileObjectUniqueKey :: Lens' PutProfileObjectResponse (Maybe Text)
- putProfileObjectResponse_httpStatus :: Lens' PutProfileObjectResponse Int
Creating a Request
data PutProfileObject Source #
See: newPutProfileObject smart constructor.
Constructors
| PutProfileObject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PutProfileObject |
Create a value of PutProfileObject with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutProfileObject, putProfileObject_objectTypeName - The name of the profile object type.
PutProfileObject, putProfileObject_object - A string that is serialized from a JSON object.
PutProfileObject, putProfileObject_domainName - The unique name of the domain.
Request Lenses
putProfileObject_objectTypeName :: Lens' PutProfileObject Text Source #
The name of the profile object type.
putProfileObject_object :: Lens' PutProfileObject Text Source #
A string that is serialized from a JSON object.
putProfileObject_domainName :: Lens' PutProfileObject Text Source #
The unique name of the domain.
Destructuring the Response
data PutProfileObjectResponse Source #
See: newPutProfileObjectResponse smart constructor.
Constructors
| PutProfileObjectResponse' | |
Fields
| |
Instances
newPutProfileObjectResponse Source #
Create a value of PutProfileObjectResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutProfileObjectResponse, putProfileObjectResponse_profileObjectUniqueKey - The unique identifier of the profile object generated by the service.
$sel:httpStatus:PutProfileObjectResponse', putProfileObjectResponse_httpStatus - The response's http status code.
Response Lenses
putProfileObjectResponse_profileObjectUniqueKey :: Lens' PutProfileObjectResponse (Maybe Text) Source #
The unique identifier of the profile object generated by the service.
putProfileObjectResponse_httpStatus :: Lens' PutProfileObjectResponse Int Source #
The response's http status code.