Class CfnProfilingGroup.Builder

java.lang.Object
software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProfilingGroup>
Enclosing class:
CfnProfilingGroup

@Stability(Stable) public static final class CfnProfilingGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnProfilingGroup>
A fluent builder for CfnProfilingGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnProfilingGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnProfilingGroup.Builder.
    • profilingGroupName

      @Stability(Stable) public CfnProfilingGroup.Builder profilingGroupName(String profilingGroupName)
      The name of the profiling group.

      Parameters:
      profilingGroupName - The name of the profiling group. This parameter is required.
      Returns:
      this
    • agentPermissions

      @Stability(Stable) public CfnProfilingGroup.Builder agentPermissions(Object agentPermissions)
      The agent permissions attached to this profiling group.

      This action group grants ConfigureAgent and PostAgentProfile permissions to perform actions required by the profiling agent. The Json consists of key Principals .

      Principals : A list of string ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not supported in the ARNs. You are allowed to provide up to 50 ARNs. An empty list is not permitted. This is a required key.

      For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler user guide , ConfigureAgent , and PostAgentProfile .

      Parameters:
      agentPermissions - The agent permissions attached to this profiling group. This parameter is required.
      Returns:
      this
    • anomalyDetectionNotificationConfiguration

      @Stability(Stable) public CfnProfilingGroup.Builder anomalyDetectionNotificationConfiguration(IResolvable anomalyDetectionNotificationConfiguration)
      Adds anomaly notifications for a profiling group.

      Parameters:
      anomalyDetectionNotificationConfiguration - Adds anomaly notifications for a profiling group. This parameter is required.
      Returns:
      this
    • anomalyDetectionNotificationConfiguration

      @Stability(Stable) public CfnProfilingGroup.Builder anomalyDetectionNotificationConfiguration(List<? extends Object> anomalyDetectionNotificationConfiguration)
      Adds anomaly notifications for a profiling group.

      Parameters:
      anomalyDetectionNotificationConfiguration - Adds anomaly notifications for a profiling group. This parameter is required.
      Returns:
      this
    • computePlatform

      @Stability(Stable) public CfnProfilingGroup.Builder computePlatform(String computePlatform)
      The compute platform of the profiling group.

      Use AWSLambda if your application runs on AWS Lambda. Use 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. If not specified, Default is used. This property is immutable.

      Parameters:
      computePlatform - The compute platform of the profiling group. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnProfilingGroup.Builder tags(List<? extends CfnTag> tags)
      A list of tags to add to the created profiling group.

      Parameters:
      tags - A list of tags to add to the created profiling group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnProfilingGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnProfilingGroup>
      Returns:
      a newly built instance of CfnProfilingGroup.