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
2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 | |