create_segment_definition
async
¶
create_segment_definition(
domain_name: name,
segment_definition_name: name,
display_name: string1To255,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
description: Optional[sensitiveString1To4000] = None,
segment_groups: Optional[SegmentGroup] = None,
segment_sql_query: Optional[sensitiveString1To50000] = None,
segment_sort: Optional[SegmentSort] = None,
tags: Optional[TagMap] = None,
) -> CreateSegmentDefinitionResponse
Creates a segment definition associated to the given domain.
Parameters:
-
domain_name(name) –The unique name of the domain.
-
segment_definition_name(name) –The unique name of the segment definition.
-
display_name(string1To255) –The display name of the segment definition.
-
description(Optional[sensitiveString1To4000], default:None) –The description of the segment definition.
-
segment_groups(Optional[SegmentGroup], default:None) –Specifies the base segments and dimensions for a segment definition along with their respective relationship.
-
segment_sql_query(Optional[sensitiveString1To50000], default:None) –The segment SQL query.
-
segment_sort(Optional[SegmentSort], default:None) –The segment sort.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource.
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
1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 | |