Class CfnProfilingGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codeguruprofiler.CfnProfilingGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProfilingGroupMixinProps>
- Enclosing interface:
CfnProfilingGroupMixinProps
@Stability(Stable)
public static final class CfnProfilingGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProfilingGroupMixinProps>
A builder for
CfnProfilingGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentPermissions(Object agentPermissions) Sets the value ofCfnProfilingGroupMixinProps.getAgentPermissions()anomalyDetectionNotificationConfiguration(List<? extends Object> anomalyDetectionNotificationConfiguration) anomalyDetectionNotificationConfiguration(IResolvable anomalyDetectionNotificationConfiguration) build()Builds the configured instance.computePlatform(String computePlatform) Sets the value ofCfnProfilingGroupMixinProps.getComputePlatform()profilingGroupName(String profilingGroupName) Sets the value ofCfnProfilingGroupMixinProps.getProfilingGroupName()profilingGroupName(IFunctionRef profilingGroupName) Sets the value ofCfnProfilingGroupMixinProps.getProfilingGroupName()Sets the value ofCfnProfilingGroupMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentPermissions
@Stability(Stable) public CfnProfilingGroupMixinProps.Builder agentPermissions(Object agentPermissions) Sets the value ofCfnProfilingGroupMixinProps.getAgentPermissions()- Parameters:
agentPermissions- The agent permissions attached to this profiling group. This action group grantsConfigureAgentandPostAgentProfilepermissions 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 CfnProfilingGroupMixinProps.Builder anomalyDetectionNotificationConfiguration(IResolvable anomalyDetectionNotificationConfiguration) - Parameters:
anomalyDetectionNotificationConfiguration- Adds anomaly notifications for a profiling group.- Returns:
this
-
anomalyDetectionNotificationConfiguration
@Stability(Stable) public CfnProfilingGroupMixinProps.Builder anomalyDetectionNotificationConfiguration(List<? extends Object> anomalyDetectionNotificationConfiguration) - Parameters:
anomalyDetectionNotificationConfiguration- Adds anomaly notifications for a profiling group.- Returns:
this
-
computePlatform
@Stability(Stable) public CfnProfilingGroupMixinProps.Builder computePlatform(String computePlatform) Sets the value ofCfnProfilingGroupMixinProps.getComputePlatform()- Parameters:
computePlatform- The compute platform of the profiling group. UseAWSLambdaif your application runs on AWS Lambda. UseDefaultif 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,Defaultis used. This property is immutable.- Returns:
this
-
profilingGroupName
@Stability(Stable) public CfnProfilingGroupMixinProps.Builder profilingGroupName(String profilingGroupName) Sets the value ofCfnProfilingGroupMixinProps.getProfilingGroupName()- Parameters:
profilingGroupName- The name of the profiling group.- Returns:
this
-
profilingGroupName
@Stability(Stable) public CfnProfilingGroupMixinProps.Builder profilingGroupName(IFunctionRef profilingGroupName) Sets the value ofCfnProfilingGroupMixinProps.getProfilingGroupName()- Parameters:
profilingGroupName- The name of the profiling group.- Returns:
this
-
tags
Sets the value ofCfnProfilingGroupMixinProps.getTags()- Parameters:
tags- A list of tags to add to the created profiling group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProfilingGroupMixinProps>- Returns:
- a new instance of
CfnProfilingGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-