Interface IUsagePlan
- All Superinterfaces:
IConstruct,software.constructs.IConstruct,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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.956Z")
@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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, 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.
-