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.181.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1bd540754c61ed31fc46d1e859bf8e836dadbd358a61cb71c8d2ba57b5793dc |
|
MD5 | c96623efe407be19ab961d5b7379e936 |
|
BLAKE2b-256 | 7cb0f6c2d92e534fb558f9ce88c06cda31103d84f1d7a4e1c937787afcaa4c36 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.181.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fe1af7c89da0997d1f52d00d3a8c0248516f8c444e2351c0c0fe542e2c46d3 |
|
MD5 | 1bcfab89a5b69da92a915688fdeda20d |
|
BLAKE2b-256 | ab5c0ec3a90fed86ef05542073cbc97bc82425f3bf9e9032d3848740f52f2712 |