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.144.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e039a32e38770628b9d19bbb164fa3a0de0902d5908adbf090a34006803a05 |
|
MD5 | afbb2be8d8ed8314eeb8abcf6bba9f8c |
|
BLAKE2b-256 | 89fa1aa04cfc81627de6f643eae51df02ab7c399045fb803ad6703fedddc05b5 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.144.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c09d6ecb7f40c85ce55067397a5220800e16cc870b69fa6add72208748a3b758 |
|
MD5 | c7d3377b868bf39184354e9c5dca4d99 |
|
BLAKE2b-256 | d7645ea9ae899bf2bf74dcf3f1d9eb3dd423c97ff2d082c55518fde09aa649a6 |