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 event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can also enable or disable the event destination.
You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.
Synopsis
- data UpdateEventDestination = UpdateEventDestination' {}
- newUpdateEventDestination :: Text -> Text -> UpdateEventDestination
- updateEventDestination_cloudWatchLogsDestination :: Lens' UpdateEventDestination (Maybe CloudWatchLogsDestination)
- updateEventDestination_enabled :: Lens' UpdateEventDestination (Maybe Bool)
- updateEventDestination_kinesisFirehoseDestination :: Lens' UpdateEventDestination (Maybe KinesisFirehoseDestination)
- updateEventDestination_matchingEventTypes :: Lens' UpdateEventDestination (Maybe (NonEmpty EventType))
- updateEventDestination_snsDestination :: Lens' UpdateEventDestination (Maybe SnsDestination)
- updateEventDestination_configurationSetName :: Lens' UpdateEventDestination Text
- updateEventDestination_eventDestinationName :: Lens' UpdateEventDestination Text
- data UpdateEventDestinationResponse = UpdateEventDestinationResponse' {}
- newUpdateEventDestinationResponse :: Int -> UpdateEventDestinationResponse
- updateEventDestinationResponse_configurationSetArn :: Lens' UpdateEventDestinationResponse (Maybe Text)
- updateEventDestinationResponse_configurationSetName :: Lens' UpdateEventDestinationResponse (Maybe Text)
- updateEventDestinationResponse_eventDestination :: Lens' UpdateEventDestinationResponse (Maybe EventDestination)
- updateEventDestinationResponse_httpStatus :: Lens' UpdateEventDestinationResponse Int
Creating a Request
data UpdateEventDestination Source #
See: newUpdateEventDestination
smart constructor.
UpdateEventDestination' | |
|
Instances
newUpdateEventDestination Source #
Create a value of UpdateEventDestination
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:
UpdateEventDestination
, updateEventDestination_cloudWatchLogsDestination
- An object that contains information about an event destination that
sends data to CloudWatch Logs.
UpdateEventDestination
, updateEventDestination_enabled
- When set to true logging is enabled.
UpdateEventDestination
, updateEventDestination_kinesisFirehoseDestination
- An object that contains information about an event destination for
logging to Kinesis Data Firehose.
UpdateEventDestination
, updateEventDestination_matchingEventTypes
- An array of event types that determine which events to log.
UpdateEventDestination
, updateEventDestination_snsDestination
- An object that contains information about an event destination that
sends data to Amazon SNS.
UpdateEventDestination
, updateEventDestination_configurationSetName
- The configuration set to update with the new event destination. Valid
values for this can be the ConfigurationSetName or ConfigurationSetArn.
UpdateEventDestination
, updateEventDestination_eventDestinationName
- The name to use for the event destination.
Request Lenses
updateEventDestination_cloudWatchLogsDestination :: Lens' UpdateEventDestination (Maybe CloudWatchLogsDestination) Source #
An object that contains information about an event destination that sends data to CloudWatch Logs.
updateEventDestination_enabled :: Lens' UpdateEventDestination (Maybe Bool) Source #
When set to true logging is enabled.
updateEventDestination_kinesisFirehoseDestination :: Lens' UpdateEventDestination (Maybe KinesisFirehoseDestination) Source #
An object that contains information about an event destination for logging to Kinesis Data Firehose.
updateEventDestination_matchingEventTypes :: Lens' UpdateEventDestination (Maybe (NonEmpty EventType)) Source #
An array of event types that determine which events to log.
updateEventDestination_snsDestination :: Lens' UpdateEventDestination (Maybe SnsDestination) Source #
An object that contains information about an event destination that sends data to Amazon SNS.
updateEventDestination_configurationSetName :: Lens' UpdateEventDestination Text Source #
The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.
updateEventDestination_eventDestinationName :: Lens' UpdateEventDestination Text Source #
The name to use for the event destination.
Destructuring the Response
data UpdateEventDestinationResponse Source #
See: newUpdateEventDestinationResponse
smart constructor.
UpdateEventDestinationResponse' | |
|
Instances
newUpdateEventDestinationResponse Source #
Create a value of UpdateEventDestinationResponse
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:
UpdateEventDestinationResponse
, updateEventDestinationResponse_configurationSetArn
- The Amazon Resource Name (ARN) for the ConfigurationSet that was
updated.
UpdateEventDestination
, updateEventDestinationResponse_configurationSetName
- The name of the configuration set.
$sel:eventDestination:UpdateEventDestinationResponse'
, updateEventDestinationResponse_eventDestination
- An EventDestination object containing the details of where events will
be logged.
$sel:httpStatus:UpdateEventDestinationResponse'
, updateEventDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
updateEventDestinationResponse_configurationSetArn :: Lens' UpdateEventDestinationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.
updateEventDestinationResponse_configurationSetName :: Lens' UpdateEventDestinationResponse (Maybe Text) Source #
The name of the configuration set.
updateEventDestinationResponse_eventDestination :: Lens' UpdateEventDestinationResponse (Maybe EventDestination) Source #
An EventDestination object containing the details of where events will be logged.
updateEventDestinationResponse_httpStatus :: Lens' UpdateEventDestinationResponse Int Source #
The response's http status code.