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.186.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754464eb0abcd6ab5a5f297be1c29703a1f92ddf8bd3be20ef6b84c17c7e5f33 |
|
MD5 | fc9cafa6c1d8508c983818c75a38f879 |
|
BLAKE2b-256 | d9c33549c0cf1341cb494752eb33c7f2513c770499df255446084d6e231ba072 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.186.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57b08592f4e28f4128e311a934f5064f62efe43ff07402095cadf2310a1649dd |
|
MD5 | fe9fdcbf0b506e571c2290ea2a187d96 |
|
BLAKE2b-256 | f1b0da1ff2377f8f95a1603513f9ccda53302c6fb72c9469f00a1f322d601b1a |