@aws-sdk/client-codeguruprofiler 3.428.0 → 3.429.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.
@@ -47,7 +47,7 @@ export interface Channel {
47
47
  * @public
48
48
  * <p>List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.</p>
49
49
  */
50
- eventPublishers: (EventPublisher | string)[] | undefined;
50
+ eventPublishers: EventPublisher[] | undefined;
51
51
  }
52
52
  /**
53
53
  * @public
@@ -272,7 +272,7 @@ export interface AgentConfiguration {
272
272
  * </li>
273
273
  * </ul>
274
274
  */
275
- agentParameters?: Record<string, string>;
275
+ agentParameters?: Record<AgentParameterField, string>;
276
276
  }
277
277
  /**
278
278
  * @public
@@ -365,7 +365,7 @@ export interface AggregatedProfileTime {
365
365
  * </li>
366
366
  * </ul>
367
367
  */
368
- period?: AggregationPeriod | string;
368
+ period?: AggregationPeriod;
369
369
  }
370
370
  /**
371
371
  * @public
@@ -396,7 +396,7 @@ export interface UserFeedback {
396
396
  * <p>Optional <code>Positive</code> or <code>Negative</code> feedback submitted by
397
397
  * the user about whether the recommendation is useful or not.</p>
398
398
  */
399
- type: FeedbackType | string | undefined;
399
+ type: FeedbackType | undefined;
400
400
  }
401
401
  /**
402
402
  * @public
@@ -475,7 +475,7 @@ export interface Metric {
475
475
  * aggregation of the metric value for one frame that is calculated across the
476
476
  * occurences of all frames in a profile.</p>
477
477
  */
478
- type: MetricType | string | undefined;
478
+ type: MetricType | undefined;
479
479
  /**
480
480
  * @public
481
481
  * <p>
@@ -534,7 +534,7 @@ export interface FrameMetric {
534
534
  * supported value <code>AggregatedRelativeTotalTime</code> is an aggregation of the metric
535
535
  * value for one frame that is calculated across the occurrences of all frames in a profile. </p>
536
536
  */
537
- type: MetricType | string | undefined;
537
+ type: MetricType | undefined;
538
538
  /**
539
539
  * @public
540
540
  * <p>List of application runtime thread states used to get the counts for a frame a derive a metric value.</p>
@@ -608,7 +608,7 @@ export interface BatchGetFrameMetricDataRequest {
608
608
  * </li>
609
609
  * </ul>
610
610
  */
611
- targetResolution?: AggregationPeriod | string;
611
+ targetResolution?: AggregationPeriod;
612
612
  /**
613
613
  * @public
614
614
  * <p>
@@ -707,7 +707,7 @@ export interface BatchGetFrameMetricDataResponse {
707
707
  * </li>
708
708
  * </ul>
709
709
  */
710
- resolution: AggregationPeriod | string | undefined;
710
+ resolution: AggregationPeriod | undefined;
711
711
  /**
712
712
  * @public
713
713
  * <p>
@@ -972,7 +972,7 @@ export interface ConfigureAgentRequest {
972
972
  * </li>
973
973
  * </ul>
974
974
  */
975
- metadata?: Record<string, string>;
975
+ metadata?: Record<MetadataField, string>;
976
976
  }
977
977
  /**
978
978
  * @public
@@ -1027,7 +1027,7 @@ export interface CreateProfilingGroupRequest {
1027
1027
  * If not specified, <code>Default</code> is used.
1028
1028
  * </p>
1029
1029
  */
1030
- computePlatform?: ComputePlatform | string;
1030
+ computePlatform?: ComputePlatform;
1031
1031
  /**
1032
1032
  * @public
1033
1033
  * <p> Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the
@@ -1148,7 +1148,7 @@ export interface ProfilingGroupDescription {
1148
1148
  * an on-premises server, or a different platform. The default is <code>Default</code>.
1149
1149
  * </p>
1150
1150
  */
1151
- computePlatform?: ComputePlatform | string;
1151
+ computePlatform?: ComputePlatform;
1152
1152
  /**
1153
1153
  * @public
1154
1154
  * <p>
@@ -1772,14 +1772,14 @@ export interface ListProfileTimesRequest {
1772
1772
  * </li>
1773
1773
  * </ul>
1774
1774
  */
