# Class CreateMessageBusRequest (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

    CreateMessageBusRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request message for the CreateMessageBus method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The parent collection in which to add this message bus. |
| `message_bus` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.MessageBus` Required. The message bus to create. |
| `message_bus_id` | `str` Required. The user-provided ID to be assigned to the MessageBus. It should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. |
| `validate_only` | `bool` Optional. If set, validate the request and preview the review, but do not post it. |