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 |
Updates an existing subscription for the given Amazon Security Lake account ID. You can update a subscriber by changing the sources that the subscriber consumes data from.
Synopsis
- data UpdateSubscriber = UpdateSubscriber' {
- externalId :: Maybe Text
- subscriberDescription :: Maybe Text
- subscriberName :: Maybe Text
- id :: Text
- sourceTypes :: [SourceType]
- newUpdateSubscriber :: Text -> UpdateSubscriber
- updateSubscriber_externalId :: Lens' UpdateSubscriber (Maybe Text)
- updateSubscriber_subscriberDescription :: Lens' UpdateSubscriber (Maybe Text)
- updateSubscriber_subscriberName :: Lens' UpdateSubscriber (Maybe Text)
- updateSubscriber_id :: Lens' UpdateSubscriber Text
- updateSubscriber_sourceTypes :: Lens' UpdateSubscriber [SourceType]
- data UpdateSubscriberResponse = UpdateSubscriberResponse' {}
- newUpdateSubscriberResponse :: Int -> UpdateSubscriberResponse
- updateSubscriberResponse_subscriber :: Lens' UpdateSubscriberResponse (Maybe SubscriberResource)
- updateSubscriberResponse_httpStatus :: Lens' UpdateSubscriberResponse Int
Creating a Request
data UpdateSubscriber Source #
See: newUpdateSubscriber
smart constructor.
UpdateSubscriber' | |
|
Instances
Create a value of UpdateSubscriber
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:
UpdateSubscriber
, updateSubscriber_externalId
- The external ID of the Security Lake account.
UpdateSubscriber
, updateSubscriber_subscriberDescription
- The description of the Security Lake account subscriber.
UpdateSubscriber
, updateSubscriber_subscriberName
- The name of the Security Lake account subscriber.
$sel:id:UpdateSubscriber'
, updateSubscriber_id
- A value created by Security Lake that uniquely identifies your
subscription.
UpdateSubscriber
, updateSubscriber_sourceTypes
- The supported Amazon Web Services from which logs and events are
collected. For the list of supported Amazon Web Services, see the
Amazon Security Lake User Guide.
Request Lenses
updateSubscriber_externalId :: Lens' UpdateSubscriber (Maybe Text) Source #
The external ID of the Security Lake account.
updateSubscriber_subscriberDescription :: Lens' UpdateSubscriber (Maybe Text) Source #
The description of the Security Lake account subscriber.
updateSubscriber_subscriberName :: Lens' UpdateSubscriber (Maybe Text) Source #
The name of the Security Lake account subscriber.
updateSubscriber_id :: Lens' UpdateSubscriber Text Source #
A value created by Security Lake that uniquely identifies your subscription.
updateSubscriber_sourceTypes :: Lens' UpdateSubscriber [SourceType] Source #
The supported Amazon Web Services from which logs and events are collected. For the list of supported Amazon Web Services, see the Amazon Security Lake User Guide.
Destructuring the Response
data UpdateSubscriberResponse Source #
See: newUpdateSubscriberResponse
smart constructor.
UpdateSubscriberResponse' | |
|
Instances
newUpdateSubscriberResponse Source #
Create a value of UpdateSubscriberResponse
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:subscriber:UpdateSubscriberResponse'
, updateSubscriberResponse_subscriber
- The account of the subscriber.
$sel:httpStatus:UpdateSubscriberResponse'
, updateSubscriberResponse_httpStatus
- The response's http status code.
Response Lenses
updateSubscriberResponse_subscriber :: Lens' UpdateSubscriberResponse (Maybe SubscriberResource) Source #
The account of the subscriber.
updateSubscriberResponse_httpStatus :: Lens' UpdateSubscriberResponse Int Source #
The response's http status code.