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 |
Sets the Cluster$VisibleToAllUsers value for an EMR cluster. When
true
, IAM principals in the Amazon Web Services account can perform
EMR cluster actions that their IAM policies allow. When false
, only
the IAM principal that created the cluster and the Amazon Web Services
account root user can perform EMR actions on the cluster, regardless of
IAM permissions policies attached to other IAM principals.
This action works on running clusters. When you create a cluster, use the RunJobFlowInput$VisibleToAllUsers parameter.
For more information, see Understanding the EMR Cluster VisibleToAllUsers Setting in the Amazon EMRManagement Guide.
Synopsis
- data SetVisibleToAllUsers = SetVisibleToAllUsers' {
- jobFlowIds :: [Text]
- visibleToAllUsers :: Bool
- newSetVisibleToAllUsers :: Bool -> SetVisibleToAllUsers
- setVisibleToAllUsers_jobFlowIds :: Lens' SetVisibleToAllUsers [Text]
- setVisibleToAllUsers_visibleToAllUsers :: Lens' SetVisibleToAllUsers Bool
- data SetVisibleToAllUsersResponse = SetVisibleToAllUsersResponse' {
- newSetVisibleToAllUsersResponse :: SetVisibleToAllUsersResponse
Creating a Request
data SetVisibleToAllUsers Source #
The input to the SetVisibleToAllUsers action.
See: newSetVisibleToAllUsers
smart constructor.
SetVisibleToAllUsers' | |
|
Instances
newSetVisibleToAllUsers Source #
Create a value of SetVisibleToAllUsers
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:jobFlowIds:SetVisibleToAllUsers'
, setVisibleToAllUsers_jobFlowIds
- The unique identifier of the job flow (cluster).
$sel:visibleToAllUsers:SetVisibleToAllUsers'
, setVisibleToAllUsers_visibleToAllUsers
- A value of true
indicates that an IAM principal in the Amazon Web
Services account can perform EMR actions on the cluster that the IAM
policies attached to the principal allow. A value of false
indicates
that only the IAM principal that created the cluster and the Amazon Web
Services root user can perform EMR actions on the cluster.
Request Lenses
setVisibleToAllUsers_jobFlowIds :: Lens' SetVisibleToAllUsers [Text] Source #
The unique identifier of the job flow (cluster).
setVisibleToAllUsers_visibleToAllUsers :: Lens' SetVisibleToAllUsers Bool Source #
A value of true
indicates that an IAM principal in the Amazon Web
Services account can perform EMR actions on the cluster that the IAM
policies attached to the principal allow. A value of false
indicates
that only the IAM principal that created the cluster and the Amazon Web
Services root user can perform EMR actions on the cluster.
Destructuring the Response
data SetVisibleToAllUsersResponse Source #
See: newSetVisibleToAllUsersResponse
smart constructor.
Instances
newSetVisibleToAllUsersResponse :: SetVisibleToAllUsersResponse Source #
Create a value of SetVisibleToAllUsersResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.