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.163.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b841e6eafa257fe5552ffc882ead84b730d943cd99b4e1b854152a5b317c03 |
|
MD5 | 68946409003950a5042e49353b0c8a41 |
|
BLAKE2b-256 | 005791ed689384ffe1ff5c8e8d988b1aff4397208d0f92d7117ee9b6f4377add |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.163.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698e93c0394bea3eb6d355b54f3dad7504e683da0e2f94efbb3a917c595624b5 |
|
MD5 | 48d17cd9eae19471814b1de02d3a8fe8 |
|
BLAKE2b-256 | 89b9cb9d2759e60ef5fc09cdb3578513de5841c98b0996817c9952885a77c9ce |