create_upload_job
async
¶
create_upload_job(
domain_name: name,
display_name: string1To255,
fields: FieldMap,
unique_key: text,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
data_expiry: Optional[expirationDaysInteger] = None,
) -> CreateUploadJobResponse
Creates an Upload job to ingest data for segment imports. The metadata is created for the job with the provided field mapping and unique key.
Parameters:
-
domain_name(name) –The unique name of the domain. Domain should be exists for the upload job to be created.
-
display_name(string1To255) –The unique name of the upload job. Could be a file name to identify the upload job.
-
fields(FieldMap) –The mapping between CSV Columns and Profile Object attributes. A map of the name and ObjectType field.
-
unique_key(text) –The unique key columns for de-duping the profiles used to map data to the profile.
-
data_expiry(Optional[expirationDaysInteger], default:None) –The expiry duration for the profiles ingested with the job. If not provided, the system default of 2 weeks is used.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/async_customer_profiles.py
2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 | |