Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DeleteFunction = DeleteFunction' {
- qualifier :: Maybe Text
- functionName :: Text
- newDeleteFunction :: Text -> DeleteFunction
- deleteFunction_qualifier :: Lens' DeleteFunction (Maybe Text)
- deleteFunction_functionName :: Lens' DeleteFunction Text
- data DeleteFunctionResponse = DeleteFunctionResponse' {
- newDeleteFunctionResponse :: DeleteFunctionResponse
Creating a Request
data DeleteFunction Source #
See: newDeleteFunction
smart constructor.
Constructors
DeleteFunction' | |
Fields
|
Instances
Arguments
:: Text | |
-> DeleteFunction |
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.
Constructors
DeleteFunctionResponse' | |
Instances
Eq DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction Methods (==) :: DeleteFunctionResponse -> DeleteFunctionResponse -> Bool # (/=) :: DeleteFunctionResponse -> DeleteFunctionResponse -> Bool # | |
Read DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction | |
Show DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction Methods showsPrec :: Int -> DeleteFunctionResponse -> ShowS # show :: DeleteFunctionResponse -> String # showList :: [DeleteFunctionResponse] -> ShowS # | |
Generic DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction Associated Types type Rep DeleteFunctionResponse :: Type -> Type # Methods from :: DeleteFunctionResponse -> Rep DeleteFunctionResponse x # to :: Rep DeleteFunctionResponse x -> DeleteFunctionResponse # | |
NFData DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction Methods rnf :: DeleteFunctionResponse -> () # | |
type Rep DeleteFunctionResponse Source # | |
newDeleteFunctionResponse :: DeleteFunctionResponse Source #
Create a value of DeleteFunctionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.