class CfnDiscoveryPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationSignals.Mixins.CfnDiscoveryPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationsignals/mixins#CfnDiscoveryPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.applicationsignals.mixins.CfnDiscoveryPropsMixin |
Python | aws_cdk.mixins_preview.aws_applicationsignals.mixins.CfnDiscoveryPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_applicationsignals » mixins » CfnDiscoveryPropsMixin |
Implements
IMixin
Extends
Mixin
If 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 AWSServiceRoleForCloudWatchApplicationSignals service-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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as applicationsignals_mixins } from '@aws-cdk/mixins-preview/aws-applicationsignals';
const cfnDiscoveryPropsMixin = new applicationsignals_mixins.CfnDiscoveryPropsMixin({ }, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnDiscoveryPropsMixin(props: CfnDiscoveryMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Discovery Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::ApplicationSignals::Discovery.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript