@aws-sdk/client-xray 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/XRay.js +0 -5
- package/dist-cjs/XRayClient.js +0 -10
- package/dist-cjs/commands/BatchGetTracesCommand.js +0 -27
- package/dist-cjs/commands/CreateGroupCommand.js +0 -25
- package/dist-cjs/commands/CreateSamplingRuleCommand.js +0 -31
- package/dist-cjs/commands/DeleteGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteSamplingRuleCommand.js +0 -25
- package/dist-cjs/commands/GetEncryptionConfigCommand.js +0 -25
- package/dist-cjs/commands/GetGroupCommand.js +0 -25
- package/dist-cjs/commands/GetGroupsCommand.js +0 -25
- package/dist-cjs/commands/GetInsightCommand.js +0 -27
- package/dist-cjs/commands/GetInsightEventsCommand.js +0 -27
- package/dist-cjs/commands/GetInsightImpactGraphCommand.js +0 -26
- package/dist-cjs/commands/GetInsightSummariesCommand.js +0 -25
- package/dist-cjs/commands/GetSamplingRulesCommand.js +0 -25
- package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js +0 -25
- package/dist-cjs/commands/GetSamplingTargetsCommand.js +0 -26
- package/dist-cjs/commands/GetServiceGraphCommand.js +0 -29
- package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js +0 -26
- package/dist-cjs/commands/GetTraceGraphCommand.js +0 -25
- package/dist-cjs/commands/GetTraceSummariesCommand.js +0 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutEncryptionConfigCommand.js +0 -25
- package/dist-cjs/commands/PutTelemetryRecordsCommand.js +0 -25
- package/dist-cjs/commands/PutTraceSegmentsCommand.js +0 -87
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateGroupCommand.js +0 -25
- package/dist-cjs/commands/UpdateSamplingRuleCommand.js +0 -25
- package/dist-cjs/commands/index.js +30 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -41
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -340
- package/dist-cjs/pagination/BatchGetTracesPaginator.js +0 -11
- package/dist-cjs/pagination/GetGroupsPaginator.js +0 -11
- package/dist-cjs/pagination/GetInsightEventsPaginator.js +0 -11
- package/dist-cjs/pagination/GetInsightSummariesPaginator.js +0 -11
- package/dist-cjs/pagination/GetSamplingRulesPaginator.js +0 -11
- package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +0 -11
- package/dist-cjs/pagination/GetServiceGraphPaginator.js +0 -11
- package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +0 -11
- package/dist-cjs/pagination/GetTraceGraphPaginator.js +0 -11
- package/dist-cjs/pagination/GetTraceSummariesPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/XRay.js +0 -1
- package/dist-es/XRayClient.js +0 -1
- package/dist-es/commands/BatchGetTracesCommand.js +0 -1
- package/dist-es/commands/CreateGroupCommand.js +0 -1
- package/dist-es/commands/CreateSamplingRuleCommand.js +0 -1
- package/dist-es/commands/DeleteGroupCommand.js +0 -1
- package/dist-es/commands/DeleteSamplingRuleCommand.js +0 -1
- package/dist-es/commands/GetEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/GetGroupCommand.js +0 -1
- package/dist-es/commands/GetGroupsCommand.js +0 -1
- package/dist-es/commands/GetInsightCommand.js +0 -1
- package/dist-es/commands/GetInsightEventsCommand.js +0 -1
- package/dist-es/commands/GetInsightImpactGraphCommand.js +0 -1
- package/dist-es/commands/GetInsightSummariesCommand.js +0 -1
- package/dist-es/commands/GetSamplingRulesCommand.js +0 -1
- package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +0 -1
- package/dist-es/commands/GetSamplingTargetsCommand.js +0 -1
- package/dist-es/commands/GetServiceGraphCommand.js +0 -1
- package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +0 -1
- package/dist-es/commands/GetTraceGraphCommand.js +0 -1
- package/dist-es/commands/GetTraceSummariesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutEncryptionConfigCommand.js +0 -1
- package/dist-es/commands/PutTelemetryRecordsCommand.js +0 -1
- package/dist-es/commands/PutTraceSegmentsCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateGroupCommand.js +0 -1
- package/dist-es/commands/UpdateSamplingRuleCommand.js +0 -1
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -41
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/BatchGetTracesPaginator.js +0 -1
- package/dist-es/pagination/GetGroupsPaginator.js +0 -1
- package/dist-es/pagination/GetInsightEventsPaginator.js +0 -1
- package/dist-es/pagination/GetInsightSummariesPaginator.js +0 -1
- package/dist-es/pagination/GetSamplingRulesPaginator.js +0 -1
- package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +0 -1
- package/dist-es/pagination/GetServiceGraphPaginator.js +0 -1
- package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +0 -1
- package/dist-es/pagination/GetTraceGraphPaginator.js +0 -1
- package/dist-es/pagination/GetTraceSummariesPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/index.d.ts +4 -40
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/XRay.d.ts +28 -183
- package/dist-types/ts3.4/XRayClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/BatchGetTracesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateSamplingRuleCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteSamplingRuleCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetGroupsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetInsightCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetInsightEventsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetInsightImpactGraphCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetInsightSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSamplingRulesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSamplingStatisticSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSamplingTargetsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetServiceGraphCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetTimeSeriesServiceStatisticsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetTraceGraphCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetTraceSummariesCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutEncryptionConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutTelemetryRecordsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutTraceSegmentsCommand.d.ts +2 -82
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateSamplingRuleCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/index.d.ts +4 -40
- package/dist-types/ts3.4/models/models_0.d.ts +540 -1902
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/XRay.js.map +0 -1
- package/dist-cjs/XRayClient.js.map +0 -1
- package/dist-cjs/commands/BatchGetTracesCommand.js.map +0 -1
- package/dist-cjs/commands/CreateGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSamplingRuleCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSamplingRuleCommand.js.map +0 -1
- package/dist-cjs/commands/GetEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/GetInsightCommand.js.map +0 -1
- package/dist-cjs/commands/GetInsightEventsCommand.js.map +0 -1
- package/dist-cjs/commands/GetInsightImpactGraphCommand.js.map +0 -1
- package/dist-cjs/commands/GetInsightSummariesCommand.js.map +0 -1
- package/dist-cjs/commands/GetSamplingRulesCommand.js.map +0 -1
- package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js.map +0 -1
- package/dist-cjs/commands/GetSamplingTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/GetServiceGraphCommand.js.map +0 -1
- package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js.map +0 -1
- package/dist-cjs/commands/GetTraceGraphCommand.js.map +0 -1
- package/dist-cjs/commands/GetTraceSummariesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutEncryptionConfigCommand.js.map +0 -1
- package/dist-cjs/commands/PutTelemetryRecordsCommand.js.map +0 -1
- package/dist-cjs/commands/PutTraceSegmentsCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSamplingRuleCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/BatchGetTracesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetInsightEventsPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetInsightSummariesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetSamplingRulesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetServiceGraphPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetTraceGraphPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetTraceSummariesPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/XRay.js.map +0 -1
- package/dist-es/XRayClient.js.map +0 -1
- package/dist-es/commands/BatchGetTracesCommand.js.map +0 -1
- package/dist-es/commands/CreateGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateSamplingRuleCommand.js.map +0 -1
- package/dist-es/commands/DeleteGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteSamplingRuleCommand.js.map +0 -1
- package/dist-es/commands/GetEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/GetGroupCommand.js.map +0 -1
- package/dist-es/commands/GetGroupsCommand.js.map +0 -1
- package/dist-es/commands/GetInsightCommand.js.map +0 -1
- package/dist-es/commands/GetInsightEventsCommand.js.map +0 -1
- package/dist-es/commands/GetInsightImpactGraphCommand.js.map +0 -1
- package/dist-es/commands/GetInsightSummariesCommand.js.map +0 -1
- package/dist-es/commands/GetSamplingRulesCommand.js.map +0 -1
- package/dist-es/commands/GetSamplingStatisticSummariesCommand.js.map +0 -1
- package/dist-es/commands/GetSamplingTargetsCommand.js.map +0 -1
- package/dist-es/commands/GetServiceGraphCommand.js.map +0 -1
- package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js.map +0 -1
- package/dist-es/commands/GetTraceGraphCommand.js.map +0 -1
- package/dist-es/commands/GetTraceSummariesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutEncryptionConfigCommand.js.map +0 -1
- package/dist-es/commands/PutTelemetryRecordsCommand.js.map +0 -1
- package/dist-es/commands/PutTraceSegmentsCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateSamplingRuleCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/BatchGetTracesPaginator.js.map +0 -1
- package/dist-es/pagination/GetGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/GetInsightEventsPaginator.js.map +0 -1
- package/dist-es/pagination/GetInsightSummariesPaginator.js.map +0 -1
- package/dist-es/pagination/GetSamplingRulesPaginator.js.map +0 -1
- package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js.map +0 -1
- package/dist-es/pagination/GetServiceGraphPaginator.js.map +0 -1
- package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js.map +0 -1
- package/dist-es/pagination/GetTraceGraphPaginator.js.map +0 -1
- package/dist-es/pagination/GetTraceSummariesPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/XRay.ts +0 -1036
- package/src/XRayClient.ts +0 -342
- package/src/commands/BatchGetTracesCommand.ts +0 -97
- package/src/commands/CreateGroupCommand.ts +0 -95
- package/src/commands/CreateSamplingRuleCommand.ts +0 -101
- package/src/commands/DeleteGroupCommand.ts +0 -95
- package/src/commands/DeleteSamplingRuleCommand.ts +0 -95
- package/src/commands/GetEncryptionConfigCommand.ts +0 -95
- package/src/commands/GetGroupCommand.ts +0 -91
- package/src/commands/GetGroupsCommand.ts +0 -95
- package/src/commands/GetInsightCommand.ts +0 -97
- package/src/commands/GetInsightEventsCommand.ts +0 -97
- package/src/commands/GetInsightImpactGraphCommand.ts +0 -96
- package/src/commands/GetInsightSummariesCommand.ts +0 -95
- package/src/commands/GetSamplingRulesCommand.ts +0 -95
- package/src/commands/GetSamplingStatisticSummariesCommand.ts +0 -100
- package/src/commands/GetSamplingTargetsCommand.ts +0 -96
- package/src/commands/GetServiceGraphCommand.ts +0 -99
- package/src/commands/GetTimeSeriesServiceStatisticsCommand.ts +0 -104
- package/src/commands/GetTraceGraphCommand.ts +0 -95
- package/src/commands/GetTraceSummariesCommand.ts +0 -111
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutEncryptionConfigCommand.ts +0 -95
- package/src/commands/PutTelemetryRecordsCommand.ts +0 -95
- package/src/commands/PutTraceSegmentsCommand.ts +0 -157
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -96
- package/src/commands/UpdateGroupCommand.ts +0 -95
- package/src/commands/UpdateSamplingRuleCommand.ts +0 -95
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -41
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3647
- package/src/pagination/BatchGetTracesPaginator.ts +0 -58
- package/src/pagination/GetGroupsPaginator.ts +0 -54
- package/src/pagination/GetInsightEventsPaginator.ts +0 -59
- package/src/pagination/GetInsightSummariesPaginator.ts +0 -59
- package/src/pagination/GetSamplingRulesPaginator.ts +0 -58
- package/src/pagination/GetSamplingStatisticSummariesPaginator.ts +0 -58
- package/src/pagination/GetServiceGraphPaginator.ts +0 -58
- package/src/pagination/GetTimeSeriesServiceStatisticsPaginator.ts +0 -58
- package/src/pagination/GetTraceGraphPaginator.ts +0 -58
- package/src/pagination/GetTraceSummariesPaginator.ts +0 -58
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_restJson1.ts +0 -4338
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/XRayClient.ts
DELETED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import { BatchGetTracesCommandInput, BatchGetTracesCommandOutput } from "./commands/BatchGetTracesCommand";
|
|
53
|
-
import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
|
|
54
|
-
import { CreateSamplingRuleCommandInput, CreateSamplingRuleCommandOutput } from "./commands/CreateSamplingRuleCommand";
|
|
55
|
-
import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
|
|
56
|
-
import { DeleteSamplingRuleCommandInput, DeleteSamplingRuleCommandOutput } from "./commands/DeleteSamplingRuleCommand";
|
|
57
|
-
import {
|
|
58
|
-
GetEncryptionConfigCommandInput,
|
|
59
|
-
GetEncryptionConfigCommandOutput,
|
|
60
|
-
} from "./commands/GetEncryptionConfigCommand";
|
|
61
|
-
import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
|
|
62
|
-
import { GetGroupsCommandInput, GetGroupsCommandOutput } from "./commands/GetGroupsCommand";
|
|
63
|
-
import { GetInsightCommandInput, GetInsightCommandOutput } from "./commands/GetInsightCommand";
|
|
64
|
-
import { GetInsightEventsCommandInput, GetInsightEventsCommandOutput } from "./commands/GetInsightEventsCommand";
|
|
65
|
-
import {
|
|
66
|
-
GetInsightImpactGraphCommandInput,
|
|
67
|
-
GetInsightImpactGraphCommandOutput,
|
|
68
|
-
} from "./commands/GetInsightImpactGraphCommand";
|
|
69
|
-
import {
|
|
70
|
-
GetInsightSummariesCommandInput,
|
|
71
|
-
GetInsightSummariesCommandOutput,
|
|
72
|
-
} from "./commands/GetInsightSummariesCommand";
|
|
73
|
-
import { GetSamplingRulesCommandInput, GetSamplingRulesCommandOutput } from "./commands/GetSamplingRulesCommand";
|
|
74
|
-
import {
|
|
75
|
-
GetSamplingStatisticSummariesCommandInput,
|
|
76
|
-
GetSamplingStatisticSummariesCommandOutput,
|
|
77
|
-
} from "./commands/GetSamplingStatisticSummariesCommand";
|
|
78
|
-
import { GetSamplingTargetsCommandInput, GetSamplingTargetsCommandOutput } from "./commands/GetSamplingTargetsCommand";
|
|
79
|
-
import { GetServiceGraphCommandInput, GetServiceGraphCommandOutput } from "./commands/GetServiceGraphCommand";
|
|
80
|
-
import {
|
|
81
|
-
GetTimeSeriesServiceStatisticsCommandInput,
|
|
82
|
-
GetTimeSeriesServiceStatisticsCommandOutput,
|
|
83
|
-
} from "./commands/GetTimeSeriesServiceStatisticsCommand";
|
|
84
|
-
import { GetTraceGraphCommandInput, GetTraceGraphCommandOutput } from "./commands/GetTraceGraphCommand";
|
|
85
|
-
import { GetTraceSummariesCommandInput, GetTraceSummariesCommandOutput } from "./commands/GetTraceSummariesCommand";
|
|
86
|
-
import {
|
|
87
|
-
ListTagsForResourceCommandInput,
|
|
88
|
-
ListTagsForResourceCommandOutput,
|
|
89
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
90
|
-
import {
|
|
91
|
-
PutEncryptionConfigCommandInput,
|
|
92
|
-
PutEncryptionConfigCommandOutput,
|
|
93
|
-
} from "./commands/PutEncryptionConfigCommand";
|
|
94
|
-
import {
|
|
95
|
-
PutTelemetryRecordsCommandInput,
|
|
96
|
-
PutTelemetryRecordsCommandOutput,
|
|
97
|
-
} from "./commands/PutTelemetryRecordsCommand";
|
|
98
|
-
import { PutTraceSegmentsCommandInput, PutTraceSegmentsCommandOutput } from "./commands/PutTraceSegmentsCommand";
|
|
99
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
100
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
101
|
-
import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
|
|
102
|
-
import { UpdateSamplingRuleCommandInput, UpdateSamplingRuleCommandOutput } from "./commands/UpdateSamplingRuleCommand";
|
|
103
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
104
|
-
|
|
105
|
-
export type ServiceInputTypes =
|
|
106
|
-
| BatchGetTracesCommandInput
|
|
107
|
-
| CreateGroupCommandInput
|
|
108
|
-
| CreateSamplingRuleCommandInput
|
|
109
|
-
| DeleteGroupCommandInput
|
|
110
|
-
| DeleteSamplingRuleCommandInput
|
|
111
|
-
| GetEncryptionConfigCommandInput
|
|
112
|
-
| GetGroupCommandInput
|
|
113
|
-
| GetGroupsCommandInput
|
|
114
|
-
| GetInsightCommandInput
|
|
115
|
-
| GetInsightEventsCommandInput
|
|
116
|
-
| GetInsightImpactGraphCommandInput
|
|
117
|
-
| GetInsightSummariesCommandInput
|
|
118
|
-
| GetSamplingRulesCommandInput
|
|
119
|
-
| GetSamplingStatisticSummariesCommandInput
|
|
120
|
-
| GetSamplingTargetsCommandInput
|
|
121
|
-
| GetServiceGraphCommandInput
|
|
122
|
-
| GetTimeSeriesServiceStatisticsCommandInput
|
|
123
|
-
| GetTraceGraphCommandInput
|
|
124
|
-
| GetTraceSummariesCommandInput
|
|
125
|
-
| ListTagsForResourceCommandInput
|
|
126
|
-
| PutEncryptionConfigCommandInput
|
|
127
|
-
| PutTelemetryRecordsCommandInput
|
|
128
|
-
| PutTraceSegmentsCommandInput
|
|
129
|
-
| TagResourceCommandInput
|
|
130
|
-
| UntagResourceCommandInput
|
|
131
|
-
| UpdateGroupCommandInput
|
|
132
|
-
| UpdateSamplingRuleCommandInput;
|
|
133
|
-
|
|
134
|
-
export type ServiceOutputTypes =
|
|
135
|
-
| BatchGetTracesCommandOutput
|
|
136
|
-
| CreateGroupCommandOutput
|
|
137
|
-
| CreateSamplingRuleCommandOutput
|
|
138
|
-
| DeleteGroupCommandOutput
|
|
139
|
-
| DeleteSamplingRuleCommandOutput
|
|
140
|
-
| GetEncryptionConfigCommandOutput
|
|
141
|
-
| GetGroupCommandOutput
|
|
142
|
-
| GetGroupsCommandOutput
|
|
143
|
-
| GetInsightCommandOutput
|
|
144
|
-
| GetInsightEventsCommandOutput
|
|
145
|
-
| GetInsightImpactGraphCommandOutput
|
|
146
|
-
| GetInsightSummariesCommandOutput
|
|
147
|
-
| GetSamplingRulesCommandOutput
|
|
148
|
-
| GetSamplingStatisticSummariesCommandOutput
|
|
149
|
-
| GetSamplingTargetsCommandOutput
|
|
150
|
-
| GetServiceGraphCommandOutput
|
|
151
|
-
| GetTimeSeriesServiceStatisticsCommandOutput
|
|
152
|
-
| GetTraceGraphCommandOutput
|
|
153
|
-
| GetTraceSummariesCommandOutput
|
|
154
|
-
| ListTagsForResourceCommandOutput
|
|
155
|
-
| PutEncryptionConfigCommandOutput
|
|
156
|
-
| PutTelemetryRecordsCommandOutput
|
|
157
|
-
| PutTraceSegmentsCommandOutput
|
|
158
|
-
| TagResourceCommandOutput
|
|
159
|
-
| UntagResourceCommandOutput
|
|
160
|
-
| UpdateGroupCommandOutput
|
|
161
|
-
| UpdateSamplingRuleCommandOutput;
|
|
162
|
-
|
|
163
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
164
|
-
/**
|
|
165
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
166
|
-
*/
|
|
167
|
-
requestHandler?: __HttpHandler;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
171
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
174
|
-
sha256?: __HashConstructor;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
178
|
-
* @internal
|
|
179
|
-
*/
|
|
180
|
-
urlParser?: __UrlParser;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* A function that can calculate the length of a request body.
|
|
184
|
-
* @internal
|
|
185
|
-
*/
|
|
186
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* A function that converts a stream into an array of bytes.
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
streamCollector?: __StreamCollector;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
196
|
-
* @internal
|
|
197
|
-
*/
|
|
198
|
-
base64Decoder?: __Decoder;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
base64Encoder?: __Encoder;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
utf8Decoder?: __Decoder;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
216
|
-
utf8Encoder?: __Encoder;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* The runtime environment.
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
|
-
runtime?: string;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
226
|
-
* trait of an operation.
|
|
227
|
-
*/
|
|
228
|
-
disableHostPrefix?: boolean;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
232
|
-
*/
|
|
233
|
-
maxAttempts?: number | __Provider<number>;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Specifies which retry algorithm to use.
|
|
237
|
-
*/
|
|
238
|
-
retryMode?: string | __Provider<string>;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Optional logger for logging debug/info/warn/error.
|
|
242
|
-
*/
|
|
243
|
-
logger?: __Logger;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Unique service identifier.
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
|
-
serviceId?: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The AWS region to which this client will send requests
|
|
253
|
-
*/
|
|
254
|
-
region?: string | __Provider<string>;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Default credentials provider; Not available in browser runtime.
|
|
258
|
-
* @internal
|
|
259
|
-
*/
|
|
260
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
type XRayClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
276
|
-
ClientDefaults &
|
|
277
|
-
RegionInputConfig &
|
|
278
|
-
EndpointsInputConfig &
|
|
279
|
-
RetryInputConfig &
|
|
280
|
-
HostHeaderInputConfig &
|
|
281
|
-
AwsAuthInputConfig &
|
|
282
|
-
UserAgentInputConfig;
|
|
283
|
-
/**
|
|
284
|
-
* The configuration interface of XRayClient class constructor that set the region, credentials and other options.
|
|
285
|
-
*/
|
|
286
|
-
export interface XRayClientConfig extends XRayClientConfigType {}
|
|
287
|
-
|
|
288
|
-
type XRayClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
289
|
-
Required<ClientDefaults> &
|
|
290
|
-
RegionResolvedConfig &
|
|
291
|
-
EndpointsResolvedConfig &
|
|
292
|
-
RetryResolvedConfig &
|
|
293
|
-
HostHeaderResolvedConfig &
|
|
294
|
-
AwsAuthResolvedConfig &
|
|
295
|
-
UserAgentResolvedConfig;
|
|
296
|
-
/**
|
|
297
|
-
* The resolved configuration interface of XRayClient class. This is resolved and normalized from the {@link XRayClientConfig | constructor configuration interface}.
|
|
298
|
-
*/
|
|
299
|
-
export interface XRayClientResolvedConfig extends XRayClientResolvedConfigType {}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* <p>Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps
|
|
303
|
-
* and other data created by processing those traces.</p>
|
|
304
|
-
*/
|
|
305
|
-
export class XRayClient extends __Client<
|
|
306
|
-
__HttpHandlerOptions,
|
|
307
|
-
ServiceInputTypes,
|
|
308
|
-
ServiceOutputTypes,
|
|
309
|
-
XRayClientResolvedConfig
|
|
310
|
-
> {
|
|
311
|
-
/**
|
|
312
|
-
* The resolved configuration of XRayClient class. This is resolved and normalized from the {@link XRayClientConfig | constructor configuration interface}.
|
|
313
|
-
*/
|
|
314
|
-
readonly config: XRayClientResolvedConfig;
|
|
315
|
-
|
|
316
|
-
constructor(configuration: XRayClientConfig) {
|
|
317
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
318
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
319
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
320
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
321
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
322
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
323
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
324
|
-
super(_config_6);
|
|
325
|
-
this.config = _config_6;
|
|
326
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
327
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
328
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
329
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
330
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
331
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
336
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
337
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
338
|
-
*/
|
|
339
|
-
destroy(): void {
|
|
340
|
-
super.destroy();
|
|
341
|
-
}
|
|
342
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { BatchGetTracesRequest, BatchGetTracesResult } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1BatchGetTracesCommand,
|
|
17
|
-
serializeAws_restJson1BatchGetTracesCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient";
|
|
20
|
-
|
|
21
|
-
export interface BatchGetTracesCommandInput extends BatchGetTracesRequest {}
|
|
22
|
-
export interface BatchGetTracesCommandOutput extends BatchGetTracesResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a list of traces specified by ID. Each trace is a collection of segment
|
|
26
|
-
* documents that originates from a single request. Use <code>GetTraceSummaries</code> to get a
|
|
27
|
-
* list of trace IDs.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { XRayClient, BatchGetTracesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
32
|
-
* // const { XRayClient, BatchGetTracesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
33
|
-
* const client = new XRayClient(config);
|
|
34
|
-
* const command = new BatchGetTracesCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link BatchGetTracesCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link BatchGetTracesCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link XRayClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class BatchGetTracesCommand extends $Command<
|
|
44
|
-
BatchGetTracesCommandInput,
|
|
45
|
-
BatchGetTracesCommandOutput,
|
|
46
|
-
XRayClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: BatchGetTracesCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: XRayClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<BatchGetTracesCommandInput, BatchGetTracesCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "XRayClient";
|
|
71
|
-
const commandName = "BatchGetTracesCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: BatchGetTracesRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: BatchGetTracesResult.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: BatchGetTracesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_restJson1BatchGetTracesCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchGetTracesCommandOutput> {
|
|
92
|
-
return deserializeAws_restJson1BatchGetTracesCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateGroupRequest, CreateGroupResult } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1CreateGroupCommand,
|
|
17
|
-
serializeAws_restJson1CreateGroupCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient";
|
|
20
|
-
|
|
21
|
-
export interface CreateGroupCommandInput extends CreateGroupRequest {}
|
|
22
|
-
export interface CreateGroupCommandOutput extends CreateGroupResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a group resource with a name and a filter expression. </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { XRayClient, CreateGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
30
|
-
* // const { XRayClient, CreateGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
31
|
-
* const client = new XRayClient(config);
|
|
32
|
-
* const command = new CreateGroupCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateGroupCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateGroupCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link XRayClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateGroupCommand extends $Command<
|
|
42
|
-
CreateGroupCommandInput,
|
|
43
|
-
CreateGroupCommandOutput,
|
|
44
|
-
XRayClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateGroupCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: XRayClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateGroupCommandInput, CreateGroupCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "XRayClient";
|
|
69
|
-
const commandName = "CreateGroupCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateGroupRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateGroupResult.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: CreateGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1CreateGroupCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateGroupCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1CreateGroupCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateSamplingRuleRequest, CreateSamplingRuleResult } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1CreateSamplingRuleCommand,
|
|
17
|
-
serializeAws_restJson1CreateSamplingRuleCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, XRayClientResolvedConfig } from "../XRayClient";
|
|
20
|
-
|
|
21
|
-
export interface CreateSamplingRuleCommandInput extends CreateSamplingRuleRequest {}
|
|
22
|
-
export interface CreateSamplingRuleCommandOutput extends CreateSamplingRuleResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a rule to control sampling behavior for instrumented applications. Services
|
|
26
|
-
* retrieve rules with <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html">GetSamplingRules</a>, and evaluate each rule in ascending
|
|
27
|
-
* order of <i>priority</i> for each request. If a rule matches, the service
|
|
28
|
-
* records a trace, borrowing it from the reservoir size. After 10 seconds, the service
|
|
29
|
-
* reports back to X-Ray with <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html">GetSamplingTargets</a> to get updated versions of
|
|
30
|
-
* each in-use rule. The updated rule contains a trace quota that the service can use instead
|
|
31
|
-
* of borrowing from the reservoir.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { XRayClient, CreateSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
36
|
-
* // const { XRayClient, CreateSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
37
|
-
* const client = new XRayClient(config);
|
|
38
|
-
* const command = new CreateSamplingRuleCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link CreateSamplingRuleCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link CreateSamplingRuleCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link XRayClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class CreateSamplingRuleCommand extends $Command<
|
|
48
|
-
CreateSamplingRuleCommandInput,
|
|
49
|
-
CreateSamplingRuleCommandOutput,
|
|
50
|
-
XRayClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: CreateSamplingRuleCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: XRayClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<CreateSamplingRuleCommandInput, CreateSamplingRuleCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "XRayClient";
|
|
75
|
-
const commandName = "CreateSamplingRuleCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: CreateSamplingRuleRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: CreateSamplingRuleResult.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: CreateSamplingRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_restJson1CreateSamplingRuleCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateSamplingRuleCommandOutput> {
|
|
96
|
-
return deserializeAws_restJson1CreateSamplingRuleCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|