capo-codeguruprofiler 0.1.0__py3-none-any.whl

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.
Files changed (180) hide show
  1. capo_codeguruprofiler/__init__.py +74 -0
  2. capo_codeguruprofiler/_async.py +25 -0
  3. capo_codeguruprofiler/_auth/_identity.py +16 -0
  4. capo_codeguruprofiler/_auth/_providers.py +886 -0
  5. capo_codeguruprofiler/_auth/_signers.py +88 -0
  6. capo_codeguruprofiler/_auth/_sigv4.py +434 -0
  7. capo_codeguruprofiler/_auth/_zapros_handler.py +80 -0
  8. capo_codeguruprofiler/_iter.py +113 -0
  9. capo_codeguruprofiler/_operations/code_guru_profiler/add_notification_channels.py +185 -0
  10. capo_codeguruprofiler/_operations/code_guru_profiler/batch_get_frame_metric_data.py +202 -0
  11. capo_codeguruprofiler/_operations/code_guru_profiler/configure_agent.py +177 -0
  12. capo_codeguruprofiler/_operations/code_guru_profiler/create_profiling_group.py +180 -0
  13. capo_codeguruprofiler/_operations/code_guru_profiler/delete_profiling_group.py +165 -0
  14. capo_codeguruprofiler/_operations/code_guru_profiler/describe_profiling_group.py +169 -0
  15. capo_codeguruprofiler/_operations/code_guru_profiler/get_findings_report_account_summary.py +164 -0
  16. capo_codeguruprofiler/_operations/code_guru_profiler/get_notification_configuration.py +168 -0
  17. capo_codeguruprofiler/_operations/code_guru_profiler/get_policy.py +161 -0
  18. capo_codeguruprofiler/_operations/code_guru_profiler/get_profile.py +196 -0
  19. capo_codeguruprofiler/_operations/code_guru_profiler/get_recommendations.py +196 -0
  20. capo_codeguruprofiler/_operations/code_guru_profiler/list_findings_reports.py +197 -0
  21. capo_codeguruprofiler/_operations/code_guru_profiler/list_profile_times.py +196 -0
  22. capo_codeguruprofiler/_operations/code_guru_profiler/list_profiling_groups.py +160 -0
  23. capo_codeguruprofiler/_operations/code_guru_profiler/list_tags_for_resource.py +158 -0
  24. capo_codeguruprofiler/_operations/code_guru_profiler/post_agent_profile.py +168 -0
  25. capo_codeguruprofiler/_operations/code_guru_profiler/put_permission.py +182 -0
  26. capo_codeguruprofiler/_operations/code_guru_profiler/remove_notification_channel.py +169 -0
  27. capo_codeguruprofiler/_operations/code_guru_profiler/remove_permission.py +175 -0
  28. capo_codeguruprofiler/_operations/code_guru_profiler/submit_feedback.py +170 -0
  29. capo_codeguruprofiler/_operations/code_guru_profiler/tag_resource.py +158 -0
  30. capo_codeguruprofiler/_operations/code_guru_profiler/untag_resource.py +156 -0
  31. capo_codeguruprofiler/_operations/code_guru_profiler/update_profiling_group.py +181 -0
  32. capo_codeguruprofiler/_pagination.py +21 -0
  33. capo_codeguruprofiler/_protocol/__init__.py +1 -0
  34. capo_codeguruprofiler/_protocol/errors.py +93 -0
  35. capo_codeguruprofiler/_protocol/eventstream.py +238 -0
  36. capo_codeguruprofiler/_protocol/serialize.py +47 -0
  37. capo_codeguruprofiler/_protocol/xml.py +33 -0
  38. capo_codeguruprofiler/_resources/code_guru_profiler/profiling_group.py +2257 -0
  39. capo_codeguruprofiler/_rule_engine/__init__.py +0 -0
  40. capo_codeguruprofiler/_rule_engine/_aws_partition.py +160 -0
  41. capo_codeguruprofiler/_rule_engine/_endpoint_rule_set.py +138 -0
  42. capo_codeguruprofiler/_rule_engine/_endpoint_runtime.py +389 -0
  43. capo_codeguruprofiler/_services/_aws_config.py +160 -0
  44. capo_codeguruprofiler/_services/_pipeline.py +198 -0
  45. capo_codeguruprofiler/_services/async_code_guru_profiler.py +377 -0
  46. capo_codeguruprofiler/_services/code_guru_profiler.py +373 -0
  47. capo_codeguruprofiler/errors/__init__.py +35 -0
  48. capo_codeguruprofiler/errors/_base.py +94 -0
  49. capo_codeguruprofiler/errors/conflict_exception.py +45 -0
  50. capo_codeguruprofiler/errors/internal_server_exception.py +47 -0
  51. capo_codeguruprofiler/errors/resource_not_found_exception.py +47 -0
  52. capo_codeguruprofiler/errors/service_quota_exceeded_exception.py +49 -0
  53. capo_codeguruprofiler/errors/throttling_exception.py +45 -0
  54. capo_codeguruprofiler/errors/validation_exception.py +45 -0
  55. capo_codeguruprofiler/py.typed +0 -0
  56. capo_codeguruprofiler/types/_prelude/blob.py +12 -0
  57. capo_codeguruprofiler/types/_prelude/timestamp.py +17 -0
  58. capo_codeguruprofiler/types/action_group.py +5 -0
  59. capo_codeguruprofiler/types/add_notification_channels_request.py +44 -0
  60. capo_codeguruprofiler/types/add_notification_channels_response.py +42 -0
  61. capo_codeguruprofiler/types/agent_configuration.py +58 -0
  62. capo_codeguruprofiler/types/agent_orchestration_config.py +28 -0
  63. capo_codeguruprofiler/types/agent_parameter_field.py +5 -0
  64. capo_codeguruprofiler/types/agent_parameters.py +27 -0
  65. capo_codeguruprofiler/types/agent_profile.py +15 -0
  66. capo_codeguruprofiler/types/aggregated_profile.py +15 -0
  67. capo_codeguruprofiler/types/aggregated_profile_time.py +45 -0
  68. capo_codeguruprofiler/types/aggregation_period.py +5 -0
  69. capo_codeguruprofiler/types/anomalies.py +29 -0
  70. capo_codeguruprofiler/types/anomaly.py +62 -0
  71. capo_codeguruprofiler/types/anomaly_instance.py +77 -0
  72. capo_codeguruprofiler/types/anomaly_instance_id.py +5 -0
  73. capo_codeguruprofiler/types/anomaly_instances.py +31 -0
  74. capo_codeguruprofiler/types/batch_get_frame_metric_data_request.py +56 -0
  75. capo_codeguruprofiler/types/batch_get_frame_metric_data_response.py +130 -0
  76. capo_codeguruprofiler/types/channel.py +58 -0
  77. capo_codeguruprofiler/types/channel_id.py +5 -0
  78. capo_codeguruprofiler/types/channel_uri.py +6 -0
  79. capo_codeguruprofiler/types/channels.py +29 -0
  80. capo_codeguruprofiler/types/client_token.py +5 -0
  81. capo_codeguruprofiler/types/compute_platform.py +5 -0
  82. capo_codeguruprofiler/types/configure_agent_request.py +50 -0
  83. capo_codeguruprofiler/types/configure_agent_response.py +43 -0
  84. capo_codeguruprofiler/types/create_profiling_group_request.py +81 -0
  85. capo_codeguruprofiler/types/create_profiling_group_response.py +45 -0
  86. capo_codeguruprofiler/types/delete_profiling_group_request.py +26 -0
  87. capo_codeguruprofiler/types/delete_profiling_group_response.py +18 -0
  88. capo_codeguruprofiler/types/describe_profiling_group_request.py +26 -0
  89. capo_codeguruprofiler/types/describe_profiling_group_response.py +45 -0
  90. capo_codeguruprofiler/types/event_publisher.py +5 -0
  91. capo_codeguruprofiler/types/event_publishers.py +19 -0
  92. capo_codeguruprofiler/types/feedback_type.py +5 -0
  93. capo_codeguruprofiler/types/findings_report_id.py +5 -0
  94. capo_codeguruprofiler/types/findings_report_summaries.py +35 -0
  95. capo_codeguruprofiler/types/findings_report_summary.py +73 -0
  96. capo_codeguruprofiler/types/fleet_instance_id.py +5 -0
  97. capo_codeguruprofiler/types/frame_metric.py +56 -0
  98. capo_codeguruprofiler/types/frame_metric_data.py +33 -0
  99. capo_codeguruprofiler/types/frame_metric_datum.py +56 -0
  100. capo_codeguruprofiler/types/frame_metric_value.py +5 -0
  101. capo_codeguruprofiler/types/frame_metric_values.py +30 -0
  102. capo_codeguruprofiler/types/frame_metrics.py +29 -0
  103. capo_codeguruprofiler/types/get_findings_report_account_summary_request.py +31 -0
  104. capo_codeguruprofiler/types/get_findings_report_account_summary_response.py +56 -0
  105. capo_codeguruprofiler/types/get_notification_configuration_request.py +26 -0
  106. capo_codeguruprofiler/types/get_notification_configuration_response.py +45 -0
  107. capo_codeguruprofiler/types/get_policy_request.py +26 -0
  108. capo_codeguruprofiler/types/get_policy_response.py +38 -0
  109. capo_codeguruprofiler/types/get_profile_request.py +39 -0
  110. capo_codeguruprofiler/types/get_profile_response.py +45 -0
  111. capo_codeguruprofiler/types/get_recommendations_request.py +34 -0
  112. capo_codeguruprofiler/types/get_recommendations_response.py +110 -0
  113. capo_codeguruprofiler/types/list_findings_reports_request.py +41 -0
  114. capo_codeguruprofiler/types/list_findings_reports_response.py +56 -0
  115. capo_codeguruprofiler/types/list_of_timestamps.py +33 -0
  116. capo_codeguruprofiler/types/list_profile_times_request.py +45 -0
  117. capo_codeguruprofiler/types/list_profile_times_response.py +50 -0
  118. capo_codeguruprofiler/types/list_profiling_groups_request.py +31 -0
  119. capo_codeguruprofiler/types/list_profiling_groups_response.py +77 -0
  120. capo_codeguruprofiler/types/list_tags_for_resource_request.py +24 -0
  121. capo_codeguruprofiler/types/list_tags_for_resource_response.py +34 -0
  122. capo_codeguruprofiler/types/locale.py +6 -0
  123. capo_codeguruprofiler/types/match.py +43 -0
  124. capo_codeguruprofiler/types/matches.py +29 -0
  125. capo_codeguruprofiler/types/max_depth.py +5 -0
  126. capo_codeguruprofiler/types/max_results.py +5 -0
  127. capo_codeguruprofiler/types/metadata.py +27 -0
  128. capo_codeguruprofiler/types/metadata_field.py +5 -0
  129. capo_codeguruprofiler/types/metric.py +54 -0
  130. capo_codeguruprofiler/types/metric_type.py +5 -0
  131. capo_codeguruprofiler/types/notification_configuration.py +36 -0
  132. capo_codeguruprofiler/types/order_by.py +5 -0
  133. capo_codeguruprofiler/types/pagination_token.py +5 -0
  134. capo_codeguruprofiler/types/pattern.py +95 -0
  135. capo_codeguruprofiler/types/percentage.py +5 -0
  136. capo_codeguruprofiler/types/period.py +5 -0
  137. capo_codeguruprofiler/types/post_agent_profile_request.py +51 -0
  138. capo_codeguruprofiler/types/post_agent_profile_response.py +18 -0
  139. capo_codeguruprofiler/types/principal.py +5 -0
  140. capo_codeguruprofiler/types/principals.py +17 -0
  141. capo_codeguruprofiler/types/profile_time.py +36 -0
  142. capo_codeguruprofiler/types/profile_times.py +29 -0
  143. capo_codeguruprofiler/types/profiling_group_arn.py +5 -0
  144. capo_codeguruprofiler/types/profiling_group_description.py +132 -0
  145. capo_codeguruprofiler/types/profiling_group_descriptions.py +37 -0
  146. capo_codeguruprofiler/types/profiling_group_name.py +5 -0
  147. capo_codeguruprofiler/types/profiling_group_names.py +19 -0
  148. capo_codeguruprofiler/types/profiling_status.py +83 -0
  149. capo_codeguruprofiler/types/put_permission_request.py +54 -0
  150. capo_codeguruprofiler/types/put_permission_response.py +38 -0
  151. capo_codeguruprofiler/types/recommendation.py +108 -0
  152. capo_codeguruprofiler/types/recommendations.py +31 -0
  153. capo_codeguruprofiler/types/remove_notification_channel_request.py +29 -0
  154. capo_codeguruprofiler/types/remove_notification_channel_response.py +42 -0
  155. capo_codeguruprofiler/types/remove_permission_request.py +32 -0
  156. capo_codeguruprofiler/types/remove_permission_response.py +38 -0
  157. capo_codeguruprofiler/types/revision_id.py +5 -0
  158. capo_codeguruprofiler/types/strings.py +14 -0
  159. capo_codeguruprofiler/types/submit_feedback_request.py +47 -0
  160. capo_codeguruprofiler/types/submit_feedback_response.py +18 -0
  161. capo_codeguruprofiler/types/tag_keys.py +14 -0
  162. capo_codeguruprofiler/types/tag_resource_request.py +40 -0
  163. capo_codeguruprofiler/types/tag_resource_response.py +18 -0
  164. capo_codeguruprofiler/types/tags_map.py +22 -0
  165. capo_codeguruprofiler/types/target_frame.py +14 -0
  166. capo_codeguruprofiler/types/target_frames.py +29 -0
  167. capo_codeguruprofiler/types/thread_states.py +14 -0
  168. capo_codeguruprofiler/types/timestamp.py +20 -0
  169. capo_codeguruprofiler/types/timestamp_structure.py +37 -0
  170. capo_codeguruprofiler/types/unprocessed_end_time_map.py +33 -0
  171. capo_codeguruprofiler/types/untag_resource_request.py +27 -0
  172. capo_codeguruprofiler/types/untag_resource_response.py +18 -0
  173. capo_codeguruprofiler/types/update_profiling_group_request.py +50 -0
  174. capo_codeguruprofiler/types/update_profiling_group_response.py +45 -0
  175. capo_codeguruprofiler/types/user_feedback.py +31 -0
  176. capo_codeguruprofiler-0.1.0.dist-info/METADATA +101 -0
  177. capo_codeguruprofiler-0.1.0.dist-info/RECORD +180 -0
  178. capo_codeguruprofiler-0.1.0.dist-info/WHEEL +5 -0
  179. capo_codeguruprofiler-0.1.0.dist-info/licenses/LICENSE +21 -0
  180. capo_codeguruprofiler-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,39 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#GetProfileRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.max_depth
