list_access_policies
async
¶
list_access_policies(
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = 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/async_io_t_site_wise.py
6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 | |