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.CreateUserProfile

Contents

Description

Creates a new user profile.

Required Permissions : To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

Synopsis

Creating a Request

createUserProfile Source #

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

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

  • cupAllowSelfManagement - Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key .
  • cupSSHPublicKey - The user's public SSH key.
  • cupSSHUsername - The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], -, and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname . If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.
  • cupIAMUserARN - The user's IAM ARN; this can also be a federated user's ARN.

data CreateUserProfile Source #

See: createUserProfile smart constructor.

Instances
Eq CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Data CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Methods

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

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

toConstr :: CreateUserProfile -> Constr #

dataTypeOf :: CreateUserProfile -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Show CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Generic CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfile :: Type -> Type #

Hashable CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

ToJSON CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

AWSRequest CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Associated Types

type Rs CreateUserProfile :: Type #

ToHeaders CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

ToPath CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

ToQuery CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

NFData CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Methods

rnf :: CreateUserProfile -> () #

type Rep CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

type Rep CreateUserProfile = D1 (MetaData "CreateUserProfile" "Network.AWS.OpsWorks.CreateUserProfile" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "CreateUserProfile'" PrefixI True) ((S1 (MetaSel (Just "_cupAllowSelfManagement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cupSSHPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cupSSHUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cupIAMUserARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateUserProfile Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Request Lenses

cupAllowSelfManagement :: Lens' CreateUserProfile (Maybe Bool) Source #

Whether users can specify their own SSH public key through the My Settings page. For more information, see Setting an IAM User's Public SSH Key .

cupSSHPublicKey :: Lens' CreateUserProfile (Maybe Text) Source #

The user's public SSH key.

cupSSHUsername :: Lens' CreateUserProfile (Maybe Text) Source #

The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], -, and '_'. If the specified name includes other punctuation marks, AWS OpsWorks Stacks removes them. For example, my.name will be changed to myname . If you do not specify an SSH user name, AWS OpsWorks Stacks generates one from the IAM user name.

cupIAMUserARN :: Lens' CreateUserProfile Text Source #

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

Destructuring the Response

createUserProfileResponse Source #

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

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

data CreateUserProfileResponse Source #

Contains the response to a CreateUserProfile request.

See: createUserProfileResponse smart constructor.

Instances
Eq CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Data CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Methods

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

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

toConstr :: CreateUserProfileResponse -> Constr #

dataTypeOf :: CreateUserProfileResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Show CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Generic CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

Associated Types

type Rep CreateUserProfileResponse :: Type -> Type #

NFData CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

type Rep CreateUserProfileResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateUserProfile

type Rep CreateUserProfileResponse = D1 (MetaData "CreateUserProfileResponse" "Network.AWS.OpsWorks.CreateUserProfile" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "CreateUserProfileResponse'" PrefixI True) (S1 (MetaSel (Just "_cuprsIAMUserARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cuprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses