Class CfnServiceLevelObjective.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective>
- Enclosing class:
CfnServiceLevelObjective
@Stability(Stable)
public static final class CfnServiceLevelObjective.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective>
A fluent builder for
CfnServiceLevelObjective
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) An optional description for this SLO.goal
(IResolvable goal) This structure contains the attributes that determine the goal of an SLO.This structure contains the attributes that determine the goal of an SLO.A name for this SLO.sli
(IResolvable sli) A structure containing information about the performance metric that this SLO monitors.A structure containing information about the performance metric that this SLO monitors.A list of key-value pairs to associate with the SLO.
-
Method Details
-
create
@Stability(Stable) public static CfnServiceLevelObjective.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
CfnServiceLevelObjective.Builder
.
-
name
A name for this SLO.- Parameters:
name
- A name for this SLO. This parameter is required.- Returns:
this
- See Also:
-
sli
A structure containing information about the performance metric that this SLO monitors.- Parameters:
sli
- A structure containing information about the performance metric that this SLO monitors. This parameter is required.- Returns:
this
- See Also:
-
sli
@Stability(Stable) public CfnServiceLevelObjective.Builder sli(CfnServiceLevelObjective.SliProperty sli) A structure containing information about the performance metric that this SLO monitors.- Parameters:
sli
- A structure containing information about the performance metric that this SLO monitors. This parameter is required.- Returns:
this
- See Also:
-
description
An optional description for this SLO.Default: - "No description"
- Parameters:
description
- An optional description for this SLO. This parameter is required.- Returns:
this
- See Also:
-
goal
This structure contains the attributes that determine the goal of an SLO.This includes the time period for evaluation and the attainment threshold.
- Parameters:
goal
- This structure contains the attributes that determine the goal of an SLO. This parameter is required.- Returns:
this
- See Also:
-
goal
@Stability(Stable) public CfnServiceLevelObjective.Builder goal(CfnServiceLevelObjective.GoalProperty goal) This structure contains the attributes that determine the goal of an SLO.This includes the time period for evaluation and the attainment threshold.
- Parameters:
goal
- This structure contains the attributes that determine the goal of an SLO. This parameter is required.- Returns:
this
- See Also:
-
tags
A list of key-value pairs to associate with the SLO.You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- Parameters:
tags
- A list of key-value pairs to associate with the SLO. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective>
- Returns:
- a newly built instance of
CfnServiceLevelObjective
.
-