amazonka-cognito-idp-1.6.0: Amazon Cognito Identity Provider 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.CognitoIdentityProvider.UpdateGroup

Contents

Description

Updates the specified group with the specified attributes.

Requires developer credentials.

Synopsis

Creating a Request

updateGroup Source #

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

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

  • ugPrecedence - The new precedence value for the group. For more information about this parameter, see .
  • ugDescription - A string containing the new description of the group.
  • ugRoleARN - The new role ARN for the group. This is used for setting the cognito:roles and cognito:preferred_role claims in the token.
  • ugGroupName - The name of the group.
  • ugUserPoolId - The user pool ID for the user pool.

data UpdateGroup Source #

See: updateGroup smart constructor.

Instances

Eq UpdateGroup Source # 
Data UpdateGroup Source # 

Methods

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

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

toConstr :: UpdateGroup -> Constr #

dataTypeOf :: UpdateGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateGroup Source # 
Show UpdateGroup Source # 
Generic UpdateGroup Source # 

Associated Types

type Rep UpdateGroup :: * -> * #

Hashable UpdateGroup Source # 
ToJSON UpdateGroup Source # 
NFData UpdateGroup Source # 

Methods

rnf :: UpdateGroup -> () #

AWSRequest UpdateGroup Source # 
ToHeaders UpdateGroup Source # 

Methods

toHeaders :: UpdateGroup -> [Header] #

ToPath UpdateGroup Source # 
ToQuery UpdateGroup Source # 
type Rep UpdateGroup Source # 
type Rep UpdateGroup = D1 * (MetaData "UpdateGroup" "Network.AWS.CognitoIdentityProvider.UpdateGroup" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "UpdateGroup'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ugPrecedence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_ugDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ugUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs UpdateGroup Source # 

Request Lenses

ugPrecedence :: Lens' UpdateGroup (Maybe Natural) Source #

The new precedence value for the group. For more information about this parameter, see .

ugDescription :: Lens' UpdateGroup (Maybe Text) Source #

A string containing the new description of the group.

ugRoleARN :: Lens' UpdateGroup (Maybe Text) Source #

The new role ARN for the group. This is used for setting the cognito:roles and cognito:preferred_role claims in the token.

ugGroupName :: Lens' UpdateGroup Text Source #

The name of the group.

ugUserPoolId :: Lens' UpdateGroup Text Source #

The user pool ID for the user pool.

Destructuring the Response

updateGroupResponse Source #

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

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

data UpdateGroupResponse Source #

See: updateGroupResponse smart constructor.

Instances

Eq UpdateGroupResponse Source # 
Data UpdateGroupResponse Source # 

Methods

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

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

toConstr :: UpdateGroupResponse -> Constr #

dataTypeOf :: UpdateGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateGroupResponse Source # 
Show UpdateGroupResponse Source # 
Generic UpdateGroupResponse Source # 
NFData UpdateGroupResponse Source # 

Methods

rnf :: UpdateGroupResponse -> () #

type Rep UpdateGroupResponse Source # 
type Rep UpdateGroupResponse = D1 * (MetaData "UpdateGroupResponse" "Network.AWS.CognitoIdentityProvider.UpdateGroup" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "UpdateGroupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugrsGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe GroupType))) (S1 * (MetaSel (Just Symbol "_ugrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

ugrsGroup :: Lens' UpdateGroupResponse (Maybe GroupType) Source #

The group object for the group.

ugrsResponseStatus :: Lens' UpdateGroupResponse Int Source #

  • - | The response status code.