--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_iotsitewise_access_policy Data Source - terraform-provider-awscc" subcategory: "" description: |- Data Source schema for AWS::IoTSiteWise::AccessPolicy --- # awscc_iotsitewise_access_policy (Data Source) Data Source schema for AWS::IoTSiteWise::AccessPolicy ## Schema ### Required - `id` (String) Uniquely identifies the resource. ### Read-Only - `access_policy_arn` (String) The ARN of the access policy. - `access_policy_id` (String) The ID of the access policy. - `access_policy_identity` (Attributes) The identity for this access policy. Choose either a user or a group but not both. (see [below for nested schema](#nestedatt--access_policy_identity)) - `access_policy_permission` (String) The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER. - `access_policy_resource` (Attributes) The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both. (see [below for nested schema](#nestedatt--access_policy_resource)) ### Nested Schema for `access_policy_identity` Read-Only: - `iam_role` (Attributes) Contains information for an IAM role identity in an access policy. (see [below for nested schema](#nestedatt--access_policy_identity--iam_role)) - `iam_user` (Attributes) Contains information for an IAM user identity in an access policy. (see [below for nested schema](#nestedatt--access_policy_identity--iam_user)) - `user` (Attributes) Contains information for a user identity in an access policy. (see [below for nested schema](#nestedatt--access_policy_identity--user)) ### Nested Schema for `access_policy_identity.iam_role` Read-Only: - `arn` (String) The ARN of the IAM role. ### Nested Schema for `access_policy_identity.iam_user` Read-Only: - `arn` (String) The ARN of the IAM user. ### Nested Schema for `access_policy_identity.user` Read-Only: - `id` (String) The AWS SSO ID of the user. ### Nested Schema for `access_policy_resource` Read-Only: - `portal` (Attributes) A portal resource. (see [below for nested schema](#nestedatt--access_policy_resource--portal)) - `project` (Attributes) A project resource. (see [below for nested schema](#nestedatt--access_policy_resource--project)) ### Nested Schema for `access_policy_resource.portal` Read-Only: - `id` (String) The ID of the portal. ### Nested Schema for `access_policy_resource.project` Read-Only: - `id` (String) The ID of the project.