@aws-sdk/client-securitylake 3.338.0 → 3.342.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -60
- package/dist-cjs/SecurityLake.js +36 -40
- package/dist-cjs/commands/{UpdateDatalakeCommand.js → CreateDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/CreateDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/CreateDataLakeOrganizationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/{DeleteDatalakeDelegatedAdminCommand.js → CreateSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/{CreateDatalakeCommand.js → DeleteDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/DeleteDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/DeleteDataLakeOrganizationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/{CreateDatalakeDelegatedAdminCommand.js → DeleteSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +46 -0
- package/dist-cjs/commands/{CreateDatalakeAutoEnableCommand.js → GetDataLakeExceptionSubscriptionCommand.js} +7 -7
- package/dist-cjs/commands/{DeleteDatalakeExceptionsSubscriptionCommand.js → GetDataLakeOrganizationConfigurationCommand.js} +7 -7
- package/dist-cjs/commands/{GetDatalakeStatusCommand.js → GetDataLakeSourcesCommand.js} +7 -7
- package/dist-cjs/commands/{ListDatalakeExceptionsCommand.js → ListDataLakeExceptionsCommand.js} +7 -7
- package/dist-cjs/commands/{GetDatalakeCommand.js → ListDataLakesCommand.js} +7 -7
- package/dist-cjs/commands/{CreateDatalakeExceptionsSubscriptionCommand.js → RegisterDataLakeDelegatedAdministratorCommand.js} +7 -7
- package/dist-cjs/commands/{DeleteDatalakeCommand.js → UpdateDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/UpdateDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/{DeleteDatalakeAutoEnableCommand.js → UpdateSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/index.js +18 -20
- package/dist-cjs/models/models_0.js +43 -235
- package/dist-cjs/pagination/{GetDatalakeStatusPaginator.js → GetDataLakeSourcesPaginator.js} +6 -6
- package/dist-cjs/pagination/{ListDatalakeExceptionsPaginator.js → ListDataLakeExceptionsPaginator.js} +6 -6
- package/dist-cjs/pagination/index.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +531 -769
- package/dist-es/SecurityLake.js +36 -40
- package/dist-es/commands/{UpdateDatalakeCommand.js → CreateDataLakeCommand.js} +6 -6
- package/dist-es/commands/{UpdateDatalakeExceptionsSubscriptionCommand.js → CreateDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/CreateDataLakeOrganizationConfigurationCommand.js +42 -0
- package/dist-es/commands/{DeleteDatalakeDelegatedAdminCommand.js → CreateSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeCommand.js → DeleteDataLakeCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeExceptionsSubscriptionCommand.js → DeleteDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/DeleteDataLakeOrganizationConfigurationCommand.js +42 -0
- package/dist-es/commands/{CreateDatalakeDelegatedAdminCommand.js → DeleteSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +42 -0
- package/dist-es/commands/{GetDatalakeExceptionsSubscriptionCommand.js → GetDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/{DeleteDatalakeExceptionsSubscriptionCommand.js → GetDataLakeOrganizationConfigurationCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeStatusCommand.js → GetDataLakeSourcesCommand.js} +6 -6
- package/dist-es/commands/{ListDatalakeExceptionsCommand.js → ListDataLakeExceptionsCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeCommand.js → ListDataLakesCommand.js} +6 -6
- package/dist-es/commands/RegisterDataLakeDelegatedAdministratorCommand.js +42 -0
- package/dist-es/commands/{DeleteDatalakeCommand.js → UpdateDataLakeCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeAutoEnableCommand.js → UpdateDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeExceptionsExpiryCommand.js → UpdateSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/index.js +18 -20
- package/dist-es/models/models_0.js +41 -224
- package/dist-es/pagination/{GetDatalakeStatusPaginator.js → GetDataLakeSourcesPaginator.js} +4 -4
- package/dist-es/pagination/{ListDatalakeExceptionsPaginator.js → ListDataLakeExceptionsPaginator.js} +4 -4
- package/dist-es/pagination/index.js +2 -2
- package/dist-es/protocols/Aws_restJson1.js +491 -725
- package/dist-types/SecurityLake.d.ts +96 -115
- package/dist-types/SecurityLakeClient.d.ts +24 -31
- package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +22 -41
- package/dist-types/commands/CreateCustomLogSourceCommand.d.ts +39 -23
- package/dist-types/commands/CreateDataLakeCommand.d.ts +172 -0
- package/dist-types/commands/CreateDataLakeExceptionSubscriptionCommand.d.ts +99 -0
- package/dist-types/commands/CreateDataLakeOrganizationConfigurationCommand.d.ts +108 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +78 -32
- package/dist-types/commands/CreateSubscriberNotificationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteAwsLogSourceCommand.d.ts +29 -39
- package/dist-types/commands/DeleteCustomLogSourceCommand.d.ts +15 -18
- package/dist-types/commands/{DeleteDatalakeCommand.d.ts → DeleteDataLakeCommand.d.ts} +33 -33
- package/dist-types/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +95 -0
- package/dist-types/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +15 -21
- package/dist-types/commands/DeleteSubscriberNotificationCommand.d.ts +97 -0
- package/dist-types/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +96 -0
- package/dist-types/commands/GetDataLakeExceptionSubscriptionCommand.d.ts +98 -0
- package/dist-types/commands/GetDataLakeOrganizationConfigurationCommand.d.ts +108 -0
- package/dist-types/commands/GetDataLakeSourcesCommand.d.ts +119 -0
- package/dist-types/commands/GetSubscriberCommand.d.ts +47 -28
- package/dist-types/commands/{ListDatalakeExceptionsCommand.d.ts → ListDataLakeExceptionsCommand.d.ts} +39 -36
- package/dist-types/commands/ListDataLakesCommand.d.ts +136 -0
- package/dist-types/commands/ListLogSourcesCommand.d.ts +60 -29
- package/dist-types/commands/ListSubscribersCommand.d.ts +46 -30
- package/dist-types/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +98 -0
- package/dist-types/commands/UpdateDataLakeCommand.d.ts +158 -0
- package/dist-types/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +99 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +73 -42
- package/dist-types/commands/UpdateSubscriberNotificationCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +18 -20
- package/dist-types/index.d.ts +4 -9
- package/dist-types/models/models_0.d.ts +985 -906
- package/dist-types/pagination/GetDataLakeSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataLakeExceptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +94 -112
- package/dist-types/ts3.4/SecurityLake.d.ts +243 -271
- package/dist-types/ts3.4/SecurityLakeClient.d.ts +91 -103
- package/dist-types/ts3.4/commands/{CreateDatalakeCommand.d.ts → CreateDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/{GetDatalakeExceptionsSubscriptionCommand.d.ts → CreateDataLakeExceptionSubscriptionCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{CreateDatalakeExceptionsSubscriptionCommand.d.ts → CreateDataLakeOrganizationConfigurationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeDelegatedAdminCommand.d.ts → CreateSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeCommand.d.ts → DeleteDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{CreateDatalakeDelegatedAdminCommand.d.ts → DeleteSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{DeleteDatalakeAutoEnableCommand.d.ts → GetDataLakeExceptionSubscriptionCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeExceptionsSubscriptionCommand.d.ts → GetDataLakeOrganizationConfigurationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/GetDataLakeSourcesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/{ListDatalakeExceptionsCommand.d.ts → ListDataLakeExceptionsCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{GetDatalakeStatusCommand.d.ts → ListDataLakesCommand.d.ts} +11 -12
- package/dist-types/ts3.4/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{UpdateDatalakeCommand.d.ts → UpdateDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{CreateDatalakeAutoEnableCommand.d.ts → UpdateSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/index.d.ts +18 -20
- package/dist-types/ts3.4/models/models_0.d.ts +315 -431
- package/dist-types/ts3.4/pagination/GetDataLakeSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataLakeExceptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +131 -155
- package/package.json +28 -28
- package/dist-cjs/commands/CreateSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeAutoEnableCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeExceptionsExpiryCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeExceptionsSubscriptionCommand.js +0 -46
- package/dist-cjs/commands/UpdateDatalakeExceptionsExpiryCommand.js +0 -46
- package/dist-cjs/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +0 -46
- package/dist-cjs/commands/UpdateSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-es/commands/CreateSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-es/commands/DeleteDatalakeAutoEnableCommand.js +0 -42
- package/dist-es/commands/DeleteSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-es/commands/GetDatalakeAutoEnableCommand.js +0 -42
- package/dist-es/commands/UpdateDatalakeExceptionsExpiryCommand.js +0 -42
- package/dist-es/commands/UpdateSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-types/commands/CreateDatalakeAutoEnableCommand.d.ts +0 -98
- package/dist-types/commands/CreateDatalakeCommand.d.ts +0 -137
- package/dist-types/commands/CreateDatalakeDelegatedAdminCommand.d.ts +0 -89
- package/dist-types/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +0 -91
- package/dist-types/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +0 -109
- package/dist-types/commands/DeleteDatalakeAutoEnableCommand.d.ts +0 -101
- package/dist-types/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +0 -89
- package/dist-types/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +0 -90
- package/dist-types/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +0 -100
- package/dist-types/commands/GetDatalakeAutoEnableCommand.d.ts +0 -98
- package/dist-types/commands/GetDatalakeCommand.d.ts +0 -120
- package/dist-types/commands/GetDatalakeExceptionsExpiryCommand.d.ts +0 -91
- package/dist-types/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +0 -92
- package/dist-types/commands/GetDatalakeStatusCommand.d.ts +0 -109
- package/dist-types/commands/UpdateDatalakeCommand.d.ts +0 -108
- package/dist-types/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +0 -91
- package/dist-types/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +0 -91
- package/dist-types/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +0 -108
- package/dist-types/pagination/GetDatalakeStatusPaginator.d.ts +0 -7
- package/dist-types/pagination/ListDatalakeExceptionsPaginator.d.ts +0 -7
- package/dist-types/ts3.4/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetDatalakeAutoEnableCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetDatalakeCommand.d.ts +0 -35
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsExpiryCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/pagination/GetDatalakeStatusPaginator.d.ts +0 -11
- package/dist-types/ts3.4/pagination/ListDatalakeExceptionsPaginator.d.ts +0 -11
|
@@ -28,7 +28,8 @@ export interface CreateCustomLogSourceCommandOutput extends CreateCustomLogSourc
|
|
|
28
28
|
* third-party custom sources. After creating the appropriate IAM role to
|
|
29
29
|
* invoke Glue crawler, use this API to add a custom source name in Security Lake. This
|
|
30
30
|
* operation creates a partition in the Amazon S3 bucket for Security Lake as the target
|
|
31
|
-
* location for log files from the custom source
|
|
31
|
+
* location for log files from the custom source. In addition, this operation also creates an
|
|
32
|
+
* associated Glue table and an Glue crawler.</p>
|
|
32
33
|
* @example
|
|
33
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
35
|
* ```javascript
|
|
@@ -36,19 +37,37 @@ export interface CreateCustomLogSourceCommandOutput extends CreateCustomLogSourc
|
|
|
36
37
|
* // const { SecurityLakeClient, CreateCustomLogSourceCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
|
|
37
38
|
* const client = new SecurityLakeClient(config);
|
|
38
39
|
* const input = { // CreateCustomLogSourceRequest
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* sourceName: "STRING_VALUE", // required
|
|
41
|
+
* sourceVersion: "STRING_VALUE",
|
|
42
|
+
* eventClasses: [ // OcsfEventClassList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* configuration: { // CustomLogSourceConfiguration
|
|
46
|
+
* crawlerConfiguration: { // CustomLogSourceCrawlerConfiguration
|
|
47
|
+
* roleArn: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* providerIdentity: { // AwsIdentity
|
|
50
|
+
* principal: "STRING_VALUE", // required
|
|
51
|
+
* externalId: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
43
54
|
* };
|
|
44
55
|
* const command = new CreateCustomLogSourceCommand(input);
|
|
45
56
|
* const response = await client.send(command);
|
|
46
57
|
* // { // CreateCustomLogSourceResponse
|
|
47
|
-
* //
|
|
48
|
-
* //
|
|
49
|
-
* //
|
|
50
|
-
* //
|
|
51
|
-
* //
|
|
58
|
+
* // source: { // CustomLogSourceResource
|
|
59
|
+
* // sourceName: "STRING_VALUE",
|
|
60
|
+
* // sourceVersion: "STRING_VALUE",
|
|
61
|
+
* // provider: { // CustomLogSourceProvider
|
|
62
|
+
* // roleArn: "STRING_VALUE",
|
|
63
|
+
* // location: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // attributes: { // CustomLogSourceAttributes
|
|
66
|
+
* // crawlerArn: "STRING_VALUE",
|
|
67
|
+
* // databaseArn: "STRING_VALUE",
|
|
68
|
+
* // tableArn: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
52
71
|
* // };
|
|
53
72
|
*
|
|
54
73
|
* ```
|
|
@@ -65,27 +84,24 @@ export interface CreateCustomLogSourceCommandOutput extends CreateCustomLogSourc
|
|
|
65
84
|
* Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
|
|
66
85
|
* no applicable Allow statement.</p>
|
|
67
86
|
*
|
|
68
|
-
* @throws {@link
|
|
69
|
-
* <p>
|
|
70
|
-
* specified, or the account whose credentials you used to make this request isn't a member of
|
|
71
|
-
* an organization.</p>
|
|
87
|
+
* @throws {@link BadRequestException} (client fault)
|
|
88
|
+
* <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
|
|
72
89
|
*
|
|
73
|
-
* @throws {@link
|
|
74
|
-
* <p>
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* <p>There was a conflict when you attempted to modify a Security Lake source name. </p>
|
|
90
|
+
* @throws {@link ConflictException} (client fault)
|
|
91
|
+
* <p>Occurs when a conflict with a previous successful write is detected. This generally
|
|
92
|
+
* occurs when the previous write did not have time to propagate to the host serving the
|
|
93
|
+
* current request. A retry (with appropriate backoff logic) is the recommended response to
|
|
94
|
+
* this exception.</p>
|
|
79
95
|
*
|
|
80
96
|
* @throws {@link InternalServerException} (server fault)
|
|
81
97
|
* <p>Internal service exceptions are sometimes caused by transient issues. Before you start
|
|
82
|
-
* troubleshooting, perform the operation again
|
|
98
|
+
* troubleshooting, perform the operation again.</p>
|
|
83
99
|
*
|
|
84
100
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
101
|
* <p>The resource could not be found.</p>
|
|
86
102
|
*
|
|
87
|
-
* @throws {@link
|
|
88
|
-
* <p>
|
|
103
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
104
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
89
105
|
*
|
|
90
106
|
* @throws {@link SecurityLakeServiceException}
|
|
91
107
|
* <p>Base exception class for all service exceptions from SecurityLake service.</p>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CreateDataLakeRequest, CreateDataLakeResponse } from "../models/models_0";
|
|
5
|
+
import { SecurityLakeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityLakeClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateDataLakeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataLakeCommandInput extends CreateDataLakeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataLakeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataLakeCommandOutput extends CreateDataLakeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Initializes an Amazon Security Lake instance with the provided (or default) configuration. You
|
|
27
|
+
* can enable Security Lake in Amazon Web Services Regions with customized settings before enabling
|
|
28
|
+
* log collection in Regions. By default, the <code>CreateDataLake</code> Security Lake in all
|
|
29
|
+
* Regions. To specify particular Regions, configure these Regions using the
|
|
30
|
+
* <code>configurations</code> parameter. If you have already enabled Security Lake in a Region
|
|
31
|
+
* when you call this command, the command will update the Region if you provide new
|
|
32
|
+
* configuration parameters. If you have not already enabled Security Lake in the Region when you
|
|
33
|
+
* call this API, it will set up the data lake in the Region with the specified
|
|
34
|
+
* configurations.</p>
|
|
35
|
+
* <p>When you enable Security Lake, it starts ingesting security data after the
|
|
36
|
+
* <code>CreateAwsLogSource</code> call. This includes ingesting security data from
|
|
37
|
+
* sources, storing data, and making data accessible to subscribers. Security Lake also enables
|
|
38
|
+
* all the existing settings and resources that it stores or maintains for your Amazon Web Services account in the current Region, including security log and event data. For
|
|
39
|
+
* more information, see the <a href="https://docs.aws.amazon.com/security-lake/latest/userguide/what-is-security-lake.html">Amazon Security Lake User
|
|
40
|
+
* Guide</a>.</p>
|
|
41
|
+
* @example
|
|
42
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
+
* ```javascript
|
|
44
|
+
* import { SecurityLakeClient, CreateDataLakeCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
|
|
45
|
+
* // const { SecurityLakeClient, CreateDataLakeCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
|
|
46
|
+
* const client = new SecurityLakeClient(config);
|
|
47
|
+
* const input = { // CreateDataLakeRequest
|
|
48
|
+
* configurations: [ // DataLakeConfigurationList // required
|
|
49
|
+
* { // DataLakeConfiguration
|
|
50
|
+
* region: "STRING_VALUE", // required
|
|
51
|
+
* encryptionConfiguration: { // DataLakeEncryptionConfiguration
|
|
52
|
+
* kmsKeyId: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* lifecycleConfiguration: { // DataLakeLifecycleConfiguration
|
|
55
|
+
* expiration: { // DataLakeLifecycleExpiration
|
|
56
|
+
* days: Number("int"),
|
|
57
|
+
* },
|
|
58
|
+
* transitions: [ // DataLakeLifecycleTransitionList
|
|
59
|
+
* { // DataLakeLifecycleTransition
|
|
60
|
+
* storageClass: "STRING_VALUE",
|
|
61
|
+
* days: Number("int"),
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* },
|
|
65
|
+
* replicationConfiguration: { // DataLakeReplicationConfiguration
|
|
66
|
+
* regions: [ // RegionList
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
69
|
+
* roleArn: "STRING_VALUE",
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* metaStoreManagerRoleArn: "STRING_VALUE", // required
|
|
74
|
+
* };
|
|
75
|
+
* const command = new CreateDataLakeCommand(input);
|
|
76
|
+
* const response = await client.send(command);
|
|
77
|
+
* // { // CreateDataLakeResponse
|
|
78
|
+
* // dataLakes: [ // DataLakeResourceList
|
|
79
|
+
* // { // DataLakeResource
|
|
80
|
+
* // dataLakeArn: "STRING_VALUE", // required
|
|
81
|
+
* // region: "STRING_VALUE", // required
|
|
82
|
+
* // s3BucketArn: "STRING_VALUE",
|
|
83
|
+
* // encryptionConfiguration: { // DataLakeEncryptionConfiguration
|
|
84
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
85
|
+
* // },
|
|
86
|
+
* // lifecycleConfiguration: { // DataLakeLifecycleConfiguration
|
|
87
|
+
* // expiration: { // DataLakeLifecycleExpiration
|
|
88
|
+
* // days: Number("int"),
|
|
89
|
+
* // },
|
|
90
|
+
* // transitions: [ // DataLakeLifecycleTransitionList
|
|
91
|
+
* // { // DataLakeLifecycleTransition
|
|
92
|
+
* // storageClass: "STRING_VALUE",
|
|
93
|
+
* // days: Number("int"),
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // replicationConfiguration: { // DataLakeReplicationConfiguration
|
|
98
|
+
* // regions: [ // RegionList
|
|
99
|
+
* // "STRING_VALUE",
|
|
100
|
+
* // ],
|
|
101
|
+
* // roleArn: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // createStatus: "INITIALIZED" || "PENDING" || "COMPLETED" || "FAILED",
|
|
104
|
+
* // updateStatus: { // DataLakeUpdateStatus
|
|
105
|
+
* // requestId: "STRING_VALUE",
|
|
106
|
+
* // status: "INITIALIZED" || "PENDING" || "COMPLETED" || "FAILED",
|
|
107
|
+
* // exception: { // DataLakeUpdateException
|
|
108
|
+
* // reason: "STRING_VALUE",
|
|
109
|
+
* // code: "STRING_VALUE",
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // },
|
|
113
|
+
* // ],
|
|
114
|
+
* // };
|
|
115
|
+
*
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @param CreateDataLakeCommandInput - {@link CreateDataLakeCommandInput}
|
|
119
|
+
* @returns {@link CreateDataLakeCommandOutput}
|
|
120
|
+
* @see {@link CreateDataLakeCommandInput} for command's `input` shape.
|
|
121
|
+
* @see {@link CreateDataLakeCommandOutput} for command's `response` shape.
|
|
122
|
+
* @see {@link SecurityLakeClientResolvedConfig | config} for SecurityLakeClient's `config` shape.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
125
|
+
* <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization
|
|
126
|
+
* request. An explicit denial occurs when a policy contains a Deny statement for the specific
|
|
127
|
+
* Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
|
|
128
|
+
* no applicable Allow statement.</p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link BadRequestException} (client fault)
|
|
131
|
+
* <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ConflictException} (client fault)
|
|
134
|
+
* <p>Occurs when a conflict with a previous successful write is detected. This generally
|
|
135
|
+
* occurs when the previous write did not have time to propagate to the host serving the
|
|
136
|
+
* current request. A retry (with appropriate backoff logic) is the recommended response to
|
|
137
|
+
* this exception.</p>
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link InternalServerException} (server fault)
|
|
140
|
+
* <p>Internal service exceptions are sometimes caused by transient issues. Before you start
|
|
141
|
+
* troubleshooting, perform the operation again.</p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
144
|
+
* <p>The resource could not be found.</p>
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
147
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link SecurityLakeServiceException}
|
|
150
|
+
* <p>Base exception class for all service exceptions from SecurityLake service.</p>
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
export declare class CreateDataLakeCommand extends $Command<CreateDataLakeCommandInput, CreateDataLakeCommandOutput, SecurityLakeClientResolvedConfig> {
|
|
154
|
+
readonly input: CreateDataLakeCommandInput;
|
|
155
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
constructor(input: CreateDataLakeCommandInput);
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityLakeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataLakeCommandInput, CreateDataLakeCommandOutput>;
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
private serialize;
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
private deserialize;
|
|
172
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CreateDataLakeExceptionSubscriptionRequest, CreateDataLakeExceptionSubscriptionResponse } from "../models/models_0";
|
|
5
|
+
import { SecurityLakeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityLakeClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateDataLakeExceptionSubscriptionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataLakeExceptionSubscriptionCommandInput extends CreateDataLakeExceptionSubscriptionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataLakeExceptionSubscriptionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataLakeExceptionSubscriptionCommandOutput extends CreateDataLakeExceptionSubscriptionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates the specified notification subscription in Amazon Security Lake for the organization
|
|
27
|
+
* you specify.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityLakeClient, CreateDataLakeExceptionSubscriptionCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
|
|
32
|
+
* // const { SecurityLakeClient, CreateDataLakeExceptionSubscriptionCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
|
|
33
|
+
* const client = new SecurityLakeClient(config);
|
|
34
|
+
* const input = { // CreateDataLakeExceptionSubscriptionRequest
|
|
35
|
+
* subscriptionProtocol: "STRING_VALUE", // required
|
|
36
|
+
* notificationEndpoint: "STRING_VALUE", // required
|
|
37
|
+
* exceptionTimeToLive: Number("long"),
|
|
38
|
+
* };
|
|
39
|
+
* const command = new CreateDataLakeExceptionSubscriptionCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param CreateDataLakeExceptionSubscriptionCommandInput - {@link CreateDataLakeExceptionSubscriptionCommandInput}
|
|
46
|
+
* @returns {@link CreateDataLakeExceptionSubscriptionCommandOutput}
|
|
47
|
+
* @see {@link CreateDataLakeExceptionSubscriptionCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link CreateDataLakeExceptionSubscriptionCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link SecurityLakeClientResolvedConfig | config} for SecurityLakeClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization
|
|
53
|
+
* request. An explicit denial occurs when a policy contains a Deny statement for the specific
|
|
54
|
+
* Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
|
|
55
|
+
* no applicable Allow statement.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link BadRequestException} (client fault)
|
|
58
|
+
* <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ConflictException} (client fault)
|
|
61
|
+
* <p>Occurs when a conflict with a previous successful write is detected. This generally
|
|
62
|
+
* occurs when the previous write did not have time to propagate to the host serving the
|
|
63
|
+
* current request. A retry (with appropriate backoff logic) is the recommended response to
|
|
64
|
+
* this exception.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>Internal service exceptions are sometimes caused by transient issues. Before you start
|
|
68
|
+
* troubleshooting, perform the operation again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>The resource could not be found.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link SecurityLakeServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from SecurityLake service.</p>
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class CreateDataLakeExceptionSubscriptionCommand extends $Command<CreateDataLakeExceptionSubscriptionCommandInput, CreateDataLakeExceptionSubscriptionCommandOutput, SecurityLakeClientResolvedConfig> {
|
|
81
|
+
readonly input: CreateDataLakeExceptionSubscriptionCommandInput;
|
|
82
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
constructor(input: CreateDataLakeExceptionSubscriptionCommandInput);
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityLakeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataLakeExceptionSubscriptionCommandInput, CreateDataLakeExceptionSubscriptionCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private serialize;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
private deserialize;
|
|
99
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CreateDataLakeOrganizationConfigurationRequest, CreateDataLakeOrganizationConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { SecurityLakeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityLakeClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateDataLakeOrganizationConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataLakeOrganizationConfigurationCommandInput extends CreateDataLakeOrganizationConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataLakeOrganizationConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataLakeOrganizationConfigurationCommandOutput extends CreateDataLakeOrganizationConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Automatically enables Amazon Security Lake for new member accounts in your organization.
|
|
27
|
+
* Security Lake is not automatically enabled for any existing member accounts in your
|
|
28
|
+
* organization.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { SecurityLakeClient, CreateDataLakeOrganizationConfigurationCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
|
|
33
|
+
* // const { SecurityLakeClient, CreateDataLakeOrganizationConfigurationCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
|
|
34
|
+
* const client = new SecurityLakeClient(config);
|
|
35
|
+
* const input = { // CreateDataLakeOrganizationConfigurationRequest
|
|
36
|
+
* autoEnableNewAccount: [ // DataLakeAutoEnableNewAccountConfigurationList // required
|
|
37
|
+
* { // DataLakeAutoEnableNewAccountConfiguration
|
|
38
|
+
* region: "STRING_VALUE", // required
|
|
39
|
+
* sources: [ // AwsLogSourceResourceList // required
|
|
40
|
+
* { // AwsLogSourceResource
|
|
41
|
+
* sourceName: "ROUTE53" || "VPC_FLOW" || "SH_FINDINGS" || "CLOUD_TRAIL_MGMT" || "LAMBDA_EXECUTION" || "S3_DATA",
|
|
42
|
+
* sourceVersion: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* };
|
|
48
|
+
* const command = new CreateDataLakeOrganizationConfigurationCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // {};
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param CreateDataLakeOrganizationConfigurationCommandInput - {@link CreateDataLakeOrganizationConfigurationCommandInput}
|
|
55
|
+
* @returns {@link CreateDataLakeOrganizationConfigurationCommandOutput}
|
|
56
|
+
* @see {@link CreateDataLakeOrganizationConfigurationCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link CreateDataLakeOrganizationConfigurationCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link SecurityLakeClientResolvedConfig | config} for SecurityLakeClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization
|
|
62
|
+
* request. An explicit denial occurs when a policy contains a Deny statement for the specific
|
|
63
|
+
* Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
|
|
64
|
+
* no applicable Allow statement.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link BadRequestException} (client fault)
|
|
67
|
+
* <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ConflictException} (client fault)
|
|
70
|
+
* <p>Occurs when a conflict with a previous successful write is detected. This generally
|
|
71
|
+
* occurs when the previous write did not have time to propagate to the host serving the
|
|
72
|
+
* current request. A retry (with appropriate backoff logic) is the recommended response to
|
|
73
|
+
* this exception.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>Internal service exceptions are sometimes caused by transient issues. Before you start
|
|
77
|
+
* troubleshooting, perform the operation again.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
|
+
* <p>The resource could not be found.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
83
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link SecurityLakeServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from SecurityLake service.</p>
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
export declare class CreateDataLakeOrganizationConfigurationCommand extends $Command<CreateDataLakeOrganizationConfigurationCommandInput, CreateDataLakeOrganizationConfigurationCommandOutput, SecurityLakeClientResolvedConfig> {
|
|
90
|
+
readonly input: CreateDataLakeOrganizationConfigurationCommandInput;
|
|
91
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
constructor(input: CreateDataLakeOrganizationConfigurationCommandInput);
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityLakeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataLakeOrganizationConfigurationCommandInput, CreateDataLakeOrganizationConfigurationCommandOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private serialize;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
private deserialize;
|
|
108
|
+
}
|
|
@@ -32,29 +32,82 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
|
|
|
32
32
|
* // const { SecurityLakeClient, CreateSubscriberCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
|
|
33
33
|
* const client = new SecurityLakeClient(config);
|
|
34
34
|
* const input = { // CreateSubscriberRequest
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* subscriberIdentity: { // AwsIdentity
|
|
36
|
+
* principal: "STRING_VALUE", // required
|
|
37
|
+
* externalId: "STRING_VALUE", // required
|
|
38
|
+
* },
|
|
39
|
+
* subscriberName: "STRING_VALUE", // required
|
|
40
|
+
* subscriberDescription: "STRING_VALUE",
|
|
41
|
+
* sources: [ // LogSourceResourceList // required
|
|
42
|
+
* { // LogSourceResource Union: only one key present
|
|
43
|
+
* awsLogSource: { // AwsLogSourceResource
|
|
44
|
+
* sourceName: "ROUTE53" || "VPC_FLOW" || "SH_FINDINGS" || "CLOUD_TRAIL_MGMT" || "LAMBDA_EXECUTION" || "S3_DATA",
|
|
45
|
+
* sourceVersion: "STRING_VALUE",
|
|
46
|
+
* },
|
|
47
|
+
* customLogSource: { // CustomLogSourceResource
|
|
48
|
+
* sourceName: "STRING_VALUE",
|
|
49
|
+
* sourceVersion: "STRING_VALUE",
|
|
50
|
+
* provider: { // CustomLogSourceProvider
|
|
51
|
+
* roleArn: "STRING_VALUE",
|
|
52
|
+
* location: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* attributes: { // CustomLogSourceAttributes
|
|
55
|
+
* crawlerArn: "STRING_VALUE",
|
|
56
|
+
* databaseArn: "STRING_VALUE",
|
|
57
|
+
* tableArn: "STRING_VALUE",
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
39
60
|
* },
|
|
40
61
|
* ],
|
|
41
|
-
* accountId: "STRING_VALUE", // required
|
|
42
|
-
* externalId: "STRING_VALUE", // required
|
|
43
62
|
* accessTypes: [ // AccessTypeList
|
|
44
|
-
* "
|
|
63
|
+
* "LAKEFORMATION" || "S3",
|
|
45
64
|
* ],
|
|
46
|
-
* subscriberName: "STRING_VALUE", // required
|
|
47
|
-
* subscriberDescription: "STRING_VALUE",
|
|
48
65
|
* };
|
|
49
66
|
* const command = new CreateSubscriberCommand(input);
|
|
50
67
|
* const response = await client.send(command);
|
|
51
68
|
* // { // CreateSubscriberResponse
|
|
52
|
-
* //
|
|
53
|
-
* //
|
|
54
|
-
* //
|
|
55
|
-
* //
|
|
56
|
-
* //
|
|
57
|
-
* //
|
|
69
|
+
* // subscriber: { // SubscriberResource
|
|
70
|
+
* // subscriberId: "STRING_VALUE", // required
|
|
71
|
+
* // subscriberArn: "STRING_VALUE", // required
|
|
72
|
+
* // subscriberIdentity: { // AwsIdentity
|
|
73
|
+
* // principal: "STRING_VALUE", // required
|
|
74
|
+
* // externalId: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // subscriberName: "STRING_VALUE", // required
|
|
77
|
+
* // subscriberDescription: "STRING_VALUE",
|
|
78
|
+
* // sources: [ // LogSourceResourceList // required
|
|
79
|
+
* // { // LogSourceResource Union: only one key present
|
|
80
|
+
* // awsLogSource: { // AwsLogSourceResource
|
|
81
|
+
* // sourceName: "ROUTE53" || "VPC_FLOW" || "SH_FINDINGS" || "CLOUD_TRAIL_MGMT" || "LAMBDA_EXECUTION" || "S3_DATA",
|
|
82
|
+
* // sourceVersion: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // customLogSource: { // CustomLogSourceResource
|
|
85
|
+
* // sourceName: "STRING_VALUE",
|
|
86
|
+
* // sourceVersion: "STRING_VALUE",
|
|
87
|
+
* // provider: { // CustomLogSourceProvider
|
|
88
|
+
* // roleArn: "STRING_VALUE",
|
|
89
|
+
* // location: "STRING_VALUE",
|
|
90
|
+
* // },
|
|
91
|
+
* // attributes: { // CustomLogSourceAttributes
|
|
92
|
+
* // crawlerArn: "STRING_VALUE",
|
|
93
|
+
* // databaseArn: "STRING_VALUE",
|
|
94
|
+
* // tableArn: "STRING_VALUE",
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // accessTypes: [ // AccessTypeList
|
|
100
|
+
* // "LAKEFORMATION" || "S3",
|
|
101
|
+
* // ],
|
|
102
|
+
* // roleArn: "STRING_VALUE",
|
|
103
|
+
* // s3BucketArn: "STRING_VALUE",
|
|
104
|
+
* // subscriberEndpoint: "STRING_VALUE",
|
|
105
|
+
* // subscriberStatus: "ACTIVE" || "DEACTIVATED" || "PENDING" || "READY",
|
|
106
|
+
* // resourceShareArn: "STRING_VALUE",
|
|
107
|
+
* // resourceShareName: "STRING_VALUE",
|
|
108
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
109
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
110
|
+
* // },
|
|
58
111
|
* // };
|
|
59
112
|
*
|
|
60
113
|
* ```
|
|
@@ -71,31 +124,24 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
|
|
|
71
124
|
* Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
|
|
72
125
|
* no applicable Allow statement.</p>
|
|
73
126
|
*
|
|
74
|
-
* @throws {@link
|
|
75
|
-
* <p>
|
|
76
|
-
* specified, or the account whose credentials you used to make this request isn't a member of
|
|
77
|
-
* an organization.</p>
|
|
78
|
-
*
|
|
79
|
-
* @throws {@link BucketNotFoundException} (client fault)
|
|
80
|
-
* <p>Amazon Security Lake generally returns 404 errors if the requested object is missing from the
|
|
81
|
-
* bucket.</p>
|
|
127
|
+
* @throws {@link BadRequestException} (client fault)
|
|
128
|
+
* <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
|
|
82
129
|
*
|
|
83
|
-
* @throws {@link
|
|
84
|
-
* <p>
|
|
130
|
+
* @throws {@link ConflictException} (client fault)
|
|
131
|
+
* <p>Occurs when a conflict with a previous successful write is detected. This generally
|
|
132
|
+
* occurs when the previous write did not have time to propagate to the host serving the
|
|
133
|
+
* current request. A retry (with appropriate backoff logic) is the recommended response to
|
|
134
|
+
* this exception.</p>
|
|
85
135
|
*
|
|
86
136
|
* @throws {@link InternalServerException} (server fault)
|
|
87
137
|
* <p>Internal service exceptions are sometimes caused by transient issues. Before you start
|
|
88
|
-
* troubleshooting, perform the operation again
|
|
89
|
-
*
|
|
90
|
-
* @throws {@link InvalidInputException} (client fault)
|
|
91
|
-
* <p>The request was rejected because a value that's not valid or is out of range was
|
|
92
|
-
* supplied for an input parameter. </p>
|
|
138
|
+
* troubleshooting, perform the operation again.</p>
|
|
93
139
|
*
|
|
94
140
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
95
141
|
* <p>The resource could not be found.</p>
|
|
96
142
|
*
|
|
97
|
-
* @throws {@link
|
|
98
|
-
* <p>
|
|
143
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
144
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
99
145
|
*
|
|
100
146
|
* @throws {@link SecurityLakeServiceException}
|
|
101
147
|
* <p>Base exception class for all service exceptions from SecurityLake service.</p>
|