amazonka-iam-1.6.0: Amazon Identity and Access Management 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.IAM.CreateServiceSpecificCredential

Contents

Description

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.

You can have a maximum of two sets of service-specific credentials for each supported service per user.

The only supported service at this time is AWS CodeCommit.

You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential .

For more information about service-specific credentials, see Using IAM with AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys in the IAM User Guide .

Synopsis

Creating a Request

createServiceSpecificCredential Source #

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

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

  • csscUserName - The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
  • csscServiceName - The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.

data CreateServiceSpecificCredential Source #

See: createServiceSpecificCredential smart constructor.

Instances

Eq CreateServiceSpecificCredential Source # 
Data CreateServiceSpecificCredential Source # 

Methods

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

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

toConstr :: CreateServiceSpecificCredential -> Constr #

dataTypeOf :: CreateServiceSpecificCredential -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateServiceSpecificCredential Source # 
Show CreateServiceSpecificCredential Source # 
Generic CreateServiceSpecificCredential Source # 
Hashable CreateServiceSpecificCredential Source # 
NFData CreateServiceSpecificCredential Source # 
AWSRequest CreateServiceSpecificCredential Source # 
ToHeaders CreateServiceSpecificCredential Source # 
ToPath CreateServiceSpecificCredential Source # 
ToQuery CreateServiceSpecificCredential Source # 
type Rep CreateServiceSpecificCredential Source # 
type Rep CreateServiceSpecificCredential = D1 * (MetaData "CreateServiceSpecificCredential" "Network.AWS.IAM.CreateServiceSpecificCredential" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "CreateServiceSpecificCredential'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csscUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_csscServiceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateServiceSpecificCredential Source # 

Request Lenses

csscUserName :: Lens' CreateServiceSpecificCredential Text Source #

The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

csscServiceName :: Lens' CreateServiceSpecificCredential Text Source #

The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.

Destructuring the Response

createServiceSpecificCredentialResponse Source #

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

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

  • csscrsServiceSpecificCredential - A structure that contains information about the newly created service-specific credential. Important: This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you will have to reset the password with ResetServiceSpecificCredential .
  • csscrsResponseStatus - -- | The response status code.

data CreateServiceSpecificCredentialResponse Source #

Instances

Eq CreateServiceSpecificCredentialResponse Source # 
Data CreateServiceSpecificCredentialResponse Source # 

Methods

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

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

toConstr :: CreateServiceSpecificCredentialResponse -> Constr #

dataTypeOf :: CreateServiceSpecificCredentialResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateServiceSpecificCredentialResponse Source # 
Generic CreateServiceSpecificCredentialResponse Source # 
NFData CreateServiceSpecificCredentialResponse Source # 
type Rep CreateServiceSpecificCredentialResponse Source # 
type Rep CreateServiceSpecificCredentialResponse = D1 * (MetaData "CreateServiceSpecificCredentialResponse" "Network.AWS.IAM.CreateServiceSpecificCredential" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "CreateServiceSpecificCredentialResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csscrsServiceSpecificCredential") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ServiceSpecificCredential))) (S1 * (MetaSel (Just Symbol "_csscrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

csscrsServiceSpecificCredential :: Lens' CreateServiceSpecificCredentialResponse (Maybe ServiceSpecificCredential) Source #

A structure that contains information about the newly created service-specific credential. Important: This is the only time that the password for this credential set is available. It cannot be recovered later. Instead, you will have to reset the password with ResetServiceSpecificCredential .