libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Read RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Show RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Generic RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type Rep RemovePermission :: Type -> Type #

NFData RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Methods

rnf :: RemovePermission -> () #

Hashable RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

ToJSON RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

AWSRequest RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type AWSResponse 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

type Rep RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

type Rep RemovePermission = D1 ('MetaData "RemovePermission" "Amazonka.CloudWatchEvents.RemovePermission" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" '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)))))
type AWSResponse RemovePermission Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

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

Instances details
Eq RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Read RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Show RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Generic RemovePermissionResponse Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.RemovePermission

Associated Types

type Rep RemovePermissionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" '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.