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 the permission of another Amazon Web Services account to be able
to put events to the specified event bus. Specify the account to revoke
by the StatementId
value that you associated with the account when you
granted it permission with PutPermission
. You can find the
StatementId
by using
DescribeEventBus.
Synopsis
- data RemovePermission = RemovePermission' {}
- newRemovePermission :: RemovePermission
- removePermission_eventBusName :: Lens' RemovePermission (Maybe Text)
- removePermission_removeAllPermissions :: Lens' RemovePermission (Maybe Bool)
- removePermission_statementId :: Lens' RemovePermission (Maybe Text)
- data RemovePermissionResponse = RemovePermissionResponse' {
- newRemovePermissionResponse :: RemovePermissionResponse
Creating a Request
data RemovePermission Source #
See: newRemovePermission
smart constructor.
RemovePermission' | |
|
Instances
newRemovePermission :: RemovePermission Source #
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:eventBusName:RemovePermission'
, removePermission_eventBusName
- The name of the event bus to revoke permissions for. If you omit this,
the default event bus is used.
$sel:removeAllPermissions:RemovePermission'
, removePermission_removeAllPermissions
- Specifies whether to remove all permissions.
$sel:statementId:RemovePermission'
, removePermission_statementId
- The statement ID corresponding to the account that is no longer allowed
to put events to the default event bus.
Request Lenses
removePermission_eventBusName :: Lens' RemovePermission (Maybe Text) Source #
The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
removePermission_removeAllPermissions :: Lens' RemovePermission (Maybe Bool) Source #
Specifies whether to remove all permissions.
removePermission_statementId :: Lens' RemovePermission (Maybe Text) Source #
The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
Destructuring the Response
data RemovePermissionResponse Source #
See: newRemovePermissionResponse
smart constructor.
Instances
newRemovePermissionResponse :: RemovePermissionResponse Source #
Create a value of RemovePermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.