describe_access_policy
(**kwargs)¶Describes an access policy, which specifies an identity's access to an IoT SiteWise Monitor portal or project.
See also: AWS API Documentation
Request Syntax
response = client.describe_access_policy(
accessPolicyId='string'
)
[REQUIRED]
The ID of the access policy.
{
'accessPolicyId': 'string',
'accessPolicyArn': 'string',
'accessPolicyIdentity': {
'user': {
'id': 'string'
},
'group': {
'id': 'string'
},
'iamUser': {
'arn': 'string'
},
'iamRole': {
'arn': 'string'
}
},
'accessPolicyResource': {
'portal': {
'id': 'string'
},
'project': {
'id': 'string'
}
},
'accessPolicyPermission': 'ADMINISTRATOR'|'VIEWER',
'accessPolicyCreationDate': datetime(2015, 1, 1),
'accessPolicyLastUpdateDate': datetime(2015, 1, 1)
}
Response Structure
The ID of the access policy.
The ARN of the access policy, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/${AccessPolicyId}
The identity (IAM Identity Center user, IAM Identity Center group, or IAM user) to which this access policy applies.
An IAM Identity Center user identity.
The IAM Identity Center ID of the user.
An IAM Identity Center group identity.
The IAM Identity Center ID of the group.
An IAM user identity.
The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide .
Note
If you delete the IAM user, access policies that contain this identity include an empty arn
. You can delete the access policy for the IAM user that no longer exists.
An IAM role identity.
The ARN of the IAM role. For more information, see IAM ARNs in the IAM User Guide .
The IoT SiteWise Monitor resource (portal or project) to which this access policy provides access.
A portal resource.
The ID of the portal.
A project resource.
The ID of the project.
The access policy permission. Note that a project ADMINISTRATOR
is also known as a project owner.
The date the access policy was created, in Unix epoch time.
The date the access policy was last updated, in Unix epoch time.
Exceptions
IoTSiteWise.Client.exceptions.InvalidRequestException
IoTSiteWise.Client.exceptions.ResourceNotFoundException
IoTSiteWise.Client.exceptions.InternalFailureException
IoTSiteWise.Client.exceptions.ThrottlingException