# AWS::CodeGuruProfiler Construct Library
<!--BEGIN STABILITY BANNER-->---
![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)
---
<!--END STABILITY BANNER-->
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:
```python
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:
```python
# 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:
```python
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup",
compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/aws/aws-cdk",
"name": "aws-cdk.aws-codeguruprofiler",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Amazon Web Services",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/7f/eb/48993d4ca357f808d973330e3a775b73d487bc8647ef3cd8a23082e26b01/aws-cdk.aws-codeguruprofiler-1.203.0.tar.gz",
"platform": null,
"description": "# AWS::CodeGuruProfiler Construct Library\n\n<!--BEGIN STABILITY BANNER-->---\n\n\n![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)\n\n![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)\n\n---\n<!--END STABILITY BANNER-->\n\nAmazon CodeGuru Profiler collects runtime performance data from your live applications, and provides recommendations that can help you fine-tune your application performance.\n\n## Installation\n\nImport to your project:\n\n```python\nimport aws_cdk.aws_codeguruprofiler as codeguruprofiler\n```\n\n## Basic usage\n\nHere'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:\n\n```python\n# The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)\npublish_app_role = iam.Role(self, \"PublishAppRole\",\n assumed_by=iam.AccountRootPrincipal()\n)\n\nprofiling_group = codeguruprofiler.ProfilingGroup(self, \"MyProfilingGroup\")\nprofiling_group.grant_publish(publish_app_role)\n```\n\n## Compute Platform configuration\n\nCode Guru Profiler supports multiple compute environments.\nThey can be configured when creating a Profiling Group by using the `computePlatform` property:\n\n```python\nprofiling_group = codeguruprofiler.ProfilingGroup(self, \"MyProfilingGroup\",\n compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA\n)\n```\n\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "The CDK Construct Library for AWS::CodeGuruProfiler",
"version": "1.203.0",
"project_urls": {
"Homepage": "https://github.com/aws/aws-cdk",
"Source": "https://github.com/aws/aws-cdk.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dca61d54ab685a3ec7d4ca932e40f3fee511e0f7a56d7621863fbda429396a26",
"md5": "a63fd3dd666dd1c0b462480efb864cb1",
"sha256": "714cfccb108c4862c22abbe1875c326ce48961e9fdffacdcca131f8a4fa1783a"
},
"downloads": -1,
"filename": "aws_cdk.aws_codeguruprofiler-1.203.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a63fd3dd666dd1c0b462480efb864cb1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.7",
"size": 49298,
"upload_time": "2023-05-31T22:53:39",
"upload_time_iso_8601": "2023-05-31T22:53:39.702410Z",
"url": "https://files.pythonhosted.org/packages/dc/a6/1d54ab685a3ec7d4ca932e40f3fee511e0f7a56d7621863fbda429396a26/aws_cdk.aws_codeguruprofiler-1.203.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7feb48993d4ca357f808d973330e3a775b73d487bc8647ef3cd8a23082e26b01",
"md5": "c9c6b67aca76bb5f08a0df4f6aeec9dc",
"sha256": "6a666e7be6bb3feaf58eb62bae4994a53dd6c8a48578aec81bdea1aa27bcd08f"
},
"downloads": -1,
"filename": "aws-cdk.aws-codeguruprofiler-1.203.0.tar.gz",
"has_sig": false,
"md5_digest": "c9c6b67aca76bb5f08a0df4f6aeec9dc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 50344,
"upload_time": "2023-05-31T23:01:24",
"upload_time_iso_8601": "2023-05-31T23:01:24.834697Z",
"url": "https://files.pythonhosted.org/packages/7f/eb/48993d4ca357f808d973330e3a775b73d487bc8647ef3cd8a23082e26b01/aws-cdk.aws-codeguruprofiler-1.203.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-31 23:01:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aws",
"github_project": "aws-cdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aws-cdk.aws-codeguruprofiler"
}