Class CfnLink.Builder
java.lang.Object
software.amazon.awscdk.services.oam.CfnLink.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLink>
- Enclosing class:
CfnLink
@Stability(Stable)
public static final class CfnLink.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLink>
A fluent builder for
CfnLink
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnLink.Builder
labelTemplate
(String labelTemplate) Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.linkConfiguration
(IResolvable linkConfiguration) 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.linkConfiguration
(CfnLink.LinkConfigurationProperty linkConfiguration) 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.resourceTypes
(List<String> resourceTypes) An array of strings that define which types of data that the source account shares with the monitoring account.sinkIdentifier
(String sinkIdentifier) The ARN of the sink in the monitoring account that you want to link to.An array of key-value pairs to apply to the link.
-
Method Details
-
create
@Stability(Stable) public static CfnLink.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLink.Builder
.
-
resourceTypes
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
.- Parameters:
resourceTypes
- An array of strings that define which types of data that the source account shares with the monitoring account. This parameter is required.- Returns:
this
- See Also:
-
sinkIdentifier
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.
- Parameters:
sinkIdentifier
- The ARN of the sink in the monitoring account that you want to link to. This parameter is required.- Returns:
this
- See Also:
-
labelTemplate
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:
$AccountName
is the name of the account$AccountEmail
is a globally-unique email address, which includes the email domain, such asmariagarcia@example.com
$AccountEmailNoDomain
is an email address without the domain name, such asmariagarcia
- Parameters:
labelTemplate
- Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account. This parameter is required.- Returns:
this
- See Also:
-
linkConfiguration
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.- Parameters:
linkConfiguration
- 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. This parameter is required.- Returns:
this
- See Also:
-
linkConfiguration
@Stability(Stable) public CfnLink.Builder linkConfiguration(CfnLink.LinkConfigurationProperty linkConfiguration) 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.- Parameters:
linkConfiguration
- 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. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to the link.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to the link. This parameter is required.- Returns:
this
- See Also:
-
build
-