// Revokes the permission of another AWS 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.
Revokes the permission of another AWS 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.
// Revokes the permission of another AWS 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 .
func (c *Client) RemovePermission(ctx context.Context, params *RemovePermissionInput, optFns ...func(*Options)) (*RemovePermissionOutput, error) {
	if params == nil {
		params = &RemovePermissionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "RemovePermission", params, optFns, addOperationRemovePermissionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*RemovePermissionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) RemovePermission ( ctx context . Context , params * RemovePermissionInput , optFns ... func ( * Options ) ) ( * RemovePermissionOutput , error ) { if params == nil { params = & RemovePermissionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationRemovePermissionMiddlewares ) if err != nil { return nil , err } out := result . ( * RemovePermissionOutput ) out . ResultMetadata = metadata return out , nil }
Revokes the permission of another AWS account to be able to put events to the
specified event bus.
Revokes the permission of another AWS account to be able to put events to the specified event bus .