@aws-sdk/client-codeguruprofiler 3.936.0 → 3.939.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-cjs/index.js CHANGED
@@ -1593,6 +1593,51 @@ const paginateListProfileTimes = core.createPaginator(CodeGuruProfilerClient, Li
1593
1593
 
1594
1594
  const paginateListProfilingGroups = core.createPaginator(CodeGuruProfilerClient, ListProfilingGroupsCommand, "nextToken", "nextToken", "maxResults");
1595
1595
 
1596
+ const ActionGroup = {
1597
+ AGENT_PERMISSIONS: "agentPermissions",
1598
+ };
1599
+ const EventPublisher = {
1600
+ ANOMALY_DETECTION: "AnomalyDetection",
1601
+ };
1602
+ const AgentParameterField = {
1603
+ MAX_STACK_DEPTH: "MaxStackDepth",
1604
+ MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
1605
+ MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
1606
+ REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
1607
+ SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
1608
+ };
1609
+ const AggregationPeriod = {
1610
+ P1D: "P1D",
1611
+ PT1H: "PT1H",
1612
+ PT5M: "PT5M",
1613
+ };
1614
+ const FeedbackType = {
1615
+ Negative: "Negative",
1616
+ Positive: "Positive",
1617
+ };
1618
+ const MetricType = {
1619
+ AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
1620
+ };
1621
+ const MetadataField = {
1622
+ AGENT_ID: "AgentId",
1623
+ AWS_REQUEST_ID: "AwsRequestId",
1624
+ COMPUTE_PLATFORM: "ComputePlatform",
1625
+ EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
1626
+ LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
1627
+ LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
1628
+ LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
1629
+ LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
1630
+ LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
1631
+ };
1632
+ const ComputePlatform = {
1633
+ AWSLAMBDA: "AWSLambda",
1634
+ DEFAULT: "Default",
1635
+ };
1636
+ const OrderBy = {
1637
+ TIMESTAMP_ASCENDING: "TimestampAscending",
1638
+ TIMESTAMP_DESCENDING: "TimestampDescending",
1639
+ };
1640
+
1596
1641
  Object.defineProperty(exports, "$Command", {
1597
1642
  enumerable: true,
1598
1643
  get: function () { return smithyClient.Command; }
@@ -1601,16 +1646,22 @@ Object.defineProperty(exports, "__Client", {
1601
1646
  enumerable: true,
1602
1647
  get: function () { return smithyClient.Client; }
1603
1648
  });
1649
+ exports.ActionGroup = ActionGroup;
1604
1650
  exports.AddNotificationChannelsCommand = AddNotificationChannelsCommand;
1651
+ exports.AgentParameterField = AgentParameterField;
1652
+ exports.AggregationPeriod = AggregationPeriod;
1605
1653
  exports.BatchGetFrameMetricDataCommand = BatchGetFrameMetricDataCommand;
1606
1654
  exports.CodeGuruProfiler = CodeGuruProfiler;
1607
1655
  exports.CodeGuruProfilerClient = CodeGuruProfilerClient;
1608
1656
  exports.CodeGuruProfilerServiceException = CodeGuruProfilerServiceException$1;
1657
+ exports.ComputePlatform = ComputePlatform;
1609
1658
  exports.ConfigureAgentCommand = ConfigureAgentCommand;
1610
1659
  exports.ConflictException = ConflictException$1;
1611
1660
  exports.CreateProfilingGroupCommand = CreateProfilingGroupCommand;
1612
1661
  exports.DeleteProfilingGroupCommand = DeleteProfilingGroupCommand;
1613
1662
  exports.DescribeProfilingGroupCommand = DescribeProfilingGroupCommand;
1663
+ exports.EventPublisher = EventPublisher;
1664
+ exports.FeedbackType = FeedbackType;
1614
1665
  exports.GetFindingsReportAccountSummaryCommand = GetFindingsReportAccountSummaryCommand;
1615
1666
  exports.GetNotificationConfigurationCommand = GetNotificationConfigurationCommand;
1616
1667
  exports.GetPolicyCommand = GetPolicyCommand;
@@ -1621,6 +1672,9 @@ exports.ListFindingsReportsCommand = ListFindingsReportsCommand;
1621
1672
  exports.ListProfileTimesCommand = ListProfileTimesCommand;
1622
1673
  exports.ListProfilingGroupsCommand = ListProfilingGroupsCommand;
1623
1674
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1675
+ exports.MetadataField = MetadataField;
1676
+ exports.MetricType = MetricType;
1677
+ exports.OrderBy = OrderBy;
1624
1678
  exports.PostAgentProfileCommand = PostAgentProfileCommand;
1625
1679
  exports.PutPermissionCommand = PutPermissionCommand;
1626
1680
  exports.RemoveNotificationChannelCommand = RemoveNotificationChannelCommand;
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./CodeGuruProfilerClient";
2
2
  export * from "./CodeGuruProfiler";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
+ export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { CodeGuruProfilerServiceException } from "./models/CodeGuruProfilerServiceException";
@@ -0,0 +1,44 @@
1
+ export const ActionGroup = {
2
+ AGENT_PERMISSIONS: "agentPermissions",
3
+ };
4
+ export const EventPublisher = {
5
+ ANOMALY_DETECTION: "AnomalyDetection",
6
+ };
7
+ export const AgentParameterField = {
8
+ MAX_STACK_DEPTH: "MaxStackDepth",
9
+ MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
10
+ MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
11
+ REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
12
+ SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
13
+ };
14
+ export const AggregationPeriod = {
15
+ P1D: "P1D",
16
+ PT1H: "PT1H",
17
+ PT5M: "PT5M",
18
+ };
19
+ export const FeedbackType = {
20
+ Negative: "Negative",
21
+ Positive: "Positive",
22
+ };
23
+ export const MetricType = {
24
+ AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
25
+ };
26
+ export const MetadataField = {
27
+ AGENT_ID: "AgentId",
28
+ AWS_REQUEST_ID: "AwsRequestId",
29
+ COMPUTE_PLATFORM: "ComputePlatform",
30
+ EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
31
+ LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
32
+ LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
33
+ LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
34
+ LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
35
+ LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
36
+ };
37
+ export const ComputePlatform = {
38
+ AWSLAMBDA: "AWSLambda",
39
+ DEFAULT: "Default",
40
+ };
41
+ export const OrderBy = {
42
+ TIMESTAMP_ASCENDING: "TimestampAscending",
43
+ TIMESTAMP_DESCENDING: "TimestampDescending",
44
+ };
@@ -1,44 +1 @@
1
- export const ActionGroup = {
2
- AGENT_PERMISSIONS: "agentPermissions",
3
- };
4
- export const EventPublisher = {
5
- ANOMALY_DETECTION: "AnomalyDetection",
6
- };
7
- export const AgentParameterField = {
8
- MAX_STACK_DEPTH: "MaxStackDepth",
9
- MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
10
- MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
11
- REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
12
- SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
13
- };
14
- export const AggregationPeriod = {
15
- P1D: "P1D",
16
- PT1H: "PT1H",
17
- PT5M: "PT5M",
18
- };
19
- export const FeedbackType = {
20
- Negative: "Negative",
21
- Positive: "Positive",
22
- };
23
- export const MetricType = {
24
- AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
25
- };
26
- export const MetadataField = {
27
- AGENT_ID: "AgentId",
28
- AWS_REQUEST_ID: "AwsRequestId",
29
- COMPUTE_PLATFORM: "ComputePlatform",
30
- EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
31
- LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
32
- LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
33
- LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
34
- LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
35
- LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
36
- };
37
- export const ComputePlatform = {
38
- AWSLAMBDA: "AWSLambda",
39
- DEFAULT: "Default",
40
- };
41
- export const OrderBy = {
42
- TIMESTAMP_ASCENDING: "TimestampAscending",
43
- TIMESTAMP_DESCENDING: "TimestampDescending",
44
- };
1
+ export {};
@@ -32,6 +32,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
32
32
  export type { CodeGuruProfilerExtensionConfiguration } from "./extensionConfiguration";
33
33
  export * from "./commands";
34
34
  export * from "./pagination";
35
+ export * from "./models/enums";
35
36
  export * from "./models/errors";
36
37
  export type * from "./models/models_0";
37
38
  export { CodeGuruProfilerServiceException } from "./models/CodeGuruProfilerServiceException";
@@ -0,0 +1,194 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ActionGroup: {
6
+ /**
7
+ * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
8
+ */
9
+ readonly AGENT_PERMISSIONS: "agentPermissions";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const EventPublisher: {
20
+ /**
21
+ * Notifications for Anomaly Detection
22
+ */
23
+ readonly ANOMALY_DETECTION: "AnomalyDetection";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher];
29
+ /**
30
+ * @public
31
+ * @enum
32
+ */
33
+ export declare const AgentParameterField: {
34
+ /**
35
+ * Maximum stack depth to be captured by the CodeGuru Profiler.
36
+ */
37
+ readonly MAX_STACK_DEPTH: "MaxStackDepth";
38
+ /**
39
+ * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
40
+ */
41
+ readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
42
+ /**
43
+ * Minimum time in milliseconds between sending reports.
44
+ */
45
+ readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
46
+ /**
47
+ * Reporting interval in milliseconds used to report profiles.
48
+ */
49
+ readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
50
+ /**
51
+ * Sampling interval in milliseconds used to sample profiles.
52
+ */
53
+ readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
54
+ };
55
+ /**
56
+ * @public
57
+ */
58
+ export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField];
59
+ /**
60
+ * @public
61
+ * @enum
62
+ */
63
+ export declare const AggregationPeriod: {
64
+ /**
65
+ * Period of one day.
66
+ */
67
+ readonly P1D: "P1D";
68
+ /**
69
+ * Period of one hour.
70
+ */
71
+ readonly PT1H: "PT1H";
72
+ /**
73
+ * Period of five minutes.
74
+ */
75
+ readonly PT5M: "PT5M";
76
+ };
77
+ /**
78
+ * @public
79
+ */
80
+ export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
81
+ /**
82
+ * @public
83
+ * @enum
84
+ */
85
+ export declare const FeedbackType: {
86
+ /**
87
+ * Profiler recommendation flagged as not useful.
88
+ */
89
+ readonly Negative: "Negative";
90
+ /**
91
+ * Profiler recommendation flagged as useful.
92
+ */
93
+ readonly Positive: "Positive";
94
+ };
95
+ /**
96
+ * @public
97
+ */
98
+ export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
99
+ /**
100
+ * @public
101
+ * @enum
102
+ */
103
+ export declare const MetricType: {
104
+ /**
105
+ * Metric value aggregated for all instances of a frame name in a profile relative to the root frame.
106
+ */
107
+ readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
108
+ };
109
+ /**
110
+ * @public
111
+ */
112
+ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
113
+ /**
114
+ * @public
115
+ * @enum
116
+ */
117
+ export declare const MetadataField: {
118
+ /**
119
+ * Unique identifier for the agent instance.
120
+ */
121
+ readonly AGENT_ID: "AgentId";
122
+ /**
123
+ * AWS requestId of the Lambda invocation.
124
+ */
125
+ readonly AWS_REQUEST_ID: "AwsRequestId";
126
+ /**
127
+ * Compute platform on which agent is running.
128
+ */
129
+ readonly COMPUTE_PLATFORM: "ComputePlatform";
130
+ /**
131
+ * Execution environment on which Lambda function is running.
132
+ */
133
+ readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
134
+ /**
135
+ * Function ARN that's used to invoke the Lambda function.
136
+ */
137
+ readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
138
+ /**
139
+ * Memory allocated for the Lambda function.
140
+ */
141
+ readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
142
+ /**
143
+ * Time in milliseconds for the previous Lambda invocation.
144
+ */
145
+ readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
146
+ /**
147
+ * Time in milliseconds left before the execution times out.
148
+ */
149
+ readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
150
+ /**
151
+ * Time in milliseconds between two invocations of the Lambda function.
152
+ */
153
+ readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
154
+ };
155
+ /**
156
+ * @public
157
+ */
158
+ export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
159
+ /**
160
+ * @public
161
+ * @enum
162
+ */
163
+ export declare const ComputePlatform: {
164
+ /**
165
+ * Compute platform meant to used for AWS Lambda.
166
+ */
167
+ readonly AWSLAMBDA: "AWSLambda";
168
+ /**
169
+ * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda.
170
+ */
171
+ readonly DEFAULT: "Default";
172
+ };
173
+ /**
174
+ * @public
175
+ */
176
+ export type ComputePlatform = (typeof ComputePlatform)[keyof typeof ComputePlatform];
177
+ /**
178
+ * @public
179
+ * @enum
180
+ */
181
+ export declare const OrderBy: {
182
+ /**
183
+ * Order by timestamp in ascending order.
184
+ */
185
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
186
+ /**
187
+ * Order by timestamp in descending order.
188
+ */
189
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
190
+ };
191
+ /**
192
+ * @public
193
+ */
194
+ export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
@@ -1,31 +1,4 @@
1
- /**
2
- * @public
3
- * @enum
4
- */
5
- export declare const ActionGroup: {
6
- /**
7
- * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
8
- */
9
- readonly AGENT_PERMISSIONS: "agentPermissions";
10
- };
11
- /**
12
- * @public
13
- */
14
- export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
15
- /**
16
- * @public
17
- * @enum
18
- */
19
- export declare const EventPublisher: {
20
- /**
21
- * Notifications for Anomaly Detection
22
- */
23
- readonly ANOMALY_DETECTION: "AnomalyDetection";
24
- };
25
- /**
26
- * @public
27
- */
28
- export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher];
1
+ import { ActionGroup, AgentParameterField, AggregationPeriod, ComputePlatform, EventPublisher, FeedbackType, MetadataField, MetricType, OrderBy } from "./enums";
29
2
  /**
30
3
  * <p>Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.</p>
31
4
  * @public
@@ -87,36 +60,6 @@ export interface AddNotificationChannelsResponse {
87
60
  */
88
61
  notificationConfiguration?: NotificationConfiguration | undefined;
89
62
  }
90
- /**
91
- * @public
92
- * @enum
93
- */
94
- export declare const AgentParameterField: {
95
- /**
96
- * Maximum stack depth to be captured by the CodeGuru Profiler.
97
- */
98
- readonly MAX_STACK_DEPTH: "MaxStackDepth";
99
- /**
100
- * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
101
- */
102
- readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
103
- /**
104
- * Minimum time in milliseconds between sending reports.
105
- */
106
- readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
107
- /**
108
- * Reporting interval in milliseconds used to report profiles.
109
- */
110
- readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
111
- /**
112
- * Sampling interval in milliseconds used to sample profiles.
113
- */
114
- readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
115
- };
116
- /**
117
- * @public
118
- */
119
- export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField];
120
63
  /**
121
64
  * <p>
122
65
  * The response of <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
@@ -211,28 +154,6 @@ export interface AgentOrchestrationConfig {
211
154
  */
