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.99.0 (build 8f757e4)", date="2024-06-13T18:49:13.714Z") @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.