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