1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5type AgentParameterField string
6
7// Enum values for AgentParameterField
8const (
9	// Sampling interval in milliseconds used to sample profiles.
10	AgentParameterFieldSamplingIntervalInMilliseconds AgentParameterField = "SamplingIntervalInMilliseconds"
11	// Reporting interval in milliseconds used to report profiles.
12	AgentParameterFieldReportingIntervalInMilliseconds AgentParameterField = "ReportingIntervalInMilliseconds"
13	// Minimum time in milliseconds between sending reports.
14	AgentParameterFieldMinimumTimeForReportingInMilliseconds AgentParameterField = "MinimumTimeForReportingInMilliseconds"
15	// Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is
16	// required for the agent.
17	AgentParameterFieldMemoryUsageLimitPercent AgentParameterField = "MemoryUsageLimitPercent"
18	// Maximum stack depth to be captured by the CodeGuru Profiler.
19	AgentParameterFieldMaxStackDepth AgentParameterField = "MaxStackDepth"
20)
21
22// Values returns all known values for AgentParameterField. Note that this can be
23// expanded in the future, and so it is only as up to date as the client. The
24// ordering of this slice is not guaranteed to be stable across updates.
25func (AgentParameterField) Values() []AgentParameterField {
26	return []AgentParameterField{
27		"SamplingIntervalInMilliseconds",
28		"ReportingIntervalInMilliseconds",
29		"MinimumTimeForReportingInMilliseconds",
30		"MemoryUsageLimitPercent",
31		"MaxStackDepth",
32	}
33}
34
35type AggregationPeriod string
36
37// Enum values for AggregationPeriod
38const (
39	// Period of five minutes.
40	AggregationPeriodPt5m AggregationPeriod = "PT5M"
41	// Period of one hour.
42	AggregationPeriodPt1h AggregationPeriod = "PT1H"
43	// Period of one day.
44	AggregationPeriodP1d AggregationPeriod = "P1D"
45)
46
47// Values returns all known values for AggregationPeriod. Note that this can be
48// expanded in the future, and so it is only as up to date as the client. The
49// ordering of this slice is not guaranteed to be stable across updates.
50func (AggregationPeriod) Values() []AggregationPeriod {
51	return []AggregationPeriod{
52		"PT5M",
53		"PT1H",
54		"P1D",
55	}
56}
57
58type ComputePlatform string
59
60// Enum values for ComputePlatform
61const (
62	// Compute platform meant to used for all usecases (like EC2, Fargate, physical
63	// servers etc.) but AWS Lambda.
64	ComputePlatformDefault ComputePlatform = "Default"
65	// Compute platform meant to used for AWS Lambda.
66	ComputePlatformAwslambda ComputePlatform = "AWSLambda"
67)
68
69// Values returns all known values for ComputePlatform. Note that this can be
70// expanded in the future, and so it is only as up to date as the client. The
71// ordering of this slice is not guaranteed to be stable across updates.
72func (ComputePlatform) Values() []ComputePlatform {
73	return []ComputePlatform{
74		"Default",
75		"AWSLambda",
76	}
77}
78
79type MetricType string
80
81// Enum values for MetricType
82const (
83	// Metric value aggregated for all instances of a frame name in a profile relative
84	// to the root frame.
85	MetricTypeAggregatedRelativeTotalTime MetricType = "AGGREGATED_RELATIVE_TOTAL_TIME"
86)
87
88// Values returns all known values for MetricType. Note that this can be expanded
89// in the future, and so it is only as up to date as the client. The ordering of
90// this slice is not guaranteed to be stable across updates.
91func (MetricType) Values() []MetricType {
92	return []MetricType{
93		"AGGREGATED_RELATIVE_TOTAL_TIME",
94	}
95}
96
97type OrderBy string
98
99// Enum values for OrderBy
100const (
101	// Order by timestamp in descending order.
102	OrderByTimestampDescending OrderBy = "TimestampDescending"
103	// Order by timestamp in ascending order.
104	OrderByTimestampAscending OrderBy = "TimestampAscending"
105)
106
107// Values returns all known values for OrderBy. Note that this can be expanded in
108// the future, and so it is only as up to date as the client. The ordering of this
109// slice is not guaranteed to be stable across updates.
110func (OrderBy) Values() []OrderBy {
111	return []OrderBy{
112		"TimestampDescending",
113		"TimestampAscending",
114	}
115}
116
117type MetadataField string
118
119// Enum values for MetadataField
120const (
121	// Compute platform on which agent is running.
122	MetadataFieldComputePlatform MetadataField = "ComputePlatform"
123	// Unique identifier for the agent instance.
124	MetadataFieldAgentId MetadataField = "AgentId"
125	// AWS requestId of the Lambda invocation.
126	MetadataFieldAwsRequestId MetadataField = "AwsRequestId"
127	// Execution environment on which Lambda function is running.
128	MetadataFieldExecutionEnvironment MetadataField = "ExecutionEnvironment"
129	// Function ARN that's used to invoke the Lambda function.
130	MetadataFieldLambdaFunctionArn MetadataField = "LambdaFunctionArn"
131	// Memory allocated for the Lambda function.
132	MetadataFieldLambdaMemoryLimitInMb MetadataField = "LambdaMemoryLimitInMB"
133	// Time in milliseconds left before the execution times out.
134	MetadataFieldLambdaRemainingTimeInMilliseconds MetadataField = "LambdaRemainingTimeInMilliseconds"
135	// Time in milliseconds between two invocations of the Lambda function.
136	MetadataFieldLambdaTimeGapBetweenInvokesInMilliseconds MetadataField = "LambdaTimeGapBetweenInvokesInMilliseconds"
137	// Time in milliseconds for the previous Lambda invocation.
138	MetadataFieldLambdaPreviousExecutionTimeInMilliseconds MetadataField = "LambdaPreviousExecutionTimeInMilliseconds"
139)
140
141// Values returns all known values for MetadataField. Note that this can be
142// expanded in the future, and so it is only as up to date as the client. The
143// ordering of this slice is not guaranteed to be stable across updates.
144func (MetadataField) Values() []MetadataField {
145	return []MetadataField{
146		"ComputePlatform",
147		"AgentId",
148		"AwsRequestId",
149		"ExecutionEnvironment",
150		"LambdaFunctionArn",
151		"LambdaMemoryLimitInMB",
152		"LambdaRemainingTimeInMilliseconds",
153		"LambdaTimeGapBetweenInvokesInMilliseconds",
154		"LambdaPreviousExecutionTimeInMilliseconds",
155	}
156}
157
158type ActionGroup string
159
160// Enum values for ActionGroup
161const (
162	// Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
163	ActionGroupAgentPermissions ActionGroup = "agentPermissions"
164)
165
166// Values returns all known values for ActionGroup. Note that this can be expanded
167// in the future, and so it is only as up to date as the client. The ordering of
168// this slice is not guaranteed to be stable across updates.
169func (ActionGroup) Values() []ActionGroup {
170	return []ActionGroup{
171		"agentPermissions",
172	}
173}
174