| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTSiteWise.UpdateAccessPolicy
Description
Updates an existing access policy that specifies an identity's access to an IoT SiteWise Monitor portal or project resource.
Synopsis
- data UpdateAccessPolicy = UpdateAccessPolicy' {}
- newUpdateAccessPolicy :: Text -> Identity -> Resource -> Permission -> UpdateAccessPolicy
- updateAccessPolicy_clientToken :: Lens' UpdateAccessPolicy (Maybe Text)
- updateAccessPolicy_accessPolicyId :: Lens' UpdateAccessPolicy Text
- updateAccessPolicy_accessPolicyIdentity :: Lens' UpdateAccessPolicy Identity
- updateAccessPolicy_accessPolicyResource :: Lens' UpdateAccessPolicy Resource
- updateAccessPolicy_accessPolicyPermission :: Lens' UpdateAccessPolicy Permission
- data UpdateAccessPolicyResponse = UpdateAccessPolicyResponse' {
- httpStatus :: Int
- newUpdateAccessPolicyResponse :: Int -> UpdateAccessPolicyResponse
- updateAccessPolicyResponse_httpStatus :: Lens' UpdateAccessPolicyResponse Int
Creating a Request
data UpdateAccessPolicy Source #
See: newUpdateAccessPolicy smart constructor.
Constructors
| UpdateAccessPolicy' | |
Fields
| |
Instances
newUpdateAccessPolicy Source #
Arguments
| :: Text | |
| -> Identity | |
| -> Resource | |
| -> Permission | |
| -> UpdateAccessPolicy |
Create a value of UpdateAccessPolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientToken:UpdateAccessPolicy', updateAccessPolicy_clientToken - 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.
$sel:accessPolicyId:UpdateAccessPolicy', updateAccessPolicy_accessPolicyId - The ID of the access policy.
$sel:accessPolicyIdentity:UpdateAccessPolicy', updateAccessPolicy_accessPolicyIdentity - The identity for this access policy. Choose an IAM Identity Center user,
an IAM Identity Center group, or an IAM user.
$sel:accessPolicyResource:UpdateAccessPolicy', updateAccessPolicy_accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either
a portal or a project.
$sel:accessPolicyPermission:UpdateAccessPolicy', updateAccessPolicy_accessPolicyPermission - The permission level for this access policy. Note that a project
ADMINISTRATOR is also known as a project owner.
Request Lenses
updateAccessPolicy_clientToken :: Lens' UpdateAccessPolicy (Maybe Text) Source #
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.
updateAccessPolicy_accessPolicyId :: Lens' UpdateAccessPolicy Text Source #
The ID of the access policy.
updateAccessPolicy_accessPolicyIdentity :: Lens' UpdateAccessPolicy Identity Source #
The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
updateAccessPolicy_accessPolicyResource :: Lens' UpdateAccessPolicy Resource Source #
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
updateAccessPolicy_accessPolicyPermission :: Lens' UpdateAccessPolicy Permission Source #
The permission level for this access policy. Note that a project
ADMINISTRATOR is also known as a project owner.
Destructuring the Response
data UpdateAccessPolicyResponse Source #
See: newUpdateAccessPolicyResponse smart constructor.
Constructors
| UpdateAccessPolicyResponse' | |
Fields
| |
Instances
newUpdateAccessPolicyResponse Source #
Create a value of UpdateAccessPolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateAccessPolicyResponse', updateAccessPolicyResponse_httpStatus - The response's http status code.
Response Lenses
updateAccessPolicyResponse_httpStatus :: Lens' UpdateAccessPolicyResponse Int Source #
The response's http status code.