amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lambda.PutFunctionConcurrency

Description

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.

Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.

Synopsis

Creating a Request

data PutFunctionConcurrency Source #

See: newPutFunctionConcurrency smart constructor.

Constructors

PutFunctionConcurrency' 

Fields

  • functionName :: Text

    The name of the Lambda function.

    Name formats

    • Function namemy-function.
    • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN123456789012:function:my-function.

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

  • reservedConcurrentExecutions :: Natural

    The number of simultaneous executions to reserve for the function.

Instances

Instances details
ToJSON PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

ToHeaders PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

ToPath PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

ToQuery PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

AWSRequest PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Associated Types

type AWSResponse PutFunctionConcurrency #

Generic PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Associated Types

type Rep PutFunctionConcurrency :: Type -> Type #

Read PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Show PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

NFData PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Methods

rnf :: PutFunctionConcurrency -> () #

Eq PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Hashable PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

type AWSResponse PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

type Rep PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

type Rep PutFunctionConcurrency = D1 ('MetaData "PutFunctionConcurrency" "Amazonka.Lambda.PutFunctionConcurrency" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "PutFunctionConcurrency'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reservedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))

newPutFunctionConcurrency Source #

Create a value of PutFunctionConcurrency with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

PutFunctionConcurrency, putFunctionConcurrency_functionName - The name of the Lambda function.

Name formats

  • Function namemy-function.
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

PutFunctionConcurrency, putFunctionConcurrency_reservedConcurrentExecutions - The number of simultaneous executions to reserve for the function.

Request Lenses

putFunctionConcurrency_functionName :: Lens' PutFunctionConcurrency Text Source #

The name of the Lambda function.

Name formats

  • Function namemy-function.
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

putFunctionConcurrency_reservedConcurrentExecutions :: Lens' PutFunctionConcurrency Natural Source #

The number of simultaneous executions to reserve for the function.

Destructuring the Response

data Concurrency Source #

See: newConcurrency smart constructor.

Constructors

Concurrency' 

Fields

Instances

Instances details
FromJSON Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Generic Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Associated Types

type Rep Concurrency :: Type -> Type #

Read Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Show Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

NFData Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Methods

rnf :: Concurrency -> () #

Eq Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Hashable Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

type Rep Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

type Rep Concurrency = D1 ('MetaData "Concurrency" "Amazonka.Lambda.Types.Concurrency" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "Concurrency'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

newConcurrency :: Concurrency Source #

Create a value of Concurrency with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:reservedConcurrentExecutions:Concurrency', concurrency_reservedConcurrentExecutions - The number of concurrent executions that are reserved for this function. For more information, see Managing Lambda reserved concurrency.

Response Lenses

concurrency_reservedConcurrentExecutions :: Lens' Concurrency (Maybe Natural) Source #

The number of concurrent executions that are reserved for this function. For more information, see Managing Lambda reserved concurrency.