212
155
  profilingEnabled: boolean | undefined;
213
156
  }
214
- /**
215
- * @public
216
- * @enum
217
- */
218
- export declare const AggregationPeriod: {
219
- /**
220
- * Period of one day.
221
- */
222
- readonly P1D: "P1D";
223
- /**
224
- * Period of one hour.
225
- */
226
- readonly PT1H: "PT1H";
227
- /**
228
- * Period of five minutes.
229
- */
230
- readonly PT5M: "PT5M";
231
- };
232
- /**
233
- * @public
234
- */
235
- export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
236
157
  /**
237
158
  * <p>
238
159
  * Specifies the aggregation period and aggregation start time for
@@ -284,24 +205,6 @@ export interface AggregatedProfileTime {
284
205
  */
285
206
  period?: AggregationPeriod | undefined;
286
207
  }
287
- /**
288
- * @public
289
- * @enum
290
- */
291
- export declare const FeedbackType: {
292
- /**
293
- * Profiler recommendation flagged as not useful.
294
- */
295
- readonly Negative: "Negative";
296
- /**
297
- * Profiler recommendation flagged as useful.
298
- */
299
- readonly Positive: "Positive";
300
- };
301
- /**
302
- * @public
303
- */
304
- export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
305
208
  /**
306
209
  * <p>Feedback that can be submitted for each instance of an anomaly by the user.
307
210
  * Feedback is be used for improvements in generating recommendations for the application.</p>
@@ -353,20 +256,6 @@ export interface AnomalyInstance {
353
256
  */
