amazonka-opsworks-1.6.0: 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 # 
Data CreateUserProfile Source # 

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 # 
Show CreateUserProfile Source # 
Generic CreateUserProfile Source # 
Hashable CreateUserProfile Source # 
ToJSON CreateUserProfile Source # 
NFData CreateUserProfile Source # 

Methods

rnf :: CreateUserProfile -> () #

AWSRequest CreateUserProfile Source # 
ToHeaders CreateUserProfile Source # 
ToPath CreateUserProfile Source # 
ToQuery CreateUserProfile Source # 
type Rep CreateUserProfile Source # 
type Rep CreateUserProfile = D1 * (MetaData "CreateUserProfile" "Network.AWS.OpsWorks.CreateUserProfile" "amazonka-opsworks-1.6.0-dhw3H9lmJm2qKjEl8vg7Z" False) (C1 * (MetaCons "CreateUserProfile'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cupAllowSelfManagement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_cupSSHPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cupSSHUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cupIAMUserARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateUserProfile Source # 

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 # 
Data CreateUserProfileResponse Source # 

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 # 
Show CreateUserProfileResponse Source # 
Generic CreateUserProfileResponse Source # 
NFData CreateUserProfileResponse Source # 
type Rep CreateUserProfileResponse Source # 
type Rep CreateUserProfileResponse = D1 * (MetaData "CreateUserProfileResponse" "Network.AWS.OpsWorks.CreateUserProfile" "amazonka-opsworks-1.6.0-dhw3H9lmJm2qKjEl8vg7Z" False) (C1 * (MetaCons "CreateUserProfileResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cuprsIAMUserARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cuprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses