@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:26.603Z") 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 interface |
CfnProfilingGroup.AgentPermissionsProperty
Example:
|
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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnProfilingGroup(Construct scope,
java.lang.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 |
---|---|
java.lang.Object |
getAgentPermissions()
The agent permissions attached to this profiling group.
|
java.lang.Object |
getAnomalyDetectionNotificationConfiguration()
Adds anomaly notifications for a profiling group.
|
java.lang.String |
getAttrArn()
The full Amazon Resource Name (ARN) for that profiling group.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getComputePlatform()
The compute platform of the profiling group.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAgentPermissions(java.lang.Object value)
The agent permissions attached to this profiling group.
|
void |
setAnomalyDetectionNotificationConfiguration(IResolvable value)
Adds anomaly notifications for a profiling group.
|
void |
setAnomalyDetectionNotificationConfiguration(java.util.List<java.lang.Object> value)
Adds anomaly notifications for a profiling group.
|
void |
setComputePlatform(java.lang.String value)
The compute platform of the profiling group.
|
void |
setProfilingGroupName(java.lang.String value)
The name of the profiling group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnProfilingGroup(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.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 .
public void setAgentPermissions(java.lang.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 .
public java.lang.String getProfilingGroupName()
public void setProfilingGroupName(java.lang.String value)
public java.lang.Object getAnomalyDetectionNotificationConfiguration()
public void setAnomalyDetectionNotificationConfiguration(IResolvable value)
public void setAnomalyDetectionNotificationConfiguration(java.util.List<java.lang.Object> value)
public java.lang.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.
public void setComputePlatform(java.lang.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.