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.163.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c2f4a359c3ef89e57a1ffa740beb810b16ea9846b4ed548555776ef4038a29 |
|
MD5 | 8ed13c422a506cb5874bdac34f130d12 |
|
BLAKE2b-256 | 7896ea987487668fde9befbeac88dd3b6587b70f3b12782a61dd4d166833bcc5 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.163.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f2dfcc494d59906332136bc2cad9e3aff98dc2b7ef9744f1427a71c95180d6 |
|
MD5 | 5788d2f6981f67526de51eca869a7777 |
|
BLAKE2b-256 | d1a7029e3948ec8cc28c23e195cb4efe656a2b40f067ab8090adde75332fca3d |