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 |
Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy.
Synopsis
- data RemovePermission = RemovePermission' {
- qualifier :: Maybe Text
- revisionId :: Maybe Text
- functionName :: Text
- statementId :: Text
- newRemovePermission :: Text -> Text -> RemovePermission
- removePermission_qualifier :: Lens' RemovePermission (Maybe Text)
- removePermission_revisionId :: Lens' RemovePermission (Maybe Text)
- removePermission_functionName :: Lens' RemovePermission Text
- removePermission_statementId :: Lens' RemovePermission Text
- data RemovePermissionResponse = RemovePermissionResponse' {
- newRemovePermissionResponse :: RemovePermissionResponse
Creating a Request
data RemovePermission Source #
See: newRemovePermission
smart constructor.
RemovePermission' | |
|
Instances
:: Text | |
-> Text | |
-> RemovePermission |
Create a value of RemovePermission
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:RemovePermission'
, removePermission_qualifier
- Specify a version or alias to remove permissions from a published
version of the function.
$sel:revisionId:RemovePermission'
, removePermission_revisionId
- Only update the policy if the revision ID matches the ID that's
specified. Use this option to avoid modifying a policy that has changed
since you last read it.
$sel:functionName:RemovePermission'
, removePermission_functionName
- The name of the Lambda function, version, or alias.
Name formats
- Function name -
my-function
(name-only),my-function:v1
(with alias). - 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.
$sel:statementId:RemovePermission'
, removePermission_statementId
- Statement ID of the permission to remove.
Request Lenses
removePermission_qualifier :: Lens' RemovePermission (Maybe Text) Source #
Specify a version or alias to remove permissions from a published version of the function.
removePermission_revisionId :: Lens' RemovePermission (Maybe Text) Source #
Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.
removePermission_functionName :: Lens' RemovePermission Text Source #
The name of the Lambda function, version, or alias.
Name formats
- Function name -
my-function
(name-only),my-function:v1
(with alias). - 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.
removePermission_statementId :: Lens' RemovePermission Text Source #
Statement ID of the permission to remove.
Destructuring the Response
data RemovePermissionResponse Source #
See: newRemovePermissionResponse
smart constructor.
Instances
Eq RemovePermissionResponse Source # | |
Defined in Amazonka.Lambda.RemovePermission | |
Read RemovePermissionResponse Source # | |
Show RemovePermissionResponse Source # | |
Defined in Amazonka.Lambda.RemovePermission showsPrec :: Int -> RemovePermissionResponse -> ShowS # show :: RemovePermissionResponse -> String # showList :: [RemovePermissionResponse] -> ShowS # | |
Generic RemovePermissionResponse Source # | |
Defined in Amazonka.Lambda.RemovePermission type Rep RemovePermissionResponse :: Type -> Type # | |
NFData RemovePermissionResponse Source # | |
Defined in Amazonka.Lambda.RemovePermission rnf :: RemovePermissionResponse -> () # | |
type Rep RemovePermissionResponse Source # | |
newRemovePermissionResponse :: RemovePermissionResponse Source #
Create a value of RemovePermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.