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.158.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1f1c176e5d7b131f2addd3e31408e4aca4c78eeada713594b634d98994e040 |
|
MD5 | f5024391d7ff08e59bff68398659a348 |
|
BLAKE2b-256 | 5d7ebb234f9f469aed8b040c931bfb622b65ab8f4a12f0fca0502866f790cfc6 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.158.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc088217e8f8776333000ceb1bd2c2eaf013820e1f8502d9db63813ddb6658c2 |
|
MD5 | 85e2a8a4404c7e4c61b4743b2a3ef118 |
|
BLAKE2b-256 | 7f17d5758ce4a6aea6691dbd53076a613566a59c5cc0a68debecd8c26bc404de |