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.178.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29494338c8394c255fd2f6808d3cc4c928815cd3fe7d1e705e5243e67c7c26a |
|
MD5 | 24d952b9e7d2a3bc09368d7642445ed0 |
|
BLAKE2b-256 | f1f17bd48ccaab4523958d8daa012924669f2b9a5feb2f2472a3f8d2db989b11 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.178.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07e40730d7f32f1112b6c6a0f98af030d9bd279822516b4a5d49d66a93184ea7 |
|
MD5 | 84c77ae375bc28b3b23a4b11927cfdd2 |
|
BLAKE2b-256 | 4c610657a055f8fa252057f09013851b8c42c0c7d29bc4a126b41b9857af60ad |