CfnProfilingGroupPropsMixin
- class aws_cdk.mixins_preview.aws_codeguruprofiler.mixins.CfnProfilingGroupPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a profiling group.
- See:
- CloudformationResource:
AWS::CodeGuruProfiler::ProfilingGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_codeguruprofiler import mixins as codeguruprofiler_mixins # agent_permissions: Any cfn_profiling_group_props_mixin = codeguruprofiler_mixins.CfnProfilingGroupPropsMixin(codeguruprofiler_mixins.CfnProfilingGroupMixinProps( agent_permissions=agent_permissions, anomaly_detection_notification_configuration=[codeguruprofiler_mixins.CfnProfilingGroupPropsMixin.ChannelProperty( channel_id="channelId", channel_uri="channelUri" )], compute_platform="computePlatform", profiling_group_name="profilingGroupName", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CodeGuruProfiler::ProfilingGroup.- Parameters:
props (
Union[CfnProfilingGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['agentPermissions', 'anomalyDetectionNotificationConfiguration', 'computePlatform', 'profilingGroupName', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AgentPermissionsProperty
- class CfnProfilingGroupPropsMixin.AgentPermissionsProperty(*, principals=None)
Bases:
objectThe agent permissions attached to this profiling group.
- Parameters:
principals (
Optional[Sequence[str]]) – The principals for the agent permissions.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codeguruprofiler import mixins as codeguruprofiler_mixins agent_permissions_property = codeguruprofiler_mixins.CfnProfilingGroupPropsMixin.AgentPermissionsProperty( principals=["principals"] )
Attributes
- principals
The principals for the agent permissions.
ChannelProperty
- class CfnProfilingGroupPropsMixin.ChannelProperty(*, channel_id=None, channel_uri=None)
Bases:
objectNotification medium for users to get alerted for events that occur in application profile.
We support SNS topic as a notification channel.
- Parameters:
channel_id (
Optional[str]) – The channel ID.channel_uri (
Optional[str]) – The channel URI.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_codeguruprofiler import mixins as codeguruprofiler_mixins channel_property = codeguruprofiler_mixins.CfnProfilingGroupPropsMixin.ChannelProperty( channel_id="channelId", channel_uri="channelUri" )
Attributes
- channel_id
The channel ID.