1775
- period: AggregationPeriod | string | undefined;
1775
+ period: AggregationPeriod | undefined;
1776
1776
  /**
1777
1777
  * @public
1778
1778
  * <p>The order (ascending or descending by start time of the profile) to
1779
1779
  * use when listing profiles. Defaults to <code>TIMESTAMP_DESCENDING</code>.
1780
1780
  * </p>
1781
1781
  */
1782
- orderBy?: OrderBy | string;
1782
+ orderBy?: OrderBy;
1783
1783
  /**
1784
1784
  * @public
1785
1785
  * <p>The maximum number of profile time results returned by <code>ListProfileTimes</code>
@@ -1999,7 +1999,7 @@ export interface PutPermissionRequest {
1999
1999
  * and <code>PostAgentProfile</code> permissions.
2000
2000
  * </p>
2001
2001
  */
2002
- actionGroup: ActionGroup | string | undefined;
2002
+ actionGroup: ActionGroup | undefined;
2003
2003
  /**
2004
2004
  * @public
2005
2005
  * <p>
@@ -2087,7 +2087,7 @@ export interface RemovePermissionRequest {
2087
2087
  * grants <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions.
2088
2088
  * </p>
2089
2089
  */
2090
- actionGroup: ActionGroup | string | undefined;
2090
+ actionGroup: ActionGroup | undefined;
2091
2091
  /**
2092
2092
  * @public
2093
2093
  * <p>
@@ -2143,7 +2143,7 @@ export interface SubmitFeedbackRequest {
2143
2143
  * The feedback tpye. Thee are two valid values, <code>Positive</code> and <code>Negative</code>.
2144
2144
  * </p>
2145
2145
  */
