Interface IUsagePlan
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,IUsagePlanRef,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-13T16:09:57.842Z")
@Stability(Stable)
public interface IUsagePlan
extends software.amazon.jsii.JsiiSerializable, IResource, IUsagePlanRef
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 TypeMethodDescriptionvoidaddApiKey(IApiKeyRef apiKey) Adds an ApiKey.voidaddApiKey(IApiKeyRef apiKey, AddApiKeyOptions options) Adds an ApiKey.getEnv()The environment this resource belongs to.software.constructs.NodegetNode()The tree node.Id of the usage plan.Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.interfaces.apigateway.IUsagePlanRef
getUsagePlanRefMethods 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.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware
-