Class CfnUsagePlan.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnUsagePlan.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlan>
- Enclosing class:
CfnUsagePlan
@Stability(Stable)
public static final class CfnUsagePlan.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlan>
A fluent builder for
CfnUsagePlan
.-
Method Summary
Modifier and TypeMethodDescriptionThe associated API stages of a usage plan.apiStages
(IResolvable apiStages) The associated API stages of a usage plan.build()
static CfnUsagePlan.Builder
description
(String description) The description of a usage plan.quota
(IResolvable quota) The target maximum number of permitted requests per a given unit time interval.The target maximum number of permitted requests per a given unit time interval.The collection of tags.throttle
(IResolvable throttle) A map containing method level throttling information for API stage in a usage plan.A map containing method level throttling information for API stage in a usage plan.usagePlanName
(String usagePlanName) The name of a usage plan.
-
Method Details
-
create
@Stability(Stable) public static CfnUsagePlan.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
CfnUsagePlan.Builder
.
-
apiStages
The associated API stages of a usage plan.- Parameters:
apiStages
- The associated API stages of a usage plan. This parameter is required.- Returns:
this
- See Also:
-
apiStages
The associated API stages of a usage plan.- Parameters:
apiStages
- The associated API stages of a usage plan. This parameter is required.- Returns:
this
- See Also:
-
description
The description of a usage plan.- Parameters:
description
- The description of a usage plan. This parameter is required.- Returns:
this
- See Also:
-
quota
The target maximum number of permitted requests per a given unit time interval.- Parameters:
quota
- The target maximum number of permitted requests per a given unit time interval. This parameter is required.- Returns:
this
- See Also:
-
quota
The target maximum number of permitted requests per a given unit time interval.- Parameters:
quota
- The target maximum number of permitted requests per a given unit time interval. This parameter is required.- Returns:
this
- See Also:
-
tags
The collection of tags.Each tag element is associated with a given resource.
- Parameters:
tags
- The collection of tags. This parameter is required.- Returns:
this
- See Also:
-
throttle
A map containing method level throttling information for API stage in a usage plan.- Parameters:
throttle
- A map containing method level throttling information for API stage in a usage plan. This parameter is required.- Returns:
this
- See Also:
-
throttle
@Stability(Stable) public CfnUsagePlan.Builder throttle(CfnUsagePlan.ThrottleSettingsProperty throttle) A map containing method level throttling information for API stage in a usage plan.- Parameters:
throttle
- A map containing method level throttling information for API stage in a usage plan. This parameter is required.- Returns:
this
- See Also:
-
usagePlanName
The name of a usage plan.- Parameters:
usagePlanName
- The name of a usage plan. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUsagePlan>
- Returns:
- a newly built instance of
CfnUsagePlan
.
-