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.166.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74756c73ef18e749656475569d439bf2d0f092104bca46e57ff401fc3491e813 |
|
MD5 | ea5189b4fb379d4a0332b5af4f6f08cc |
|
BLAKE2b-256 | d3371ef09628ba2d95f085b5ce45aac27635f173e15b6451c61173d6bb53576d |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.166.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a1d15bbd8f7e07857dd697febd10612f788b3610c153b91000f52005d29da4 |
|
MD5 | c15394d2ba83f3e162e2e474b8bd8bca |
|
BLAKE2b-256 | 8801be17519bab38d62e69ad02586ea68edbf5e29be27c7fbcb9989c9163d36c |