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 Summary
Modifier and TypeMethodDescriptionalertManagerDefinition(String alertManagerDefinition) The alert manager definition for the workspace, as a string.An alias that you assign to this workspace to help you identify it.build()static CfnWorkspace.BuilderloggingConfiguration(IResolvable loggingConfiguration) The LoggingConfiguration attribute is used to set the logging configuration for the workspace.loggingConfiguration(CfnWorkspace.LoggingConfigurationProperty loggingConfiguration) The LoggingConfiguration attribute is used to set the logging configuration for the workspace.A list of tag keys and values to associate with the workspace.
-
Method Details
-
create
@Stability(Stable) public static CfnWorkspace.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
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- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspace>- Returns:
- a newly built instance of
CfnWorkspace.
-