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 |
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.
DeleteFunction' | |
|
Instances
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
Eq DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction | |
Read DeleteFunctionResponse Source # | |
Show DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction showsPrec :: Int -> DeleteFunctionResponse -> ShowS # show :: DeleteFunctionResponse -> String # showList :: [DeleteFunctionResponse] -> ShowS # | |
Generic DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction type Rep DeleteFunctionResponse :: Type -> Type # | |
NFData DeleteFunctionResponse Source # | |
Defined in Amazonka.Lambda.DeleteFunction 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.