Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
Synopsis
- data CreateEventBus = CreateEventBus' {}
- newCreateEventBus :: Text -> CreateEventBus
- createEventBus_eventSourceName :: Lens' CreateEventBus (Maybe Text)
- createEventBus_tags :: Lens' CreateEventBus (Maybe [Tag])
- createEventBus_name :: Lens' CreateEventBus Text
- data CreateEventBusResponse = CreateEventBusResponse' {
- eventBusArn :: Maybe Text
- httpStatus :: Int
- newCreateEventBusResponse :: Int -> CreateEventBusResponse
- createEventBusResponse_eventBusArn :: Lens' CreateEventBusResponse (Maybe Text)
- createEventBusResponse_httpStatus :: Lens' CreateEventBusResponse Int
Creating a Request
data CreateEventBus Source #
See: newCreateEventBus
smart constructor.
CreateEventBus' | |
|
Instances
Create a value of CreateEventBus
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:eventSourceName:CreateEventBus'
, createEventBus_eventSourceName
- If you are creating a partner event bus, this specifies the partner
event source that the new event bus will be matched with.
$sel:tags:CreateEventBus'
, createEventBus_tags
- Tags to associate with the event bus.
$sel:name:CreateEventBus'
, createEventBus_name
- The name of the new event bus.
Event bus names cannot contain the / character. You can't use the name
default
for a custom event bus, as this name is already used for your
account's default event bus.
If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.
Request Lenses
createEventBus_eventSourceName :: Lens' CreateEventBus (Maybe Text) Source #
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
createEventBus_tags :: Lens' CreateEventBus (Maybe [Tag]) Source #
Tags to associate with the event bus.
createEventBus_name :: Lens' CreateEventBus Text Source #
The name of the new event bus.
Event bus names cannot contain the / character. You can't use the name
default
for a custom event bus, as this name is already used for your
account's default event bus.
If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.
Destructuring the Response
data CreateEventBusResponse Source #
See: newCreateEventBusResponse
smart constructor.
CreateEventBusResponse' | |
|
Instances
newCreateEventBusResponse Source #
Create a value of CreateEventBusResponse
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:eventBusArn:CreateEventBusResponse'
, createEventBusResponse_eventBusArn
- The ARN of the new event bus.
$sel:httpStatus:CreateEventBusResponse'
, createEventBusResponse_httpStatus
- The response's http status code.
Response Lenses
createEventBusResponse_eventBusArn :: Lens' CreateEventBusResponse (Maybe Text) Source #
The ARN of the new event bus.
createEventBusResponse_httpStatus :: Lens' CreateEventBusResponse Int Source #
The response's http status code.