Skip to main content

subscriber_notifications

Creates, updates, deletes or gets a subscriber_notification resource or lists subscriber_notifications in a region

Overview

Namesubscriber_notifications
TypeResource
DescriptionResource Type definition for AWS::SecurityLake::SubscriberNotification
Idawscc.securitylake.subscriber_notifications

Fields

NameDatatypeDescription
notification_configurationobject
subscriber_arnstringThe ARN for the subscriber
subscriber_endpointstringThe endpoint the subscriber should listen to for notifications
regionstringAWS region.

For more information, see AWS::SecurityLake::SubscriberNotification.

Methods

NameResourceAccessible byRequired Params
create_resourcesubscriber_notificationsINSERTSubscriberArn, NotificationConfiguration, region
delete_resourcesubscriber_notificationsDELETEIdentifier, region
update_resourcesubscriber_notificationsUPDATEIdentifier, PatchDocument, region
list_resourcessubscriber_notifications_list_onlySELECTregion
get_resourcesubscriber_notificationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual subscriber_notification.

SELECT
region,
notification_configuration,
subscriber_arn,
subscriber_endpoint
FROM awscc.securitylake.subscriber_notifications
WHERE
region = '{{ region }}' AND
Identifier = '{{ subscriber_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new subscriber_notification resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.securitylake.subscriber_notifications (
NotificationConfiguration,
SubscriberArn,
region
)
SELECT
'{{ notification_configuration }}',
'{{ subscriber_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a subscriber_notification resource, using stack-deploy.

/*+ update */
UPDATE awscc.securitylake.subscriber_notifications
SET PatchDocument = string('{{ {
"NotificationConfiguration": notification_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ subscriber_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.securitylake.subscriber_notifications
WHERE
Identifier = '{{ subscriber_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the subscriber_notifications resource, the following permissions are required:

securitylake:CreateDataLake,
securitylake:CreateSubscriber,
securitylake:CreateSubscriberNotification,
securitylake:GetSubscriber,
iam:CreateServiceLinkedRole,
iam:PutRolePolicy,
iam:DeleteRolePolicy,
iam:PassRole,
s3:PutBucketNotification,
s3:GetBucketNotification,
events:CreateApiDestination,
events:CreateConnection,
events:CreateRule,
events:UpdateConnection,
events:DeleteConnection,
events:UpdateApiDestination,
events:DeleteApiDestination,
events:ListApiDestinations,
events:ListConnections,
events:PutRule,
events:DescribeRule,
events:DeleteRule,
events:PutTargets,
events:RemoveTargets,
events:ListTargetsByRule,
secretsmanager:CreateSecret,
sqs:CreateQueue,
sqs:GetQueueAttributes,
sqs:GetQueueUrl,
sqs:SetQueueAttributes