Class CfnWorkspaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnWorkspaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceMixinProps>
- Enclosing interface:
CfnWorkspaceMixinProps
@Stability(Stable)
public static final class CfnWorkspaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceMixinProps>
A builder for
CfnWorkspaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalertManagerDefinition(String alertManagerDefinition) Sets the value ofCfnWorkspaceMixinProps.getAlertManagerDefinition()Sets the value ofCfnWorkspaceMixinProps.getAlias()build()Builds the configured instance.Sets the value ofCfnWorkspaceMixinProps.getKmsKeyArn()loggingConfiguration(CfnWorkspacePropsMixin.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getLoggingConfiguration()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getLoggingConfiguration()queryLoggingConfiguration(CfnWorkspacePropsMixin.QueryLoggingConfigurationProperty queryLoggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getQueryLoggingConfiguration()queryLoggingConfiguration(IResolvable queryLoggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getQueryLoggingConfiguration()Sets the value ofCfnWorkspaceMixinProps.getTags()workspaceConfiguration(CfnWorkspacePropsMixin.WorkspaceConfigurationProperty workspaceConfiguration) Sets the value ofCfnWorkspaceMixinProps.getWorkspaceConfiguration()workspaceConfiguration(IResolvable workspaceConfiguration) Sets the value ofCfnWorkspaceMixinProps.getWorkspaceConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alertManagerDefinition
@Stability(Stable) public CfnWorkspaceMixinProps.Builder alertManagerDefinition(String alertManagerDefinition) Sets the value ofCfnWorkspaceMixinProps.getAlertManagerDefinition()- Parameters:
alertManagerDefinition- The alert manager definition, a YAML configuration for the alert manager in your Amazon Managed Service for Prometheus workspace. For details about the alert manager definition, see Creating an alert manager configuration files in the Amazon Managed Service for Prometheus User Guide .The following example shows part of a CloudFormation YAML file with an embedded alert manager definition (following the
- |-).Workspace: Type: AWS::APS::Workspace .... Properties: .... AlertManagerDefinition: Fn::Sub: - |- alertmanager_config: | templates: - 'default_template' route: receiver: example-sns receivers: - name: example-sns sns_configs: - topic_arn: 'arn:aws:sns:${AWS::Region}:${AWS::AccountId}:${TopicName}' -- Returns:
this
-
alias
Sets the value ofCfnWorkspaceMixinProps.getAlias()- Parameters:
alias- The alias that is assigned to this workspace to help identify it. It does not need to be unique.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnWorkspaceMixinProps.getKmsKeyArn()- Parameters:
kmsKeyArn- (optional) The ARN for a customer managed AWS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide .- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Contains information about the logging configuration for the workspace.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder loggingConfiguration(CfnWorkspacePropsMixin.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Contains information about the logging configuration for the workspace.- Returns:
this
-
queryLoggingConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder queryLoggingConfiguration(IResolvable queryLoggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getQueryLoggingConfiguration()- Parameters:
queryLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Returns:
this
-
queryLoggingConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder queryLoggingConfiguration(CfnWorkspacePropsMixin.QueryLoggingConfigurationProperty queryLoggingConfiguration) Sets the value ofCfnWorkspaceMixinProps.getQueryLoggingConfiguration()- Parameters:
queryLoggingConfiguration- The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.- Returns:
this
-
tags
Sets the value ofCfnWorkspaceMixinProps.getTags()- Parameters:
tags- The list of tag keys and values that are associated with the workspace.- Returns:
this
-
workspaceConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder workspaceConfiguration(IResolvable workspaceConfiguration) Sets the value ofCfnWorkspaceMixinProps.getWorkspaceConfiguration()- Parameters:
workspaceConfiguration- Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.- Returns:
this
-
workspaceConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder workspaceConfiguration(CfnWorkspacePropsMixin.WorkspaceConfigurationProperty workspaceConfiguration) Sets the value ofCfnWorkspaceMixinProps.getWorkspaceConfiguration()- Parameters:
workspaceConfiguration- Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceMixinProps>- Returns:
- a new instance of
CfnWorkspaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-