Interface IUsagePlan
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IUsagePlan.Jsii$Default
- All Known Implementing Classes:
IUsagePlan.Jsii$Proxy,UsagePlan
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:13.889Z")
@Stability(Stable)
public interface IUsagePlan
extends software.amazon.jsii.JsiiSerializable, IResource
A UsagePlan, either managed by this CDK app, or imported.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIUsagePlan.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an ApiKey.voidaddApiKey(IApiKey apiKey, AddApiKeyOptions options) Adds an ApiKey.Id of the usage plan.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods 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.
-