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.193.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b92ec1df7fb6b4be52fd2386bc3d0d3bb0012d4e492bc9f5cd8258f6abf0e5 |
|
MD5 | a64a427ad7dc3da65942a7e34cbf73f3 |
|
BLAKE2b-256 | 49687b505dd73a45c1101ca808eae77d374b9965d3606a6fb27ef656ad95d480 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.193.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de1500509cba0ce9d24d50d133bf874cac2fa808a9aa24aa82e81086ca7eef8 |
|
MD5 | c9ac37e4cbfc675d22cd6f16f6669af7 |
|
BLAKE2b-256 | 466a48f58b3e1a95ced9fc313f91c02a5721723cc5059579fcd435d56344d560 |