class Aws::IoTSiteWise::Types::CreateAccessPolicyRequest
@note When making an API call, you may pass CreateAccessPolicyRequest
data as a hash: { access_policy_identity: { # required user: { id: "IdentityId", # required }, group: { id: "IdentityId", # required }, iam_user: { arn: "ARN", # required }, iam_role: { arn: "ARN", # required }, }, access_policy_resource: { # required portal: { id: "ID", # required }, project: { id: "ID", # required }, }, access_policy_permission: "ADMINISTRATOR", # required, accepts ADMINISTRATOR, VIEWER client_token: "ClientToken", tags: { "TagKey" => "TagValue", }, }
@!attribute [rw] access_policy_identity
The identity for this access policy. Choose an Amazon Web Services SSO user, an Amazon Web Services SSO group, or an IAM user. @return [Types::Identity]
@!attribute [rw] access_policy_resource
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project. @return [Types::Resource]
@!attribute [rw] access_policy_permission
The permission level for this access policy. Note that a project `ADMINISTRATOR` is also known as a project owner. @return [String]
@!attribute [rw] client_token
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required. **A suitable default value is auto-generated.** You should normally not need to pass this option. @return [String]
@!attribute [rw] tags
A list of key-value pairs that contain metadata for the access policy. For more information, see [Tagging your IoT SiteWise resources][1] in the *IoT SiteWise User Guide*. [1]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html @return [Hash<String,String>]
Constants
- SENSITIVE