Class CfnLinkMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.oam.CfnLinkMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLinkMixinProps>
- Enclosing interface:
CfnLinkMixinProps
@Stability(Stable)
public static final class CfnLinkMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLinkMixinProps>
A builder for
CfnLinkMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.labelTemplate(String labelTemplate) Sets the value ofCfnLinkMixinProps.getLabelTemplate()linkConfiguration(CfnLinkPropsMixin.LinkConfigurationProperty linkConfiguration) Sets the value ofCfnLinkMixinProps.getLinkConfiguration()linkConfiguration(IResolvable linkConfiguration) Sets the value ofCfnLinkMixinProps.getLinkConfiguration()resourceTypes(List<String> resourceTypes) Sets the value ofCfnLinkMixinProps.getResourceTypes()sinkIdentifier(String sinkIdentifier) Sets the value ofCfnLinkMixinProps.getSinkIdentifier()Sets the value ofCfnLinkMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
labelTemplate
Sets the value ofCfnLinkMixinProps.getLabelTemplate()- 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. 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.- Returns:
this
-
linkConfiguration
@Stability(Stable) public CfnLinkMixinProps.Builder linkConfiguration(IResolvable linkConfiguration) Sets the value ofCfnLinkMixinProps.getLinkConfiguration()- 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.- Returns:
this
-
linkConfiguration
@Stability(Stable) public CfnLinkMixinProps.Builder linkConfiguration(CfnLinkPropsMixin.LinkConfigurationProperty linkConfiguration) Sets the value ofCfnLinkMixinProps.getLinkConfiguration()- 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.- Returns:
this
-
resourceTypes
Sets the value ofCfnLinkMixinProps.getResourceTypes()- Parameters:
resourceTypes- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values areAWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.- Returns:
this
-
sinkIdentifier
Sets the value ofCfnLinkMixinProps.getSinkIdentifier()- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnLinkMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the link. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLinkMixinProps>- Returns:
- a new instance of
CfnLinkMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-