amazonka-opsworks-1.6.1: Amazon OpsWorks SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.SetPermission

Contents

Description

Specifies a user's permissions. For more information, see Security and Permissions .

Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

Synopsis

Creating a Request

setPermission Source #

Creates a value of SetPermission with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • spAllowSudo - The user is allowed to use sudo to elevate privileges.
  • spLevel - The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level. * deny * show * deploy * manage * iam_only For more information on the permissions associated with these levels, see Managing User Permissions .
  • spAllowSSH - The user is allowed to use SSH to communicate with the instance.
  • spStackId - The stack ID.
  • spIAMUserARN - The user's IAM ARN. This can also be a federated user's ARN.

data SetPermission Source #

See: setPermission smart constructor.

Instances
Eq SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Data SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetPermission -> c SetPermission #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetPermission #

toConstr :: SetPermission -> Constr #

dataTypeOf :: SetPermission -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetPermission) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetPermission) #

gmapT :: (forall b. Data b => b -> b) -> SetPermission -> SetPermission #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetPermission -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetPermission -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetPermission -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetPermission -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetPermission -> m SetPermission #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetPermission -> m SetPermission #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetPermission -> m SetPermission #

Read SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Show SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Generic SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Associated Types

type Rep SetPermission :: Type -> Type #

Hashable SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

ToJSON SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

AWSRequest SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Associated Types

type Rs SetPermission :: Type #

ToHeaders SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

ToPath SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

ToQuery SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

NFData SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Methods

rnf :: SetPermission -> () #

type Rep SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

type Rep SetPermission = D1 (MetaData "SetPermission" "Network.AWS.OpsWorks.SetPermission" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "SetPermission'" PrefixI True) ((S1 (MetaSel (Just "_spAllowSudo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_spLevel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_spAllowSSH") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_spStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_spIAMUserARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SetPermission Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Request Lenses

spAllowSudo :: Lens' SetPermission (Maybe Bool) Source #

The user is allowed to use sudo to elevate privileges.

spLevel :: Lens' SetPermission (Maybe Text) Source #

The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level. * deny * show * deploy * manage * iam_only For more information on the permissions associated with these levels, see Managing User Permissions .

spAllowSSH :: Lens' SetPermission (Maybe Bool) Source #

The user is allowed to use SSH to communicate with the instance.

spIAMUserARN :: Lens' SetPermission Text Source #

The user's IAM ARN. This can also be a federated user's ARN.

Destructuring the Response

setPermissionResponse :: SetPermissionResponse Source #

Creates a value of SetPermissionResponse with the minimum fields required to make a request.

data SetPermissionResponse Source #

See: setPermissionResponse smart constructor.

Instances
Eq SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Data SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetPermissionResponse -> c SetPermissionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetPermissionResponse #

toConstr :: SetPermissionResponse -> Constr #

dataTypeOf :: SetPermissionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetPermissionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetPermissionResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetPermissionResponse -> SetPermissionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetPermissionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetPermissionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetPermissionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetPermissionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetPermissionResponse -> m SetPermissionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetPermissionResponse -> m SetPermissionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetPermissionResponse -> m SetPermissionResponse #

Read SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Show SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Generic SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Associated Types

type Rep SetPermissionResponse :: Type -> Type #

NFData SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

Methods

rnf :: SetPermissionResponse -> () #

type Rep SetPermissionResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.SetPermission

type Rep SetPermissionResponse = D1 (MetaData "SetPermissionResponse" "Network.AWS.OpsWorks.SetPermission" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "SetPermissionResponse'" PrefixI False) (U1 :: Type -> Type))