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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:apigateway:getUsagePlan
arguments:
# arguments dictionary
The 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:
- Api
Stages 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.
- Usage
Plan stringName - The name of a usage plan.
- Api
Stages []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
Usage
Plan 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
Usage
Plan Throttle Settings - A map containing method level throttling information for API stage in a usage plan.
- Usage
Plan stringName - The name of a usage plan.
- api
Stages 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
Usage
Plan 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
Usage
Plan Throttle Settings - A map containing method level throttling information for API stage in a usage plan.
- usage
Plan StringName - The name of a usage plan.
- api
Stages 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
Usage
Plan 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
Usage
Plan Throttle Settings - A map containing method level throttling information for API stage in a usage plan.
- usage
Plan 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
Usage
Plan 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
Usage
Plan 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.
- api
Stages 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.
- usage
Plan StringName - The name of a usage plan.
Supporting Types
Tag
UsagePlanApiStage
- Api
Id 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
- Burst
Limit int - Rate
Limit double
- Burst
Limit int - Rate
Limit float64
- burst
Limit Integer - rate
Limit Double
- burst
Limit number - rate
Limit number
- burst_
limit int - rate_
limit float
- burst
Limit Number - rate
Limit 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.