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.167.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7207f73c4c1c1f31d2c5da6dcb0b06cc184b7f4314e35fcf5ec70b14c1b13f00 |
|
MD5 | bfd97f4cc906da255cdddf3eacf32d79 |
|
BLAKE2b-256 | 60b9d85777cb0c57a4799e25baedd48be2f5c30ddff1fcb73018c431ce7e498b |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.167.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d672646d184036ea4b3053227ad3155b4b748f20696411134386f98a97852f9 |
|
MD5 | 459ee073bcdace0f53d792acc9f0c3b9 |
|
BLAKE2b-256 | d2c5072b1211ac23521c44cd9c0ce7f3ae2dd45d45a50b8bd6ec09571a54091f |