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.185.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b452a6e2d3e76d01f83992af4ae5bf2ec0d89dcad4fb6c42d81013d0fe9f65 |
|
MD5 | 48e2116202d4bd6690d78a09b016f3a5 |
|
BLAKE2b-256 | 330aeff3be12d8e4d99d8dd174b97d35596755fe0a1b2d4d40dc7421f3caefa9 |
Close
Hashes for aws_cdk.aws_codeguruprofiler-1.185.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09716ae46bf87d90027b585513f2d8a7c0e1fb74c6da390017fc02663f2cf982 |
|
MD5 | 55652c7a4021d9dfff21b5e5b28ba48a |
|
BLAKE2b-256 | 67b2239bb94cdb317e7a9990097f5523cb12324a96260e7edb7d20fb17053279 |