list_access_policies
¶
list_access_policies(
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = None,
identity_type: Optional[IdentityType] = None,
identity_id: Optional[IdentityId] = None,
resource_type: Optional[ResourceType] = None,
resource_id: Optional[ID] = None,
iam_arn: Optional[IamArn] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListAccessPoliciesResponse
Retrieves a paginated list of access policies for an identity (an IAM Identity Center user, an IAM Identity Center group, or an IAM user) or an IoT SiteWise Monitor resource (a portal or project).
Parameters:
-
identity_type(Optional[IdentityType], default:None) –The type of identity (IAM Identity Center user, IAM Identity Center group, or IAM user). This parameter is required if you specify
identityId. -
identity_id(Optional[IdentityId], default:None) –The ID of the identity. This parameter is required if you specify
USERorGROUPforidentityType. -
resource_type(Optional[ResourceType], default:None) –The type of resource (portal or project). This parameter is required if you specify
resourceId. -
resource_id(Optional[ID], default:None) –The ID of the resource. This parameter is required if you specify
resourceType. -
iam_arn(Optional[IamArn], default:None) –The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide. This parameter is required if you specify
IAMforidentityType. -
next_token(Optional[NextToken], default:None) –The token to be used for the next set of paginated results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return for each paginated request.
Default: 50
Raises:
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/io_t_site_wise.py
6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 | |