354
257
  userFeedback?: UserFeedback | undefined;
355
258
  }
356
- /**
357
- * @public
358
- * @enum
359
- */
360
- export declare const MetricType: {
361
- /**
362
- * Metric value aggregated for all instances of a frame name in a profile relative to the root frame.
363
- */
364
- readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
365
- };
366
- /**
367
- * @public
368
- */
369
- export type MetricType = (typeof MetricType)[keyof typeof MetricType];
370
259
  /**
371
260
  * <p>
372
261
  * Details about the metric that the analysis used when it detected the anomaly.
@@ -772,52 +661,6 @@ export interface ListTagsForResourceResponse {
772
661
  */
773
662
  tags?: Record<string, string> | undefined;
774
663
  }
775
- /**
776
- * @public
777
- * @enum
778
- */
779
- export declare const MetadataField: {
780
- /**
781
- * Unique identifier for the agent instance.
782
- */
783
- readonly AGENT_ID: "AgentId";
784
- /**
785
- * AWS requestId of the Lambda invocation.
786
- */
787
- readonly AWS_REQUEST_ID: "AwsRequestId";
788
- /**
789
- * Compute platform on which agent is running.
790
- */
791
- readonly COMPUTE_PLATFORM: "ComputePlatform";
792
- /**
793
- * Execution environment on which Lambda function is running.
794
- */
795
- readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
796
- /**
797
- * Function ARN that's used to invoke the Lambda function.
798
- */
799
- readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
800
- /**
801
- * Memory allocated for the Lambda function.
802
- */
803
- readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
804
- /**
805
- * Time in milliseconds for the previous Lambda invocation.
806
- */
807
- readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
808
- /**
809
- * Time in milliseconds left before the execution times out.
810
- */
811
- readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
812
- /**
813
- * Time in milliseconds between two invocations of the Lambda function.
814
- */
815
- readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
816
- };
817
- /**
818
- * @public
819
- */
820
- export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
821
664
  /**
822
665
  * <p>The structure representing the configureAgentRequest.</p>
823
666
  * @public
@@ -907,24 +750,6 @@ export interface ConfigureAgentResponse {
907
750
  */
