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.PutProvisionedConcurrencyConfig

Description

Adds a provisioned concurrency configuration to a function's alias or version.

Synopsis

Creating a Request

data PutProvisionedConcurrencyConfig Source #

See: newPutProvisionedConcurrencyConfig smart constructor.

Constructors

PutProvisionedConcurrencyConfig' 

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.

  • qualifier :: Text

    The version number or alias name.

  • provisionedConcurrentExecutions :: Natural

    The amount of provisioned concurrency to allocate for the version or alias.

Instances

Instances details
Eq PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Read PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Show PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Generic PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Associated Types

type Rep PutProvisionedConcurrencyConfig :: Type -> Type #

NFData PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Hashable PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

ToJSON PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

AWSRequest PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

ToHeaders PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

ToPath PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

ToQuery PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

type Rep PutProvisionedConcurrencyConfig Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

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

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

newPutProvisionedConcurrencyConfig Source #

Create a value of PutProvisionedConcurrencyConfig 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:PutProvisionedConcurrencyConfig', putProvisionedConcurrencyConfig_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:qualifier:PutProvisionedConcurrencyConfig', putProvisionedConcurrencyConfig_qualifier - The version number or alias name.

$sel:provisionedConcurrentExecutions:PutProvisionedConcurrencyConfig', putProvisionedConcurrencyConfig_provisionedConcurrentExecutions - The amount of provisioned concurrency to allocate for the version or alias.

Request Lenses

putProvisionedConcurrencyConfig_functionName :: Lens' PutProvisionedConcurrencyConfig 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.

putProvisionedConcurrencyConfig_provisionedConcurrentExecutions :: Lens' PutProvisionedConcurrencyConfig Natural Source #

The amount of provisioned concurrency to allocate for the version or alias.

Destructuring the Response

data PutProvisionedConcurrencyConfigResponse Source #

Constructors

PutProvisionedConcurrencyConfigResponse' 

Fields

Instances

Instances details
Eq PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Read PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Show PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

Generic PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

NFData PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

type Rep PutProvisionedConcurrencyConfigResponse Source # 
Instance details

Defined in Amazonka.Lambda.PutProvisionedConcurrencyConfig

type Rep PutProvisionedConcurrencyConfigResponse = D1 ('MetaData "PutProvisionedConcurrencyConfigResponse" "Amazonka.Lambda.PutProvisionedConcurrencyConfig" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "PutProvisionedConcurrencyConfigResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisionedConcurrencyStatusEnum)) :*: (S1 ('MetaSel ('Just "requestedProvisionedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "availableProvisionedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "statusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "allocatedProvisionedConcurrentExecutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "lastModified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newPutProvisionedConcurrencyConfigResponse Source #

Create a value of PutProvisionedConcurrencyConfigResponse 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:status:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_status - The status of the allocation process.

$sel:requestedProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_requestedProvisionedConcurrentExecutions - The amount of provisioned concurrency requested.

$sel:availableProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_availableProvisionedConcurrentExecutions - The amount of provisioned concurrency available.

$sel:statusReason:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_statusReason - For failed allocations, the reason that provisioned concurrency could not be allocated.

$sel:allocatedProvisionedConcurrentExecutions:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_allocatedProvisionedConcurrentExecutions - The amount of provisioned concurrency allocated.

$sel:lastModified:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_lastModified - The date and time that a user last updated the configuration, in ISO 8601 format.

$sel:httpStatus:PutProvisionedConcurrencyConfigResponse', putProvisionedConcurrencyConfigResponse_httpStatus - The response's http status code.

Response Lenses

putProvisionedConcurrencyConfigResponse_statusReason :: Lens' PutProvisionedConcurrencyConfigResponse (Maybe Text) Source #

For failed allocations, the reason that provisioned concurrency could not be allocated.