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.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 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's referenced by an alias.

  • functionName :: Text

    The name of the Lambda function or version.

    Name formats

    • Function name - my-function (name-only), my-function:1 (with version).
    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN - 123456789012: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
Eq DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Read DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Show DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Generic DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type Rep DeleteFunction :: Type -> Type #

NFData DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Methods

rnf :: DeleteFunction -> () #

Hashable DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

AWSRequest DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type AWSResponse DeleteFunction #

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

type Rep DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type Rep DeleteFunction = D1 ('MetaData "DeleteFunction" "Amazonka.Lambda.DeleteFunction" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" '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)))
type AWSResponse DeleteFunction Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

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's referenced by an alias.

$sel:functionName:DeleteFunction', deleteFunction_functionName - The name of the Lambda function or version.

Name formats

  • Function name - my-function (name-only), my-function:1 (with version).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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's referenced by an alias.

deleteFunction_functionName :: Lens' DeleteFunction Text Source #

The name of the Lambda function or version.

Name formats

  • Function name - my-function (name-only), my-function:1 (with version).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012: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
Eq DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Read DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Show DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Generic DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Associated Types

type Rep DeleteFunctionResponse :: Type -> Type #

NFData DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

Methods

rnf :: DeleteFunctionResponse -> () #

type Rep DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.DeleteFunction

type Rep DeleteFunctionResponse = D1 ('MetaData "DeleteFunctionResponse" "Amazonka.Lambda.DeleteFunction" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" '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.