@aws-sdk/client-codeguruprofiler 3.301.0 → 3.306.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.
@@ -2,14 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderBy = exports.ComputePlatform = exports.MetadataField = exports.MetricType = exports.FeedbackType = exports.AggregationPeriod = exports.AgentParameterField = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.EventPublisher = exports.ActionGroup = void 0;
4
4
  const CodeGuruProfilerServiceException_1 = require("./CodeGuruProfilerServiceException");
5
- var ActionGroup;
6
- (function (ActionGroup) {
7
- ActionGroup["AGENT_PERMISSIONS"] = "agentPermissions";
8
- })(ActionGroup = exports.ActionGroup || (exports.ActionGroup = {}));
9
- var EventPublisher;
10
- (function (EventPublisher) {
11
- EventPublisher["ANOMALY_DETECTION"] = "AnomalyDetection";
12
- })(EventPublisher = exports.EventPublisher || (exports.EventPublisher = {}));
5
+ exports.ActionGroup = {
6
+ AGENT_PERMISSIONS: "agentPermissions",
7
+ };
8
+ exports.EventPublisher = {
9
+ ANOMALY_DETECTION: "AnomalyDetection",
10
+ };
13
11
  class ConflictException extends CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException {
14
12
  constructor(opts) {
15
13
  super({
@@ -91,48 +89,41 @@ class ValidationException extends CodeGuruProfilerServiceException_1.CodeGuruPro
91
89
  }
92
90
  }
93
91
  exports.ValidationException = ValidationException;
94
- var AgentParameterField;
95
- (function (AgentParameterField) {
96
- AgentParameterField["MAX_STACK_DEPTH"] = "MaxStackDepth";
97
- AgentParameterField["MEMORY_USAGE_LIMIT_PERCENT"] = "MemoryUsageLimitPercent";
98
- AgentParameterField["MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS"] = "MinimumTimeForReportingInMilliseconds";
99
- AgentParameterField["REPORTING_INTERVAL_IN_MILLISECONDS"] = "ReportingIntervalInMilliseconds";
100
- AgentParameterField["SAMPLING_INTERVAL_IN_MILLISECONDS"] = "SamplingIntervalInMilliseconds";
101
- })(AgentParameterField = exports.AgentParameterField || (exports.AgentParameterField = {}));
102
- var AggregationPeriod;
103
- (function (AggregationPeriod) {
104
- AggregationPeriod["P1D"] = "P1D";
105
- AggregationPeriod["PT1H"] = "PT1H";
106
- AggregationPeriod["PT5M"] = "PT5M";
107
- })(AggregationPeriod = exports.AggregationPeriod || (exports.AggregationPeriod = {}));
108
- var FeedbackType;
109
- (function (FeedbackType) {
110
- FeedbackType["Negative"] = "Negative";
111
- FeedbackType["Positive"] = "Positive";
112
- })(FeedbackType = exports.FeedbackType || (exports.FeedbackType = {}));
113
- var MetricType;
114
- (function (MetricType) {
115
- MetricType["AggregatedRelativeTotalTime"] = "AggregatedRelativeTotalTime";
116
- })(MetricType = exports.MetricType || (exports.MetricType = {}));
117
- var MetadataField;
118
- (function (MetadataField) {
119
- MetadataField["AGENT_ID"] = "AgentId";
120
- MetadataField["AWS_REQUEST_ID"] = "AwsRequestId";
121
- MetadataField["COMPUTE_PLATFORM"] = "ComputePlatform";
122
- MetadataField["EXECUTION_ENVIRONMENT"] = "ExecutionEnvironment";
123
- MetadataField["LAMBDA_FUNCTION_ARN"] = "LambdaFunctionArn";
124
- MetadataField["LAMBDA_MEMORY_LIMIT_IN_MB"] = "LambdaMemoryLimitInMB";
125
- MetadataField["LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS"] = "LambdaPreviousExecutionTimeInMilliseconds";
126
- MetadataField["LAMBDA_REMAINING_TIME_IN_MILLISECONDS"] = "LambdaRemainingTimeInMilliseconds";
127
- MetadataField["LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS"] = "LambdaTimeGapBetweenInvokesInMilliseconds";
128
- })(MetadataField = exports.MetadataField || (exports.MetadataField = {}));
129
- var ComputePlatform;
130
- (function (ComputePlatform) {
131
- ComputePlatform["AWSLAMBDA"] = "AWSLambda";
132
- ComputePlatform["DEFAULT"] = "Default";
133
- })(ComputePlatform = exports.ComputePlatform || (exports.ComputePlatform = {}));
134
- var OrderBy;
135
- (function (OrderBy) {
136
- OrderBy["TIMESTAMP_ASCENDING"] = "TimestampAscending";
137
- OrderBy["TIMESTAMP_DESCENDING"] = "TimestampDescending";
138
- })(OrderBy = exports.OrderBy || (exports.OrderBy = {}));
92
+ exports.AgentParameterField = {
93
+ MAX_STACK_DEPTH: "MaxStackDepth",
94
+ MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
95
+ MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
96
+ REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
97
+ SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
98
+ };
99
+ exports.AggregationPeriod = {
100
+ P1D: "P1D",
101
+ PT1H: "PT1H",
102
+ PT5M: "PT5M",
103
+ };
104
+ exports.FeedbackType = {
105
+ Negative: "Negative",
106
+ Positive: "Positive",
107
+ };
108
+ exports.MetricType = {
109
+ AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
110
+ };
111
+ exports.MetadataField = {
112
+ AGENT_ID: "AgentId",
113
+ AWS_REQUEST_ID: "AwsRequestId",
114
+ COMPUTE_PLATFORM: "ComputePlatform",
115
+ EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
116
+ LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
117
+ LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
118
+ LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
119
+ LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
120
+ LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
121
+ };
122
+ exports.ComputePlatform = {
123
+ AWSLAMBDA: "AWSLambda",
124
+ DEFAULT: "Default",
125
+ };
126
+ exports.OrderBy = {
127
+ TIMESTAMP_ASCENDING: "TimestampAscending",
128
+ TIMESTAMP_DESCENDING: "TimestampDescending",
129
+ };
@@ -1,12 +1,10 @@
1
1
  import { CodeGuruProfilerServiceException as __BaseException } from "./CodeGuruProfilerServiceException";
2
- export var ActionGroup;
3
- (function (ActionGroup) {
4
- ActionGroup["AGENT_PERMISSIONS"] = "agentPermissions";
5
- })(ActionGroup || (ActionGroup = {}));
6
- export var EventPublisher;
7
- (function (EventPublisher) {
8
- EventPublisher["ANOMALY_DETECTION"] = "AnomalyDetection";
9
- })(EventPublisher || (EventPublisher = {}));
2
+ export const ActionGroup = {
3
+ AGENT_PERMISSIONS: "agentPermissions",
4
+ };
5
+ export const EventPublisher = {
6
+ ANOMALY_DETECTION: "AnomalyDetection",
7
+ };
10
8
  export class ConflictException extends __BaseException {
11
9
  constructor(opts) {
12
10
  super({
@@ -82,48 +80,41 @@ export class ValidationException extends __BaseException {
82
80
  Object.setPrototypeOf(this, ValidationException.prototype);
83
81
  }
84
82
  }
85
- export var AgentParameterField;
86
- (function (AgentParameterField) {
87
- AgentParameterField["MAX_STACK_DEPTH"] = "MaxStackDepth";
88
- AgentParameterField["MEMORY_USAGE_LIMIT_PERCENT"] = "MemoryUsageLimitPercent";
89
- AgentParameterField["MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS"] = "MinimumTimeForReportingInMilliseconds";
90
- AgentParameterField["REPORTING_INTERVAL_IN_MILLISECONDS"] = "ReportingIntervalInMilliseconds";
91
- AgentParameterField["SAMPLING_INTERVAL_IN_MILLISECONDS"] = "SamplingIntervalInMilliseconds";
92
- })(AgentParameterField || (AgentParameterField = {}));
93
- export var AggregationPeriod;
94
- (function (AggregationPeriod) {
95
- AggregationPeriod["P1D"] = "P1D";
96
- AggregationPeriod["PT1H"] = "PT1H";
97
- AggregationPeriod["PT5M"] = "PT5M";
98
- })(AggregationPeriod || (AggregationPeriod = {}));
99
- export var FeedbackType;
100
- (function (FeedbackType) {
101
- FeedbackType["Negative"] = "Negative";
102
- FeedbackType["Positive"] = "Positive";
103
- })(FeedbackType || (FeedbackType = {}));
104
- export var MetricType;
105
- (function (MetricType) {
106
- MetricType["AggregatedRelativeTotalTime"] = "AggregatedRelativeTotalTime";
107
- })(MetricType || (MetricType = {}));
108
- export var MetadataField;
109
- (function (MetadataField) {
110
- MetadataField["AGENT_ID"] = "AgentId";
111
- MetadataField["AWS_REQUEST_ID"] = "AwsRequestId";
112
- MetadataField["COMPUTE_PLATFORM"] = "ComputePlatform";
113
- MetadataField["EXECUTION_ENVIRONMENT"] = "ExecutionEnvironment";
114
- MetadataField["LAMBDA_FUNCTION_ARN"] = "LambdaFunctionArn";
115
- MetadataField["LAMBDA_MEMORY_LIMIT_IN_MB"] = "LambdaMemoryLimitInMB";
116
- MetadataField["LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS"] = "LambdaPreviousExecutionTimeInMilliseconds";
117
- MetadataField["LAMBDA_REMAINING_TIME_IN_MILLISECONDS"] = "LambdaRemainingTimeInMilliseconds";
118
- MetadataField["LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS"] = "LambdaTimeGapBetweenInvokesInMilliseconds";
119
- })(MetadataField || (MetadataField = {}));
120
- export var ComputePlatform;
121
- (function (ComputePlatform) {
122
- ComputePlatform["AWSLAMBDA"] = "AWSLambda";
123
- ComputePlatform["DEFAULT"] = "Default";
124
- })(ComputePlatform || (ComputePlatform = {}));
125
- export var OrderBy;
126
- (function (OrderBy) {
127
- OrderBy["TIMESTAMP_ASCENDING"] = "TimestampAscending";
128
- OrderBy["TIMESTAMP_DESCENDING"] = "TimestampDescending";
129
- })(OrderBy || (OrderBy = {}));
83
+ export const AgentParameterField = {
84
+ MAX_STACK_DEPTH: "MaxStackDepth",
85
+ MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
86
+ MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
87
+ REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
88
+ SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
89
+ };
90
+ export const AggregationPeriod = {
91
+ P1D: "P1D",
92
+ PT1H: "PT1H",
93
+ PT5M: "PT5M",
94
+ };
95
+ export const FeedbackType = {
96
+ Negative: "Negative",
97
+ Positive: "Positive",
98
+ };
99
+ export const MetricType = {
100
+ AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
101
+ };
102
+ export const MetadataField = {
103
+ AGENT_ID: "AgentId",
104
+ AWS_REQUEST_ID: "AwsRequestId",
105
+ COMPUTE_PLATFORM: "ComputePlatform",
106
+ EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
107
+ LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
108
+ LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
109
+ LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
110
+ LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
111
+ LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
112
+ };
113
+ export const ComputePlatform = {
114
+ AWSLAMBDA: "AWSLambda",
115
+ DEFAULT: "Default",
116
+ };
117
+ export const OrderBy = {
118
+ TIMESTAMP_ASCENDING: "TimestampAscending",
119
+ TIMESTAMP_DESCENDING: "TimestampDescending",
120
+ };
@@ -2,22 +2,32 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { CodeGuruProfilerServiceException as __BaseException } from "./CodeGuruProfilerServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum ActionGroup {
7
+ export declare const ActionGroup: {
7
8
  /**
8
9
  * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
9
10
  */
10
- AGENT_PERMISSIONS = "agentPermissions"
11
- }
11
+ readonly AGENT_PERMISSIONS: "agentPermissions";
12
+ };
12
13
  /**
13
14
  * @public
14
15
  */
15
- export declare enum EventPublisher {
16
+ export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
17
+ /**
18
+ * @public
19
+ * @enum
20
+ */
21
+ export declare const EventPublisher: {
16
22
  /**
17
23
  * Notifications for Anomaly Detection
18
24
  */
19
- ANOMALY_DETECTION = "AnomalyDetection"
20
- }
25
+ readonly ANOMALY_DETECTION: "AnomalyDetection";
26
+ };
27
+ /**
28
+ * @public
29
+ */
30
+ export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher];
21
31
  /**
22
32
  * @public
23
33
  * <p>Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.</p>
@@ -155,29 +165,34 @@ export declare class ValidationException extends __BaseException {
155
165
  }
156
166
  /**
157
167
  * @public
168
+ * @enum
158
169
  */
159
- export declare enum AgentParameterField {
170
+ export declare const AgentParameterField: {
160
171
  /**
161
172
  * Maximum stack depth to be captured by the CodeGuru Profiler.
162
173
  */
163
- MAX_STACK_DEPTH = "MaxStackDepth",
174
+ readonly MAX_STACK_DEPTH: "MaxStackDepth";
164
175
  /**
165
176
  * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
166
177
  */
167
- MEMORY_USAGE_LIMIT_PERCENT = "MemoryUsageLimitPercent",
178
+ readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
168
179
  /**
169
180
  * Minimum time in milliseconds between sending reports.
170
181
  */
171
- MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS = "MinimumTimeForReportingInMilliseconds",
182
+ readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
172
183
  /**
173
184
  * Reporting interval in milliseconds used to report profiles.
174
185
  */
175
- REPORTING_INTERVAL_IN_MILLISECONDS = "ReportingIntervalInMilliseconds",
186
+ readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
176
187
  /**
177
188
  * Sampling interval in milliseconds used to sample profiles.
178
189
  */
179
- SAMPLING_INTERVAL_IN_MILLISECONDS = "SamplingIntervalInMilliseconds"
180
- }
190
+ readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
191
+ };
192
+ /**
193
+ * @public
194
+ */
195
+ export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField];
181
196
  /**
182
197
  * @public
183
198
  * <p>
@@ -270,21 +285,26 @@ export interface AgentOrchestrationConfig {
270
285
  }
271
286
  /**
272
287
  * @public
288
+ * @enum
273
289
  */
274
- export declare enum AggregationPeriod {
290
+ export declare const AggregationPeriod: {
275
291
  /**
276
292
  * Period of one day.
277
293
  */
278
- P1D = "P1D",
294
+ readonly P1D: "P1D";
279
295
  /**
280
296
  * Period of one hour.
281
297
  */
282
- PT1H = "PT1H",
298
+ readonly PT1H: "PT1H";
283
299
  /**
284
300
  * Period of five minutes.
285
301
  */
286
- PT5M = "PT5M"
287
- }
302
+ readonly PT5M: "PT5M";
303
+ };
304
+ /**
305
+ * @public
306
+ */
307
+ export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
288
308
  /**
289
309
  * @public
290
310
  * <p>
@@ -336,17 +356,22 @@ export interface AggregatedProfileTime {
336
356
  }
337
357
  /**
338
358
  * @public
359
+ * @enum
339
360
  */
340
- export declare enum FeedbackType {
361
+ export declare const FeedbackType: {
341
362
  /**
342
363
  * Profiler recommendation flagged as not useful.
343
364
  */
344
- Negative = "Negative",
365
+ readonly Negative: "Negative";
345
366
  /**
346
367
  * Profiler recommendation flagged as useful.
347
368
  */
348
- Positive = "Positive"
349
- }
369
+ readonly Positive: "Positive";
370
+ };
371
+ /**
372
+ * @public
373
+ */
374
+ export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
350
375
  /**
351
376
  * @public
352
377
  * <p>Feedback that can be submitted for each instance of an anomaly by the user.
@@ -395,13 +420,18 @@ export interface AnomalyInstance {
395
420
  }
396
421
  /**
397
422
  * @public
423
+ * @enum
398
424
  */
399
- export declare enum MetricType {
425
+ export declare const MetricType: {
400
426
  /**
401
427
  * Metric value aggregated for all instances of a frame name in a profile relative to the root frame.
402
428
  */
403
- AggregatedRelativeTotalTime = "AggregatedRelativeTotalTime"
404
- }
429
+ readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
430
+ };
431
+ /**
432
+ * @public
433
+ */
434
+ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
405
435
  /**
406
436
  * @public
407
437
  * <p>
@@ -773,45 +803,50 @@ export interface ListTagsForResourceResponse {
773
803
  }
774
804
  /**
775
805
  * @public
806
+ * @enum
776
807
  */
777
- export declare enum MetadataField {
808
+ export declare const MetadataField: {
778
809
  /**
779
810
  * Unique identifier for the agent instance.
780
811
  */
781
- AGENT_ID = "AgentId",
812
+ readonly AGENT_ID: "AgentId";
782
813
  /**
783
814
  * AWS requestId of the Lambda invocation.
784
815
  */
785
- AWS_REQUEST_ID = "AwsRequestId",
816
+ readonly AWS_REQUEST_ID: "AwsRequestId";
786
817
  /**
787
818
  * Compute platform on which agent is running.
788
819
  */
789
- COMPUTE_PLATFORM = "ComputePlatform",
820
+ readonly COMPUTE_PLATFORM: "ComputePlatform";
790
821
  /**
791
822
  * Execution environment on which Lambda function is running.
792
823
  */
793
- EXECUTION_ENVIRONMENT = "ExecutionEnvironment",
824
+ readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
794
825
  /**
795
826
  * Function ARN that's used to invoke the Lambda function.
796
827
  */
797
- LAMBDA_FUNCTION_ARN = "LambdaFunctionArn",
828
+ readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
798
829
  /**
799
830
  * Memory allocated for the Lambda function.
800
831
  */
801
- LAMBDA_MEMORY_LIMIT_IN_MB = "LambdaMemoryLimitInMB",
832
+ readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
802
833
  /**
803
834
  * Time in milliseconds for the previous Lambda invocation.
804
835
  */
805
- LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS = "LambdaPreviousExecutionTimeInMilliseconds",
836
+ readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
806
837
  /**
807
838
  * Time in milliseconds left before the execution times out.
808
839
  */
809
- LAMBDA_REMAINING_TIME_IN_MILLISECONDS = "LambdaRemainingTimeInMilliseconds",
840
+ readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
810
841
  /**
811
842
  * Time in milliseconds between two invocations of the Lambda function.
812
843
  */
813
- LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS = "LambdaTimeGapBetweenInvokesInMilliseconds"
814
- }
844
+ readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
845
+ };
846
+ /**
847
+ * @public
848
+ */
849
+ export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
815
850
  /**
816
851
  * @public
817
852
  * <p>The structure representing the configureAgentRequest.</p>
@@ -899,17 +934,22 @@ export interface ConfigureAgentResponse {
899
934
  }
900
935
  /**
901
936
  * @public
937
+ * @enum
902
938
  */
903
- export declare enum ComputePlatform {
939
+ export declare const ComputePlatform: {
904
940
  /**
905
941
  * Compute platform meant to used for AWS Lambda.
906
942
  */
907
- AWSLAMBDA = "AWSLambda",
943
+ readonly AWSLAMBDA: "AWSLambda";
908
944
  /**
909
945
  * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda.
910
946
  */
911
- DEFAULT = "Default"
912
- }
947
+ readonly DEFAULT: "Default";
948
+ };
949
+ /**
950
+ * @public
951
+ */
952
+ export type ComputePlatform = (typeof ComputePlatform)[keyof typeof ComputePlatform];
913
953
  /**
914
954
  * @public
915
955
  * <p>The structure representing the createProfiliingGroupRequest.</p>
@@ -1547,17 +1587,22 @@ export interface ListFindingsReportsResponse {
1547
1587
  }
1548
1588
  /**
1549
1589
  * @public
1590
+ * @enum
1550
1591
  */
1551
- export declare enum OrderBy {
1592
+ export declare const OrderBy: {
1552
1593
  /**
1553
1594
  * Order by timestamp in ascending order.
1554
1595
  */
1555
- TIMESTAMP_ASCENDING = "TimestampAscending",
1596
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
1556
1597
  /**
1557
1598
  * Order by timestamp in descending order.
1558
1599
  */
1559
- TIMESTAMP_DESCENDING = "TimestampDescending"
1560
- }
1600
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
1601
+ };
1602
+ /**
1603
+ * @public
1604
+ */
1605
+ export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
1561
1606
  /**
1562
1607
  * @public
1563
1608
  * <p>The structure representing the listProfileTimesRequest.</p>
@@ -1,11 +1,14 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { CodeGuruProfilerServiceException as __BaseException } from "./CodeGuruProfilerServiceException";
3
- export declare enum ActionGroup {
4
- AGENT_PERMISSIONS = "agentPermissions",
5
- }
6
- export declare enum EventPublisher {
7
- ANOMALY_DETECTION = "AnomalyDetection",
8
- }
3
+ export declare const ActionGroup: {
4
+ readonly AGENT_PERMISSIONS: "agentPermissions";
5
+ };
6
+ export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
7
+ export declare const EventPublisher: {
8
+ readonly ANOMALY_DETECTION: "AnomalyDetection";
9
+ };
10
+ export type EventPublisher =
11
+ (typeof EventPublisher)[keyof typeof EventPublisher];
9
12
  export interface Channel {
10
13
  id?: string;
11
14
  uri: string | undefined;
@@ -64,13 +67,15 @@ export declare class ValidationException extends __BaseException {
64
67
  opts: __ExceptionOptionType<ValidationException, __BaseException>
65
68
  );
66
69
  }
67
- export declare enum AgentParameterField {
68
- MAX_STACK_DEPTH = "MaxStackDepth",
69
- MEMORY_USAGE_LIMIT_PERCENT = "MemoryUsageLimitPercent",
70
- MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS = "MinimumTimeForReportingInMilliseconds",
71
- REPORTING_INTERVAL_IN_MILLISECONDS = "ReportingIntervalInMilliseconds",
72
- SAMPLING_INTERVAL_IN_MILLISECONDS = "SamplingIntervalInMilliseconds",
73
- }
70
+ export declare const AgentParameterField: {
71
+ readonly MAX_STACK_DEPTH: "MaxStackDepth";
72
+ readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
73
+ readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
74
+ readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
75
+ readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
76
+ };
77
+ export type AgentParameterField =
78
+ (typeof AgentParameterField)[keyof typeof AgentParameterField];
74
79
  export interface AgentConfiguration {
75
80
  shouldProfile: boolean | undefined;
76
81
  periodInSeconds: number | undefined;
@@ -79,19 +84,22 @@ export interface AgentConfiguration {
79
84
  export interface AgentOrchestrationConfig {
80
85
  profilingEnabled: boolean | undefined;
81
86
  }
82
- export declare enum AggregationPeriod {
83
- P1D = "P1D",
84
- PT1H = "PT1H",
85
- PT5M = "PT5M",
86
- }
87
+ export declare const AggregationPeriod: {
88
+ readonly P1D: "P1D";
89
+ readonly PT1H: "PT1H";
90
+ readonly PT5M: "PT5M";
91
+ };
92
+ export type AggregationPeriod =
93
+ (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
87
94
  export interface AggregatedProfileTime {
88
95
  start?: Date;
89
96
  period?: AggregationPeriod | string;
90
97
  }
91
- export declare enum FeedbackType {
92
- Negative = "Negative",
93
- Positive = "Positive",
94
- }
98
+ export declare const FeedbackType: {
99
+ readonly Negative: "Negative";
100
+ readonly Positive: "Positive";
101
+ };
102
+ export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
95
103
  export interface UserFeedback {
96
104
  type: FeedbackType | string | undefined;
97
105
  }
@@ -101,9 +109,10 @@ export interface AnomalyInstance {
101
109
  endTime?: Date;
102
110
  userFeedback?: UserFeedback;
103
111
  }
104
- export declare enum MetricType {
105
- AggregatedRelativeTotalTime = "AggregatedRelativeTotalTime",
106
- }
112
+ export declare const MetricType: {
113
+ readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
114
+ };
115
+ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
107
116
  export interface Metric {
108
117
  frameName: string | undefined;
109
118
  type: MetricType | string | undefined;
@@ -164,17 +173,18 @@ export interface ListTagsForResourceRequest {
164
173
  export interface ListTagsForResourceResponse {
165
174
  tags?: Record<string, string>;
166
175
  }
167
- export declare enum MetadataField {
168
- AGENT_ID = "AgentId",
169
- AWS_REQUEST_ID = "AwsRequestId",
170
- COMPUTE_PLATFORM = "ComputePlatform",
171
- EXECUTION_ENVIRONMENT = "ExecutionEnvironment",
172
- LAMBDA_FUNCTION_ARN = "LambdaFunctionArn",
173
- LAMBDA_MEMORY_LIMIT_IN_MB = "LambdaMemoryLimitInMB",
174
- LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS = "LambdaPreviousExecutionTimeInMilliseconds",
175
- LAMBDA_REMAINING_TIME_IN_MILLISECONDS = "LambdaRemainingTimeInMilliseconds",
176
- LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS = "LambdaTimeGapBetweenInvokesInMilliseconds",
177
- }
176
+ export declare const MetadataField: {
177
+ readonly AGENT_ID: "AgentId";
178
+ readonly AWS_REQUEST_ID: "AwsRequestId";
179
+ readonly COMPUTE_PLATFORM: "ComputePlatform";
180
+ readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
181
+ readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
182
+ readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
183
+ readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
184
+ readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
185
+ readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
186
+ };
187
+ export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
178
188
  export interface ConfigureAgentRequest {
179
189
  profilingGroupName: string | undefined;
180
190
  fleetInstanceId?: string;
@@ -183,10 +193,12 @@ export interface ConfigureAgentRequest {
183
193
  export interface ConfigureAgentResponse {
184
194
  configuration: AgentConfiguration | undefined;
185
195
  }
186
- export declare enum ComputePlatform {
187
- AWSLAMBDA = "AWSLambda",
188
- DEFAULT = "Default",
189
- }
196
+ export declare const ComputePlatform: {
197
+ readonly AWSLAMBDA: "AWSLambda";
198
+ readonly DEFAULT: "Default";
199
+ };
200
+ export type ComputePlatform =
201
+ (typeof ComputePlatform)[keyof typeof ComputePlatform];
190
202
  export interface CreateProfilingGroupRequest {
191
203
  profilingGroupName: string | undefined;
192
204
  computePlatform?: ComputePlatform | string;
@@ -295,10 +307,11 @@ export interface ListFindingsReportsResponse {
295
307
  findingsReportSummaries: FindingsReportSummary[] | undefined;
296
308
  nextToken?: string;
297
309
  }
298
- export declare enum OrderBy {
299
- TIMESTAMP_ASCENDING = "TimestampAscending",
300
- TIMESTAMP_DESCENDING = "TimestampDescending",
301
- }
310
+ export declare const OrderBy: {
311
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
312
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
313
+ };
314
+ export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
302
315
  export interface ListProfileTimesRequest {
303
316
  profilingGroupName: string | undefined;
304
317
  startTime: Date | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguruprofiler",
3
3
  "description": "AWS SDK for JavaScript Codeguruprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.306.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,43 +21,43 @@
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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",