Interface CfnWorkspaceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWorkspaceProps.Jsii$Proxy
CfnWorkspace.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.aps.*;
CfnWorkspaceProps cfnWorkspaceProps = CfnWorkspaceProps.builder()
.alertManagerDefinition("alertManagerDefinition")
.alias("alias")
.kmsKeyArn("kmsKeyArn")
.loggingConfiguration(LoggingConfigurationProperty.builder()
.logGroupArn("logGroupArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workspaceConfiguration(WorkspaceConfigurationProperty.builder()
.limitsPerLabelSets(List.of(LimitsPerLabelSetProperty.builder()
.labelSet(List.of(LabelProperty.builder()
.name("name")
.value("value")
.build()))
.limits(LimitsPerLabelSetEntryProperty.builder()
.maxSeries(123)
.build())
.build()))
.retentionPeriodInDays(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWorkspacePropsstatic final classAn implementation forCfnWorkspaceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnWorkspaceProps.Builderbuilder()default StringThe alert manager definition, a YAML configuration for the alert manager in your Amazon Managed Service for Prometheus workspace.default StringgetAlias()The alias that is assigned to this workspace to help identify it.default String(optional) The ARN for a customer managed AWS KMS key to use for encrypting data within your workspace.default ObjectContains information about the logging configuration for the workspace.getTags()The list of tag keys and values that are associated with the workspace.default ObjectWorkspace configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlertManagerDefinition
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}' -- See Also:
-
getAlias
The alias that is assigned to this workspace to help identify it.It does not need to be unique.
- See Also:
-
getKmsKeyArn
(optional) The ARN for a customer managed AWS KMS 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 .
- See Also:
-
getLoggingConfiguration
Contains information about the logging configuration for the workspace.- See Also:
-
getTags
The list of tag keys and values that are associated with the workspace.- See Also:
-
getWorkspaceConfiguration
Workspace configuration.- See Also:
-
builder
- Returns:
- a
CfnWorkspaceProps.BuilderofCfnWorkspaceProps
-