Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the resource permissions for a theme. Permissions apply to the
action to grant or revoke permissions on, for example
"quicksight:DescribeTheme"
.
Theme permissions apply in groupings. Valid groupings include the following for the three levels of permissions, which are user, owner, or no permissions:
User
"quicksight:DescribeTheme"
"quicksight:DescribeThemeAlias"
"quicksight:ListThemeAliases"
"quicksight:ListThemeVersions"
Owner
"quicksight:DescribeTheme"
"quicksight:DescribeThemeAlias"
"quicksight:ListThemeAliases"
"quicksight:ListThemeVersions"
"quicksight:DeleteTheme"
"quicksight:UpdateTheme"
"quicksight:CreateThemeAlias"
"quicksight:DeleteThemeAlias"
"quicksight:UpdateThemeAlias"
"quicksight:UpdateThemePermissions"
"quicksight:DescribeThemePermissions"
- To specify no permissions, omit the permissions list.
Synopsis
- data UpdateThemePermissions = UpdateThemePermissions' {}
- newUpdateThemePermissions :: Text -> Text -> UpdateThemePermissions
- updateThemePermissions_revokePermissions :: Lens' UpdateThemePermissions (Maybe [ResourcePermission])
- updateThemePermissions_grantPermissions :: Lens' UpdateThemePermissions (Maybe [ResourcePermission])
- updateThemePermissions_awsAccountId :: Lens' UpdateThemePermissions Text
- updateThemePermissions_themeId :: Lens' UpdateThemePermissions Text
- data UpdateThemePermissionsResponse = UpdateThemePermissionsResponse' {}
- newUpdateThemePermissionsResponse :: Int -> UpdateThemePermissionsResponse
- updateThemePermissionsResponse_requestId :: Lens' UpdateThemePermissionsResponse (Maybe Text)
- updateThemePermissionsResponse_themeArn :: Lens' UpdateThemePermissionsResponse (Maybe Text)
- updateThemePermissionsResponse_themeId :: Lens' UpdateThemePermissionsResponse (Maybe Text)
- updateThemePermissionsResponse_permissions :: Lens' UpdateThemePermissionsResponse (Maybe (NonEmpty ResourcePermission))
- updateThemePermissionsResponse_status :: Lens' UpdateThemePermissionsResponse Int
Creating a Request
data UpdateThemePermissions Source #
See: newUpdateThemePermissions
smart constructor.
UpdateThemePermissions' | |
|
Instances
newUpdateThemePermissions Source #
:: Text | |
-> Text | |
-> UpdateThemePermissions |
Create a value of UpdateThemePermissions
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:revokePermissions:UpdateThemePermissions'
, updateThemePermissions_revokePermissions
- A list of resource permissions to be revoked from the theme.
$sel:grantPermissions:UpdateThemePermissions'
, updateThemePermissions_grantPermissions
- A list of resource permissions to be granted for the theme.
$sel:awsAccountId:UpdateThemePermissions'
, updateThemePermissions_awsAccountId
- The ID of the Amazon Web Services account that contains the theme.
$sel:themeId:UpdateThemePermissions'
, updateThemePermissions_themeId
- The ID for the theme.
Request Lenses
updateThemePermissions_revokePermissions :: Lens' UpdateThemePermissions (Maybe [ResourcePermission]) Source #
A list of resource permissions to be revoked from the theme.
updateThemePermissions_grantPermissions :: Lens' UpdateThemePermissions (Maybe [ResourcePermission]) Source #
A list of resource permissions to be granted for the theme.
updateThemePermissions_awsAccountId :: Lens' UpdateThemePermissions Text Source #
The ID of the Amazon Web Services account that contains the theme.
updateThemePermissions_themeId :: Lens' UpdateThemePermissions Text Source #
The ID for the theme.
Destructuring the Response
data UpdateThemePermissionsResponse Source #
See: newUpdateThemePermissionsResponse
smart constructor.
UpdateThemePermissionsResponse' | |
|
Instances
newUpdateThemePermissionsResponse Source #
Create a value of UpdateThemePermissionsResponse
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:requestId:UpdateThemePermissionsResponse'
, updateThemePermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:themeArn:UpdateThemePermissionsResponse'
, updateThemePermissionsResponse_themeArn
- The Amazon Resource Name (ARN) of the theme.
$sel:themeId:UpdateThemePermissions'
, updateThemePermissionsResponse_themeId
- The ID for the theme.
$sel:permissions:UpdateThemePermissionsResponse'
, updateThemePermissionsResponse_permissions
- The resulting list of resource permissions for the theme.
$sel:status:UpdateThemePermissionsResponse'
, updateThemePermissionsResponse_status
- The HTTP status of the request.
Response Lenses
updateThemePermissionsResponse_requestId :: Lens' UpdateThemePermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateThemePermissionsResponse_themeArn :: Lens' UpdateThemePermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the theme.
updateThemePermissionsResponse_themeId :: Lens' UpdateThemePermissionsResponse (Maybe Text) Source #
The ID for the theme.
updateThemePermissionsResponse_permissions :: Lens' UpdateThemePermissionsResponse (Maybe (NonEmpty ResourcePermission)) Source #
The resulting list of resource permissions for the theme.
updateThemePermissionsResponse_status :: Lens' UpdateThemePermissionsResponse Int Source #
The HTTP status of the request.