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.147.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066f49a020e66417f35665c91ea0fffdba6fa21181115ae26fcc2e5a45129f47 |
|
MD5 | ade8b7c766ef32e0f29c90d2702f8970 |
|
BLAKE2b-256 | 7f7383c2a1abe580395df3e6df29979ef06e7738b5a54fa96793c28cbec1099a |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.147.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c5aa85ee661db2b80ea5b304290ceca3d5ba9becb89a9b6af6cf84833187fe |
|
MD5 | c5f0fdf0a0db939e0714fbf673000cbd |
|
BLAKE2b-256 | 0e8a8a4ec2dbbaa696921e7ab28065b2cb8cd91b8d6ad3f79df84da1dc349d46 |