Interface CfnLinkProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLinkProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:44.125Z")
@Stability(Stable)
public interface CfnLinkProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLink.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.oam.*;
CfnLinkProps cfnLinkProps = CfnLinkProps.builder()
.resourceTypes(List.of("resourceTypes"))
.sinkIdentifier("sinkIdentifier")
// the properties below are optional
.labelTemplate("labelTemplate")
.linkConfiguration(LinkConfigurationProperty.builder()
.logGroupConfiguration(LinkFilterProperty.builder()
.filter("filter")
.build())
.metricConfiguration(LinkFilterProperty.builder()
.filter("filter")
.build())
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLinkPropsstatic final classAn implementation forCfnLinkProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnLinkProps.Builderbuilder()default StringSpecify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.default ObjectUse 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.An array of strings that define which types of data that the source account shares with the monitoring account.The ARN of the sink in the monitoring account that you want to link to.getTags()An array of key-value pairs to apply to the link.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceTypes
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.- See Also:
-
getSinkIdentifier
The ARN of the sink in the monitoring account that you want to link to.You can use ListSinks to find the ARNs of sinks.
- See Also:
-
getLabelTemplate
Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.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.- See Also:
-
getLinkConfiguration
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.Returns union: either
IResolvableorCfnLink.LinkConfigurationProperty- See Also:
-
getTags
An array of key-value pairs to apply to the link.For more information, see Tag .
- See Also:
-
builder
- Returns:
- a
CfnLinkProps.BuilderofCfnLinkProps
-