create_analysis
async
¶
create_analysis(
aws_account_id: AwsAccountId,
analysis_id: ShortRestrictiveResourceId,
name: AnalysisName,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
parameters: Optional[Parameters] = None,
permissions: Optional[ResourcePermissionList] = None,
source_entity: Optional[AnalysisSourceEntity] = None,
theme_arn: Optional[Arn] = None,
tags: Optional[TagList] = None,
definition: Optional[AnalysisDefinition] = None,
validation_strategy: Optional[ValidationStrategy] = None,
folder_arns: Optional[FolderArnList] = None,
) -> CreateAnalysisResponse
Creates an analysis in Amazon Quick Sight. Analyses can be created either from a template or from an AnalysisDefinition.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account where you are creating an analysis.
-
analysis_id(ShortRestrictiveResourceId) –The ID for the analysis that you're creating. This ID displays in the URL of the analysis.
-
name(AnalysisName) –A descriptive name for the analysis that you're creating. This name displays for the analysis in the Amazon Quick Sight console.
-
parameters(Optional[Parameters], default:None) –The parameter names and override values that you want to use. An analysis can have any parameter type, and some parameters might accept multiple values.
-
permissions(Optional[ResourcePermissionList], default:None) –A structure that describes the principals and the resource-level permissions on an analysis. You can use the
Permissionsstructure to grant permissions by providing a list of Identity and Access Management (IAM) action information for each principal listed by Amazon Resource Name (ARN).To specify no permissions, omit
Permissions. -
source_entity(Optional[AnalysisSourceEntity], default:None) –A source entity to use for the analysis that you're creating. This metadata structure contains details that describe a source template and one or more datasets or topics.
Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
theme_arn(Optional[Arn], default:None) –The ARN for the theme to apply to the analysis that you're creating. To see the theme in the Amazon Quick Sight console, make sure that you have access to it.
-
tags(Optional[TagList], default:None) –Contains a map of the key-value pairs for the resource tag or tags assigned to the analysis.
-
definition(Optional[AnalysisDefinition], default:None) –The definition of an analysis.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
validation_strategy(Optional[ValidationStrategy], default:None) –The option to relax the validation needed to create an analysis with definition objects. This skips the validation step for specific errors.
-
folder_arns(Optional[FolderArnList], default:None) –When you create the analysis, Amazon Quick Sight adds the analysis to these folders.
Raises:
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 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 | |