Class CfnMonitoringSubscription.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnMonitoringSubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitoringSubscription>
- Enclosing class:
CfnMonitoringSubscription
@Stability(Stable)
public static final class CfnMonitoringSubscription.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitoringSubscription>
A fluent builder for
CfnMonitoringSubscription
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
distributionId
(String distributionId) The ID of the distribution that you are enabling metrics for.monitoringSubscription
(IResolvable monitoringSubscription) A subscription configuration for additional CloudWatch metrics.monitoringSubscription
(CfnMonitoringSubscription.MonitoringSubscriptionProperty monitoringSubscription) A subscription configuration for additional CloudWatch metrics.
-
Method Details
-
create
@Stability(Stable) public static CfnMonitoringSubscription.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
CfnMonitoringSubscription.Builder
.
-
distributionId
The ID of the distribution that you are enabling metrics for.- Parameters:
distributionId
- The ID of the distribution that you are enabling metrics for. This parameter is required.- Returns:
this
- See Also:
-
monitoringSubscription
@Stability(Stable) public CfnMonitoringSubscription.Builder monitoringSubscription(IResolvable monitoringSubscription) A subscription configuration for additional CloudWatch metrics.- Parameters:
monitoringSubscription
- A subscription configuration for additional CloudWatch metrics. This parameter is required.- Returns:
this
- See Also:
-
monitoringSubscription
@Stability(Stable) public CfnMonitoringSubscription.Builder monitoringSubscription(CfnMonitoringSubscription.MonitoringSubscriptionProperty monitoringSubscription) A subscription configuration for additional CloudWatch metrics.- Parameters:
monitoringSubscription
- A subscription configuration for additional CloudWatch metrics. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMonitoringSubscription>
- Returns:
- a newly built instance of
CfnMonitoringSubscription
.
-