Skip to main content

The CDK Construct Library for AWS::CodeGuruProfiler

Project description

AWS::CodeGuruProfiler Construct Library

---

End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.


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

aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz (50.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz.

File metadata

File hashes

Hashes for aws-cdk.aws-codeguruprofiler-1.204.0.tar.gz
Algorithm Hash digest
SHA256 b1f478472cba135a98082ff96e9668dd742c715ebee1330824b98f0b04c24251
MD5 c6aceb9d107998017f099292a7be6043
BLAKE2b-256 0c897de3532743b90aa916f1730af802ab9f2a076ce601201cac621b3e03f341

See more details on using hashes here.

File details

Details for the file aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.aws_codeguruprofiler-1.204.0-py3-none-any.whl
Algorithm Hash digest
SHA256 545e1e1c4a81b3a1d3b11d88d42e2ff58e478fd2615c88720d745675da624c67
MD5 00d52fde435896fb6ee3d11a9fab4837
BLAKE2b-256 94df1fb7949e2e88826235ebd5d9cad9c5d5f50cec1ba28316e92fe4767bec44

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page