CfnLinkProps Struct
Properties for defining a CfnLink.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_oam as oam } from 'aws-cdk-lib';
const cfnLinkProps: oam.CfnLinkProps = {
resourceTypes: ['resourceTypes'],
sinkIdentifier: 'sinkIdentifier',
// the properties below are optional
labelTemplate: 'labelTemplate',
linkConfiguration: {
logGroupConfiguration: {
filter: 'filter',
},
metricConfiguration: {
filter: 'filter',
},
},
tags: {
tagsKey: 'tags',
},
};
Properties
labelTemplateoptionalstringlabel_templateoptionalstrlabelTemplateoptionalStringLabelTemplateoptionalstringLabelTemplateoptional*string#Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.
notes
You can include the following variables in your template:
$AccountNameis the name of the account$AccountEmailis a globally-unique email address, which includes the email domain, such asmariagarcia@example.com$AccountEmailNoDomainis an email address without the domain name, such asmariagarcia
In the and Regions, the only supported option is to use custom labels, and the
$AccountName,$AccountEmail, and$AccountEmailNoDomainvariables all resolve as account-id instead of the specified variable.
linkConfigurationoptionalIResolvable | CfnLink.LinkConfigurationPropertylink_configurationoptionaltyping.Union[IResolvable, LinkConfigurationProperty]linkConfigurationoptionalIResolvableLinkConfigurationoptionalIResolvableLinkConfigurationoptionalinterface{}#Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
resourceTypesstring[]resource_typestyping.List[str]resourceTypesList<String>ResourceTypesstring[]ResourceTypes*[]*stringrequired#An array of strings that define which types of data that the source account shares with the monitoring account.
Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor .