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 |
Returns the template information for a specific object type.
A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.
Synopsis
- data GetProfileObjectTypeTemplate = GetProfileObjectTypeTemplate' {
- templateId :: Text
- newGetProfileObjectTypeTemplate :: Text -> GetProfileObjectTypeTemplate
- getProfileObjectTypeTemplate_templateId :: Lens' GetProfileObjectTypeTemplate Text
- data GetProfileObjectTypeTemplateResponse = GetProfileObjectTypeTemplateResponse' {
- sourceName :: Maybe Text
- templateId :: Maybe Text
- sourceObject :: Maybe Text
- keys :: Maybe (HashMap Text [ObjectTypeKey])
- allowProfileCreation :: Maybe Bool
- fields :: Maybe (HashMap Text ObjectTypeField)
- httpStatus :: Int
- newGetProfileObjectTypeTemplateResponse :: Int -> GetProfileObjectTypeTemplateResponse
- getProfileObjectTypeTemplateResponse_sourceName :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_templateId :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_sourceObject :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text)
- getProfileObjectTypeTemplateResponse_keys :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text [ObjectTypeKey]))
- getProfileObjectTypeTemplateResponse_allowProfileCreation :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Bool)
- getProfileObjectTypeTemplateResponse_fields :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text ObjectTypeField))
- getProfileObjectTypeTemplateResponse_httpStatus :: Lens' GetProfileObjectTypeTemplateResponse Int
Creating a Request
data GetProfileObjectTypeTemplate Source #
See: newGetProfileObjectTypeTemplate
smart constructor.
GetProfileObjectTypeTemplate' | |
|
Instances
newGetProfileObjectTypeTemplate Source #
Create a value of GetProfileObjectTypeTemplate
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:templateId:GetProfileObjectTypeTemplate'
, getProfileObjectTypeTemplate_templateId
- A unique identifier for the object template.
Request Lenses
getProfileObjectTypeTemplate_templateId :: Lens' GetProfileObjectTypeTemplate Text Source #
A unique identifier for the object template.
Destructuring the Response
data GetProfileObjectTypeTemplateResponse Source #
See: newGetProfileObjectTypeTemplateResponse
smart constructor.
GetProfileObjectTypeTemplateResponse' | |
|
Instances
newGetProfileObjectTypeTemplateResponse Source #
Create a value of GetProfileObjectTypeTemplateResponse
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:sourceName:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_sourceName
- The name of the source of the object template.
$sel:templateId:GetProfileObjectTypeTemplate'
, getProfileObjectTypeTemplateResponse_templateId
- A unique identifier for the object template.
$sel:sourceObject:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_sourceObject
- The source of the object template.
$sel:keys:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_keys
- A list of unique keys that can be used to map data to the profile.
$sel:allowProfileCreation:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_allowProfileCreation
- Indicates whether a profile should be created when data is received if
one doesn’t exist for an object of this type. The default is FALSE
. If
the AllowProfileCreation flag is set to FALSE
, then the service tries
to fetch a standard profile and associate this object with the profile.
If it is set to TRUE
, and if no match is found, then the service
creates a new standard profile.
$sel:fields:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_fields
- A map of the name and ObjectType field.
$sel:httpStatus:GetProfileObjectTypeTemplateResponse'
, getProfileObjectTypeTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
getProfileObjectTypeTemplateResponse_sourceName :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
The name of the source of the object template.
getProfileObjectTypeTemplateResponse_templateId :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
A unique identifier for the object template.
getProfileObjectTypeTemplateResponse_sourceObject :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Text) Source #
The source of the object template.
getProfileObjectTypeTemplateResponse_keys :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text [ObjectTypeKey])) Source #
A list of unique keys that can be used to map data to the profile.
getProfileObjectTypeTemplateResponse_allowProfileCreation :: Lens' GetProfileObjectTypeTemplateResponse (Maybe Bool) Source #
Indicates whether a profile should be created when data is received if
one doesn’t exist for an object of this type. The default is FALSE
. If
the AllowProfileCreation flag is set to FALSE
, then the service tries
to fetch a standard profile and associate this object with the profile.
If it is set to TRUE
, and if no match is found, then the service
creates a new standard profile.
getProfileObjectTypeTemplateResponse_fields :: Lens' GetProfileObjectTypeTemplateResponse (Maybe (HashMap Text ObjectTypeField)) Source #
A map of the name and ObjectType field.
getProfileObjectTypeTemplateResponse_httpStatus :: Lens' GetProfileObjectTypeTemplateResponse Int Source #
The response's http status code.