Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds additional objects to customer profiles of a given ObjectType.
When adding a specific profile object, like a Contact Trace Record (CTR), 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 CTRs 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.
PutProfileObject' | |
|
Instances
:: 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:
$sel:objectTypeName:PutProfileObject'
, putProfileObject_objectTypeName
- The name of the profile object type.
$sel:object':PutProfileObject'
, putProfileObject_object
- A string that is serialized from a JSON object.
$sel:domainName: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.
PutProfileObjectResponse' | |
|
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:
$sel:profileObjectUniqueKey: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.