2146
- type: FeedbackType | string | undefined;
2146
+ type: FeedbackType | undefined;
2147
2147
  /**
2148
2148
  * @public
2149
2149
  * <p>Optional feedback about this anomaly.</p>
@@ -12,7 +12,7 @@ export type EventPublisher =
12
12
  export interface Channel {
13
13
  id?: string;
14
14
  uri: string | undefined;
15
- eventPublishers: (EventPublisher | string)[] | undefined;
15
+ eventPublishers: EventPublisher[] | undefined;
16
16
  }
17
17
  export interface AddNotificationChannelsRequest {
18
18
  profilingGroupName: string | undefined;
@@ -79,7 +79,7 @@ export type AgentParameterField =
79
79
  export interface AgentConfiguration {
80
80
  shouldProfile: boolean | undefined;
81
81
  periodInSeconds: number | undefined;
82
- agentParameters?: Record<string, string>;
82
+ agentParameters?: Record<AgentParameterField, string>;
83
83
  }
84
84
  export interface AgentOrchestrationConfig {
85
85
  profilingEnabled: boolean | undefined;
@@ -93,7 +93,7 @@ export type AggregationPeriod =
93
93
  (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
94
94
  export interface AggregatedProfileTime {
95
95
  start?: Date;
96
- period?: AggregationPeriod | string;
96
+ period?: AggregationPeriod;
97
97
  }
98
98
  export declare const FeedbackType: {
99
99
  readonly Negative: "Negative";
@@ -101,7 +101,7 @@ export declare const FeedbackType: {
101
101
  };
102
102
  export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
103
103
  export interface UserFeedback {
104
- type: FeedbackType | string | undefined;
104
+ type: FeedbackType | undefined;
105
105
  }
106
106
  export interface AnomalyInstance {
107
107
  id: string | undefined;
@@ -115,7 +115,7 @@ export declare const MetricType: {
115
115
  export type MetricType = (typeof MetricType)[keyof typeof MetricType];
116
116
  export interface Metric {
117
117
  frameName: string | undefined;
118
- type: MetricType | string | undefined;
118
+ type: MetricType | undefined;
119
119
  threadStates: string[] | undefined;
120
120
  }
121
121
  export interface Anomaly {
@@ -125,7 +125,7 @@ export interface Anomaly {
125
125
  }
126
126
  export interface FrameMetric {
127
127
  frameName: string | undefined;
128
- type: MetricType | string | undefined;
128
+ type: MetricType | undefined;
129
129
  threadStates: string[] | undefined;
130
130
  }
131
131
  export interface BatchGetFrameMetricDataRequest {
@@ -133,7 +133,7 @@ export interface BatchGetFrameMetricDataRequest {
133
133
  startTime?: Date;
134
134
  endTime?: Date;
135
135
  period?: string;
136
- targetResolution?: AggregationPeriod | string;
136
+ targetResolution?: AggregationPeriod;
137
137
  frameMetrics?: FrameMetric[];
138
138
  }
139
139
  export interface TimestampStructure {
@@ -146,7 +146,7 @@ export interface FrameMetricDatum {
146
146
  export interface BatchGetFrameMetricDataResponse {
147
147
  startTime: Date | undefined;
148
148
  endTime: Date | undefined;
149
- resolution: AggregationPeriod | string | undefined;
149
+ resolution: AggregationPeriod | undefined;
150
150
  endTimes: TimestampStructure[] | undefined;
151
151
  unprocessedEndTimes: Record<string, TimestampStructure[]> | undefined;
152
152
  frameMetricData: FrameMetricDatum[] | undefined;
@@ -188,7 +188,7 @@ export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
188
188
  export interface ConfigureAgentRequest {
189
189
  profilingGroupName: string | undefined;
190
190
  fleetInstanceId?: string;
191
- metadata?: Record<string, string>;
191
+ metadata?: Record<MetadataField, string>;
192
192
  }
193
193
  export interface ConfigureAgentResponse {
194
194
  configuration: AgentConfiguration | undefined;
@@ -201,7 +201,7 @@ export type ComputePlatform =
201
201
  (typeof ComputePlatform)[keyof typeof ComputePlatform];
202
202
  export interface CreateProfilingGroupRequest {
203
203
  profilingGroupName: string | undefined;
204
- computePlatform?: ComputePlatform | string;
204
+ computePlatform?: ComputePlatform;
205
205
  clientToken?: string;
206
206
  agentOrchestrationConfig?: AgentOrchestrationConfig;
207
207
  tags?: Record<string, string>;
@@ -218,7 +218,7 @@ export interface ProfilingGroupDescription {
218
218
  createdAt?: Date;
219
219
  updatedAt?: Date;
220
220
  profilingStatus?: ProfilingStatus;
221
- computePlatform?: ComputePlatform | string;
221
+ computePlatform?: ComputePlatform;
222
222
  tags?: Record<string, string>;
223
223
  }
224
224
  export interface CreateProfilingGroupResponse {
@@ -316,8 +316,8 @@ export interface ListProfileTimesRequest {
316
316
  profilingGroupName: string | undefined;
317
317
  startTime: Date | undefined;
318
318
  endTime: Date | undefined;
319
- period: AggregationPeriod | string | undefined;
320
- orderBy?: OrderBy | string;
319
+ period: AggregationPeriod | undefined;
320
+ orderBy?: OrderBy;
321
321
  maxResults?: number;
322
322
  nextToken?: string;
323
323
  }
@@ -347,7 +347,7 @@ export interface PostAgentProfileRequest {
347
347
  export interface PostAgentProfileResponse {}
348
348
  export interface PutPermissionRequest {
349
349
  profilingGroupName: string | undefined;
350
- actionGroup: ActionGroup | string | undefined;
350
+ actionGroup: ActionGroup | undefined;
351
351
  principals: string[] | undefined;
352
352
  revisionId?: string;
353
353
  }
@@ -364,7 +364,7 @@ export interface RemoveNotificationChannelResponse {
364
364
  }
365
365
  export interface RemovePermissionRequest {
366
366
  profilingGroupName: string | undefined;
367
- actionGroup: ActionGroup | string | undefined;
367
+ actionGroup: ActionGroup | undefined;
368
368
  revisionId: string | undefined;
369
369
  }
370
370
  export interface RemovePermissionResponse {
@@ -374,7 +374,7 @@ export interface RemovePermissionResponse {
374
374
  export interface SubmitFeedbackRequest {
375
375
  profilingGroupName: string | undefined;
376
376
  anomalyInstanceId: string | undefined;
377
- type: FeedbackType | string | undefined;
377
+ type: FeedbackType | undefined;
378
378
  comment?: string;
379
379
  }
380
380
  export interface SubmitFeedbackResponse {}
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.428.0",
4
+ "version": "3.429.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.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",