We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.getUsagePlan
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGateway::UsagePlan resource creates a usage plan for deployed APIs. A usage plan sets a target for the throttling and quota limits on individual client API keys. For more information, see Creating and Using API Usage Plans in Amazon API Gateway in the API Gateway Developer Guide.
In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using to monitor costs and to manage API requests.
Using getUsagePlan
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUsagePlan(args: GetUsagePlanArgs, opts?: InvokeOptions): Promise<GetUsagePlanResult>
function getUsagePlanOutput(args: GetUsagePlanOutputArgs, opts?: InvokeOptions): Output<GetUsagePlanResult>def get_usage_plan(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetUsagePlanResult
def get_usage_plan_output(id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetUsagePlanResult]func LookupUsagePlan(ctx *Context, args *LookupUsagePlanArgs, opts ...InvokeOption) (*LookupUsagePlanResult, error)
func LookupUsagePlanOutput(ctx *Context, args *LookupUsagePlanOutputArgs, opts ...InvokeOption) LookupUsagePlanResultOutput> Note: This function is named LookupUsagePlan in the Go SDK.
public static class GetUsagePlan 
{
    public static Task<GetUsagePlanResult> InvokeAsync(GetUsagePlanArgs args, InvokeOptions? opts = null)
    public static Output<GetUsagePlanResult> Invoke(GetUsagePlanInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsagePlanResult> getUsagePlan(GetUsagePlanArgs args, InvokeOptions options)
public static Output<GetUsagePlanResult> getUsagePlan(GetUsagePlanArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:apigateway:getUsagePlan
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The ID for the usage plan. For example: abc123.
- Id string
- The ID for the usage plan. For example: abc123.
- id String
- The ID for the usage plan. For example: abc123.
- id string
- The ID for the usage plan. For example: abc123.
- id str
- The ID for the usage plan. For example: abc123.
- id String
- The ID for the usage plan. For example: abc123.
getUsagePlan Result
The following output properties are available:
- ApiStages List<Pulumi.Aws Native. Api Gateway. Outputs. Usage Plan Api Stage> 
- The associated API stages of a usage plan.
- Description string
- The description of a usage plan.
- Id string
- The ID for the usage plan. For example: abc123.
- Quota
Pulumi.Aws Native. Api Gateway. Outputs. Usage Plan Quota Settings 
- The target maximum number of permitted requests per a given unit time interval.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The collection of tags. Each tag element is associated with a given resource.
- Throttle
Pulumi.Aws Native. Api Gateway. Outputs. Usage Plan Throttle Settings 
- A map containing method level throttling information for API stage in a usage plan.
- UsagePlan stringName 
- The name of a usage plan.
- ApiStages []UsagePlan Api Stage 
- The associated API stages of a usage plan.
- Description string
- The description of a usage plan.
- Id string
- The ID for the usage plan. For example: abc123.
- Quota
UsagePlan Quota Settings 
- The target maximum number of permitted requests per a given unit time interval.
- Tag
- The collection of tags. Each tag element is associated with a given resource.
- Throttle
UsagePlan Throttle Settings 
- A map containing method level throttling information for API stage in a usage plan.
- UsagePlan stringName 
- The name of a usage plan.
- apiStages List<UsagePlan Api Stage> 
- The associated API stages of a usage plan.
- description String
- The description of a usage plan.
- id String
- The ID for the usage plan. For example: abc123.
- quota
UsagePlan Quota Settings 
- The target maximum number of permitted requests per a given unit time interval.
- List<Tag>
- The collection of tags. Each tag element is associated with a given resource.
- throttle
UsagePlan Throttle Settings 
- A map containing method level throttling information for API stage in a usage plan.
- usagePlan StringName 
- The name of a usage plan.
- apiStages UsagePlan Api Stage[] 
- The associated API stages of a usage plan.
- description string
- The description of a usage plan.
- id string
- The ID for the usage plan. For example: abc123.
- quota
UsagePlan Quota Settings 
- The target maximum number of permitted requests per a given unit time interval.
- Tag[]
- The collection of tags. Each tag element is associated with a given resource.
- throttle
UsagePlan Throttle Settings 
- A map containing method level throttling information for API stage in a usage plan.
- usagePlan stringName 
- The name of a usage plan.
- api_stages Sequence[UsagePlan Api Stage] 
- The associated API stages of a usage plan.
- description str
- The description of a usage plan.
- id str
- The ID for the usage plan. For example: abc123.
- quota
UsagePlan Quota Settings 
- The target maximum number of permitted requests per a given unit time interval.
- Sequence[root_Tag]
- The collection of tags. Each tag element is associated with a given resource.
- throttle
UsagePlan Throttle Settings 
- A map containing method level throttling information for API stage in a usage plan.
- usage_plan_ strname 
- The name of a usage plan.
- apiStages List<Property Map>
- The associated API stages of a usage plan.
- description String
- The description of a usage plan.
- id String
- The ID for the usage plan. For example: abc123.
- quota Property Map
- The target maximum number of permitted requests per a given unit time interval.
- List<Property Map>
- The collection of tags. Each tag element is associated with a given resource.
- throttle Property Map
- A map containing method level throttling information for API stage in a usage plan.
- usagePlan StringName 
- The name of a usage plan.
Supporting Types
Tag
UsagePlanApiStage   
- ApiId string
- API Id of the associated API stage in a usage plan.
- Stage string
- API stage name of the associated API stage in a usage plan.
- Throttle
Dictionary<string, Pulumi.Aws Native. Api Gateway. Inputs. Usage Plan Throttle Settings> 
- Map containing method level throttling information for API stage in a usage plan.
UsagePlanQuotaSettings   
UsagePlanThrottleSettings   
- BurstLimit int
- RateLimit double
- BurstLimit int
- RateLimit float64
- burstLimit Integer
- rateLimit Double
- burstLimit number
- rateLimit number
- burst_limit int
- rate_limit float
- burstLimit Number
- rateLimit Number
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.