amazonka-cloudwatch-events-2.0: Amazon EventBridge SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatchEvents.RemovePermission

Description

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

Creating a Request

data RemovePermission Source #

See: newRemovePermission smart constructor.

Constructors

RemovePermission' 

Fields

Instances

Instances details
ToJSON RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

ToHeaders RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

ToPath RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

ToQuery RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

AWSRequest RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type AWSResponse RemovePermission #

Generic RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type Rep RemovePermission :: Type -> Type #

Read RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Show RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

NFData RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Methods

rnf :: RemovePermission -> () #

Eq RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Hashable RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type AWSResponse RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type Rep RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type Rep RemovePermission = D1 ('MetaData "RemovePermission" "Amazonka.CloudWatchEvents.RemovePermission" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "RemovePermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventBusName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "removeAllPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "statementId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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:

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

Instances details
Generic RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type Rep RemovePermissionResponse :: Type -> Type #

Read RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Show RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

NFData RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Eq RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type Rep RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type Rep RemovePermissionResponse = D1 ('MetaData "RemovePermissionResponse" "Amazonka.CloudWatchEvents.RemovePermission" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" 'False) (C1 ('MetaCons "RemovePermissionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newRemovePermissionResponse :: RemovePermissionResponse Source #

Create a value of RemovePermissionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.