Skip to content
v2.277.0

ComputePlatform Enum ​

The compute platform of the profiling group.

Example ​

ts
const profilingGroup = new codeguruprofiler.ProfilingGroup(this, 'MyProfilingGroup', {
  computePlatform: codeguruprofiler.ComputePlatform.AWS_LAMBDA,
});
python
profiling_group = codeguruprofiler.ProfilingGroup(self, "MyProfilingGroup",
    compute_platform=codeguruprofiler.ComputePlatform.AWS_LAMBDA
)
java
ProfilingGroup profilingGroup = ProfilingGroup.Builder.create(this, "MyProfilingGroup")
        .computePlatform(ComputePlatform.AWS_LAMBDA)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var profilingGroup = new ProfilingGroup(this, "MyProfilingGroup", new ProfilingGroupProps {
    ComputePlatform = ComputePlatform.AWS_LAMBDA
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
profilingGroup := codeguruprofiler.NewProfilingGroup(this, jsii.String("MyProfilingGroup"), &ProfilingGroupProps{
	ComputePlatform: codeguruprofiler.ComputePlatform_AWS_LAMBDA,
})

Members ​

MemberDescription
AWS_LAMBDAUse AWS_LAMBDA if your application runs on AWS Lambda.
DEFAULTUse Default if your application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform.

Referenced by ​

  • ProfilingGroupProps.computePlatformcompute_platformcomputePlatformComputePlatformComputePlatform