The CDK Construct Library for AWS::CodeGuruProfiler
Project description
AWS::CodeGuruProfiler Construct Library
---Amazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance.
Installation
Import to your project:
import aws_cdk.aws_codeguruprofiler as codeguruprofiler
Basic usage
Here's how to setup a profiling group and give your compute role permissions to publish to the profiling group to the profiling agent can publish profiling information:
# The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)
publish_app_role = iam.Role(self, "PublishAppRole",
assumed_by=iam.AccountRootPrincipal()
)
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup")
profiling_group.grant_publish(publish_app_role)
Compute Platform configuration
Code Guru Profiler supports multiple compute environments.
They can be configured when creating a Profiling Group by using the computePlatform
property:
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup",
compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.aws-codeguruprofiler-1.162.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad028cb03b5941c1c6c072d8822a81f236b0af98b38e29a64fc27cd9235b2c07 |
|
MD5 | 648c8bdeec6b3b3d9282547c5169a3d8 |
|
BLAKE2b-256 | f13a98948ae98cb3938e2a507f2f4d41b45f0e367efb03636ea4329786447ac0 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.162.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff71b0ef62e0e5a0bb832719a4f1c855c86f48f84981c22da6e3f755f7d52cdf |
|
MD5 | 55f7881171e8b810d98375ad670a221e |
|
BLAKE2b-256 | 01e7ba21e2b4d9fbd75250ac8952470df87ca95b2b7bc6fd0189a6a55cd8a2c2 |