Skip to content
v2.273.0

CfnDiscoveryPropsMixin Mixin ​

If you have existing AWS::ApplicationSignals::Discovery resources 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:GetServiceGraph
  • logs:StartQuery
  • logs:GetQueryResults
  • cloudwatch:GetMetricData
  • cloudwatch:ListMetrics
  • tag:GetResources
  • autoscaling: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 .

Initializer ​

ts
new CfnDiscoveryPropsMixin(props: CfnDiscoveryMixinProps, options?: CfnPropertyMixinOptions)
python
CfnDiscoveryPropsMixin(props: CfnDiscoveryMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnDiscoveryPropsMixin(CfnDiscoveryMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnDiscoveryPropsMixin(CfnDiscoveryMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnDiscoveryPropsMixin(Props CfnDiscoveryMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

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

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.