CfnProfilingGroupPropsMixin

class aws_cdk.mixins_preview.aws_codeguruprofiler.mixins.CfnProfilingGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a profiling group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

AgentPermissionsProperty

class CfnProfilingGroupPropsMixin.AgentPermissionsProperty(*, principals=None)

Bases: object

The agent permissions attached to this profiling group.

Parameters:

principals (Optional[Sequence[str]]) – The principals for the agent permissions.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-agentpermissions.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-agentpermissions.html#cfn-codeguruprofiler-profilinggroup-agentpermissions-principals

ChannelProperty

class CfnProfilingGroupPropsMixin.ChannelProperty(*, channel_id=None, channel_uri=None)

Bases: object

Notification 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html#cfn-codeguruprofiler-profilinggroup-channel-channelid

channel_uri

The channel URI.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html#cfn-codeguruprofiler-profilinggroup-channel-channeluri