bm event rm
Syntax
The bm event rm command removes an event notification trigger from a bucket.
The bm event remove command has equivalent functionality to bm event rm.
The following command removes a configured event notifications for the
specified bucket notification target
for the mydata bucket on the mybuckit Buckit deployment:
bm event rm mybuckit/mydata arn:aws:sqs::primary:target
The command has the following syntax:
bm [GLOBALFLAGS] event remove \
ALIAS \
[ARN] \
[--event "string"] \
[--force] \
[--prefix "string"] \
[--suffix "string"]
Brackets
[]indicate optional parameters.Parameters sharing a line are mutually dependent.
Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
bm [GLOBALFLAGS] event remove [FLAGS] ALIAS ARN
Parameters
- ALIAS
- Required
The S3 service alias and bucket from which the command removes the event notification. For example:
bm event rm play/mybucket
- ARN
- Required
The Amazon Resource Name (ARN) of the notification target.
The Buckit server outputs an ARN at startup for each configured notification target. See Bucket notifications for more information.
Retrieve the ARN by running
bm event lson the bucket.
- --event
- Optional
The event type(s) specified when the event was added. The entries must match the values used when adding the event. If no event matches the list of event types, the command returns a
no notification configuration matchederror.Specify multiple events using a comma
,delimiter. See Supported Bucket Events for supported event types.Defaults to removing an event that triggers for all event types on the
ALIASbucket with theARNnotification target.Retrieve the event types used by running
bm event lson the bucket. Use the following table to convert event types in the command’s output to the entry required for thebm event rmcommand:Output of
mv event lsEvent type to use
s3:objectAccessedgets3:objectCreatedputs3:objectRemoveddeleteFor example, if the
bm event lsreturns the following:arn:minio:sqs::mytest:webhook s3:ObjectAccessed:*,s3:ObjectCreated:* Filter:
Use the following command to remove the event:
bm event rm alias/bucket arn:minio:sqs::mytest:webhook --event get,put
The order of event types does not matter, only that you include the same ones that exist for the event.
Global Flags
This command supports any of the global flags.
Examples
Remove Event Notifications from a Bucket
The following command removes all event notification triggers on a bucket. The command assumes the Buckit deployment has at least one configured bucket notification target:
bm event rm mybuckit/mydata arn:minio:sqs::primary:webhook
Behavior
S3 Compatibility
The bm commandline tool is built for compatibility with the AWS S3 API and is tested with Buckit and AWS S3 for expected functionality and behavior.
Buckit provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While bm commands may work as documented, any such usage is at your own risk.