create_approval_policy
async
¶
create_approval_policy(
policy_id: PolicyId,
name: PolicyName,
actions: GovernedActionList,
asset_types: AssetTypeList,
applicable_to: ApplicableTo,
approval_groups: ApprovalGroupList,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
description: Optional[PolicyDescription] = None,
) -> CreateApprovalPolicyResponse
Creates an approval policy in Quick Sight.
Parameters:
-
policy_id(PolicyId) –The unique identifier to assign to the approval policy. You cannot change this value after you create the policy.
-
name(PolicyName) –The name of the approval policy.
-
description(Optional[PolicyDescription], default:None) –A description of the approval policy.
-
actions(GovernedActionList) –The list of governed actions that trigger the approval workflow.
-
asset_types(AssetTypeList) –The list of asset types that the approval policy applies to.
-
applicable_to(ApplicableTo) –The scoping configuration that determines who the approval policy applies to.
-
approval_groups(ApprovalGroupList) –The list of group ARNs whose members can approve requests.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
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.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 | |