@aws-sdk/client-s3tables 3.1165.0 → 3.1166.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 +14 -0
- package/dist-cjs/index.js +82 -1
- package/dist-es/S3Tables.js +4 -0
- package/dist-es/commands/GetTableBucketLoggingCommand.js +4 -0
- package/dist-es/commands/PutTableBucketLoggingCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +57 -0
- package/dist-types/S3Tables.d.ts +14 -0
- package/dist-types/S3TablesClient.d.ts +4 -2
- package/dist-types/commands/GetTableBucketLoggingCommand.d.ts +139 -0
- package/dist-types/commands/PutTableBucketLoggingCommand.d.ts +136 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +90 -1
- package/dist-types/schemas/schemas_0.d.ts +9 -0
- package/dist-types/ts3.4/S3Tables.d.ts +34 -0
- package/dist-types/ts3.4/S3TablesClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetTableBucketLoggingCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutTableBucketLoggingCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +25 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/package.json +4 -4
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTableBucketLoggingRequest, GetTableBucketLoggingResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTableBucketLoggingCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTableBucketLoggingCommandInput extends GetTableBucketLoggingRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTableBucketLoggingCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTableBucketLoggingCommandOutput extends GetTableBucketLoggingResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTableBucketLoggingCommand_base: {
|
|
22
|
+
new (input: GetTableBucketLoggingCommandInput): import("@smithy/core/client").CommandImpl<GetTableBucketLoggingCommandInput, GetTableBucketLoggingCommandOutput, import("..").S3TablesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTableBucketLoggingCommandInput): import("@smithy/core/client").CommandImpl<GetTableBucketLoggingCommandInput, GetTableBucketLoggingCommandOutput, import("..").S3TablesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the server access logging configuration for a table bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-server-logs.html">Server access logging for table buckets</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:GetTableBucketLogging</code> permission to use this operation.</p> </dd> </dl>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { S3TablesClient, GetTableBucketLoggingCommand } from "@aws-sdk/client-s3tables"; // ES Modules import
|
|
32
|
+
* // const { S3TablesClient, GetTableBucketLoggingCommand } = require("@aws-sdk/client-s3tables"); // CommonJS import
|
|
33
|
+
* // import type { S3TablesClientConfig } from "@aws-sdk/client-s3tables";
|
|
34
|
+
* const config = {}; // type is S3TablesClientConfig
|
|
35
|
+
* const client = new S3TablesClient(config);
|
|
36
|
+
* const input = { // GetTableBucketLoggingRequest
|
|
37
|
+
* tableBucketARN: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetTableBucketLoggingCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetTableBucketLoggingResponse
|
|
42
|
+
* // tableBucketLoggingStatus: { // TableBucketLoggingStatus
|
|
43
|
+
* // loggingEnabled: { // LoggingEnabled
|
|
44
|
+
* // targetBucket: "STRING_VALUE", // required
|
|
45
|
+
* // targetPrefix: "STRING_VALUE", // required
|
|
46
|
+
* // targetObjectKeyFormat: { // TargetObjectKeyFormat
|
|
47
|
+
* // partitionedPrefix: { // PartitionedPrefix
|
|
48
|
+
* // partitionDateSource: "EventTime" || "DeliveryTime", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // },
|
|
51
|
+
* // },
|
|
52
|
+
* // },
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param GetTableBucketLoggingCommandInput - {@link GetTableBucketLoggingCommandInput}
|
|
58
|
+
* @returns {@link GetTableBucketLoggingCommandOutput}
|
|
59
|
+
* @see {@link GetTableBucketLoggingCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link GetTableBucketLoggingCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link S3TablesClientResolvedConfig | config} for S3TablesClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link BadRequestException} (client fault)
|
|
64
|
+
* <p>The request is invalid or malformed.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ConflictException} (client fault)
|
|
67
|
+
* <p>The request failed because there is a conflict with a previous write. You can retry the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
70
|
+
* <p>The caller isn't authorized to make the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerErrorException} (server fault)
|
|
73
|
+
* <p>The request failed due to an internal server error.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link NotFoundException} (client fault)
|
|
76
|
+
* <p>The request was rejected because the specified resource could not be found.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
79
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link S3TablesServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from S3Tables service.</p>
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
* @example To get the server access logging configuration of a table bucket
|
|
86
|
+
* ```javascript
|
|
87
|
+
* // The following example gets the server access logging configuration of a table bucket that has logging enabled.
|
|
88
|
+
* const input = {
|
|
89
|
+
* tableBucketARN: "arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-table-bucket"
|
|
90
|
+
* };
|
|
91
|
+
* const command = new GetTableBucketLoggingCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* /* response is
|
|
94
|
+
* {
|
|
95
|
+
* tableBucketLoggingStatus: {
|
|
96
|
+
* loggingEnabled: {
|
|
97
|
+
* targetBucket: "amzn-s3-demo-destination-bucket",
|
|
98
|
+
* targetObjectKeyFormat: {
|
|
99
|
+
* partitionedPrefix: {
|
|
100
|
+
* partitionDateSource: "EventTime"
|
|
101
|
+
* }
|
|
102
|
+
* },
|
|
103
|
+
* targetPrefix: "logs/"
|
|
104
|
+
* }
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* *\/
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @example To get the server access logging configuration of a table bucket that has logging disabled
|
|
111
|
+
* ```javascript
|
|
112
|
+
* // The following example gets the server access logging configuration of a table bucket that has logging disabled. The response has an empty logging status.
|
|
113
|
+
* const input = {
|
|
114
|
+
* tableBucketARN: "arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-table-bucket"
|
|
115
|
+
* };
|
|
116
|
+
* const command = new GetTableBucketLoggingCommand(input);
|
|
117
|
+
* const response = await client.send(command);
|
|
118
|
+
* /* response is
|
|
119
|
+
* {
|
|
120
|
+
* tableBucketLoggingStatus: { /* empty *\/ }
|
|
121
|
+
* }
|
|
122
|
+
* *\/
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class GetTableBucketLoggingCommand extends GetTableBucketLoggingCommand_base {
|
|
128
|
+
/** @internal type navigation helper, not in runtime. */
|
|
129
|
+
protected static __types: {
|
|
130
|
+
api: {
|
|
131
|
+
input: GetTableBucketLoggingRequest;
|
|
132
|
+
output: GetTableBucketLoggingResponse;
|
|
133
|
+
};
|
|
134
|
+
sdk: {
|
|
135
|
+
input: GetTableBucketLoggingCommandInput;
|
|
136
|
+
output: GetTableBucketLoggingCommandOutput;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutTableBucketLoggingRequest } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutTableBucketLoggingCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutTableBucketLoggingCommandInput extends PutTableBucketLoggingRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutTableBucketLoggingCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutTableBucketLoggingCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutTableBucketLoggingCommand_base: {
|
|
22
|
+
new (input: PutTableBucketLoggingCommandInput): import("@smithy/core/client").CommandImpl<PutTableBucketLoggingCommandInput, PutTableBucketLoggingCommandOutput, import("..").S3TablesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutTableBucketLoggingCommandInput): import("@smithy/core/client").CommandImpl<PutTableBucketLoggingCommandInput, PutTableBucketLoggingCommandOutput, import("..").S3TablesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets, updates, or removes the server access logging configuration for a table bucket. When logging is enabled, Amazon S3 delivers a record of the requests made to the table bucket and its tables to the target general purpose bucket that you specify. To disable logging, call this operation with an empty <code>tableBucketLoggingStatus</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-server-logs.html">Server access logging for table buckets</a> in the <i>Amazon Simple Storage Service User Guide</i>.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3tables:PutTableBucketLogging</code> permission to use this operation.</p> </dd> </dl>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { S3TablesClient, PutTableBucketLoggingCommand } from "@aws-sdk/client-s3tables"; // ES Modules import
|
|
32
|
+
* // const { S3TablesClient, PutTableBucketLoggingCommand } = require("@aws-sdk/client-s3tables"); // CommonJS import
|
|
33
|
+
* // import type { S3TablesClientConfig } from "@aws-sdk/client-s3tables";
|
|
34
|
+
* const config = {}; // type is S3TablesClientConfig
|
|
35
|
+
* const client = new S3TablesClient(config);
|
|
36
|
+
* const input = { // PutTableBucketLoggingRequest
|
|
37
|
+
* tableBucketARN: "STRING_VALUE", // required
|
|
38
|
+
* tableBucketLoggingStatus: { // TableBucketLoggingStatus
|
|
39
|
+
* loggingEnabled: { // LoggingEnabled
|
|
40
|
+
* targetBucket: "STRING_VALUE", // required
|
|
41
|
+
* targetPrefix: "STRING_VALUE", // required
|
|
42
|
+
* targetObjectKeyFormat: { // TargetObjectKeyFormat
|
|
43
|
+
* partitionedPrefix: { // PartitionedPrefix
|
|
44
|
+
* partitionDateSource: "EventTime" || "DeliveryTime", // required
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new PutTableBucketLoggingCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // {};
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param PutTableBucketLoggingCommandInput - {@link PutTableBucketLoggingCommandInput}
|
|
57
|
+
* @returns {@link PutTableBucketLoggingCommandOutput}
|
|
58
|
+
* @see {@link PutTableBucketLoggingCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link PutTableBucketLoggingCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link S3TablesClientResolvedConfig | config} for S3TablesClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BadRequestException} (client fault)
|
|
63
|
+
* <p>The request is invalid or malformed.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConflictException} (client fault)
|
|
66
|
+
* <p>The request failed because there is a conflict with a previous write. You can retry the request.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
69
|
+
* <p>The caller isn't authorized to make the request.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerErrorException} (server fault)
|
|
72
|
+
* <p>The request failed due to an internal server error.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link NotFoundException} (client fault)
|
|
75
|
+
* <p>The request was rejected because the specified resource could not be found.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
78
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link S3TablesServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from S3Tables service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @example To enable server access logging for a table bucket
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // The following example enables server access logging for a table bucket. Logs are delivered to the specified general purpose bucket, with object keys partitioned by the time of the logged events.
|
|
87
|
+
* const input = {
|
|
88
|
+
* tableBucketARN: "arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-table-bucket",
|
|
89
|
+
* tableBucketLoggingStatus: {
|
|
90
|
+
* loggingEnabled: {
|
|
91
|
+
* targetBucket: "amzn-s3-demo-destination-bucket",
|
|
92
|
+
* targetObjectKeyFormat: {
|
|
93
|
+
* partitionedPrefix: {
|
|
94
|
+
* partitionDateSource: "EventTime"
|
|
95
|
+
* }
|
|
96
|
+
* },
|
|
97
|
+
* targetPrefix: "logs/"
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* };
|
|
101
|
+
* const command = new PutTableBucketLoggingCommand(input);
|
|
102
|
+
* const response = await client.send(command);
|
|
103
|
+
* /* response is
|
|
104
|
+
* { /* metadata only *\/ }
|
|
105
|
+
* *\/
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @example To disable server access logging for a table bucket
|
|
109
|
+
* ```javascript
|
|
110
|
+
* // The following example disables server access logging for a table bucket by specifying an empty logging status.
|
|
111
|
+
* const input = {
|
|
112
|
+
* tableBucketARN: "arn:aws:s3tables:us-east-1:111122223333:bucket/amzn-s3-demo-table-bucket",
|
|
113
|
+
* tableBucketLoggingStatus: { /* empty *\/ }
|
|
114
|
+
* };
|
|
115
|
+
* const command = new PutTableBucketLoggingCommand(input);
|
|
116
|
+
* const response = await client.send(command);
|
|
117
|
+
* /* response is
|
|
118
|
+
* { /* metadata only *\/ }
|
|
119
|
+
* *\/
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare class PutTableBucketLoggingCommand extends PutTableBucketLoggingCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: PutTableBucketLoggingRequest;
|
|
129
|
+
output: {};
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: PutTableBucketLoggingCommandInput;
|
|
133
|
+
output: PutTableBucketLoggingCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./DeleteTableReplicationCommand";
|
|
|
14
14
|
export * from "./GetNamespaceCommand";
|
|
15
15
|
export * from "./GetTableBucketCommand";
|
|
16
16
|
export * from "./GetTableBucketEncryptionCommand";
|
|
17
|
+
export * from "./GetTableBucketLoggingCommand";
|
|
17
18
|
export * from "./GetTableBucketMaintenanceConfigurationCommand";
|
|
18
19
|
export * from "./GetTableBucketMetricsConfigurationCommand";
|
|
19
20
|
export * from "./GetTableBucketPolicyCommand";
|
|
@@ -37,6 +38,7 @@ export * from "./ListTableMigrationsCommand";
|
|
|
37
38
|
export * from "./ListTablesCommand";
|
|
38
39
|
export * from "./ListTagsForResourceCommand";
|
|
39
40
|
export * from "./PutTableBucketEncryptionCommand";
|
|
41
|
+
export * from "./PutTableBucketLoggingCommand";
|
|
40
42
|
export * from "./PutTableBucketMaintenanceConfigurationCommand";
|
|
41
43
|
export * from "./PutTableBucketMetricsConfigurationCommand";
|
|
42
44
|
export * from "./PutTableBucketPolicyCommand";
|
|
@@ -169,6 +169,18 @@ export declare const TableBucketType: {
|
|
|
169
169
|
* @public
|
|
170
170
|
*/
|
|
171
171
|
export type TableBucketType = (typeof TableBucketType)[keyof typeof TableBucketType];
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
* @enum
|
|
175
|
+
*/
|
|
176
|
+
export declare const PartitionDateSource: {
|
|
177
|
+
readonly DELIVERY_TIME: "DeliveryTime";
|
|
178
|
+
readonly EVENT_TIME: "EventTime";
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
export type PartitionDateSource = (typeof PartitionDateSource)[keyof typeof PartitionDateSource];
|
|
172
184
|
/**
|
|
173
185
|
* @public
|
|
174
186
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { CompressionCodec, DataFileFormat, FindingCategory, IcebergCompactionStrategy, IcebergNullOrder, IcebergSortDirection, IncompatibleValuesPolicy, JobStatus, MaintenanceStatus, MigrationFailureCode, MigrationRequestedState, MigrationSourceType, MigrationState, MigrationType, OpenTableFormat, ReplicationStatus, SchemaV2FieldType, SSEAlgorithm, StorageClass, TableBucketMaintenanceType, TableBucketType, TableMaintenanceJobType, TableMaintenanceType, TableRecordExpirationJobStatus, TableRecordExpirationStatus, TableType, UnmatchedSourceFieldsPolicy } from "./enums";
|
|
2
|
+
import type { CompressionCodec, DataFileFormat, FindingCategory, IcebergCompactionStrategy, IcebergNullOrder, IcebergSortDirection, IncompatibleValuesPolicy, JobStatus, MaintenanceStatus, MigrationFailureCode, MigrationRequestedState, MigrationSourceType, MigrationState, MigrationType, OpenTableFormat, PartitionDateSource, ReplicationStatus, SchemaV2FieldType, SSEAlgorithm, StorageClass, TableBucketMaintenanceType, TableBucketType, TableMaintenanceJobType, TableMaintenanceType, TableRecordExpirationJobStatus, TableRecordExpirationStatus, TableType, UnmatchedSourceFieldsPolicy } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -959,6 +959,80 @@ export interface GetTableBucketEncryptionResponse {
|
|
|
959
959
|
*/
|
|
960
960
|
encryptionConfiguration: EncryptionConfiguration | undefined;
|
|
961
961
|
}
|
|
962
|
+
/**
|
|
963
|
+
* @public
|
|
964
|
+
*/
|
|
965
|
+
export interface GetTableBucketLoggingRequest {
|
|
966
|
+
/**
|
|
967
|
+
* <p>The Amazon Resource Name (ARN) of the table bucket.</p>
|
|
968
|
+
* @public
|
|
969
|
+
*/
|
|
970
|
+
tableBucketARN: string | undefined;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* <p>Amazon S3 keys for log objects are partitioned in the following format: <code>[targetPrefix][SourceAccountId]/[SourceRegion]/[SourceTableBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]</code> </p>
|
|
974
|
+
* @public
|
|
975
|
+
*/
|
|
976
|
+
export interface PartitionedPrefix {
|
|
977
|
+
/**
|
|
978
|
+
* <p>The date to use for the log object key partitions. Valid values are <code>EventTime</code>, the time that the requests in the log were made, and <code>DeliveryTime</code>, the time that the log was delivered.</p>
|
|
979
|
+
* @public
|
|
980
|
+
*/
|
|
981
|
+
partitionDateSource: PartitionDateSource | undefined;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* <p>The key format of the log objects. Only <code>partitionedPrefix</code> is supported.</p>
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
export interface TargetObjectKeyFormat {
|
|
988
|
+
/**
|
|
989
|
+
* <p>Partitions log object keys by date.</p>
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
992
|
+
partitionedPrefix: PartitionedPrefix | undefined;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* <p>Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a table bucket.</p>
|
|
996
|
+
* @public
|
|
997
|
+
*/
|
|
998
|
+
export interface LoggingEnabled {
|
|
999
|
+
/**
|
|
1000
|
+
* <p>The name of the general purpose bucket that logs are delivered to. The bucket must be in the same Amazon Web Services Region and owned by the same Amazon Web Services account as the table bucket. The bucket can't use SSE-KMS or DSSE-KMS default encryption, can't have S3 Object Lock enabled, and can't have Requester Pays enabled. You can deliver logs from multiple table buckets to the same target bucket. In this case, choose a different <code>targetPrefix</code> for each table bucket so that you can tell their log objects apart.</p>
|
|
1001
|
+
* @public
|
|
1002
|
+
*/
|
|
1003
|
+
targetBucket: string | undefined;
|
|
1004
|
+
/**
|
|
1005
|
+
* <p>The prefix for the keys of the log objects that are delivered to the target bucket.</p>
|
|
1006
|
+
* @public
|
|
1007
|
+
*/
|
|
1008
|
+
targetPrefix: string | undefined;
|
|
1009
|
+
/**
|
|
1010
|
+
* <p>The key format of the log objects. Log object keys are always partitioned by date.</p>
|
|
1011
|
+
* @public
|
|
1012
|
+
*/
|
|
1013
|
+
targetObjectKeyFormat: TargetObjectKeyFormat | undefined;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* <p>The server access logging status of a table bucket. To enable logging, specify <code>loggingEnabled</code>. To disable logging, specify an empty <code>TableBucketLoggingStatus</code>.</p>
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
export interface TableBucketLoggingStatus {
|
|
1020
|
+
/**
|
|
1021
|
+
* <p>Where logs for the table bucket are delivered and how the log objects are named. Must be populated to enable logging.</p>
|
|
1022
|
+
* @public
|
|
1023
|
+
*/
|
|
1024
|
+
loggingEnabled?: LoggingEnabled | undefined;
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* @public
|
|
1028
|
+
*/
|
|
1029
|
+
export interface GetTableBucketLoggingResponse {
|
|
1030
|
+
/**
|
|
1031
|
+
* <p>The logging status of the table bucket. If logging is disabled, <code>loggingEnabled</code> is absent.</p>
|
|
1032
|
+
* @public
|
|
1033
|
+
*/
|
|
1034
|
+
tableBucketLoggingStatus: TableBucketLoggingStatus | undefined;
|
|
1035
|
+
}
|
|
962
1036
|
/**
|
|
963
1037
|
* @public
|
|
964
1038
|
*/
|
|
@@ -2433,6 +2507,21 @@ export interface PutTableBucketEncryptionRequest {
|
|
|
2433
2507
|
*/
|
|
2434
2508
|
encryptionConfiguration: EncryptionConfiguration | undefined;
|
|
2435
2509
|
}
|
|
2510
|
+
/**
|
|
2511
|
+
* @public
|
|
2512
|
+
*/
|
|
2513
|
+
export interface PutTableBucketLoggingRequest {
|
|
2514
|
+
/**
|
|
2515
|
+
* <p>The Amazon Resource Name (ARN) of the table bucket.</p>
|
|
2516
|
+
* @public
|
|
2517
|
+
*/
|
|
2518
|
+
tableBucketARN: string | undefined;
|
|
2519
|
+
/**
|
|
2520
|
+
* <p>The logging status to apply to the table bucket. To disable logging, specify an empty <code>tableBucketLoggingStatus</code>.</p>
|
|
2521
|
+
* @public
|
|
2522
|
+
*/
|
|
2523
|
+
tableBucketLoggingStatus: TableBucketLoggingStatus | undefined;
|
|
2524
|
+
}
|
|
2436
2525
|
/**
|
|
2437
2526
|
* @public
|
|
2438
2527
|
*/
|
|
@@ -39,6 +39,8 @@ export declare var GetNamespaceRequest$: StaticStructureSchema;
|
|
|
39
39
|
export declare var GetNamespaceResponse$: StaticStructureSchema;
|
|
40
40
|
export declare var GetTableBucketEncryptionRequest$: StaticStructureSchema;
|
|
41
41
|
export declare var GetTableBucketEncryptionResponse$: StaticStructureSchema;
|
|
42
|
+
export declare var GetTableBucketLoggingRequest$: StaticStructureSchema;
|
|
43
|
+
export declare var GetTableBucketLoggingResponse$: StaticStructureSchema;
|
|
42
44
|
export declare var GetTableBucketMaintenanceConfigurationRequest$: StaticStructureSchema;
|
|
43
45
|
export declare var GetTableBucketMaintenanceConfigurationResponse$: StaticStructureSchema;
|
|
44
46
|
export declare var GetTableBucketMetricsConfigurationRequest$: StaticStructureSchema;
|
|
@@ -97,6 +99,7 @@ export declare var ListTablesRequest$: StaticStructureSchema;
|
|
|
97
99
|
export declare var ListTablesResponse$: StaticStructureSchema;
|
|
98
100
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
99
101
|
export declare var ListTagsForResourceResponse$: StaticStructureSchema;
|
|
102
|
+
export declare var LoggingEnabled$: StaticStructureSchema;
|
|
100
103
|
export declare var MaintenanceSettings$: StaticStructureSchema;
|
|
101
104
|
export declare var ManagedTableInformation$: StaticStructureSchema;
|
|
102
105
|
export declare var MigrationCompactionSettings$: StaticStructureSchema;
|
|
@@ -110,8 +113,10 @@ export declare var MigrationStats$: StaticStructureSchema;
|
|
|
110
113
|
export declare var MigrationSummary$: StaticStructureSchema;
|
|
111
114
|
export declare var MigrationTableProperties$: StaticStructureSchema;
|
|
112
115
|
export declare var NamespaceSummary$: StaticStructureSchema;
|
|
116
|
+
export declare var PartitionedPrefix$: StaticStructureSchema;
|
|
113
117
|
export declare var PlanningStats$: StaticStructureSchema;
|
|
114
118
|
export declare var PutTableBucketEncryptionRequest$: StaticStructureSchema;
|
|
119
|
+
export declare var PutTableBucketLoggingRequest$: StaticStructureSchema;
|
|
115
120
|
export declare var PutTableBucketMaintenanceConfigurationRequest$: StaticStructureSchema;
|
|
116
121
|
export declare var PutTableBucketMetricsConfigurationRequest$: StaticStructureSchema;
|
|
117
122
|
export declare var PutTableBucketPolicyRequest$: StaticStructureSchema;
|
|
@@ -135,6 +140,7 @@ export declare var StartTableMigrationResponse$: StaticStructureSchema;
|
|
|
135
140
|
export declare var StorageClassConfiguration$: StaticStructureSchema;
|
|
136
141
|
export declare var SyncTableMigrationRequest$: StaticStructureSchema;
|
|
137
142
|
export declare var SyncTableMigrationResponse$: StaticStructureSchema;
|
|
143
|
+
export declare var TableBucketLoggingStatus$: StaticStructureSchema;
|
|
138
144
|
export declare var TableBucketMaintenanceConfigurationValue$: StaticStructureSchema;
|
|
139
145
|
export declare var TableBucketReplicationConfiguration$: StaticStructureSchema;
|
|
140
146
|
export declare var TableBucketReplicationRule$: StaticStructureSchema;
|
|
@@ -149,6 +155,7 @@ export declare var TableReplicationRule$: StaticStructureSchema;
|
|
|
149
155
|
export declare var TableSummary$: StaticStructureSchema;
|
|
150
156
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
151
157
|
export declare var TagResourceResponse$: StaticStructureSchema;
|
|
158
|
+
export declare var TargetObjectKeyFormat$: StaticStructureSchema;
|
|
152
159
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
153
160
|
export declare var UntagResourceResponse$: StaticStructureSchema;
|
|
154
161
|
export declare var UpdateTableMetadataLocationRequest$: StaticStructureSchema;
|
|
@@ -176,6 +183,7 @@ export declare var GetNamespace$: StaticOperationSchema;
|
|
|
176
183
|
export declare var GetTable$: StaticOperationSchema;
|
|
177
184
|
export declare var GetTableBucket$: StaticOperationSchema;
|
|
178
185
|
export declare var GetTableBucketEncryption$: StaticOperationSchema;
|
|
186
|
+
export declare var GetTableBucketLogging$: StaticOperationSchema;
|
|
179
187
|
export declare var GetTableBucketMaintenanceConfiguration$: StaticOperationSchema;
|
|
180
188
|
export declare var GetTableBucketMetricsConfiguration$: StaticOperationSchema;
|
|
181
189
|
export declare var GetTableBucketPolicy$: StaticOperationSchema;
|
|
@@ -198,6 +206,7 @@ export declare var ListTableMigrations$: StaticOperationSchema;
|
|
|
198
206
|
export declare var ListTables$: StaticOperationSchema;
|
|
199
207
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
200
208
|
export declare var PutTableBucketEncryption$: StaticOperationSchema;
|
|
209
|
+
export declare var PutTableBucketLogging$: StaticOperationSchema;
|
|
201
210
|
export declare var PutTableBucketMaintenanceConfiguration$: StaticOperationSchema;
|
|
202
211
|
export declare var PutTableBucketMetricsConfiguration$: StaticOperationSchema;
|
|
203
212
|
export declare var PutTableBucketPolicy$: StaticOperationSchema;
|
|
@@ -62,6 +62,10 @@ import {
|
|
|
62
62
|
GetTableBucketEncryptionCommandInput,
|
|
63
63
|
GetTableBucketEncryptionCommandOutput,
|
|
64
64
|
} from "./commands/GetTableBucketEncryptionCommand";
|
|
65
|
+
import {
|
|
66
|
+
GetTableBucketLoggingCommandInput,
|
|
67
|
+
GetTableBucketLoggingCommandOutput,
|
|
68
|
+
} from "./commands/GetTableBucketLoggingCommand";
|
|
65
69
|
import {
|
|
66
70
|
GetTableBucketMaintenanceConfigurationCommandInput,
|
|
67
71
|
GetTableBucketMaintenanceConfigurationCommandOutput,
|
|
@@ -148,6 +152,10 @@ import {
|
|
|
148
152
|
PutTableBucketEncryptionCommandInput,
|
|
149
153
|
PutTableBucketEncryptionCommandOutput,
|
|
150
154
|
} from "./commands/PutTableBucketEncryptionCommand";
|
|
155
|
+
import {
|
|
156
|
+
PutTableBucketLoggingCommandInput,
|
|
157
|
+
PutTableBucketLoggingCommandOutput,
|
|
158
|
+
} from "./commands/PutTableBucketLoggingCommand";
|
|
151
159
|
import {
|
|
152
160
|
PutTableBucketMaintenanceConfigurationCommandInput,
|
|
153
161
|
PutTableBucketMaintenanceConfigurationCommandOutput,
|
|
@@ -430,6 +438,19 @@ export interface S3Tables {
|
|
|
430
438
|
options: S3TablesRequestOptions,
|
|
431
439
|
cb: (err: any, data?: GetTableBucketEncryptionCommandOutput) => void,
|
|
432
440
|
): void;
|
|
441
|
+
getTableBucketLogging(
|
|
442
|
+
args: GetTableBucketLoggingCommandInput,
|
|
443
|
+
options?: S3TablesRequestOptions,
|
|
444
|
+
): Promise<GetTableBucketLoggingCommandOutput>;
|
|
445
|
+
getTableBucketLogging(
|
|
446
|
+
args: GetTableBucketLoggingCommandInput,
|
|
447
|
+
cb: (err: any, data?: GetTableBucketLoggingCommandOutput) => void,
|
|
448
|
+
): void;
|
|
449
|
+
getTableBucketLogging(
|
|
450
|
+
args: GetTableBucketLoggingCommandInput,
|
|
451
|
+
options: S3TablesRequestOptions,
|
|
452
|
+
cb: (err: any, data?: GetTableBucketLoggingCommandOutput) => void,
|
|
453
|
+
): void;
|
|
433
454
|
getTableBucketMaintenanceConfiguration(
|
|
434
455
|
args: GetTableBucketMaintenanceConfigurationCommandInput,
|
|
435
456
|
options?: S3TablesRequestOptions,
|
|
@@ -719,6 +740,19 @@ export interface S3Tables {
|
|
|
719
740
|
options: S3TablesRequestOptions,
|
|
720
741
|
cb: (err: any, data?: PutTableBucketEncryptionCommandOutput) => void,
|
|
721
742
|
): void;
|
|
743
|
+
putTableBucketLogging(
|
|
744
|
+
args: PutTableBucketLoggingCommandInput,
|
|
745
|
+
options?: S3TablesRequestOptions,
|
|
746
|
+
): Promise<PutTableBucketLoggingCommandOutput>;
|
|
747
|
+
putTableBucketLogging(
|
|
748
|
+
args: PutTableBucketLoggingCommandInput,
|
|
749
|
+
cb: (err: any, data?: PutTableBucketLoggingCommandOutput) => void,
|
|
750
|
+
): void;
|
|
751
|
+
putTableBucketLogging(
|
|
752
|
+
args: PutTableBucketLoggingCommandInput,
|
|
753
|
+
options: S3TablesRequestOptions,
|
|
754
|
+
cb: (err: any, data?: PutTableBucketLoggingCommandOutput) => void,
|
|
755
|
+
): void;
|
|
722
756
|
putTableBucketMaintenanceConfiguration(
|
|
723
757
|
args: PutTableBucketMaintenanceConfigurationCommandInput,
|
|
724
758
|
options?: S3TablesRequestOptions,
|
|
@@ -91,6 +91,10 @@ import {
|
|
|
91
91
|
GetTableBucketEncryptionCommandInput,
|
|
92
92
|
GetTableBucketEncryptionCommandOutput,
|
|
93
93
|
} from "./commands/GetTableBucketEncryptionCommand";
|
|
94
|
+
import {
|
|
95
|
+
GetTableBucketLoggingCommandInput,
|
|
96
|
+
GetTableBucketLoggingCommandOutput,
|
|
97
|
+
} from "./commands/GetTableBucketLoggingCommand";
|
|
94
98
|
import {
|
|
95
99
|
GetTableBucketMaintenanceConfigurationCommandInput,
|
|
96
100
|
GetTableBucketMaintenanceConfigurationCommandOutput,
|
|
@@ -177,6 +181,10 @@ import {
|
|
|
177
181
|
PutTableBucketEncryptionCommandInput,
|
|
178
182
|
PutTableBucketEncryptionCommandOutput,
|
|
179
183
|
} from "./commands/PutTableBucketEncryptionCommand";
|
|
184
|
+
import {
|
|
185
|
+
PutTableBucketLoggingCommandInput,
|
|
186
|
+
PutTableBucketLoggingCommandOutput,
|
|
187
|
+
} from "./commands/PutTableBucketLoggingCommand";
|
|
180
188
|
import {
|
|
181
189
|
PutTableBucketMaintenanceConfigurationCommandInput,
|
|
182
190
|
PutTableBucketMaintenanceConfigurationCommandOutput,
|
|
@@ -259,6 +267,7 @@ export type ServiceInputTypes =
|
|
|
259
267
|
| GetNamespaceCommandInput
|
|
260
268
|
| GetTableBucketCommandInput
|
|
261
269
|
| GetTableBucketEncryptionCommandInput
|
|
270
|
+
| GetTableBucketLoggingCommandInput
|
|
262
271
|
| GetTableBucketMaintenanceConfigurationCommandInput
|
|
263
272
|
| GetTableBucketMetricsConfigurationCommandInput
|
|
264
273
|
| GetTableBucketPolicyCommandInput
|
|
@@ -282,6 +291,7 @@ export type ServiceInputTypes =
|
|
|
282
291
|
| ListTablesCommandInput
|
|
283
292
|
| ListTagsForResourceCommandInput
|
|
284
293
|
| PutTableBucketEncryptionCommandInput
|
|
294
|
+
| PutTableBucketLoggingCommandInput
|
|
285
295
|
| PutTableBucketMaintenanceConfigurationCommandInput
|
|
286
296
|
| PutTableBucketMetricsConfigurationCommandInput
|
|
287
297
|
| PutTableBucketPolicyCommandInput
|
|
@@ -315,6 +325,7 @@ export type ServiceOutputTypes =
|
|
|
315
325
|
| GetNamespaceCommandOutput
|
|
316
326
|
| GetTableBucketCommandOutput
|
|
317
327
|
| GetTableBucketEncryptionCommandOutput
|
|
328
|
+
| GetTableBucketLoggingCommandOutput
|
|
318
329
|
| GetTableBucketMaintenanceConfigurationCommandOutput
|
|
319
330
|
| GetTableBucketMetricsConfigurationCommandOutput
|
|
320
331
|
| GetTableBucketPolicyCommandOutput
|
|
@@ -338,6 +349,7 @@ export type ServiceOutputTypes =
|
|
|
338
349
|
| ListTablesCommandOutput
|
|
339
350
|
| ListTagsForResourceCommandOutput
|
|
340
351
|
| PutTableBucketEncryptionCommandOutput
|
|
352
|
+
| PutTableBucketLoggingCommandOutput
|
|
341
353
|
| PutTableBucketMaintenanceConfigurationCommandOutput
|
|
342
354
|
| PutTableBucketMetricsConfigurationCommandOutput
|
|
343
355
|
| PutTableBucketPolicyCommandOutput
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { GetTableBucketLoggingRequest, GetTableBucketLoggingResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface GetTableBucketLoggingCommandInput extends GetTableBucketLoggingRequest {}
|
|
5
|
+
export interface GetTableBucketLoggingCommandOutput
|
|
6
|
+
extends GetTableBucketLoggingResponse, __MetadataBearer {}
|
|
7
|
+
declare const GetTableBucketLoggingCommand_base: {
|
|
8
|
+
new (
|
|
9
|
+
input: GetTableBucketLoggingCommandInput,
|
|
10
|
+
): import("@smithy/core/client").CommandImpl<
|
|
11
|
+
GetTableBucketLoggingCommandInput,
|
|
12
|
+
GetTableBucketLoggingCommandOutput,
|
|
13
|
+
import("..").S3TablesClientResolvedConfig,
|
|
14
|
+
import("..").ServiceInputTypes,
|
|
15
|
+
import("..").ServiceOutputTypes
|
|
16
|
+
>;
|
|
17
|
+
new (
|
|
18
|
+
input: GetTableBucketLoggingCommandInput,
|
|
19
|
+
): import("@smithy/core/client").CommandImpl<
|
|
20
|
+
GetTableBucketLoggingCommandInput,
|
|
21
|
+
GetTableBucketLoggingCommandOutput,
|
|
22
|
+
import("..").S3TablesClientResolvedConfig,
|
|
23
|
+
import("..").ServiceInputTypes,
|
|
24
|
+
import("..").ServiceOutputTypes
|
|
25
|
+
>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
export declare class GetTableBucketLoggingCommand extends GetTableBucketLoggingCommand_base {
|
|
29
|
+
protected static __types: {
|
|
30
|
+
api: {
|
|
31
|
+
input: GetTableBucketLoggingRequest;
|
|
32
|
+
output: GetTableBucketLoggingResponse;
|
|
33
|
+
};
|
|
34
|
+
sdk: {
|
|
35
|
+
input: GetTableBucketLoggingCommandInput;
|
|
36
|
+
output: GetTableBucketLoggingCommandOutput;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { PutTableBucketLoggingRequest } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface PutTableBucketLoggingCommandInput extends PutTableBucketLoggingRequest {}
|
|
5
|
+
export interface PutTableBucketLoggingCommandOutput extends __MetadataBearer {}
|
|
6
|
+
declare const PutTableBucketLoggingCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: PutTableBucketLoggingCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
PutTableBucketLoggingCommandInput,
|
|
11
|
+
PutTableBucketLoggingCommandOutput,
|
|
12
|
+
import("..").S3TablesClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: PutTableBucketLoggingCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
PutTableBucketLoggingCommandInput,
|
|
20
|
+
PutTableBucketLoggingCommandOutput,
|
|
21
|
+
import("..").S3TablesClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class PutTableBucketLoggingCommand extends PutTableBucketLoggingCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: PutTableBucketLoggingRequest;
|
|
31
|
+
output: {};
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: PutTableBucketLoggingCommandInput;
|
|
35
|
+
output: PutTableBucketLoggingCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|