create_iam_policy_assignment
¶
create_iam_policy_assignment(
aws_account_id: AwsAccountId,
assignment_name: IAMPolicyAssignmentName,
assignment_status: AssignmentStatus,
namespace: Namespace,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
policy_arn: Optional[Arn] = None,
identities: Optional[IdentityMap] = None,
) -> CreateIAMPolicyAssignmentResponse
Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name (ARN). This policy assignment is attached to the specified groups or users of Amazon Quick Sight. Assignment names are unique per Amazon Web Services account. To avoid overwriting rules in other namespaces, use assignment names that are unique.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account where you want to assign an IAM policy to Amazon Quick Sight users or groups.
-
assignment_name(IAMPolicyAssignmentName) –The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account.
-
assignment_status(AssignmentStatus) –The status of the assignment. Possible values are as follows:
-
ENABLED- Anything specified in this assignment is used when creating the data source. -
DISABLED- This assignment isn't used when creating the data source. -
DRAFT- This assignment is an unfinished draft and isn't used when creating the data source.
-
-
policy_arn(Optional[Arn], default:None) –The ARN for the IAM policy to apply to the Amazon Quick Sight users and groups specified in this assignment.
-
identities(Optional[IdentityMap], default:None) –The Amazon Quick Sight users, groups, or both that you want to assign the policy to.
-
namespace(Namespace) –The namespace that contains the assignment.
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.
-
ConcurrentUpdatingException–A resource is already in a state that indicates an operation is happening that must complete before a new update can be applied.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
ResourceExistsException–The resource specified already exists.
-
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/quick_sight.py
3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 | |