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.170.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9906a219763ed694a2a5e493e96a031fc7536354a0de47f5bc48000226446bf4 |
|
MD5 | 85c5f61ef2f4f25054cb6208bd6b38f1 |
|
BLAKE2b-256 | 158cd2bfe04c52a3e7dfb06d426998b1b94ee7da1fe5bc05175f910ca35d1644 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.170.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c42bf2931a658540f6c39f66b61158fc50c9d1974a4541099890264592c2e41d |
|
MD5 | cce5737f8ed609b949887ed706bad65e |
|
BLAKE2b-256 | c27845eae01905361000f3af4c78390969cbb96984464600bb2eddf200800617 |