Class CfnProfilingGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.codeguruprofiler.CfnProfilingGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProfilingGroupProps>
- Enclosing interface:
- CfnProfilingGroupProps
@Stability(Stable)
public static final class CfnProfilingGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProfilingGroupProps>
A builder for
CfnProfilingGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionagentPermissions
(Object agentPermissions) Sets the value ofCfnProfilingGroupProps.getAgentPermissions()
anomalyDetectionNotificationConfiguration
(List<? extends Object> anomalyDetectionNotificationConfiguration) Sets the value ofCfnProfilingGroupProps.getAnomalyDetectionNotificationConfiguration()
anomalyDetectionNotificationConfiguration
(IResolvable anomalyDetectionNotificationConfiguration) Sets the value ofCfnProfilingGroupProps.getAnomalyDetectionNotificationConfiguration()
build()
Builds the configured instance.computePlatform
(String computePlatform) Sets the value ofCfnProfilingGroupProps.getComputePlatform()
profilingGroupName
(String profilingGroupName) Sets the value ofCfnProfilingGroupProps.getProfilingGroupName()
Sets the value ofCfnProfilingGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
profilingGroupName
@Stability(Stable) public CfnProfilingGroupProps.Builder profilingGroupName(String profilingGroupName) Sets the value ofCfnProfilingGroupProps.getProfilingGroupName()
- Parameters:
profilingGroupName
- The name of the profiling group. This parameter is required.- Returns:
this
-
agentPermissions
Sets the value ofCfnProfilingGroupProps.getAgentPermissions()
- Parameters:
agentPermissions
- The agent permissions attached to this profiling group. This action group grantsConfigureAgent
andPostAgentProfile
permissions to perform actions required by the profiling agent. The Json consists of keyPrincipals
.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 .
- Returns:
this
-
anomalyDetectionNotificationConfiguration
@Stability(Stable) public CfnProfilingGroupProps.Builder anomalyDetectionNotificationConfiguration(IResolvable anomalyDetectionNotificationConfiguration) Sets the value ofCfnProfilingGroupProps.getAnomalyDetectionNotificationConfiguration()
- Parameters:
anomalyDetectionNotificationConfiguration
- Adds anomaly notifications for a profiling group.- Returns:
this
-
anomalyDetectionNotificationConfiguration
@Stability(Stable) public CfnProfilingGroupProps.Builder anomalyDetectionNotificationConfiguration(List<? extends Object> anomalyDetectionNotificationConfiguration) Sets the value ofCfnProfilingGroupProps.getAnomalyDetectionNotificationConfiguration()
- Parameters:
anomalyDetectionNotificationConfiguration
- Adds anomaly notifications for a profiling group.- Returns:
this
-
computePlatform
Sets the value ofCfnProfilingGroupProps.getComputePlatform()
- Parameters:
computePlatform
- The compute platform of the profiling group. UseAWSLambda
if your application runs on AWS Lambda. UseDefault
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.- Returns:
this
-
tags
Sets the value ofCfnProfilingGroupProps.getTags()
- Parameters:
tags
- A list of tags to add to the created profiling group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProfilingGroupProps>
- Returns:
- a new instance of
CfnProfilingGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-