Skip to main content

data_lake_exception_subscriptions

Creates, updates, deletes, gets or lists a data_lake_exception_subscriptions resource.

Overview

Namedata_lake_exception_subscriptions
TypeResource
Idaws.securitylake.data_lake_exception_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
exception_time_to_liveinteger (int64)The expiration period and time-to-live (TTL). It is the duration of time until which the exception message remains.
notification_endpointstringThe Amazon Web Services account where you receive exception notifications. (pattern: <code>^[\\w-_:/.@=+]*$</code>)
subscription_protocolstringThe subscription protocol to which exception notifications are posted. (pattern: <code>^[a-z-]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_lake_exception_subscriptionselectregionRetrieves the protocol and endpoint that were provided when subscribing to Amazon SNS topics for exception notifications.
create_data_lake_exception_subscriptioninsertregion, notificationEndpoint, subscriptionProtocolCreates the specified notification subscription in Amazon Security Lake for the organization you specify. The notification subscription is created for exceptions that cannot be resolved by Security Lake automatically.
update_data_lake_exception_subscriptionupdateregion, notificationEndpoint, subscriptionProtocolUpdates the specified notification subscription in Amazon Security Lake for the organization you specify.
delete_data_lake_exception_subscriptiondeleteregionDeletes the specified notification subscription in Amazon Security Lake for the organization you specify.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the protocol and endpoint that were provided when subscribing to Amazon SNS topics for exception notifications.

SELECT
exception_time_to_live,
notification_endpoint,
subscription_protocol
FROM aws.securitylake.data_lake_exception_subscriptions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates the specified notification subscription in Amazon Security Lake for the organization you specify. The notification subscription is created for exceptions that cannot be resolved by Security Lake automatically.

INSERT INTO aws.securitylake.data_lake_exception_subscriptions (
exceptionTimeToLive,
notificationEndpoint,
subscriptionProtocol,
region
)
SELECT
{{ exceptionTimeToLive }},
'{{ notificationEndpoint }}' /* required */,
'{{ subscriptionProtocol }}' /* required */,
'{{ region }}'
;

UPDATE examples

Updates the specified notification subscription in Amazon Security Lake for the organization you specify.

UPDATE aws.securitylake.data_lake_exception_subscriptions
SET
exceptionTimeToLive = {{ exceptionTimeToLive }},
notificationEndpoint = '{{ notificationEndpoint }}',
subscriptionProtocol = '{{ subscriptionProtocol }}'
WHERE
region = '{{ region }}' --required
AND notificationEndpoint = '{{ notificationEndpoint }}' --required
AND subscriptionProtocol = '{{ subscriptionProtocol }}' --required;

DELETE examples

Deletes the specified notification subscription in Amazon Security Lake for the organization you specify.

DELETE FROM aws.securitylake.data_lake_exception_subscriptions
WHERE region = '{{ region }}' --required
;