Class CfnWorkspace.Builder

java.lang.Object
software.amazon.awscdk.services.aps.CfnWorkspace.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspace>
Enclosing class:
CfnWorkspace

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

    • create

      @Stability(Stable) public static CfnWorkspace.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnWorkspace.Builder.
    • alertManagerDefinition

      @Stability(Stable) public CfnWorkspace.Builder alertManagerDefinition(String alertManagerDefinition)
      The alert manager definition for the workspace, as a string.

      For more information, see Alert manager and templating .

      Parameters:
      alertManagerDefinition - The alert manager definition for the workspace, as a string. This parameter is required.
      Returns:
      this
    • alias

      @Stability(Stable) public CfnWorkspace.Builder alias(String alias)
      An alias that you assign to this workspace to help you identify it.

      It does not need to be unique.

      The alias can be as many as 100 characters and can include any type of characters. Amazon Managed Service for Prometheus automatically strips any blank spaces from the beginning and end of the alias that you specify.

      Parameters:
      alias - An alias that you assign to this workspace to help you identify it. This parameter is required.
      Returns:
      this
    • loggingConfiguration

      @Stability(Stable) public CfnWorkspace.Builder loggingConfiguration(CfnWorkspace.LoggingConfigurationProperty loggingConfiguration)
      The LoggingConfiguration attribute is used to set the logging configuration for the workspace.

      Parameters:
      loggingConfiguration - The LoggingConfiguration attribute is used to set the logging configuration for the workspace. This parameter is required.
      Returns:
      this
    • loggingConfiguration

      @Stability(Stable) public CfnWorkspace.Builder loggingConfiguration(IResolvable loggingConfiguration)
      The LoggingConfiguration attribute is used to set the logging configuration for the workspace.

      Parameters:
      loggingConfiguration - The LoggingConfiguration attribute is used to set the logging configuration for the workspace. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnWorkspace.Builder tags(List<? extends CfnTag> tags)
      A list of tag keys and values to associate with the workspace.

      Parameters:
      tags - A list of tag keys and values to associate with the workspace. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnWorkspace build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnWorkspace>
      Returns:
      a newly built instance of CfnWorkspace.