9
+ import capo_codeguruprofiler.types.period
10
+ import capo_codeguruprofiler.types.profiling_group_name
11
+ import capo_codeguruprofiler.types.timestamp
12
+
13
+
14
+ class GetProfileRequest(TypedDict, closed=True):
15
+ profiling_group_name: (
16
+ "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
17
+ )
18
+ """<p>The name of the profiling group to get.</p>"""
19
+ start_time: NotRequired["capo_codeguruprofiler.types.timestamp.Timestamp"]
20
+ """<p>The start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.</p> <p> If you specify <code>startTime</code>, then you must also specify <code>period</code> or <code>endTime</code>, but not both. </p>"""
21
+ period: NotRequired["capo_codeguruprofiler.types.period.Period"]
22
+ """<p> Used with <code>startTime</code> or <code>endTime</code> to specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example, <code>P1DT1H1M1S</code>. </p> <p> To get the latest aggregated profile, specify only <code>period</code>. </p>"""
23
+ end_time: NotRequired["capo_codeguruprofiler.types.timestamp.Timestamp"]
24
+ """<p> The end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p> <p> If you specify <code>endTime</code>, then you must also specify <code>period</code> or <code>startTime</code>, but not both. </p>"""
25
+ max_depth: NotRequired["capo_codeguruprofiler.types.max_depth.MaxDepth"]
26
+ """<p> The maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method <code>A</code>, which calls method <code>B</code>, which calls method <code>C</code>, which calls method <code>D</code>, then the depth is 4. If the <code>maxDepth</code> is set to 2, then the aggregated profile contains representations of methods <code>A</code> and <code>B</code>. </p>"""
27
+ accept: NotRequired["str"]
28
+ r"""<p> The format of the returned profiling data. The format maps to the <code>Accept</code> and <code>Content-Type</code> headers of the HTTP request. You can specify one of the following: or the default . </p> <ul> <li> <p> <code>application/json</code> — standard JSON format </p> </li> <li> <p> <code>application/x-amzn-ion</code> — the Amazon Ion data format. For more information, see <a href=\"http://amzn.github.io/ion-docs/\">Amazon Ion</a>. </p> </li> </ul>"""
29
+
30
+
31
+ # --- restJson1 ser/de ---
32
+ def serialize_json(value: GetProfileRequest) -> dict:
33
+ out: dict = {}
34
+ return out
35
+
36
+
37
+ def deserialize_json(data: dict) -> GetProfileRequest:
38
+ out: GetProfileRequest = {} # type: ignore[typeddict-item]
39
+ return out
@@ -0,0 +1,45 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#GetProfileResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codeguruprofiler.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codeguruprofiler.types.aggregated_profile
11
+
12
+
13
+ class GetProfileResponse(TypedDict, closed=True):
14
+ profile: "capo_codeguruprofiler.types.aggregated_profile.AggregatedProfile"
15
+ """<p>Information about the profile.</p>"""
16
+ content_type: "str"
17
+ """<p>The content type of the profile in the payload. It is either <code>application/json</code> or the default <code>application/x-amzn-ion</code>.</p>"""
18
+ content_encoding: NotRequired["str"]
19
+ """<p>The content encoding of the profile.</p>"""
20
+
21
+
22
+ # --- restJson1 ser/de ---
23
+ def serialize_json(value: GetProfileResponse) -> dict:
24
+ out: dict = {}
25
+ import capo_codeguruprofiler.types.aggregated_profile
26
+
27
+ out["profile"] = capo_codeguruprofiler.types.aggregated_profile.serialize_json(
28
+ value["profile"]
29
+ )
30
+ return out
31
+
32
+
33
+ def deserialize_json(data: dict) -> GetProfileResponse:
34
+ out: GetProfileResponse = {} # type: ignore[typeddict-item]
35
+ if data.get("profile") is not None:
36
+ import capo_codeguruprofiler.types.aggregated_profile
37
+
38
+ out["profile"] = (
39
+ capo_codeguruprofiler.types.aggregated_profile.deserialize_json(
40
+ data["profile"]
41
+ )
42
+ )
43
+ else:
44
+ raise DeserializationError("GetProfileResponse.profile required")
45
+ return out
@@ -0,0 +1,34 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#GetRecommendationsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.locale
9
+ import capo_codeguruprofiler.types.profiling_group_name
10
+ import capo_codeguruprofiler.types.timestamp
11
+
12
+
13
+ class GetRecommendationsRequest(TypedDict, closed=True):
14
+ profiling_group_name: (
15
+ "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
16
+ )
17
+ """<p> The name of the profiling group to get analysis data about. </p>"""
18
+ start_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
19
+ """<p> The end time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
20
+ end_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
21
+ """<p> The start time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
22
+ locale: NotRequired["capo_codeguruprofiler.types.locale.Locale"]
23
+ """<p> The language used to provide analysis. Specify using a string that is one of the following <code>BCP 47</code> language codes. </p> <ul> <li> <p> <code>de-DE</code> - German, Germany </p> </li> <li> <p> <code>en-GB</code> - English, United Kingdom </p> </li> <li> <p> <code>en-US</code> - English, United States </p> </li> <li> <p> <code>es-ES</code> - Spanish, Spain </p> </li> <li> <p> <code>fr-FR</code> - French, France </p> </li> <li> <p> <code>it-IT</code> - Italian, Italy </p> </li> <li> <p> <code>ja-JP</code> - Japanese, Japan </p> </li> <li> <p> <code>ko-KR</code> - Korean, Republic of Korea </p> </li> <li> <p> <code>pt-BR</code> - Portugese, Brazil </p> </li> <li> <p> <code>zh-CN</code> - Chinese, China </p> </li> <li> <p> <code>zh-TW</code> - Chinese, Taiwan </p> </li> </ul>"""
24
+
25
+
26
+ # --- restJson1 ser/de ---
27
+ def serialize_json(value: GetRecommendationsRequest) -> dict:
28
+ out: dict = {}
29
+ return out
30
+
31
+
32
+ def deserialize_json(data: dict) -> GetRecommendationsRequest:
33
+ out: GetRecommendationsRequest = {} # type: ignore[typeddict-item]
34
+ return out
@@ -0,0 +1,110 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#GetRecommendationsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from capo_codeguruprofiler.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codeguruprofiler.types.anomalies
11
+ import capo_codeguruprofiler.types.profiling_group_name
12
+ import capo_codeguruprofiler.types.recommendations
13
+ import capo_codeguruprofiler.types.timestamp
14
+
15
+
16
+ class GetRecommendationsResponse(TypedDict, closed=True):
17
+ profiling_group_name: (
18
+ "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
19
+ )
20
+ """<p>The name of the profiling group the analysis data is about.</p>"""
21
+ profile_start_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
22
+ """<p> The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
23
+ profile_end_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
24
+ """<p> The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
25
+ recommendations: "capo_codeguruprofiler.types.recommendations.Recommendations"
26
+ """<p>The list of recommendations that the analysis found for this profile.</p>"""
27
+ anomalies: "capo_codeguruprofiler.types.anomalies.Anomalies"
28
+ """<p> The list of anomalies that the analysis has found for this profile. </p>"""
29
+
30
+
31
+ # --- restJson1 ser/de ---
32
+ def serialize_json(value: GetRecommendationsResponse) -> dict:
33
+ out: dict = {}
34
+ out["profilingGroupName"] = value["profiling_group_name"]
35
+ import capo_codeguruprofiler.types.timestamp
36
+
37
+ out["profileStartTime"] = capo_codeguruprofiler.types.timestamp.serialize_json(
38
+ value["profile_start_time"]
39
+ )
40
+ import capo_codeguruprofiler.types.timestamp
41
+
42
+ out["profileEndTime"] = capo_codeguruprofiler.types.timestamp.serialize_json(
43
+ value["profile_end_time"]
44
+ )
45
+ import capo_codeguruprofiler.types.recommendations
46
+
47
+ out["recommendations"] = capo_codeguruprofiler.types.recommendations.serialize_json(
48
+ value["recommendations"]
49
+ )
50
+ import capo_codeguruprofiler.types.anomalies
51
+
52
+ out["anomalies"] = capo_codeguruprofiler.types.anomalies.serialize_json(
53
+ value["anomalies"]
54
+ )
55
+ return out
56
+
57
+
58
+ def deserialize_json(data: dict) -> GetRecommendationsResponse:
59
+ out: GetRecommendationsResponse = {} # type: ignore[typeddict-item]
60
+ if data.get("profilingGroupName") is not None:
61
+ out["profiling_group_name"] = data["profilingGroupName"]
62
+ else:
63
+ raise DeserializationError(
64
+ "GetRecommendationsResponse.profiling_group_name required"
65
+ )
66
+ if data.get("profileStartTime") is not None:
67
+ import capo_codeguruprofiler.types.timestamp
68
+
69
+ out["profile_start_time"] = (
70
+ capo_codeguruprofiler.types.timestamp.deserialize_json(
71
+ data["profileStartTime"]
72
+ )
73
+ )
74
+ else:
75
+ raise DeserializationError(
76
+ "GetRecommendationsResponse.profile_start_time required"
77
+ )
78
+ if data.get("profileEndTime") is not None:
79
+ import capo_codeguruprofiler.types.timestamp
80
+
81
+ out["profile_end_time"] = (
82
+ capo_codeguruprofiler.types.timestamp.deserialize_json(
83
+ data["profileEndTime"]
84
+ )
85
+ )
86
+ else:
87
+ raise DeserializationError(
88
+ "GetRecommendationsResponse.profile_end_time required"
89
+ )
90
+ if data.get("recommendations") is not None:
91
+ import capo_codeguruprofiler.types.recommendations
92
+
93
+ out["recommendations"] = (
94
+ capo_codeguruprofiler.types.recommendations.deserialize_json(
95
+ data["recommendations"]
96
+ )
97
+ )
98
+ else:
99
+ raise DeserializationError(
100
+ "GetRecommendationsResponse.recommendations required"
101
+ )
102
+ if data.get("anomalies") is not None:
103
+ import capo_codeguruprofiler.types.anomalies
104
+
105
+ out["anomalies"] = capo_codeguruprofiler.types.anomalies.deserialize_json(
106
+ data["anomalies"]
107
+ )
108
+ else:
109
+ raise DeserializationError("GetRecommendationsResponse.anomalies required")
110
+ return out
@@ -0,0 +1,41 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListFindingsReportsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.max_results
9
+ import capo_codeguruprofiler.types.pagination_token
10
+ import capo_codeguruprofiler.types.profiling_group_name
11
+ import capo_codeguruprofiler.types.timestamp
12
+
13
+
14
+ class ListFindingsReportsRequest(TypedDict, closed=True):
15
+ profiling_group_name: (
16
+ "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
17
+ )
18
+ """<p>The name of the profiling group from which to search for analysis data.</p>"""
19
+ start_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
20
+ """<p> The start time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
21
+ end_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
22
+ """<p> The end time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. </p>"""
23
+ next_token: NotRequired[
24
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
25
+ ]
26
+ """<p>The <code>nextToken</code> value returned from a previous paginated <code>ListFindingsReportsRequest</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. </p> <note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>"""
27
+ max_results: NotRequired["capo_codeguruprofiler.types.max_results.MaxResults"]
28
+ """<p>The maximum number of report results returned by <code>ListFindingsReports</code> in paginated output. When this parameter is used, <code>ListFindingsReports</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListFindingsReports</code> request with the returned <code>nextToken</code> value.</p>"""
29
+ daily_reports_only: NotRequired["bool"]
30
+ """<p>A <code>Boolean</code> value indicating whether to only return reports from daily profiles. If set to <code>True</code>, only analysis data from daily profiles is returned. If set to <code>False</code>, analysis data is returned from smaller time windows (for example, one hour).</p>"""
31
+
32
+
33
+ # --- restJson1 ser/de ---
34
+ def serialize_json(value: ListFindingsReportsRequest) -> dict:
35
+ out: dict = {}
36
+ return out
37
+
38
+
39
+ def deserialize_json(data: dict) -> ListFindingsReportsRequest:
40
+ out: ListFindingsReportsRequest = {} # type: ignore[typeddict-item]
41
+ return out
@@ -0,0 +1,56 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListFindingsReportsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codeguruprofiler.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codeguruprofiler.types.findings_report_summaries
11
+ import capo_codeguruprofiler.types.pagination_token
12
+
13
+
14
+ class ListFindingsReportsResponse(TypedDict, closed=True):
15
+ findings_report_summaries: (
16
+ "capo_codeguruprofiler.types.findings_report_summaries.FindingsReportSummaries"
17
+ )
18
+ """<p>The list of analysis results summaries.</p>"""
19
+ next_token: NotRequired[
20
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
21
+ ]
22
+ """<p>The <code>nextToken</code> value to include in a future <code>ListFindingsReports</code> request. When the results of a <code>ListFindingsReports</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>"""
23
+
24
+
25
+ # --- restJson1 ser/de ---
26
+ def serialize_json(value: ListFindingsReportsResponse) -> dict:
27
+ out: dict = {}
28
+ import capo_codeguruprofiler.types.findings_report_summaries
29
+
30
+ out["findingsReportSummaries"] = (
31
+ capo_codeguruprofiler.types.findings_report_summaries.serialize_json(
32
+ value["findings_report_summaries"]
33
+ )
34
+ )
35
+ if "next_token" in value:
36
+ out["nextToken"] = value["next_token"]
37
+ return out
38
+
39
+
40
+ def deserialize_json(data: dict) -> ListFindingsReportsResponse:
41
+ out: ListFindingsReportsResponse = {} # type: ignore[typeddict-item]
42
+ if data.get("findingsReportSummaries") is not None:
43
+ import capo_codeguruprofiler.types.findings_report_summaries
44
+
45
+ out["findings_report_summaries"] = (
46
+ capo_codeguruprofiler.types.findings_report_summaries.deserialize_json(
47
+ data["findingsReportSummaries"]
48
+ )
49
+ )
50
+ else:
51
+ raise DeserializationError(
52
+ "ListFindingsReportsResponse.findings_report_summaries required"
53
+ )
54
+ if data.get("nextToken") is not None:
55
+ out["next_token"] = data["nextToken"]
56
+ return out
@@ -0,0 +1,33 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListOfTimestamps``."""
2
+
3
+ from typing import TYPE_CHECKING, TypeAlias
4
+
5
+ if TYPE_CHECKING:
6
+ import capo_codeguruprofiler.types.timestamp_structure
7
+
8
+ ListOfTimestamps: TypeAlias = list[
9
+ "capo_codeguruprofiler.types.timestamp_structure.TimestampStructure"
10
+ ]
11
+
12
+
13
+ # --- restJson1 ser/de ---
14
+ def serialize_json(value: ListOfTimestamps) -> list:
15
+ import capo_codeguruprofiler.types.timestamp_structure
16
+
17
+ out: list = []
18
+ for item in value:
19
+ out.append(capo_codeguruprofiler.types.timestamp_structure.serialize_json(item))
20
+ return out
21
+
22
+
23
+ def deserialize_json(data: list) -> ListOfTimestamps:
24
+ import capo_codeguruprofiler.types.timestamp_structure
25
+
26
+ out: ListOfTimestamps = []
27
+ for item in data:
28
+ if item is None:
29
+ continue
30
+ out.append(
31
+ capo_codeguruprofiler.types.timestamp_structure.deserialize_json(item)
32
+ )
33
+ return out
@@ -0,0 +1,45 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListProfileTimesRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.aggregation_period
9
+ import capo_codeguruprofiler.types.max_results
10
+ import capo_codeguruprofiler.types.order_by
11
+ import capo_codeguruprofiler.types.pagination_token
12
+ import capo_codeguruprofiler.types.profiling_group_name
13
+ import capo_codeguruprofiler.types.timestamp
14
+
15
+
16
+ class ListProfileTimesRequest(TypedDict, closed=True):
17
+ profiling_group_name: (
18
+ "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName"
19
+ )
20
+ """<p>The name of the profiling group.</p>"""
21
+ start_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
22
+ """<p>The start time of the time range from which to list the profiles.</p>"""
23
+ end_time: "capo_codeguruprofiler.types.timestamp.Timestamp"
24
+ """<p>The end time of the time range from which to list the profiles.</p>"""
25
+ period: "capo_codeguruprofiler.types.aggregation_period.AggregationPeriod"
26
+ """<p> The aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values. </p> <ul> <li> <p> <code>P1D</code> — 1 day </p> </li> <li> <p> <code>PT1H</code> — 1 hour </p> </li> <li> <p> <code>PT5M</code> — 5 minutes </p> </li> </ul>"""
27
+ order_by: NotRequired["capo_codeguruprofiler.types.order_by.OrderBy"]
28
+ """<p>The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to <code>TIMESTAMP_DESCENDING</code>. </p>"""
29
+ max_results: NotRequired["capo_codeguruprofiler.types.max_results.MaxResults"]
30
+ """<p>The maximum number of profile time results returned by <code>ListProfileTimes</code> in paginated output. When this parameter is used, <code>ListProfileTimes</code> only returns <code>maxResults</code> results in a single page with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListProfileTimes</code> request with the returned <code>nextToken</code> value. </p>"""
31
+ next_token: NotRequired[
32
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
33
+ ]
34
+ """<p>The <code>nextToken</code> value returned from a previous paginated <code>ListProfileTimes</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. </p> <note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>"""
35
+
36
+
37
+ # --- restJson1 ser/de ---
38
+ def serialize_json(value: ListProfileTimesRequest) -> dict:
39
+ out: dict = {}
40
+ return out
41
+
42
+
43
+ def deserialize_json(data: dict) -> ListProfileTimesRequest:
44
+ out: ListProfileTimesRequest = {} # type: ignore[typeddict-item]
45
+ return out
@@ -0,0 +1,50 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListProfileTimesResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codeguruprofiler.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codeguruprofiler.types.pagination_token
11
+ import capo_codeguruprofiler.types.profile_times
12
+
13
+
14
+ class ListProfileTimesResponse(TypedDict, closed=True):
15
+ profile_times: "capo_codeguruprofiler.types.profile_times.ProfileTimes"
16
+ """<p>The list of start times of the available profiles for the aggregation period in the specified time range. </p>"""
17
+ next_token: NotRequired[
18
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
19
+ ]
20
+ """<p>The <code>nextToken</code> value to include in a future <code>ListProfileTimes</code> request. When the results of a <code>ListProfileTimes</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return. </p>"""
21
+
22
+
23
+ # --- restJson1 ser/de ---
24
+ def serialize_json(value: ListProfileTimesResponse) -> dict:
25
+ out: dict = {}
26
+ import capo_codeguruprofiler.types.profile_times
27
+
28
+ out["profileTimes"] = capo_codeguruprofiler.types.profile_times.serialize_json(
29
+ value["profile_times"]
30
+ )
31
+ if "next_token" in value:
32
+ out["nextToken"] = value["next_token"]
33
+ return out
34
+
35
+
36
+ def deserialize_json(data: dict) -> ListProfileTimesResponse:
37
+ out: ListProfileTimesResponse = {} # type: ignore[typeddict-item]
38
+ if data.get("profileTimes") is not None:
39
+ import capo_codeguruprofiler.types.profile_times
40
+
41
+ out["profile_times"] = (
42
+ capo_codeguruprofiler.types.profile_times.deserialize_json(
43
+ data["profileTimes"]
44
+ )
45
+ )
46
+ else:
47
+ raise DeserializationError("ListProfileTimesResponse.profile_times required")
48
+ if data.get("nextToken") is not None:
49
+ out["next_token"] = data["nextToken"]
50
+ return out
@@ -0,0 +1,31 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListProfilingGroupsRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.max_results
9
+ import capo_codeguruprofiler.types.pagination_token
10
+
11
+
12
+ class ListProfilingGroupsRequest(TypedDict, closed=True):
13
+ next_token: NotRequired[
14
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
15
+ ]
16
+ """<p>The <code>nextToken</code> value returned from a previous paginated <code>ListProfilingGroups</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. </p> <note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>"""
17
+ max_results: NotRequired["capo_codeguruprofiler.types.max_results.MaxResults"]
18
+ """<p>The maximum number of profiling groups results returned by <code>ListProfilingGroups</code> in paginated output. When this parameter is used, <code>ListProfilingGroups</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListProfilingGroups</code> request with the returned <code>nextToken</code> value. </p>"""
19
+ include_description: NotRequired["bool"]
20
+ r"""<p>A <code>Boolean</code> value indicating whether to include a description. If <code>true</code>, then a list of <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html\"> <code>ProfilingGroupDescription</code> </a> objects that contain detailed information about profiling groups is returned. If <code>false</code>, then a list of profiling group names is returned.</p>"""
21
+
22
+
23
+ # --- restJson1 ser/de ---
24
+ def serialize_json(value: ListProfilingGroupsRequest) -> dict:
25
+ out: dict = {}
26
+ return out
27
+
28
+
29
+ def deserialize_json(data: dict) -> ListProfilingGroupsRequest:
30
+ out: ListProfilingGroupsRequest = {} # type: ignore[typeddict-item]
31
+ return out
@@ -0,0 +1,77 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListProfilingGroupsResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ from capo_codeguruprofiler.errors import DeserializationError
8
+
9
+ if TYPE_CHECKING:
10
+ import capo_codeguruprofiler.types.pagination_token
11
+ import capo_codeguruprofiler.types.profiling_group_descriptions
12
+ import capo_codeguruprofiler.types.profiling_group_names
13
+
14
+
15
+ class ListProfilingGroupsResponse(TypedDict, closed=True):
16
+ profiling_group_names: (
17
+ "capo_codeguruprofiler.types.profiling_group_names.ProfilingGroupNames"
18
+ )
19
+ r"""<p> A returned list of profiling group names. A list of the names is returned only if <code>includeDescription</code> is <code>false</code>, otherwise a list of <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html\"> <code>ProfilingGroupDescription</code> </a> objects is returned. </p>"""
20
+ profiling_groups: NotRequired[
21
+ "capo_codeguruprofiler.types.profiling_group_descriptions.ProfilingGroupDescriptions"
22
+ ]
23
+ r"""<p> A returned list <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html\"> <code>ProfilingGroupDescription</code> </a> objects. A list of <a href=\"https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingGroupDescription.html\"> <code>ProfilingGroupDescription</code> </a> objects is returned only if <code>includeDescription</code> is <code>true</code>, otherwise a list of profiling group names is returned. </p>"""
24
+ next_token: NotRequired[
25
+ "capo_codeguruprofiler.types.pagination_token.PaginationToken"
26
+ ]
27
+ """<p>The <code>nextToken</code> value to include in a future <code>ListProfilingGroups</code> request. When the results of a <code>ListProfilingGroups</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return. </p>"""
28
+
29
+
30
+ # --- restJson1 ser/de ---
31
+ def serialize_json(value: ListProfilingGroupsResponse) -> dict:
32
+ out: dict = {}
33
+ import capo_codeguruprofiler.types.profiling_group_names
34
+
35
+ out["profilingGroupNames"] = (
36
+ capo_codeguruprofiler.types.profiling_group_names.serialize_json(
37
+ value["profiling_group_names"]
38
+ )
39
+ )
40
+ if "profiling_groups" in value:
41
+ import capo_codeguruprofiler.types.profiling_group_descriptions
42
+
43
+ out["profilingGroups"] = (
44
+ capo_codeguruprofiler.types.profiling_group_descriptions.serialize_json(
45
+ value["profiling_groups"]
46
+ )
47
+ )
48
+ if "next_token" in value:
49
+ out["nextToken"] = value["next_token"]
50
+ return out
51
+
52
+
53
+ def deserialize_json(data: dict) -> ListProfilingGroupsResponse:
54
+ out: ListProfilingGroupsResponse = {} # type: ignore[typeddict-item]
55
+ if data.get("profilingGroupNames") is not None:
56
+ import capo_codeguruprofiler.types.profiling_group_names
57
+
58
+ out["profiling_group_names"] = (
59
+ capo_codeguruprofiler.types.profiling_group_names.deserialize_json(
60
+ data["profilingGroupNames"]
61
+ )
62
+ )
63
+ else:
64
+ raise DeserializationError(
65
+ "ListProfilingGroupsResponse.profiling_group_names required"
66
+ )
67
+ if data.get("profilingGroups") is not None:
68
+ import capo_codeguruprofiler.types.profiling_group_descriptions
69
+
70
+ out["profiling_groups"] = (
71
+ capo_codeguruprofiler.types.profiling_group_descriptions.deserialize_json(
72
+ data["profilingGroups"]
73
+ )
74
+ )
75
+ if data.get("nextToken") is not None:
76
+ out["next_token"] = data["nextToken"]
77
+ return out
@@ -0,0 +1,24 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListTagsForResourceRequest``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.profiling_group_arn
9
+
10
+
11
+ class ListTagsForResourceRequest(TypedDict, closed=True):
12
+ resource_arn: "capo_codeguruprofiler.types.profiling_group_arn.ProfilingGroupArn"
13
+ """<p> The Amazon Resource Name (ARN) of the resource that contains the tags to return. </p>"""
14
+
15
+
16
+ # --- restJson1 ser/de ---
17
+ def serialize_json(value: ListTagsForResourceRequest) -> dict:
18
+ out: dict = {}
19
+ return out
20
+
21
+
22
+ def deserialize_json(data: dict) -> ListTagsForResourceRequest:
23
+ out: ListTagsForResourceRequest = {} # type: ignore[typeddict-item]
24
+ return out
@@ -0,0 +1,34 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#ListTagsForResourceResponse``."""
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from typing_extensions import NotRequired, TypedDict
6
+
7
+ if TYPE_CHECKING:
8
+ import capo_codeguruprofiler.types.tags_map
9
+
10
+
11
+ class ListTagsForResourceResponse(TypedDict, closed=True):
12
+ tags: NotRequired["capo_codeguruprofiler.types.tags_map.TagsMap"]
13
+ """<p> The list of tags assigned to the specified resource. This is the list of tags returned in the response. </p>"""
14
+
15
+
16
+ # --- restJson1 ser/de ---
17
+ def serialize_json(value: ListTagsForResourceResponse) -> dict:
18
+ out: dict = {}
19
+ if "tags" in value:
20
+ import capo_codeguruprofiler.types.tags_map
21
+
22
+ out["tags"] = capo_codeguruprofiler.types.tags_map.serialize_json(value["tags"])
23
+ return out
24
+
25
+
26
+ def deserialize_json(data: dict) -> ListTagsForResourceResponse:
27
+ out: ListTagsForResourceResponse = {} # type: ignore[typeddict-item]
28
+ if data.get("tags") is not None:
29
+ import capo_codeguruprofiler.types.tags_map
30
+
31
+ out["tags"] = capo_codeguruprofiler.types.tags_map.deserialize_json(
32
+ data["tags"]
33
+ )
34
+ return out
@@ -0,0 +1,6 @@
1
+ """Generated from Smithy shape ``com.amazonaws.codeguruprofiler#Locale``."""
2
+
3
+ from typing import TypeAlias
4
+
5
+ """BCP47 language code. Supported locales: de-DE, en-GB, en-US, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, zh-CN, zh-TW"""
6
+ Locale: TypeAlias = str