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.184.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6101f699c9cb46c5a0bcc31b0f23e5982795f72d01682072f3f5d1dc6884319 |
|
MD5 | 8b4a469ec485a7a8b2a02a1e76eafc5d |
|
BLAKE2b-256 | 991fefe9a26fb21556dd7093f489de554f2bc9d81f372b4f483e5ddf26b9cffa |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.184.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b71f8bd1b6402b5c39185664d21a238f43550102434357a09ba80ada7db6b9 |
|
MD5 | 707c74acab868571c9ec8a8a27bafaa6 |
|
BLAKE2b-256 | c663e66ee806c2af9b9a3cde9f4bc4dab11098f9c167122ea0aadd825df67bf7 |