@aws-sdk/client-xray 3.299.0 → 3.300.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/dist-types/commands/BatchGetTracesCommand.d.ts +6 -0
- package/dist-types/commands/CreateGroupCommand.d.ts +14 -0
- package/dist-types/commands/CreateSamplingRuleCommand.d.ts +25 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +4 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteSamplingRuleCommand.d.ts +4 -0
- package/dist-types/commands/GetEncryptionConfigCommand.d.ts +1 -0
- package/dist-types/commands/GetGroupCommand.d.ts +4 -0
- package/dist-types/commands/GetGroupsCommand.d.ts +3 -0
- package/dist-types/commands/GetInsightCommand.d.ts +3 -0
- package/dist-types/commands/GetInsightEventsCommand.d.ts +5 -0
- package/dist-types/commands/GetInsightImpactGraphCommand.d.ts +6 -0
- package/dist-types/commands/GetInsightSummariesCommand.d.ts +11 -0
- package/dist-types/commands/GetSamplingRulesCommand.d.ts +3 -0
- package/dist-types/commands/GetSamplingStatisticSummariesCommand.d.ts +3 -0
- package/dist-types/commands/GetSamplingTargetsCommand.d.ts +12 -0
- package/dist-types/commands/GetServiceGraphCommand.d.ts +7 -0
- package/dist-types/commands/GetTimeSeriesServiceStatisticsCommand.d.ts +10 -0
- package/dist-types/commands/GetTraceGraphCommand.d.ts +6 -0
- package/dist-types/commands/GetTraceSummariesCommand.d.ts +12 -0
- package/dist-types/commands/ListResourcePoliciesCommand.d.ts +3 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
- package/dist-types/commands/PutEncryptionConfigCommand.d.ts +4 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/PutTelemetryRecordsCommand.d.ts +22 -0
- package/dist-types/commands/PutTraceSegmentsCommand.d.ts +5 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateGroupCommand.d.ts +9 -0
- package/dist-types/commands/UpdateSamplingRuleCommand.d.ts +18 -0
- package/package.json +8 -8
|
@@ -28,6 +28,12 @@ export interface BatchGetTracesCommandOutput extends BatchGetTracesResult, __Met
|
|
|
28
28
|
* import { XRayClient, BatchGetTracesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
29
29
|
* // const { XRayClient, BatchGetTracesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
30
30
|
* const client = new XRayClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* TraceIds: [ // required
|
|
33
|
+
* "STRING_VALUE",
|
|
34
|
+
* ],
|
|
35
|
+
* NextToken: "STRING_VALUE",
|
|
36
|
+
* };
|
|
31
37
|
* const command = new BatchGetTracesCommand(input);
|
|
32
38
|
* const response = await client.send(command);
|
|
33
39
|
* ```
|
|
@@ -26,6 +26,20 @@ export interface CreateGroupCommandOutput extends CreateGroupResult, __MetadataB
|
|
|
26
26
|
* import { XRayClient, CreateGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, CreateGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* GroupName: "STRING_VALUE", // required
|
|
31
|
+
* FilterExpression: "STRING_VALUE",
|
|
32
|
+
* InsightsConfiguration: {
|
|
33
|
+
* InsightsEnabled: true || false,
|
|
34
|
+
* NotificationsEnabled: true || false,
|
|
35
|
+
* },
|
|
36
|
+
* Tags: [
|
|
37
|
+
* {
|
|
38
|
+
* Key: "STRING_VALUE", // required
|
|
39
|
+
* Value: "STRING_VALUE", // required
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* };
|
|
29
43
|
* const command = new CreateGroupCommand(input);
|
|
30
44
|
* const response = await client.send(command);
|
|
31
45
|
* ```
|
|
@@ -32,6 +32,31 @@ export interface CreateSamplingRuleCommandOutput extends CreateSamplingRuleResul
|
|
|
32
32
|
* import { XRayClient, CreateSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
33
33
|
* // const { XRayClient, CreateSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
34
34
|
* const client = new XRayClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* SamplingRule: {
|
|
37
|
+
* RuleName: "STRING_VALUE",
|
|
38
|
+
* RuleARN: "STRING_VALUE",
|
|
39
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
40
|
+
* Priority: Number("int"), // required
|
|
41
|
+
* FixedRate: Number("double"), // required
|
|
42
|
+
* ReservoirSize: Number("int"), // required
|
|
43
|
+
* ServiceName: "STRING_VALUE", // required
|
|
44
|
+
* ServiceType: "STRING_VALUE", // required
|
|
45
|
+
* Host: "STRING_VALUE", // required
|
|
46
|
+
* HTTPMethod: "STRING_VALUE", // required
|
|
47
|
+
* URLPath: "STRING_VALUE", // required
|
|
48
|
+
* Version: Number("int"), // required
|
|
49
|
+
* Attributes: {
|
|
50
|
+
* "<keys>": "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* },
|
|
53
|
+
* Tags: [
|
|
54
|
+
* {
|
|
55
|
+
* Key: "STRING_VALUE", // required
|
|
56
|
+
* Value: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* };
|
|
35
60
|
* const command = new CreateSamplingRuleCommand(input);
|
|
36
61
|
* const response = await client.send(command);
|
|
37
62
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface DeleteGroupCommandOutput extends DeleteGroupResult, __MetadataB
|
|
|
26
26
|
* import { XRayClient, DeleteGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, DeleteGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* GroupName: "STRING_VALUE",
|
|
31
|
+
* GroupARN: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new DeleteGroupCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
|
|
|
26
26
|
* import { XRayClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* PolicyName: "STRING_VALUE", // required
|
|
31
|
+
* PolicyRevisionId: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new DeleteResourcePolicyCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface DeleteSamplingRuleCommandOutput extends DeleteSamplingRuleResul
|
|
|
26
26
|
* import { XRayClient, DeleteSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, DeleteSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* RuleName: "STRING_VALUE",
|
|
31
|
+
* RuleARN: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new DeleteSamplingRuleCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -26,6 +26,7 @@ export interface GetEncryptionConfigCommandOutput extends GetEncryptionConfigRes
|
|
|
26
26
|
* import { XRayClient, GetEncryptionConfigCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetEncryptionConfigCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {};
|
|
29
30
|
* const command = new GetEncryptionConfigCommand(input);
|
|
30
31
|
* const response = await client.send(command);
|
|
31
32
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface GetGroupCommandOutput extends GetGroupResult, __MetadataBearer
|
|
|
26
26
|
* import { XRayClient, GetGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* GroupName: "STRING_VALUE",
|
|
31
|
+
* GroupARN: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new GetGroupCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetGroupsCommandOutput extends GetGroupsResult, __MetadataBeare
|
|
|
26
26
|
* import { XRayClient, GetGroupsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetGroupsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* NextToken: "STRING_VALUE",
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetGroupsCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface GetInsightCommandOutput extends GetInsightResult, __MetadataBea
|
|
|
28
28
|
* import { XRayClient, GetInsightCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
29
29
|
* // const { XRayClient, GetInsightCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
30
30
|
* const client = new XRayClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* InsightId: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new GetInsightCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -28,6 +28,11 @@ export interface GetInsightEventsCommandOutput extends GetInsightEventsResult, _
|
|
|
28
28
|
* import { XRayClient, GetInsightEventsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
29
29
|
* // const { XRayClient, GetInsightEventsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
30
30
|
* const client = new XRayClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* InsightId: "STRING_VALUE", // required
|
|
33
|
+
* MaxResults: Number("int"),
|
|
34
|
+
* NextToken: "STRING_VALUE",
|
|
35
|
+
* };
|
|
31
36
|
* const command = new GetInsightEventsCommand(input);
|
|
32
37
|
* const response = await client.send(command);
|
|
33
38
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface GetInsightImpactGraphCommandOutput extends GetInsightImpactGrap
|
|
|
27
27
|
* import { XRayClient, GetInsightImpactGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
28
28
|
* // const { XRayClient, GetInsightImpactGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
29
29
|
* const client = new XRayClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* InsightId: "STRING_VALUE", // required
|
|
32
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
33
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
34
|
+
* NextToken: "STRING_VALUE",
|
|
35
|
+
* };
|
|
30
36
|
* const command = new GetInsightImpactGraphCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -26,6 +26,17 @@ export interface GetInsightSummariesCommandOutput extends GetInsightSummariesRes
|
|
|
26
26
|
* import { XRayClient, GetInsightSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetInsightSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* States: [
|
|
31
|
+
* "ACTIVE" || "CLOSED",
|
|
32
|
+
* ],
|
|
33
|
+
* GroupARN: "STRING_VALUE",
|
|
34
|
+
* GroupName: "STRING_VALUE",
|
|
35
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
36
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
37
|
+
* MaxResults: Number("int"),
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* };
|
|
29
40
|
* const command = new GetInsightSummariesCommand(input);
|
|
30
41
|
* const response = await client.send(command);
|
|
31
42
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetSamplingRulesCommandOutput extends GetSamplingRulesResult, _
|
|
|
26
26
|
* import { XRayClient, GetSamplingRulesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetSamplingRulesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* NextToken: "STRING_VALUE",
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetSamplingRulesCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface GetSamplingStatisticSummariesCommandOutput extends GetSamplingS
|
|
|
26
26
|
* import { XRayClient, GetSamplingStatisticSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetSamplingStatisticSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* NextToken: "STRING_VALUE",
|
|
31
|
+
* };
|
|
29
32
|
* const command = new GetSamplingStatisticSummariesCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -27,6 +27,18 @@ export interface GetSamplingTargetsCommandOutput extends GetSamplingTargetsResul
|
|
|
27
27
|
* import { XRayClient, GetSamplingTargetsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
28
28
|
* // const { XRayClient, GetSamplingTargetsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
29
29
|
* const client = new XRayClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* SamplingStatisticsDocuments: [ // required
|
|
32
|
+
* {
|
|
33
|
+
* RuleName: "STRING_VALUE", // required
|
|
34
|
+
* ClientID: "STRING_VALUE", // required
|
|
35
|
+
* Timestamp: new Date("TIMESTAMP"), // required
|
|
36
|
+
* RequestCount: Number("int"), // required
|
|
37
|
+
* SampledCount: Number("int"), // required
|
|
38
|
+
* BorrowCount: Number("int"),
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
30
42
|
* const command = new GetSamplingTargetsCommand(input);
|
|
31
43
|
* const response = await client.send(command);
|
|
32
44
|
* ```
|
|
@@ -30,6 +30,13 @@ export interface GetServiceGraphCommandOutput extends GetServiceGraphResult, __M
|
|
|
30
30
|
* import { XRayClient, GetServiceGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
31
31
|
* // const { XRayClient, GetServiceGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
32
32
|
* const client = new XRayClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
35
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
36
|
+
* GroupName: "STRING_VALUE",
|
|
37
|
+
* GroupARN: "STRING_VALUE",
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* };
|
|
33
40
|
* const command = new GetServiceGraphCommand(input);
|
|
34
41
|
* const response = await client.send(command);
|
|
35
42
|
* ```
|
|
@@ -27,6 +27,16 @@ export interface GetTimeSeriesServiceStatisticsCommandOutput extends GetTimeSeri
|
|
|
27
27
|
* import { XRayClient, GetTimeSeriesServiceStatisticsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
28
28
|
* // const { XRayClient, GetTimeSeriesServiceStatisticsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
29
29
|
* const client = new XRayClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
32
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
33
|
+
* GroupName: "STRING_VALUE",
|
|
34
|
+
* GroupARN: "STRING_VALUE",
|
|
35
|
+
* EntitySelectorExpression: "STRING_VALUE",
|
|
36
|
+
* Period: Number("int"),
|
|
37
|
+
* ForecastStatistics: true || false,
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* };
|
|
30
40
|
* const command = new GetTimeSeriesServiceStatisticsCommand(input);
|
|
31
41
|
* const response = await client.send(command);
|
|
32
42
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface GetTraceGraphCommandOutput extends GetTraceGraphResult, __Metad
|
|
|
26
26
|
* import { XRayClient, GetTraceGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, GetTraceGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* TraceIds: [ // required
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* NextToken: "STRING_VALUE",
|
|
34
|
+
* };
|
|
29
35
|
* const command = new GetTraceGraphCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -42,6 +42,18 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
|
|
|
42
42
|
* import { XRayClient, GetTraceSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
43
43
|
* // const { XRayClient, GetTraceSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
44
44
|
* const client = new XRayClient(config);
|
|
45
|
+
* const input = {
|
|
46
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
47
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
48
|
+
* TimeRangeType: "TraceId" || "Event",
|
|
49
|
+
* Sampling: true || false,
|
|
50
|
+
* SamplingStrategy: {
|
|
51
|
+
* Name: "PartialScan" || "FixedRate",
|
|
52
|
+
* Value: Number("double"),
|
|
53
|
+
* },
|
|
54
|
+
* FilterExpression: "STRING_VALUE",
|
|
55
|
+
* NextToken: "STRING_VALUE",
|
|
56
|
+
* };
|
|
45
57
|
* const command = new GetTraceSummariesCommand(input);
|
|
46
58
|
* const response = await client.send(command);
|
|
47
59
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface ListResourcePoliciesCommandOutput extends ListResourcePoliciesR
|
|
|
26
26
|
* import { XRayClient, ListResourcePoliciesCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, ListResourcePoliciesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* NextToken: "STRING_VALUE",
|
|
31
|
+
* };
|
|
29
32
|
* const command = new ListResourcePoliciesCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
26
26
|
* import { XRayClient, ListTagsForResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, ListTagsForResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
31
|
+
* NextToken: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new ListTagsForResourceCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface PutEncryptionConfigCommandOutput extends PutEncryptionConfigRes
|
|
|
26
26
|
* import { XRayClient, PutEncryptionConfigCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, PutEncryptionConfigCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* KeyId: "STRING_VALUE",
|
|
31
|
+
* Type: "NONE" || "KMS", // required
|
|
32
|
+
* };
|
|
29
33
|
* const command = new PutEncryptionConfigCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -31,6 +31,12 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResult,
|
|
|
31
31
|
* import { XRayClient, PutResourcePolicyCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
32
32
|
* // const { XRayClient, PutResourcePolicyCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
33
33
|
* const client = new XRayClient(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* PolicyName: "STRING_VALUE", // required
|
|
36
|
+
* PolicyDocument: "STRING_VALUE", // required
|
|
37
|
+
* PolicyRevisionId: "STRING_VALUE",
|
|
38
|
+
* BypassPolicyLockoutCheck: true || false,
|
|
39
|
+
* };
|
|
34
40
|
* const command = new PutResourcePolicyCommand(input);
|
|
35
41
|
* const response = await client.send(command);
|
|
36
42
|
* ```
|
|
@@ -26,6 +26,28 @@ export interface PutTelemetryRecordsCommandOutput extends PutTelemetryRecordsRes
|
|
|
26
26
|
* import { XRayClient, PutTelemetryRecordsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, PutTelemetryRecordsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* TelemetryRecords: [ // required
|
|
31
|
+
* {
|
|
32
|
+
* Timestamp: new Date("TIMESTAMP"), // required
|
|
33
|
+
* SegmentsReceivedCount: Number("int"),
|
|
34
|
+
* SegmentsSentCount: Number("int"),
|
|
35
|
+
* SegmentsSpilloverCount: Number("int"),
|
|
36
|
+
* SegmentsRejectedCount: Number("int"),
|
|
37
|
+
* BackendConnectionErrors: {
|
|
38
|
+
* TimeoutCount: Number("int"),
|
|
39
|
+
* ConnectionRefusedCount: Number("int"),
|
|
40
|
+
* HTTPCode4XXCount: Number("int"),
|
|
41
|
+
* HTTPCode5XXCount: Number("int"),
|
|
42
|
+
* UnknownHostCount: Number("int"),
|
|
43
|
+
* OtherCount: Number("int"),
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* EC2InstanceId: "STRING_VALUE",
|
|
48
|
+
* Hostname: "STRING_VALUE",
|
|
49
|
+
* ResourceARN: "STRING_VALUE",
|
|
50
|
+
* };
|
|
29
51
|
* const command = new PutTelemetryRecordsCommand(input);
|
|
30
52
|
* const response = await client.send(command);
|
|
31
53
|
* ```
|
|
@@ -88,6 +88,11 @@ export interface PutTraceSegmentsCommandOutput extends PutTraceSegmentsResult, _
|
|
|
88
88
|
* import { XRayClient, PutTraceSegmentsCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
89
89
|
* // const { XRayClient, PutTraceSegmentsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
90
90
|
* const client = new XRayClient(config);
|
|
91
|
+
* const input = {
|
|
92
|
+
* TraceSegmentDocuments: [ // required
|
|
93
|
+
* "STRING_VALUE",
|
|
94
|
+
* ],
|
|
95
|
+
* };
|
|
91
96
|
* const command = new PutTraceSegmentsCommand(input);
|
|
92
97
|
* const response = await client.send(command);
|
|
93
98
|
* ```
|
|
@@ -26,6 +26,15 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
26
26
|
* import { XRayClient, TagResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, TagResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
31
|
+
* Tags: [ // required
|
|
32
|
+
* {
|
|
33
|
+
* Key: "STRING_VALUE", // required
|
|
34
|
+
* Value: "STRING_VALUE", // required
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
29
38
|
* const command = new TagResourceCommand(input);
|
|
30
39
|
* const response = await client.send(command);
|
|
31
40
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
27
27
|
* import { XRayClient, UntagResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
28
28
|
* // const { XRayClient, UntagResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
29
29
|
* const client = new XRayClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
32
|
+
* TagKeys: [ // required
|
|
33
|
+
* "STRING_VALUE",
|
|
34
|
+
* ],
|
|
35
|
+
* };
|
|
30
36
|
* const command = new UntagResourceCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -26,6 +26,15 @@ export interface UpdateGroupCommandOutput extends UpdateGroupResult, __MetadataB
|
|
|
26
26
|
* import { XRayClient, UpdateGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, UpdateGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* GroupName: "STRING_VALUE",
|
|
31
|
+
* GroupARN: "STRING_VALUE",
|
|
32
|
+
* FilterExpression: "STRING_VALUE",
|
|
33
|
+
* InsightsConfiguration: {
|
|
34
|
+
* InsightsEnabled: true || false,
|
|
35
|
+
* NotificationsEnabled: true || false,
|
|
36
|
+
* },
|
|
37
|
+
* };
|
|
29
38
|
* const command = new UpdateGroupCommand(input);
|
|
30
39
|
* const response = await client.send(command);
|
|
31
40
|
* ```
|
|
@@ -26,6 +26,24 @@ export interface UpdateSamplingRuleCommandOutput extends UpdateSamplingRuleResul
|
|
|
26
26
|
* import { XRayClient, UpdateSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
|
|
27
27
|
* // const { XRayClient, UpdateSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
|
|
28
28
|
* const client = new XRayClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* SamplingRuleUpdate: {
|
|
31
|
+
* RuleName: "STRING_VALUE",
|
|
32
|
+
* RuleARN: "STRING_VALUE",
|
|
33
|
+
* ResourceARN: "STRING_VALUE",
|
|
34
|
+
* Priority: Number("int"),
|
|
35
|
+
* FixedRate: Number("double"),
|
|
36
|
+
* ReservoirSize: Number("int"),
|
|
37
|
+
* Host: "STRING_VALUE",
|
|
38
|
+
* ServiceName: "STRING_VALUE",
|
|
39
|
+
* ServiceType: "STRING_VALUE",
|
|
40
|
+
* HTTPMethod: "STRING_VALUE",
|
|
41
|
+
* URLPath: "STRING_VALUE",
|
|
42
|
+
* Attributes: {
|
|
43
|
+
* "<keys>": "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* };
|
|
29
47
|
* const command = new UpdateSamplingRuleCommand(input);
|
|
30
48
|
* const response = await client.send(command);
|
|
31
49
|
* ```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-xray",
|
|
3
3
|
"description": "AWS SDK for JavaScript Xray Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.300.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.300.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.300.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.296.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|