Class CfnLinkProps.Builder

java.lang.Object
software.amazon.awscdk.services.oam.CfnLinkProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLinkProps>
Enclosing interface:
CfnLinkProps

@Stability(Stable) public static final class CfnLinkProps.Builder extends Object implements software.amazon.jsii.Builder<CfnLinkProps>
A builder for CfnLinkProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • resourceTypes

      @Stability(Stable) public CfnLinkProps.Builder resourceTypes(List<String> resourceTypes)
      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. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor .
      Returns:
      this
    • sinkIdentifier

      @Stability(Stable) public CfnLinkProps.Builder sinkIdentifier(String sinkIdentifier)
      Parameters:
      sinkIdentifier - The ARN of the sink in the monitoring account that you want to link to. This parameter is required. You can use ListSinks to find the ARNs of sinks.
      Returns:
      this
    • labelTemplate

      @Stability(Stable) public CfnLinkProps.Builder labelTemplate(String labelTemplate)
      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:

      • $AccountName is the name of the account
      • $AccountEmail is a globally-unique email address, which includes the email domain, such as mariagarcia@example.com
      • $AccountEmailNoDomain is an email address without the domain name, such as mariagarcia
      Returns:
      this
    • linkConfiguration

      @Stability(Stable) public CfnLinkProps.Builder linkConfiguration(IResolvable linkConfiguration)
      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 CfnLinkProps.Builder linkConfiguration(CfnLink.LinkConfigurationProperty linkConfiguration)
      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
    • tags

      @Stability(Stable) public CfnLinkProps.Builder tags(Map<String,String> tags)
      Sets the value of CfnLinkProps.getTags()
      Parameters:
      tags - An array of key-value pairs to apply to the link. For more information, see Tag .
      Returns:
      this
    • build

      @Stability(Stable) public CfnLinkProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLinkProps>
      Returns:
      a new instance of CfnLinkProps
      Throws:
      NullPointerException - if any required attribute was not provided