create_analysis
¶
create_analysis(
aws_account_id: AwsAccountId,
analysis_id: ShortRestrictiveResourceId,
name: AnalysisName,
*,
config_overrides: Optional[QuickSightClientConfig] = 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/quick_sight.py
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 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 | |