The CDK Construct Library for AWS::CodeGuruProfiler
Project description
AWS::CodeGuruProfiler Construct Library
---AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.
For more information on how to migrate, see the Migrating to AWS CDK v2 guide.
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
File details
Details for the file aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz
.
File metadata
- Download URL: aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz
- Upload date:
- Size: 50.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f478472cba135a98082ff96e9668dd742c715ebee1330824b98f0b04c24251 |
|
MD5 | c6aceb9d107998017f099292a7be6043 |
|
BLAKE2b-256 | 0c897de3532743b90aa916f1730af802ab9f2a076ce601201cac621b3e03f341 |
File details
Details for the file aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl
.
File metadata
- Download URL: aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl
- Upload date:
- Size: 49.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545e1e1c4a81b3a1d3b11d88d42e2ff58e478fd2615c88720d745675da624c67 |
|
MD5 | 00d52fde435896fb6ee3d11a9fab4837 |
|
BLAKE2b-256 | 94df1fb7949e2e88826235ebd5d9cad9c5d5f50cec1ba28316e92fe4767bec44 |