| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppIntegrationS.CreateEventIntegration
Description
Creates an EventIntegration, given a specified name, description, and a reference to an Amazon EventBridge bus in your account and a partner event source that pushes events to that bus. No objects are created in the your account, only metadata that is persisted on the EventIntegration control plane.
Synopsis
- data CreateEventIntegration = CreateEventIntegration' {
- clientToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- name :: Text
- eventFilter :: EventFilter
- eventBridgeBus :: Text
- newCreateEventIntegration :: Text -> EventFilter -> Text -> CreateEventIntegration
- createEventIntegration_clientToken :: Lens' CreateEventIntegration (Maybe Text)
- createEventIntegration_description :: Lens' CreateEventIntegration (Maybe Text)
- createEventIntegration_tags :: Lens' CreateEventIntegration (Maybe (HashMap Text Text))
- createEventIntegration_name :: Lens' CreateEventIntegration Text
- createEventIntegration_eventFilter :: Lens' CreateEventIntegration EventFilter
- createEventIntegration_eventBridgeBus :: Lens' CreateEventIntegration Text
- data CreateEventIntegrationResponse = CreateEventIntegrationResponse' {}
- newCreateEventIntegrationResponse :: Int -> CreateEventIntegrationResponse
- createEventIntegrationResponse_eventIntegrationArn :: Lens' CreateEventIntegrationResponse (Maybe Text)
- createEventIntegrationResponse_httpStatus :: Lens' CreateEventIntegrationResponse Int
Creating a Request
data CreateEventIntegration Source #
See: newCreateEventIntegration smart constructor.
Constructors
| CreateEventIntegration' | |
Fields
| |
Instances
newCreateEventIntegration Source #
Arguments
| :: Text | |
| -> EventFilter | |
| -> Text | |
| -> CreateEventIntegration |
Create a value of CreateEventIntegration 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:clientToken:CreateEventIntegration', createEventIntegration_clientToken - A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
CreateEventIntegration, createEventIntegration_description - The description of the event integration.
CreateEventIntegration, createEventIntegration_tags - One or more tags.
CreateEventIntegration, createEventIntegration_name - The name of the event integration.
CreateEventIntegration, createEventIntegration_eventFilter - The event filter.
CreateEventIntegration, createEventIntegration_eventBridgeBus - The EventBridge bus.
Request Lenses
createEventIntegration_clientToken :: Lens' CreateEventIntegration (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createEventIntegration_description :: Lens' CreateEventIntegration (Maybe Text) Source #
The description of the event integration.
createEventIntegration_tags :: Lens' CreateEventIntegration (Maybe (HashMap Text Text)) Source #
One or more tags.
createEventIntegration_name :: Lens' CreateEventIntegration Text Source #
The name of the event integration.
createEventIntegration_eventFilter :: Lens' CreateEventIntegration EventFilter Source #
The event filter.
createEventIntegration_eventBridgeBus :: Lens' CreateEventIntegration Text Source #
The EventBridge bus.
Destructuring the Response
data CreateEventIntegrationResponse Source #
See: newCreateEventIntegrationResponse smart constructor.
Constructors
| CreateEventIntegrationResponse' | |
Fields
| |
Instances
newCreateEventIntegrationResponse Source #
Create a value of CreateEventIntegrationResponse 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:
CreateEventIntegrationResponse, createEventIntegrationResponse_eventIntegrationArn - The Amazon Resource Name (ARN) of the event integration.
$sel:httpStatus:CreateEventIntegrationResponse', createEventIntegrationResponse_httpStatus - The response's http status code.
Response Lenses
createEventIntegrationResponse_eventIntegrationArn :: Lens' CreateEventIntegrationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the event integration.
createEventIntegrationResponse_httpStatus :: Lens' CreateEventIntegrationResponse Int Source #
The response's http status code.