@aws-sdk/client-cloudtrail 3.734.0 → 3.738.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 +8 -0
- package/dist-cjs/index.js +57 -0
- package/dist-es/CloudTrail.js +2 -0
- package/dist-es/commands/SearchSampleQueriesCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +42 -1
- package/dist-types/CloudTrail.d.ts +7 -0
- package/dist-types/CloudTrailClient.d.ts +3 -2
- package/dist-types/commands/GetInsightSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/SearchSampleQueriesCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +85 -2
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +17 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/SearchSampleQueriesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -570,6 +570,14 @@ RestoreEventDataStore
|
|
|
570
570
|
|
|
571
571
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/RestoreEventDataStoreCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/RestoreEventDataStoreCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/RestoreEventDataStoreCommandOutput/)
|
|
572
572
|
|
|
573
|
+
</details>
|
|
574
|
+
<details>
|
|
575
|
+
<summary>
|
|
576
|
+
SearchSampleQueries
|
|
577
|
+
</summary>
|
|
578
|
+
|
|
579
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudtrail/command/SearchSampleQueriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/SearchSampleQueriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudtrail/Interface/SearchSampleQueriesCommandOutput/)
|
|
580
|
+
|
|
573
581
|
</details>
|
|
574
582
|
<details>
|
|
575
583
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -163,6 +163,7 @@ __export(src_exports, {
|
|
|
163
163
|
ResourceTypeNotSupportedException: () => ResourceTypeNotSupportedException,
|
|
164
164
|
RestoreEventDataStoreCommand: () => RestoreEventDataStoreCommand,
|
|
165
165
|
S3BucketDoesNotExistException: () => S3BucketDoesNotExistException,
|
|
166
|
+
SearchSampleQueriesCommand: () => SearchSampleQueriesCommand,
|
|
166
167
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
167
168
|
StartDashboardRefreshCommand: () => StartDashboardRefreshCommand,
|
|
168
169
|
StartEventDataStoreIngestionCommand: () => StartEventDataStoreIngestionCommand,
|
|
@@ -2772,6 +2773,12 @@ var se_RestoreEventDataStoreCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
2772
2773
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2773
2774
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2774
2775
|
}, "se_RestoreEventDataStoreCommand");
|
|
2776
|
+
var se_SearchSampleQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2777
|
+
const headers = sharedHeaders("SearchSampleQueries");
|
|
2778
|
+
let body;
|
|
2779
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
2780
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
2781
|
+
}, "se_SearchSampleQueriesCommand");
|
|
2775
2782
|
var se_StartDashboardRefreshCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2776
2783
|
const headers = sharedHeaders("StartDashboardRefresh");
|
|
2777
2784
|
let body;
|
|
@@ -3416,6 +3423,19 @@ var de_RestoreEventDataStoreCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3416
3423
|
};
|
|
3417
3424
|
return response;
|
|
3418
3425
|
}, "de_RestoreEventDataStoreCommand");
|
|
3426
|
+
var de_SearchSampleQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3427
|
+
if (output.statusCode >= 300) {
|
|
3428
|
+
return de_CommandError(output, context);
|
|
3429
|
+
}
|
|
3430
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3431
|
+
let contents = {};
|
|
3432
|
+
contents = de_SearchSampleQueriesResponse(data, context);
|
|
3433
|
+
const response = {
|
|
3434
|
+
$metadata: deserializeMetadata(output),
|
|
3435
|
+
...contents
|
|
3436
|
+
};
|
|
3437
|
+
return response;
|
|
3438
|
+
}, "de_SearchSampleQueriesCommand");
|
|
3419
3439
|
var de_StartDashboardRefreshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3420
3440
|
if (output.statusCode >= 300) {
|
|
3421
3441
|
return de_CommandError(output, context);
|
|
@@ -4948,6 +4968,26 @@ var de_RestoreEventDataStoreResponse = /* @__PURE__ */ __name((output, context)
|
|
|
4948
4968
|
UpdatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
4949
4969
|
});
|
|
4950
4970
|
}, "de_RestoreEventDataStoreResponse");
|
|
4971
|
+
var de_SearchSampleQueriesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
4972
|
+
return (0, import_smithy_client.take)(output, {
|
|
4973
|
+
NextToken: import_smithy_client.expectString,
|
|
4974
|
+
SearchResults: (_) => de_SearchSampleQueriesSearchResults(_, context)
|
|
4975
|
+
});
|
|
4976
|
+
}, "de_SearchSampleQueriesResponse");
|
|
4977
|
+
var de_SearchSampleQueriesSearchResult = /* @__PURE__ */ __name((output, context) => {
|
|
4978
|
+
return (0, import_smithy_client.take)(output, {
|
|
4979
|
+
Description: import_smithy_client.expectString,
|
|
4980
|
+
Name: import_smithy_client.expectString,
|
|
4981
|
+
Relevance: import_smithy_client.limitedParseFloat32,
|
|
4982
|
+
SQL: import_smithy_client.expectString
|
|
4983
|
+
});
|
|
4984
|
+
}, "de_SearchSampleQueriesSearchResult");
|
|
4985
|
+
var de_SearchSampleQueriesSearchResults = /* @__PURE__ */ __name((output, context) => {
|
|
4986
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4987
|
+
return de_SearchSampleQueriesSearchResult(entry, context);
|
|
4988
|
+
});
|
|
4989
|
+
return retVal;
|
|
4990
|
+
}, "de_SearchSampleQueriesSearchResults");
|
|
4951
4991
|
var de_StartImportResponse = /* @__PURE__ */ __name((output, context) => {
|
|
4952
4992
|
return (0, import_smithy_client.take)(output, {
|
|
4953
4993
|
CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -5699,6 +5739,21 @@ var RestoreEventDataStoreCommand = class extends import_smithy_client.Command.cl
|
|
|
5699
5739
|
}
|
|
5700
5740
|
};
|
|
5701
5741
|
|
|
5742
|
+
// src/commands/SearchSampleQueriesCommand.ts
|
|
5743
|
+
|
|
5744
|
+
|
|
5745
|
+
|
|
5746
|
+
var SearchSampleQueriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5747
|
+
return [
|
|
5748
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5749
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5750
|
+
];
|
|
5751
|
+
}).s("CloudTrail_20131101", "SearchSampleQueries", {}).n("CloudTrailClient", "SearchSampleQueriesCommand").f(void 0, void 0).ser(se_SearchSampleQueriesCommand).de(de_SearchSampleQueriesCommand).build() {
|
|
5752
|
+
static {
|
|
5753
|
+
__name(this, "SearchSampleQueriesCommand");
|
|
5754
|
+
}
|
|
5755
|
+
};
|
|
5756
|
+
|
|
5702
5757
|
// src/commands/StartDashboardRefreshCommand.ts
|
|
5703
5758
|
|
|
5704
5759
|
|
|
@@ -5925,6 +5980,7 @@ var commands = {
|
|
|
5925
5980
|
RegisterOrganizationDelegatedAdminCommand,
|
|
5926
5981
|
RemoveTagsCommand,
|
|
5927
5982
|
RestoreEventDataStoreCommand,
|
|
5983
|
+
SearchSampleQueriesCommand,
|
|
5928
5984
|
StartDashboardRefreshCommand,
|
|
5929
5985
|
StartEventDataStoreIngestionCommand,
|
|
5930
5986
|
StartImportCommand,
|
|
@@ -6040,6 +6096,7 @@ var paginateLookupEvents = (0, import_core.createPaginator)(CloudTrailClient, Lo
|
|
|
6040
6096
|
RegisterOrganizationDelegatedAdminCommand,
|
|
6041
6097
|
RemoveTagsCommand,
|
|
6042
6098
|
RestoreEventDataStoreCommand,
|
|
6099
|
+
SearchSampleQueriesCommand,
|
|
6043
6100
|
StartDashboardRefreshCommand,
|
|
6044
6101
|
StartEventDataStoreIngestionCommand,
|
|
6045
6102
|
StartImportCommand,
|
package/dist-es/CloudTrail.js
CHANGED
|
@@ -44,6 +44,7 @@ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
|
44
44
|
import { RegisterOrganizationDelegatedAdminCommand, } from "./commands/RegisterOrganizationDelegatedAdminCommand";
|
|
45
45
|
import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
|
|
46
46
|
import { RestoreEventDataStoreCommand, } from "./commands/RestoreEventDataStoreCommand";
|
|
47
|
+
import { SearchSampleQueriesCommand, } from "./commands/SearchSampleQueriesCommand";
|
|
47
48
|
import { StartDashboardRefreshCommand, } from "./commands/StartDashboardRefreshCommand";
|
|
48
49
|
import { StartEventDataStoreIngestionCommand, } from "./commands/StartEventDataStoreIngestionCommand";
|
|
49
50
|
import { StartImportCommand } from "./commands/StartImportCommand";
|
|
@@ -101,6 +102,7 @@ const commands = {
|
|
|
101
102
|
RegisterOrganizationDelegatedAdminCommand,
|
|
102
103
|
RemoveTagsCommand,
|
|
103
104
|
RestoreEventDataStoreCommand,
|
|
105
|
+
SearchSampleQueriesCommand,
|
|
104
106
|
StartDashboardRefreshCommand,
|
|
105
107
|
StartEventDataStoreIngestionCommand,
|
|
106
108
|
StartImportCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_SearchSampleQueriesCommand, se_SearchSampleQueriesCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class SearchSampleQueriesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("CloudTrail_20131101", "SearchSampleQueries", {})
|
|
17
|
+
.n("CloudTrailClient", "SearchSampleQueriesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_SearchSampleQueriesCommand)
|
|
20
|
+
.de(de_SearchSampleQueriesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./PutResourcePolicyCommand";
|
|
|
42
42
|
export * from "./RegisterOrganizationDelegatedAdminCommand";
|
|
43
43
|
export * from "./RemoveTagsCommand";
|
|
44
44
|
export * from "./RestoreEventDataStoreCommand";
|
|
45
|
+
export * from "./SearchSampleQueriesCommand";
|
|
45
46
|
export * from "./StartDashboardRefreshCommand";
|
|
46
47
|
export * from "./StartEventDataStoreIngestionCommand";
|
|
47
48
|
export * from "./StartImportCommand";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
|
|
5
5
|
import { AccessDeniedException, AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConcurrentModificationException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreFederationEnabledException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, GenerateResponseException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidSourceException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceARNNotValidException, ResourceNotFoundException, ResourcePolicyNotFoundException, ResourcePolicyNotValidException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, ServiceQuotaExceededException, TagsLimitExceededException, ThrottlingException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
6
|
export const se_AddTagsCommand = async (input, context) => {
|
|
@@ -267,6 +267,12 @@ export const se_RestoreEventDataStoreCommand = async (input, context) => {
|
|
|
267
267
|
body = JSON.stringify(_json(input));
|
|
268
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
269
|
};
|
|
270
|
+
export const se_SearchSampleQueriesCommand = async (input, context) => {
|
|
271
|
+
const headers = sharedHeaders("SearchSampleQueries");
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify(_json(input));
|
|
274
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
+
};
|
|
270
276
|
export const se_StartDashboardRefreshCommand = async (input, context) => {
|
|
271
277
|
const headers = sharedHeaders("StartDashboardRefresh");
|
|
272
278
|
let body;
|
|
@@ -911,6 +917,19 @@ export const de_RestoreEventDataStoreCommand = async (output, context) => {
|
|
|
911
917
|
};
|
|
912
918
|
return response;
|
|
913
919
|
};
|
|
920
|
+
export const de_SearchSampleQueriesCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode >= 300) {
|
|
922
|
+
return de_CommandError(output, context);
|
|
923
|
+
}
|
|
924
|
+
const data = await parseBody(output.body, context);
|
|
925
|
+
let contents = {};
|
|
926
|
+
contents = de_SearchSampleQueriesResponse(data, context);
|
|
927
|
+
const response = {
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
...contents,
|
|
930
|
+
};
|
|
931
|
+
return response;
|
|
932
|
+
};
|
|
914
933
|
export const de_StartDashboardRefreshCommand = async (output, context) => {
|
|
915
934
|
if (output.statusCode >= 300) {
|
|
916
935
|
return de_CommandError(output, context);
|
|
@@ -2457,6 +2476,28 @@ const de_RestoreEventDataStoreResponse = (output, context) => {
|
|
|
2457
2476
|
UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2458
2477
|
});
|
|
2459
2478
|
};
|
|
2479
|
+
const de_SearchSampleQueriesResponse = (output, context) => {
|
|
2480
|
+
return take(output, {
|
|
2481
|
+
NextToken: __expectString,
|
|
2482
|
+
SearchResults: (_) => de_SearchSampleQueriesSearchResults(_, context),
|
|
2483
|
+
});
|
|
2484
|
+
};
|
|
2485
|
+
const de_SearchSampleQueriesSearchResult = (output, context) => {
|
|
2486
|
+
return take(output, {
|
|
2487
|
+
Description: __expectString,
|
|
2488
|
+
Name: __expectString,
|
|
2489
|
+
Relevance: __limitedParseFloat32,
|
|
2490
|
+
SQL: __expectString,
|
|
2491
|
+
});
|
|
2492
|
+
};
|
|
2493
|
+
const de_SearchSampleQueriesSearchResults = (output, context) => {
|
|
2494
|
+
const retVal = (output || [])
|
|
2495
|
+
.filter((e) => e != null)
|
|
2496
|
+
.map((entry) => {
|
|
2497
|
+
return de_SearchSampleQueriesSearchResult(entry, context);
|
|
2498
|
+
});
|
|
2499
|
+
return retVal;
|
|
2500
|
+
};
|
|
2460
2501
|
const de_StartImportResponse = (output, context) => {
|
|
2461
2502
|
return take(output, {
|
|
2462
2503
|
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -44,6 +44,7 @@ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from ".
|
|
|
44
44
|
import { RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput } from "./commands/RegisterOrganizationDelegatedAdminCommand";
|
|
45
45
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
46
46
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
47
|
+
import { SearchSampleQueriesCommandInput, SearchSampleQueriesCommandOutput } from "./commands/SearchSampleQueriesCommand";
|
|
47
48
|
import { StartDashboardRefreshCommandInput, StartDashboardRefreshCommandOutput } from "./commands/StartDashboardRefreshCommand";
|
|
48
49
|
import { StartEventDataStoreIngestionCommandInput, StartEventDataStoreIngestionCommandOutput } from "./commands/StartEventDataStoreIngestionCommand";
|
|
49
50
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
@@ -331,6 +332,12 @@ export interface CloudTrail {
|
|
|
331
332
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, options?: __HttpHandlerOptions): Promise<RestoreEventDataStoreCommandOutput>;
|
|
332
333
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void): void;
|
|
333
334
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void): void;
|
|
335
|
+
/**
|
|
336
|
+
* @see {@link SearchSampleQueriesCommand}
|
|
337
|
+
*/
|
|
338
|
+
searchSampleQueries(args: SearchSampleQueriesCommandInput, options?: __HttpHandlerOptions): Promise<SearchSampleQueriesCommandOutput>;
|
|
339
|
+
searchSampleQueries(args: SearchSampleQueriesCommandInput, cb: (err: any, data?: SearchSampleQueriesCommandOutput) => void): void;
|
|
340
|
+
searchSampleQueries(args: SearchSampleQueriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchSampleQueriesCommandOutput) => void): void;
|
|
334
341
|
/**
|
|
335
342
|
* @see {@link StartDashboardRefreshCommand}
|
|
336
343
|
*/
|
|
@@ -51,6 +51,7 @@ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from ".
|
|
|
51
51
|
import { RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput } from "./commands/RegisterOrganizationDelegatedAdminCommand";
|
|
52
52
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
53
53
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
54
|
+
import { SearchSampleQueriesCommandInput, SearchSampleQueriesCommandOutput } from "./commands/SearchSampleQueriesCommand";
|
|
54
55
|
import { StartDashboardRefreshCommandInput, StartDashboardRefreshCommandOutput } from "./commands/StartDashboardRefreshCommand";
|
|
55
56
|
import { StartEventDataStoreIngestionCommandInput, StartEventDataStoreIngestionCommandOutput } from "./commands/StartEventDataStoreIngestionCommand";
|
|
56
57
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
@@ -69,11 +70,11 @@ export { __Client };
|
|
|
69
70
|
/**
|
|
70
71
|
* @public
|
|
71
72
|
*/
|
|
72
|
-
export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateDashboardCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteDashboardCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GenerateQueryCommandInput | GetChannelCommandInput | GetDashboardCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListDashboardsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListInsightsMetricDataCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartDashboardRefreshCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateDashboardCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
73
|
+
export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateDashboardCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteDashboardCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GenerateQueryCommandInput | GetChannelCommandInput | GetDashboardCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListDashboardsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListInsightsMetricDataCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | SearchSampleQueriesCommandInput | StartDashboardRefreshCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateDashboardCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
73
74
|
/**
|
|
74
75
|
* @public
|
|
75
76
|
*/
|
|
76
|
-
export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateDashboardCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteDashboardCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GenerateQueryCommandOutput | GetChannelCommandOutput | GetDashboardCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListDashboardsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListInsightsMetricDataCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartDashboardRefreshCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateDashboardCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
77
|
+
export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateDashboardCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteDashboardCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GenerateQueryCommandOutput | GetChannelCommandOutput | GetDashboardCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListDashboardsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListInsightsMetricDataCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | SearchSampleQueriesCommandOutput | StartDashboardRefreshCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateDashboardCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
77
78
|
/**
|
|
78
79
|
* @public
|
|
79
80
|
*/
|
|
@@ -35,7 +35,7 @@ declare const GetInsightSelectorsCommand_base: {
|
|
|
35
35
|
* </p>
|
|
36
36
|
* <p>Specify either the <code>EventDataStore</code> parameter to get Insights event selectors for an event data store,
|
|
37
37
|
* or the <code>TrailName</code> parameter to the get Insights event selectors for a trail. You cannot specify these parameters together.</p>
|
|
38
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">
|
|
38
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Working with CloudTrail Insights</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
39
39
|
* @example
|
|
40
40
|
* Use a bare-bones client and the command you need to make an API call.
|
|
41
41
|
* ```javascript
|
|
@@ -53,7 +53,7 @@ declare const PutEventSelectorsCommand_base: {
|
|
|
53
53
|
* </ul>
|
|
54
54
|
* <p>You can't use <code>EventSelectors</code> to log network activity events.</p>
|
|
55
55
|
* <p>If you want your trail to log Insights events, be sure the event selector or advanced event selector enables
|
|
56
|
-
* logging of the Insights event types you want configured for your trail. For more information about logging Insights events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">
|
|
56
|
+
* logging of the Insights event types you want configured for your trail. For more information about logging Insights events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Working with CloudTrail Insights</a> in the <i>CloudTrail User Guide</i>.
|
|
57
57
|
* By default, trails created without specific event selectors are configured to
|
|
58
58
|
* log all read and write management events, and no data events or network activity events.</p>
|
|
59
59
|
* <p>When an event occurs in your account, CloudTrail evaluates the event selectors or
|
|
@@ -42,7 +42,7 @@ declare const PutInsightSelectorsCommand_base: {
|
|
|
42
42
|
* <code>write</code> management events. You can call <code>GetEventSelectors</code> on a trail
|
|
43
43
|
* to check whether the trail logs management events. You can call <code>GetEventDataStore</code> on an
|
|
44
44
|
* event data store to check whether the event data store logs management events.</p>
|
|
45
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">
|
|
45
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Working with CloudTrail Insights</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
46
46
|
* @example
|
|
47
47
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
48
|
* ```javascript
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
4
|
+
import { SearchSampleQueriesRequest, SearchSampleQueriesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SearchSampleQueriesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SearchSampleQueriesCommandInput extends SearchSampleQueriesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SearchSampleQueriesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchSampleQueriesCommandOutput extends SearchSampleQueriesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SearchSampleQueriesCommand_base: {
|
|
25
|
+
new (input: SearchSampleQueriesCommandInput): import("@smithy/smithy-client").CommandImpl<SearchSampleQueriesCommandInput, SearchSampleQueriesCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SearchSampleQueriesCommandInput): import("@smithy/smithy-client").CommandImpl<SearchSampleQueriesCommandInput, SearchSampleQueriesCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* Searches sample queries and returns a list of sample queries that are sorted by relevance.
|
|
32
|
+
* To search for sample queries, provide a natural language <code>SearchPhrase</code> in English.
|
|
33
|
+
* </p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { CloudTrailClient, SearchSampleQueriesCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
38
|
+
* // const { CloudTrailClient, SearchSampleQueriesCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
39
|
+
* const client = new CloudTrailClient(config);
|
|
40
|
+
* const input = { // SearchSampleQueriesRequest
|
|
41
|
+
* SearchPhrase: "STRING_VALUE", // required
|
|
42
|
+
* MaxResults: Number("int"),
|
|
43
|
+
* NextToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new SearchSampleQueriesCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // SearchSampleQueriesResponse
|
|
48
|
+
* // SearchResults: [ // SearchSampleQueriesSearchResults
|
|
49
|
+
* // { // SearchSampleQueriesSearchResult
|
|
50
|
+
* // Name: "STRING_VALUE",
|
|
51
|
+
* // Description: "STRING_VALUE",
|
|
52
|
+
* // SQL: "STRING_VALUE",
|
|
53
|
+
* // Relevance: Number("float"),
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // NextToken: "STRING_VALUE",
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param SearchSampleQueriesCommandInput - {@link SearchSampleQueriesCommandInput}
|
|
62
|
+
* @returns {@link SearchSampleQueriesCommandOutput}
|
|
63
|
+
* @see {@link SearchSampleQueriesCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link SearchSampleQueriesCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
68
|
+
* <p>The request includes a parameter that is not valid.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link OperationNotPermittedException} (client fault)
|
|
71
|
+
* <p>This exception is thrown when the requested operation is not permitted.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link UnsupportedOperationException} (client fault)
|
|
74
|
+
* <p>This exception is thrown when the requested operation is not supported.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link CloudTrailServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from CloudTrail service.</p>
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class SearchSampleQueriesCommand extends SearchSampleQueriesCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: SearchSampleQueriesRequest;
|
|
86
|
+
output: SearchSampleQueriesResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: SearchSampleQueriesCommandInput;
|
|
90
|
+
output: SearchSampleQueriesCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./PutResourcePolicyCommand";
|
|
|
42
42
|
export * from "./RegisterOrganizationDelegatedAdminCommand";
|
|
43
43
|
export * from "./RemoveTagsCommand";
|
|
44
44
|
export * from "./RestoreEventDataStoreCommand";
|
|
45
|
+
export * from "./SearchSampleQueriesCommand";
|
|
45
46
|
export * from "./StartDashboardRefreshCommand";
|
|
46
47
|
export * from "./StartEventDataStoreIngestionCommand";
|
|
47
48
|
export * from "./StartImportCommand";
|
|
@@ -466,7 +466,11 @@ export interface AdvancedFieldSelector {
|
|
|
466
466
|
* selecting events as filtering is not supported.</p>
|
|
467
467
|
* <p>For more information, see
|
|
468
468
|
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html">AdvancedFieldSelector</a>
|
|
469
|
-
* in the <i>
|
|
469
|
+
* in the <i>CloudTrail API Reference</i>.</p>
|
|
470
|
+
* <note>
|
|
471
|
+
* <p>Selectors don't support the use of wildcards like <code>*</code> . To match multiple values with a single condition,
|
|
472
|
+
* you may use <code>StartsWith</code>, <code>EndsWith</code>, <code>NotStartsWith</code>, or <code>NotEndsWith</code> to explicitly match the beginning or end of the event field.</p>
|
|
473
|
+
* </note>
|
|
470
474
|
* @public
|
|
471
475
|
*/
|
|
472
476
|
Field: string | undefined;
|
|
@@ -516,7 +520,7 @@ export interface AdvancedFieldSelector {
|
|
|
516
520
|
* <p>You cannot apply both event selectors and advanced event selectors to a trail.</p>
|
|
517
521
|
* <p>For information about configurable advanced event selector fields, see
|
|
518
522
|
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html">AdvancedEventSelector</a>
|
|
519
|
-
* in the <i>
|
|
523
|
+
* in the <i>CloudTrail API Reference</i>.</p>
|
|
520
524
|
* @public
|
|
521
525
|
*/
|
|
522
526
|
export interface AdvancedEventSelector {
|
|
@@ -5653,6 +5657,85 @@ export interface RestoreEventDataStoreResponse {
|
|
|
5653
5657
|
*/
|
|
5654
5658
|
BillingMode?: BillingMode | undefined;
|
|
5655
5659
|
}
|
|
5660
|
+
/**
|
|
5661
|
+
* @public
|
|
5662
|
+
*/
|
|
5663
|
+
export interface SearchSampleQueriesRequest {
|
|
5664
|
+
/**
|
|
5665
|
+
* <p>
|
|
5666
|
+
* The natural language phrase to use for the semantic search. The phrase must be in English. The length constraint is in characters, not words.</p>
|
|
5667
|
+
* @public
|
|
5668
|
+
*/
|
|
5669
|
+
SearchPhrase: string | undefined;
|
|
5670
|
+
/**
|
|
5671
|
+
* <p>
|
|
5672
|
+
* The maximum number of results to return on a single page. The default value is 10.
|
|
5673
|
+
* </p>
|
|
5674
|
+
* @public
|
|
5675
|
+
*/
|
|
5676
|
+
MaxResults?: number | undefined;
|
|
5677
|
+
/**
|
|
5678
|
+
* <p>
|
|
5679
|
+
* A token you can use to get the next page of results. The length constraint is in characters, not words.
|
|
5680
|
+
* </p>
|
|
5681
|
+
* @public
|
|
5682
|
+
*/
|
|
5683
|
+
NextToken?: string | undefined;
|
|
5684
|
+
}
|
|
5685
|
+
/**
|
|
5686
|
+
* <p>
|
|
5687
|
+
* A search result returned by the <code>SearchSampleQueries</code> operation.
|
|
5688
|
+
* </p>
|
|
5689
|
+
* @public
|
|
5690
|
+
*/
|
|
5691
|
+
export interface SearchSampleQueriesSearchResult {
|
|
5692
|
+
/**
|
|
5693
|
+
* <p>
|
|
5694
|
+
* The name of a sample query.
|
|
5695
|
+
* </p>
|
|
5696
|
+
* @public
|
|
5697
|
+
*/
|
|
5698
|
+
Name?: string | undefined;
|
|
5699
|
+
/**
|
|
5700
|
+
* <p>
|
|
5701
|
+
* A longer description of a sample query.
|
|
5702
|
+
* </p>
|
|
5703
|
+
* @public
|
|
5704
|
+
*/
|
|
5705
|
+
Description?: string | undefined;
|
|
5706
|
+
/**
|
|
5707
|
+
* <p>
|
|
5708
|
+
* The SQL code of the sample query.
|
|
5709
|
+
* </p>
|
|
5710
|
+
* @public
|
|
5711
|
+
*/
|
|
5712
|
+
SQL?: string | undefined;
|
|
5713
|
+
/**
|
|
5714
|
+
* <p>
|
|
5715
|
+
* A value between 0 and 1 indicating the similarity between the search phrase and result.
|
|
5716
|
+
* </p>
|
|
5717
|
+
* @public
|
|
5718
|
+
*/
|
|
5719
|
+
Relevance?: number | undefined;
|
|
5720
|
+
}
|
|
5721
|
+
/**
|
|
5722
|
+
* @public
|
|
5723
|
+
*/
|
|
5724
|
+
export interface SearchSampleQueriesResponse {
|
|
5725
|
+
/**
|
|
5726
|
+
* <p>
|
|
5727
|
+
* A list of objects containing the search results ordered from most relevant to least relevant.
|
|
5728
|
+
* </p>
|
|
5729
|
+
* @public
|
|
5730
|
+
*/
|
|
5731
|
+
SearchResults?: SearchSampleQueriesSearchResult[] | undefined;
|
|
5732
|
+
/**
|
|
5733
|
+
* <p>
|
|
5734
|
+
* A token you can use to get the next page of results.</p>
|
|
5735
|
+
* @public
|
|
5736
|
+
*/
|
|
5737
|
+
NextToken?: string | undefined;
|
|
5738
|
+
}
|
|
5656
5739
|
/**
|
|
5657
5740
|
* @public
|
|
5658
5741
|
*/
|
|
@@ -44,6 +44,7 @@ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from ".
|
|
|
44
44
|
import { RegisterOrganizationDelegatedAdminCommandInput, RegisterOrganizationDelegatedAdminCommandOutput } from "../commands/RegisterOrganizationDelegatedAdminCommand";
|
|
45
45
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "../commands/RemoveTagsCommand";
|
|
46
46
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "../commands/RestoreEventDataStoreCommand";
|
|
47
|
+
import { SearchSampleQueriesCommandInput, SearchSampleQueriesCommandOutput } from "../commands/SearchSampleQueriesCommand";
|
|
47
48
|
import { StartDashboardRefreshCommandInput, StartDashboardRefreshCommandOutput } from "../commands/StartDashboardRefreshCommand";
|
|
48
49
|
import { StartEventDataStoreIngestionCommandInput, StartEventDataStoreIngestionCommandOutput } from "../commands/StartEventDataStoreIngestionCommand";
|
|
49
50
|
import { StartImportCommandInput, StartImportCommandOutput } from "../commands/StartImportCommand";
|
|
@@ -232,6 +233,10 @@ export declare const se_RemoveTagsCommand: (input: RemoveTagsCommandInput, conte
|
|
|
232
233
|
* serializeAws_json1_1RestoreEventDataStoreCommand
|
|
233
234
|
*/
|
|
234
235
|
export declare const se_RestoreEventDataStoreCommand: (input: RestoreEventDataStoreCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
236
|
+
/**
|
|
237
|
+
* serializeAws_json1_1SearchSampleQueriesCommand
|
|
238
|
+
*/
|
|
239
|
+
export declare const se_SearchSampleQueriesCommand: (input: SearchSampleQueriesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
235
240
|
/**
|
|
236
241
|
* serializeAws_json1_1StartDashboardRefreshCommand
|
|
237
242
|
*/
|
|
@@ -456,6 +461,10 @@ export declare const de_RemoveTagsCommand: (output: __HttpResponse, context: __S
|
|
|
456
461
|
* deserializeAws_json1_1RestoreEventDataStoreCommand
|
|
457
462
|
*/
|
|
458
463
|
export declare const de_RestoreEventDataStoreCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreEventDataStoreCommandOutput>;
|
|
464
|
+
/**
|
|
465
|
+
* deserializeAws_json1_1SearchSampleQueriesCommand
|
|
466
|
+
*/
|
|
467
|
+
export declare const de_SearchSampleQueriesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchSampleQueriesCommandOutput>;
|
|
459
468
|
/**
|
|
460
469
|
* deserializeAws_json1_1StartDashboardRefreshCommand
|
|
461
470
|
*/
|
|
@@ -176,6 +176,10 @@ import {
|
|
|
176
176
|
RestoreEventDataStoreCommandInput,
|
|
177
177
|
RestoreEventDataStoreCommandOutput,
|
|
178
178
|
} from "./commands/RestoreEventDataStoreCommand";
|
|
179
|
+
import {
|
|
180
|
+
SearchSampleQueriesCommandInput,
|
|
181
|
+
SearchSampleQueriesCommandOutput,
|
|
182
|
+
} from "./commands/SearchSampleQueriesCommand";
|
|
179
183
|
import {
|
|
180
184
|
StartDashboardRefreshCommandInput,
|
|
181
185
|
StartDashboardRefreshCommandOutput,
|
|
@@ -819,6 +823,19 @@ export interface CloudTrail {
|
|
|
819
823
|
options: __HttpHandlerOptions,
|
|
820
824
|
cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void
|
|
821
825
|
): void;
|
|
826
|
+
searchSampleQueries(
|
|
827
|
+
args: SearchSampleQueriesCommandInput,
|
|
828
|
+
options?: __HttpHandlerOptions
|
|
829
|
+
): Promise<SearchSampleQueriesCommandOutput>;
|
|
830
|
+
searchSampleQueries(
|
|
831
|
+
args: SearchSampleQueriesCommandInput,
|
|
832
|
+
cb: (err: any, data?: SearchSampleQueriesCommandOutput) => void
|
|
833
|
+
): void;
|
|
834
|
+
searchSampleQueries(
|
|
835
|
+
args: SearchSampleQueriesCommandInput,
|
|
836
|
+
options: __HttpHandlerOptions,
|
|
837
|
+
cb: (err: any, data?: SearchSampleQueriesCommandOutput) => void
|
|
838
|
+
): void;
|
|
822
839
|
startDashboardRefresh(
|
|
823
840
|
args: StartDashboardRefreshCommandInput,
|
|
824
841
|
options?: __HttpHandlerOptions
|
|
@@ -221,6 +221,10 @@ import {
|
|
|
221
221
|
RestoreEventDataStoreCommandInput,
|
|
222
222
|
RestoreEventDataStoreCommandOutput,
|
|
223
223
|
} from "./commands/RestoreEventDataStoreCommand";
|
|
224
|
+
import {
|
|
225
|
+
SearchSampleQueriesCommandInput,
|
|
226
|
+
SearchSampleQueriesCommandOutput,
|
|
227
|
+
} from "./commands/SearchSampleQueriesCommand";
|
|
224
228
|
import {
|
|
225
229
|
StartDashboardRefreshCommandInput,
|
|
226
230
|
StartDashboardRefreshCommandOutput,
|
|
@@ -321,6 +325,7 @@ export type ServiceInputTypes =
|
|
|
321
325
|
| RegisterOrganizationDelegatedAdminCommandInput
|
|
322
326
|
| RemoveTagsCommandInput
|
|
323
327
|
| RestoreEventDataStoreCommandInput
|
|
328
|
+
| SearchSampleQueriesCommandInput
|
|
324
329
|
| StartDashboardRefreshCommandInput
|
|
325
330
|
| StartEventDataStoreIngestionCommandInput
|
|
326
331
|
| StartImportCommandInput
|
|
@@ -378,6 +383,7 @@ export type ServiceOutputTypes =
|
|
|
378
383
|
| RegisterOrganizationDelegatedAdminCommandOutput
|
|
379
384
|
| RemoveTagsCommandOutput
|
|
380
385
|
| RestoreEventDataStoreCommandOutput
|
|
386
|
+
| SearchSampleQueriesCommandOutput
|
|
381
387
|
| StartDashboardRefreshCommandOutput
|
|
382
388
|
| StartEventDataStoreIngestionCommandOutput
|
|
383
389
|
| StartImportCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
CloudTrailClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../CloudTrailClient";
|
|
8
|
+
import {
|
|
9
|
+
SearchSampleQueriesRequest,
|
|
10
|
+
SearchSampleQueriesResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface SearchSampleQueriesCommandInput
|
|
15
|
+
extends SearchSampleQueriesRequest {}
|
|
16
|
+
export interface SearchSampleQueriesCommandOutput
|
|
17
|
+
extends SearchSampleQueriesResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const SearchSampleQueriesCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: SearchSampleQueriesCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
SearchSampleQueriesCommandInput,
|
|
24
|
+
SearchSampleQueriesCommandOutput,
|
|
25
|
+
CloudTrailClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: SearchSampleQueriesCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
SearchSampleQueriesCommandInput,
|
|
33
|
+
SearchSampleQueriesCommandOutput,
|
|
34
|
+
CloudTrailClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class SearchSampleQueriesCommand extends SearchSampleQueriesCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: SearchSampleQueriesRequest;
|
|
44
|
+
output: SearchSampleQueriesResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: SearchSampleQueriesCommandInput;
|
|
48
|
+
output: SearchSampleQueriesCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./PutResourcePolicyCommand";
|
|
|
42
42
|
export * from "./RegisterOrganizationDelegatedAdminCommand";
|
|
43
43
|
export * from "./RemoveTagsCommand";
|
|
44
44
|
export * from "./RestoreEventDataStoreCommand";
|
|
45
|
+
export * from "./SearchSampleQueriesCommand";
|
|
45
46
|
export * from "./StartDashboardRefreshCommand";
|
|
46
47
|
export * from "./StartEventDataStoreIngestionCommand";
|
|
47
48
|
export * from "./StartImportCommand";
|
|
@@ -1550,6 +1550,21 @@ export interface RestoreEventDataStoreResponse {
|
|
|
1550
1550
|
KmsKeyId?: string | undefined;
|
|
1551
1551
|
BillingMode?: BillingMode | undefined;
|
|
1552
1552
|
}
|
|
1553
|
+
export interface SearchSampleQueriesRequest {
|
|
1554
|
+
SearchPhrase: string | undefined;
|
|
1555
|
+
MaxResults?: number | undefined;
|
|
1556
|
+
NextToken?: string | undefined;
|
|
1557
|
+
}
|
|
1558
|
+
export interface SearchSampleQueriesSearchResult {
|
|
1559
|
+
Name?: string | undefined;
|
|
1560
|
+
Description?: string | undefined;
|
|
1561
|
+
SQL?: string | undefined;
|
|
1562
|
+
Relevance?: number | undefined;
|
|
1563
|
+
}
|
|
1564
|
+
export interface SearchSampleQueriesResponse {
|
|
1565
|
+
SearchResults?: SearchSampleQueriesSearchResult[] | undefined;
|
|
1566
|
+
NextToken?: string | undefined;
|
|
1567
|
+
}
|
|
1553
1568
|
export interface StartDashboardRefreshRequest {
|
|
1554
1569
|
DashboardId: string | undefined;
|
|
1555
1570
|
QueryParameterValues?: Record<string, string> | undefined;
|
|
@@ -179,6 +179,10 @@ import {
|
|
|
179
179
|
RestoreEventDataStoreCommandInput,
|
|
180
180
|
RestoreEventDataStoreCommandOutput,
|
|
181
181
|
} from "../commands/RestoreEventDataStoreCommand";
|
|
182
|
+
import {
|
|
183
|
+
SearchSampleQueriesCommandInput,
|
|
184
|
+
SearchSampleQueriesCommandOutput,
|
|
185
|
+
} from "../commands/SearchSampleQueriesCommand";
|
|
182
186
|
import {
|
|
183
187
|
StartDashboardRefreshCommandInput,
|
|
184
188
|
StartDashboardRefreshCommandOutput,
|
|
@@ -403,6 +407,10 @@ export declare const se_RestoreEventDataStoreCommand: (
|
|
|
403
407
|
input: RestoreEventDataStoreCommandInput,
|
|
404
408
|
context: __SerdeContext
|
|
405
409
|
) => Promise<__HttpRequest>;
|
|
410
|
+
export declare const se_SearchSampleQueriesCommand: (
|
|
411
|
+
input: SearchSampleQueriesCommandInput,
|
|
412
|
+
context: __SerdeContext
|
|
413
|
+
) => Promise<__HttpRequest>;
|
|
406
414
|
export declare const se_StartDashboardRefreshCommand: (
|
|
407
415
|
input: StartDashboardRefreshCommandInput,
|
|
408
416
|
context: __SerdeContext
|
|
@@ -627,6 +635,10 @@ export declare const de_RestoreEventDataStoreCommand: (
|
|
|
627
635
|
output: __HttpResponse,
|
|
628
636
|
context: __SerdeContext
|
|
629
637
|
) => Promise<RestoreEventDataStoreCommandOutput>;
|
|
638
|
+
export declare const de_SearchSampleQueriesCommand: (
|
|
639
|
+
output: __HttpResponse,
|
|
640
|
+
context: __SerdeContext
|
|
641
|
+
) => Promise<SearchSampleQueriesCommandOutput>;
|
|
630
642
|
export declare const de_StartDashboardRefreshCommand: (
|
|
631
643
|
output: __HttpResponse,
|
|
632
644
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudtrail",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudtrail Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.738.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudtrail",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.734.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.738.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|