Interface IUsagePlan
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IUsagePlan.Jsii$Default
- All Known Implementing Classes:
IUsagePlan.Jsii$Proxy
,UsagePlan
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:13.385Z")
@Stability(Stable)
public interface IUsagePlan
extends software.amazon.jsii.JsiiSerializable, IResource
A UsagePlan, either managed by this CDK app, or imported.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIUsagePlan
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an ApiKey.void
addApiKey
(IApiKey apiKey, AddApiKeyOptions options) Adds an ApiKey.Id of the usage plan.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUsagePlanId
Id of the usage plan. -
addApiKey
Adds an ApiKey.- Parameters:
apiKey
- the api key to associate with this usage plan. This parameter is required.options
- options that control the behaviour of this method.
-
addApiKey
Adds an ApiKey.- Parameters:
apiKey
- the api key to associate with this usage plan. This parameter is required.
-