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:
# Example automatically generated from non-compiling source. May contain errors.
# 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 = Role(stack, "PublishAppRole",
assumed_by=AccountRootPrincipal()
)
profiling_group = ProfilingGroup(stack, "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:
# Example automatically generated from non-compiling source. May contain errors.
profiling_group = ProfilingGroup(stack, "MyProfilingGroup",
compute_platform=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.137.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319fa2f08d35d117ed686d284733ca622f3a41ca4bcc81fb24b2a26d2c0db997 |
|
MD5 | 500370f12d55d9ea03264ee7364c6b0f |
|
BLAKE2b-256 | 7dfa7d1fff49fd3da7a6e26c5270758f60622fc2decdec62abbb1e5246db10ee |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.137.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a1ddfb7e621d492d9b6740387bf914d485a6798bcbe4c079edf58c08ae223a |
|
MD5 | 2b98a87fb0b983ee62df0fb57a14c0a6 |
|
BLAKE2b-256 | be88cb440d8dbccd8955adc230524e378f443a7830418bf71886ed6ab5ade6cd |