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 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.
CreateEventIntegration' | |
|
Instances
newCreateEventIntegration Source #
:: 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.
$sel:description:CreateEventIntegration'
, createEventIntegration_description
- The description of the event integration.
$sel:tags:CreateEventIntegration'
, createEventIntegration_tags
- One or more tags.
$sel:name:CreateEventIntegration'
, createEventIntegration_name
- The name of the event integration.
$sel:eventFilter:CreateEventIntegration'
, createEventIntegration_eventFilter
- The event filter.
$sel:eventBridgeBus: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.
CreateEventIntegrationResponse' | |
|
Instances
Eq CreateEventIntegrationResponse Source # | |
Read CreateEventIntegrationResponse Source # | |
Show CreateEventIntegrationResponse Source # | |
Generic CreateEventIntegrationResponse Source # | |
NFData CreateEventIntegrationResponse Source # | |
Defined in Amazonka.AppIntegrationS.CreateEventIntegration rnf :: CreateEventIntegrationResponse -> () # | |
type Rep CreateEventIntegrationResponse Source # | |
Defined in Amazonka.AppIntegrationS.CreateEventIntegration type Rep CreateEventIntegrationResponse = D1 ('MetaData "CreateEventIntegrationResponse" "Amazonka.AppIntegrationS.CreateEventIntegration" "libZSservicesZSamazonka-appintegrationsZSamazonka-appintegrations" 'False) (C1 ('MetaCons "CreateEventIntegrationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventIntegrationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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:
$sel:eventIntegrationArn: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.