libZSservicesZSamazonka-lambdaZSamazonka-lambda
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 Managing Concurrency.

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 name - my-function.
    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN - 123456789012: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
Eq PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Read PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Show PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Generic PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Associated Types

type Rep PutFunctionConcurrency :: Type -> Type #

NFData PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Methods

rnf :: PutFunctionConcurrency -> () #

Hashable PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

ToJSON PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

AWSRequest PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

Associated Types

type AWSResponse 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

type Rep PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

type Rep PutFunctionConcurrency = D1 ('MetaData "PutFunctionConcurrency" "Amazonka.Lambda.PutFunctionConcurrency" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "PutFunctionConcurrency'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reservedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))
type AWSResponse PutFunctionConcurrency Source # 
Instance details

Defined in Amazonka.Lambda.PutFunctionConcurrency

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:

$sel:functionName:PutFunctionConcurrency', putFunctionConcurrency_functionName - The name of the Lambda function.

Name formats

  • Function name - my-function.
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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.

$sel:reservedConcurrentExecutions: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 name - my-function.
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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
Eq Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Read Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Show 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 #

NFData Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

Methods

rnf :: Concurrency -> () #

Hashable Concurrency Source # 
Instance details

Defined in Amazonka.Lambda.Types.Concurrency

FromJSON 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" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" '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 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 Concurrency.