@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.440Z") @Stability(value=Stable) public class CfnProfilingGroup extends CfnResource implements IInspectable
Creates a profiling group.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codeguruprofiler.*;
Object agentPermissions;
CfnProfilingGroup cfnProfilingGroup = CfnProfilingGroup.Builder.create(this, "MyCfnProfilingGroup")
.profilingGroupName("profilingGroupName")
// the properties below are optional
.agentPermissions(agentPermissions)
.anomalyDetectionNotificationConfiguration(List.of(ChannelProperty.builder()
.channelUri("channelUri")
// the properties below are optional
.channelId("channelId")
.build()))
.computePlatform("computePlatform")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnProfilingGroup.Builder
A fluent builder for
CfnProfilingGroup. |
static interface |
CfnProfilingGroup.ChannelProperty
Notification medium for users to get alerted for events that occur in application profile.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnProfilingGroup(software.constructs.Construct scope,
String id,
CfnProfilingGroupProps props)
Create a new `AWS::CodeGuruProfiler::ProfilingGroup`.
|
protected |
CfnProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAgentPermissions()
The agent permissions attached to this profiling group.
|
Object |
getAnomalyDetectionNotificationConfiguration()
Adds anomaly notifications for a profiling group.
|
String |
getAttrArn()
The full Amazon Resource Name (ARN) for that profiling group.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getComputePlatform()
The compute platform of the profiling group.
|
String |
getProfilingGroupName()
The name of the profiling group.
|
TagManager |
getTags()
A list of tags to add to the created profiling group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAgentPermissions(Object value)
The agent permissions attached to this profiling group.
|
void |
setAnomalyDetectionNotificationConfiguration(IResolvable value)
Adds anomaly notifications for a profiling group.
|
void |
setAnomalyDetectionNotificationConfiguration(List<Object> value)
Adds anomaly notifications for a profiling group.
|
void |
setComputePlatform(String value)
The compute platform of the profiling group.
|
void |
setProfilingGroupName(String value)
The name of the profiling group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnProfilingGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnProfilingGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getAgentPermissions()
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 .
@Stability(value=Stable)
public void setAgentPermissions(@NotNull
Object value)
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 .
@Stability(value=Stable) @NotNull public String getProfilingGroupName()
@Stability(value=Stable)
public void setProfilingGroupName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAnomalyDetectionNotificationConfiguration()
@Stability(value=Stable)
public void setAnomalyDetectionNotificationConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAnomalyDetectionNotificationConfiguration(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getComputePlatform()
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.
@Stability(value=Stable)
public void setComputePlatform(@Nullable
String value)
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.
Copyright © 2022. All rights reserved.