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:
# Example automatically generated. See https://github.com/aws/jsii/issues/826
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:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
# 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 = Role(stack, "PublishAppRole",
assumed_by=AccountRootPrincipal()
)
profiling_group = ProfilingGroup(stack, "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:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
profiling_group = ProfilingGroup(stack, "MyProfilingGroup",
compute_platform=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.132.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e91f54594dbc03e5460a42298737e5207b0f20fe15af165c5cba226705775a2d |
|
MD5 | 6e75eff64ccdd0a681b35b90147410ea |
|
BLAKE2b-256 | 97bbd5ff580d9cea30ddc4b1410ed944c635f42b1eab18f7576b436693dc2dd2 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.132.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7db622b95437d2dc1fa40e41b7dc3ad0beed7a7a3ee77eaf97af394ed73f56 |
|
MD5 | 75978c3fed41091c9818f89c1b961ea4 |
|
BLAKE2b-256 | 0edeef8e382faa0fd8b718b01aba9d3bd8404453318599aed683aff32cc1f1d5 |