Class CfnEnvironment.MonitorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.CfnEnvironment.MonitorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironment.MonitorProperty>
- Enclosing interface:
CfnEnvironment.MonitorProperty
@Stability(Stable)
public static final class CfnEnvironment.MonitorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEnvironment.MonitorProperty>
A builder for
CfnEnvironment.MonitorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEnvironment.MonitorProperty.getAlarmArn()
alarmRoleArn
(String alarmRoleArn) Sets the value ofCfnEnvironment.MonitorProperty.getAlarmRoleArn()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmArn
Sets the value ofCfnEnvironment.MonitorProperty.getAlarmArn()
- Parameters:
alarmArn
- Amazon Resource Name (ARN) of the Amazon CloudWatch alarm. This parameter is required.- Returns:
this
-
alarmRoleArn
Sets the value ofCfnEnvironment.MonitorProperty.getAlarmRoleArn()
- Parameters:
alarmRoleArn
- ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitorAlarmArn
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEnvironment.MonitorProperty>
- Returns:
- a new instance of
CfnEnvironment.MonitorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-