amazonka-apigateway-1.6.1: Amazon API Gateway 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.APIGateway.UpdateAccount

Contents

Description

Changes information about the current Account resource.

Synopsis

Creating a Request

updateAccount :: UpdateAccount Source #

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

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

  • uaPatchOperations - A list of update operations to be applied to the specified resource and in the order specified in this list.

data UpdateAccount Source #

Requests API Gateway to change information about the current Account resource.

See: updateAccount smart constructor.

Instances
Eq UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Data UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Methods

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

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

toConstr :: UpdateAccount -> Constr #

dataTypeOf :: UpdateAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Show UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Generic UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Associated Types

type Rep UpdateAccount :: Type -> Type #

Hashable UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

ToJSON UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

AWSRequest UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Associated Types

type Rs UpdateAccount :: Type #

ToHeaders UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

ToPath UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

ToQuery UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

NFData UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Methods

rnf :: UpdateAccount -> () #

type Rep UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

type Rep UpdateAccount = D1 (MetaData "UpdateAccount" "Network.AWS.APIGateway.UpdateAccount" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" True) (C1 (MetaCons "UpdateAccount'" PrefixI True) (S1 (MetaSel (Just "_uaPatchOperations") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [PatchOperation]))))
type Rs UpdateAccount Source # 
Instance details

Defined in Network.AWS.APIGateway.UpdateAccount

Request Lenses

uaPatchOperations :: Lens' UpdateAccount [PatchOperation] Source #

A list of update operations to be applied to the specified resource and in the order specified in this list.

Destructuring the Response

account :: Account Source #

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

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

data Account Source #

Represents an AWS account that is associated with API Gateway.

To view the account info, call GET on this resource.

Error Codes The following exception may be thrown when the request fails.

  • UnauthorizedException * NotFoundException * TooManyRequestsException

For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

Example: Get the information about an account. Request @GET account HTTP1.1 Content-Type: applicationjson Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160531T184618Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}us-east-1apigatewayaws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash} Response The successful response returns a 200 OK@ status code and a payload similar to the following:

@{ "_links": { "curies": { "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html", "name": "account", "templated": true }, "self": { "href": "account" }, "account:update": { "href": "account" } }, "cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole", "throttleSettings": { "rateLimit": 500, "burstLimit": 1000 } } @ In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

API Gateway Limits Developer Guide , AWS CLI

See: account smart constructor.

Instances
Eq Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

(==) :: Account -> Account -> Bool #

(/=) :: Account -> Account -> Bool #

Data Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

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

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

toConstr :: Account -> Constr #

dataTypeOf :: Account -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Show Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Generic Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Associated Types

type Rep Account :: Type -> Type #

Methods

from :: Account -> Rep Account x #

to :: Rep Account x -> Account #

Hashable Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

hashWithSalt :: Int -> Account -> Int #

hash :: Account -> Int #

FromJSON Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

NFData Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

rnf :: Account -> () #

type Rep Account Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

type Rep Account = D1 (MetaData "Account" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "Account'" PrefixI True) ((S1 (MetaSel (Just "_aApiKeyVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aCloudwatchRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_aFeatures") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_aThrottleSettings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ThrottleSettings)))))

Response Lenses

aApiKeyVersion :: Lens' Account (Maybe Text) Source #

The version of the API keys used for the account.

aCloudwatchRoleARN :: Lens' Account (Maybe Text) Source #

The ARN of an Amazon CloudWatch role for the current Account .

aFeatures :: Lens' Account [Text] Source #

A list of features supported for the account. When usage plans are enabled, the features list will include an entry of UsagePlans .

aThrottleSettings :: Lens' Account (Maybe ThrottleSettings) Source #

Specifies the API request limits configured for the current Account .