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.
  • Method Details

    • getUsagePlanId

      @Stability(Stable) @NotNull String getUsagePlanId()
      Id of the usage plan.
    • addApiKey

      @Stability(Stable) void addApiKey(@NotNull IApiKey apiKey, @Nullable AddApiKeyOptions options)
      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

      @Stability(Stable) void addApiKey(@NotNull IApiKey apiKey)
      Adds an ApiKey.

      Parameters:
      apiKey - the api key to associate with this usage plan. This parameter is required.