Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateDataLakeExceptionSubscriptionCommandProtected

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

Example

Use a bare-bones client and the command you need to make an API call.

import { SecurityLakeClient, CreateDataLakeExceptionSubscriptionCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
// const { SecurityLakeClient, CreateDataLakeExceptionSubscriptionCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
const client = new SecurityLakeClient(config);
const input = { // CreateDataLakeExceptionSubscriptionRequest
subscriptionProtocol: "STRING_VALUE", // required
notificationEndpoint: "STRING_VALUE", // required
exceptionTimeToLive: Number("long"),
};
const command = new CreateDataLakeExceptionSubscriptionCommand(input);
const response = await client.send(command);
// {};

Param

CreateDataLakeExceptionSubscriptionCommandInput

Returns

CreateDataLakeExceptionSubscriptionCommandOutput

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.

Throws

BadRequestException (client fault)

The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.

Throws

ConflictException (client fault)

Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

Throws

InternalServerException (server fault)

Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.

Throws

ResourceNotFoundException (client fault)

The resource could not be found.

Throws

ThrottlingException (client fault)

The limit on the number of requests per second was exceeded.

Throws

SecurityLakeServiceException

Base exception class for all service exceptions from SecurityLake service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods