CfnDiscoveryPropsMixin
- class aws_cdk.mixins_preview.aws_applicationsignals.mixins.CfnDiscoveryPropsMixin(props, *, strategy=None)
Bases:
MixinIf you have existing
AWS::ApplicationSignals::Discoveryresources that were created prior to the Application Map release, you will need to delete and recreate these resources in your account to enable Application Map.Enables this AWS account to be able to use CloudWatch Application Signals by creating the
AWSServiceRoleForCloudWatchApplicationSignalsservice-linked role. This service-linked role has the following permissions:xray:GetServiceGraphlogs:StartQuerylogs:GetQueryResultscloudwatch:GetMetricDatacloudwatch:ListMetricstag:GetResourcesautoscaling:DescribeAutoScalingGroups
A service-linked CloudTrail event channel is created to process CloudTrail events and return change event information. This includes last deployment time, userName, eventName, and other event metadata.
After completing this step, you still need to instrument your Java and Python applications to send data to Application Signals. For more information, see Enabling Application Signals .
- see:
- cloudformationResource:
AWS::ApplicationSignals::Discovery
- 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_applicationsignals import mixins as applicationsignals_mixins cfn_discovery_props_mixin = applicationsignals_mixins.CfnDiscoveryPropsMixin(applicationsignals_mixins.CfnDiscoveryMixinProps(), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ApplicationSignals::Discovery.- Parameters:
props (
Union[CfnDiscoveryMixinProps,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 = []
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