908
751
  configuration: AgentConfiguration | undefined;
909
752
  }
910
- /**
911
- * @public
912
- * @enum
913
- */
914
- export declare const ComputePlatform: {
915
- /**
916
- * Compute platform meant to used for AWS Lambda.
917
- */
918
- readonly AWSLAMBDA: "AWSLambda";
919
- /**
920
- * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda.
921
- */
922
- readonly DEFAULT: "Default";
923
- };
924
- /**
925
- * @public
926
- */
927
- export type ComputePlatform = (typeof ComputePlatform)[keyof typeof ComputePlatform];
928
753
  /**
929
754
  * <p>The structure representing the createProfiliingGroupRequest.</p>
930
755
  * @public
@@ -1627,24 +1452,6 @@ export interface ListFindingsReportsResponse {
1627
1452
  */
1628
1453
  nextToken?: string | undefined;
1629
1454
  }
1630
- /**
1631
- * @public
1632
- * @enum
1633
- */
1634
- export declare const OrderBy: {
1635
- /**
1636
- * Order by timestamp in ascending order.
1637
- */
1638
- readonly TIMESTAMP_ASCENDING: "TimestampAscending";
1639
- /**
1640
- * Order by timestamp in descending order.
1641
- */
1642
- readonly TIMESTAMP_DESCENDING: "TimestampDescending";
1643
- };
1644
- /**
1645
- * @public
1646
- */
1647
- export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
1648
1455
  /**
1649
1456
  * <p>The structure representing the listProfileTimesRequest.</p>
1650
1457
  * @public
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CodeGuruProfilerExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
+ export * from "./models/enums";
8
9
  export * from "./models/errors";
9
10
  export * from "./models/models_0";
10
11
  export { CodeGuruProfilerServiceException } from "./models/CodeGuruProfilerServiceException";
@@ -0,0 +1,57 @@
1
+ export declare const ActionGroup: {
2
+ readonly AGENT_PERMISSIONS: "agentPermissions";
3
+ };
4
+ export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
5
+ export declare const EventPublisher: {
6
+ readonly ANOMALY_DETECTION: "AnomalyDetection";
7
+ };
8
+ export type EventPublisher =
9
+ (typeof EventPublisher)[keyof typeof EventPublisher];
10
+ export declare const AgentParameterField: {
11
+ readonly MAX_STACK_DEPTH: "MaxStackDepth";
12
+ readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
13
+ readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
14
+ readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
15
+ readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
16
+ };
17
+ export type AgentParameterField =
18
+ (typeof AgentParameterField)[keyof typeof AgentParameterField];
19
+ export declare const AggregationPeriod: {
20
+ readonly P1D: "P1D";
21
+ readonly PT1H: "PT1H";
22
+ readonly PT5M: "PT5M";
23
+ };
24
+ export type AggregationPeriod =
25
+ (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
26
+ export declare const FeedbackType: {
27
+ readonly Negative: "Negative";
28
+ readonly Positive: "Positive";
29
+ };
30
+ export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
31
+ export declare const MetricType: {
32
+ readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
33
+ };
34
+ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
35
+ export declare const MetadataField: {
36
+ readonly AGENT_ID: "AgentId";
37
+ readonly AWS_REQUEST_ID: "AwsRequestId";
38
+ readonly COMPUTE_PLATFORM: "ComputePlatform";
39
+ readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
40
+ readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
41
+ readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
42
+ readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
43
+ readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
44
+ readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
45
+ };
46
+ export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
47
+ export declare const ComputePlatform: {
48
+ readonly AWSLAMBDA: "AWSLambda";
49
+ readonly DEFAULT: "Default";
50
+ };
51
+ export type ComputePlatform =
52
+ (typeof ComputePlatform)[keyof typeof ComputePlatform];
53
+ export declare const OrderBy: {
54
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
55
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
56
+ };
57
+ export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
@@ -1,12 +1,14 @@
1
- export declare const ActionGroup: {
2
- readonly AGENT_PERMISSIONS: "agentPermissions";
3
- };
4
- export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
5
- export declare const EventPublisher: {
6
- readonly ANOMALY_DETECTION: "AnomalyDetection";
7
- };
8
- export type EventPublisher =
9
- (typeof EventPublisher)[keyof typeof EventPublisher];
1
+ import {
2
+ ActionGroup,
3
+ AgentParameterField,
4
+ AggregationPeriod,
5
+ ComputePlatform,
6
+ EventPublisher,
7
+ FeedbackType,
8
+ MetadataField,
9
+ MetricType,
10
+ OrderBy,
11
+ } from "./enums";
10
12
  export interface Channel {
11
13
  id?: string | undefined;
12
14
  uri: string | undefined;
@@ -22,15 +24,6 @@ export interface NotificationConfiguration {
22
24
  export interface AddNotificationChannelsResponse {
23
25
  notificationConfiguration?: NotificationConfiguration | undefined;
24
26
  }
25
- export declare const AgentParameterField: {
26
- readonly MAX_STACK_DEPTH: "MaxStackDepth";
27
- readonly MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent";
28
- readonly MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds";
29
- readonly REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds";
30
- readonly SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds";
31
- };
32
- export type AgentParameterField =
33
- (typeof AgentParameterField)[keyof typeof AgentParameterField];
34
27
  export interface AgentConfiguration {
35
28
  shouldProfile: boolean | undefined;
36
29
  periodInSeconds: number | undefined;
@@ -39,22 +32,10 @@ export interface AgentConfiguration {
39
32
  export interface AgentOrchestrationConfig {
40
33
  profilingEnabled: boolean | undefined;
41
34
  }
42
- export declare const AggregationPeriod: {
43
- readonly P1D: "P1D";
44
- readonly PT1H: "PT1H";
45
- readonly PT5M: "PT5M";
46
- };
47
- export type AggregationPeriod =
48
- (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
49
35
  export interface AggregatedProfileTime {
50
36
  start?: Date | undefined;
51
37
  period?: AggregationPeriod | undefined;
52
38
  }
53
- export declare const FeedbackType: {
54
- readonly Negative: "Negative";
55
- readonly Positive: "Positive";
56
- };
57
- export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
58
39
  export interface UserFeedback {
59
40
  type: FeedbackType | undefined;
60
41
  }
@@ -64,10 +45,6 @@ export interface AnomalyInstance {
64
45
  endTime?: Date | undefined;
65
46
  userFeedback?: UserFeedback | undefined;
66
47
  }
67
- export declare const MetricType: {
68
- readonly AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime";
69
- };
70
- export type MetricType = (typeof MetricType)[keyof typeof MetricType];
71
48
  export interface Metric {
72
49
  frameName: string | undefined;
73
50
  type: MetricType | undefined;
@@ -128,18 +105,6 @@ export interface ListTagsForResourceRequest {
128
105
  export interface ListTagsForResourceResponse {
129
106
  tags?: Record<string, string> | undefined;
130
107
  }
131
- export declare const MetadataField: {
132
- readonly AGENT_ID: "AgentId";
133
- readonly AWS_REQUEST_ID: "AwsRequestId";
134
- readonly COMPUTE_PLATFORM: "ComputePlatform";
135
- readonly EXECUTION_ENVIRONMENT: "ExecutionEnvironment";
136
- readonly LAMBDA_FUNCTION_ARN: "LambdaFunctionArn";
137
- readonly LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB";
138
- readonly LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds";
139
- readonly LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds";
140
- readonly LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds";
141
- };
142
- export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
143
108
  export interface ConfigureAgentRequest {
144
109
  profilingGroupName: string | undefined;
145
110
  fleetInstanceId?: string | undefined;
@@ -148,12 +113,6 @@ export interface ConfigureAgentRequest {
148
113
  export interface ConfigureAgentResponse {
149
114
  configuration: AgentConfiguration | undefined;
150
115
  }
151
- export declare const ComputePlatform: {
152
- readonly AWSLAMBDA: "AWSLambda";
153
- readonly DEFAULT: "Default";
154
- };
155
- export type ComputePlatform =
156
- (typeof ComputePlatform)[keyof typeof ComputePlatform];
157
116
  export interface CreateProfilingGroupRequest {
158
117
  profilingGroupName: string | undefined;
159
118
  computePlatform?: ComputePlatform | undefined;
@@ -262,11 +221,6 @@ export interface ListFindingsReportsResponse {
262
221
  findingsReportSummaries: FindingsReportSummary[] | undefined;
263
222
  nextToken?: string | undefined;
264
223
  }
265
- export declare const OrderBy: {
266
- readonly TIMESTAMP_ASCENDING: "TimestampAscending";
267
- readonly TIMESTAMP_DESCENDING: "TimestampDescending";
268
- };
269
- export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
270
224
  export interface ListProfileTimesRequest {
271
225
  profilingGroupName: string | undefined;
272
226
  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.936.0",
4
+ "version": "3.939.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguruprofiler",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.936.0",
24
- "@aws-sdk/credential-provider-node": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.939.0",
25
25
  "@aws-sdk/middleware-host-header": "3.936.0",
26
26
  "@aws-sdk/middleware-logger": "3.936.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.936.0",