public static final class CfnAppMonitor.MetricDestinationProperty.Builder
extends java.lang.Object
CfnAppMonitor.MetricDestinationProperty
Constructor and Description |
---|
Builder() |
public CfnAppMonitor.MetricDestinationProperty.Builder destination(java.lang.String destination)
CfnAppMonitor.MetricDestinationProperty.getDestination()
destination
- Defines the destination to send the metrics to. This parameter is required.
Valid values are CloudWatch
and Evidently
. If you specify Evidently
, you must also specify the ARN of the CloudWatch Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.this
public CfnAppMonitor.MetricDestinationProperty.Builder destinationArn(java.lang.String destinationArn)
CfnAppMonitor.MetricDestinationProperty.getDestinationArn()
destinationArn
- Use this parameter only if `Destination` is `Evidently` .
This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.this
public CfnAppMonitor.MetricDestinationProperty.Builder iamRoleArn(java.lang.String iamRoleArn)
CfnAppMonitor.MetricDestinationProperty.getIamRoleArn()
iamRoleArn
- This parameter is required if `Destination` is `Evidently` . If `Destination` is `CloudWatch` , do not use this parameter.
This parameter specifies the ARN of an IAM role that RUM will assume to write to the Evidently experiment that you are sending metrics to. This role must have permission to write to that experiment.this
public CfnAppMonitor.MetricDestinationProperty.Builder metricDefinitions(IResolvable metricDefinitions)
CfnAppMonitor.MetricDestinationProperty.getMetricDefinitions()
metricDefinitions
- An array of structures which define the metrics that you want to send.this
public CfnAppMonitor.MetricDestinationProperty.Builder metricDefinitions(java.util.List<? extends java.lang.Object> metricDefinitions)
CfnAppMonitor.MetricDestinationProperty.getMetricDefinitions()
metricDefinitions
- An array of structures which define the metrics that you want to send.this
public CfnAppMonitor.MetricDestinationProperty build()
CfnAppMonitor.MetricDestinationProperty
java.lang.NullPointerException
- if any required attribute was not provided