public static final class CfnWorkspace.Builder
extends java.lang.Object
CfnWorkspace
.Modifier and Type | Method and Description |
---|---|
CfnWorkspace.Builder |
alertManagerDefinition(java.lang.String alertManagerDefinition)
The alert manager definition for the workspace, as a string.
|
CfnWorkspace.Builder |
alias(java.lang.String alias)
An alias that you assign to this workspace to help you identify it.
|
CfnWorkspace |
build() |
static CfnWorkspace.Builder |
create(Construct scope,
java.lang.String id) |
CfnWorkspace.Builder |
loggingConfiguration(CfnWorkspace.LoggingConfigurationProperty loggingConfiguration)
The LoggingConfiguration attribute is used to set the logging configuration for the workspace.
|
CfnWorkspace.Builder |
loggingConfiguration(IResolvable loggingConfiguration)
The LoggingConfiguration attribute is used to set the logging configuration for the workspace.
|
CfnWorkspace.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of tag keys and values to associate with the workspace.
|
public static CfnWorkspace.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnWorkspace.LoggingConfigurationProperty.Builder
.public CfnWorkspace.Builder alertManagerDefinition(java.lang.String alertManagerDefinition)
For more information, see Alert manager and templating .
alertManagerDefinition
- The alert manager definition for the workspace, as a string. This parameter is required.this
public CfnWorkspace.Builder alias(java.lang.String alias)
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.
alias
- An alias that you assign to this workspace to help you identify it. This parameter is required.this
public CfnWorkspace.Builder loggingConfiguration(CfnWorkspace.LoggingConfigurationProperty loggingConfiguration)
loggingConfiguration
- The LoggingConfiguration attribute is used to set the logging configuration for the workspace. This parameter is required.this
public CfnWorkspace.Builder loggingConfiguration(IResolvable loggingConfiguration)
loggingConfiguration
- The LoggingConfiguration attribute is used to set the logging configuration for the workspace. This parameter is required.this
public CfnWorkspace.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- A list of tag keys and values to associate with the workspace. This parameter is required.this
public CfnWorkspace build()