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

Description

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

Synopsis

Creating a Request

data DeleteFunction Source #

See: newDeleteFunction smart constructor.

Constructors

DeleteFunction' 

Fields

  • qualifier :: Maybe Text

    Specify a version to delete. You can't delete a version that an alias references.

  • functionName :: Text

    The name of the Lambda function or version.

    Name formats

    • Function namemy-function (name-only), my-function:1 (with version).
    • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN123456789012:function:my-function.

    You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Instances

Instances details
ToHeaders DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

ToPath DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

ToQuery DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

AWSRequest DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type AWSResponse DeleteFunction #

Generic DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type Rep DeleteFunction :: Type -> Type #

Read DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Show DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

NFData DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Methods

rnf :: DeleteFunction -> () #

Eq DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Hashable DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type AWSResponse DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type Rep DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

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

newDeleteFunction Source #

Create a value of DeleteFunction 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:qualifier:DeleteFunction', deleteFunction_qualifier - Specify a version to delete. You can't delete a version that an alias references.

DeleteFunction, deleteFunction_functionName - The name of the Lambda function or version.

Name formats

  • Function namemy-function (name-only), my-function:1 (with version).
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Request Lenses

deleteFunction_qualifier :: Lens' DeleteFunction (Maybe Text) Source #

Specify a version to delete. You can't delete a version that an alias references.

deleteFunction_functionName :: Lens' DeleteFunction Text Source #

The name of the Lambda function or version.

Name formats

  • Function namemy-function (name-only), my-function:1 (with version).
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Destructuring the Response

data DeleteFunctionResponse Source #

See: newDeleteFunctionResponse smart constructor.

Instances

Instances details
Generic DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type Rep DeleteFunctionResponse :: Type -> Type #

Read DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Show DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

NFData DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Methods

rnf :: DeleteFunctionResponse -> () #

Eq DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type Rep DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type Rep DeleteFunctionResponse = D1 ('MetaData "DeleteFunctionResponse" "Amazonka.Lambda.DeleteFunction" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "DeleteFunctionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteFunctionResponse :: DeleteFunctionResponse Source #

Create a value of DeleteFunctionResponse with all optional fields omitted.

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