We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.UsagePlan
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.
Create UsagePlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsagePlan(name: string, args?: UsagePlanArgs, opts?: CustomResourceOptions);
@overload
def UsagePlan(resource_name: str,
args: Optional[UsagePlanArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def UsagePlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_stages: Optional[Sequence[UsagePlanApiStageArgs]] = None,
description: Optional[str] = None,
quota: Optional[UsagePlanQuotaSettingsArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
throttle: Optional[UsagePlanThrottleSettingsArgs] = None,
usage_plan_name: Optional[str] = None)
func NewUsagePlan(ctx *Context, name string, args *UsagePlanArgs, opts ...ResourceOption) (*UsagePlan, error)
public UsagePlan(string name, UsagePlanArgs? args = null, CustomResourceOptions? opts = null)
public UsagePlan(String name, UsagePlanArgs args)
public UsagePlan(String name, UsagePlanArgs args, CustomResourceOptions options)
type: aws-native:apigateway:UsagePlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
UsagePlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UsagePlan resource accepts the following input properties:
- Api
Stages List<Pulumi.Aws Native. Api Gateway. Inputs. Usage Plan Api Stage> - The associated API stages of a usage plan.
- Description string
- The description of a usage plan.
- Quota
Pulumi.
Aws Native. Api Gateway. Inputs. Usage Plan Quota Settings - The target maximum number of permitted requests per a given unit time interval.
- List<Pulumi.
Aws Native. Inputs. Tag> - The collection of tags. Each tag element is associated with a given resource.
- Throttle
Pulumi.
Aws Native. Api Gateway. Inputs. 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 Args - The associated API stages of a usage plan.
- Description string
- The description of a usage plan.
- Quota
Usage
Plan Quota Settings Args - The target maximum number of permitted requests per a given unit time interval.
- Tag
Args - The collection of tags. Each tag element is associated with a given resource.
- Throttle
Usage
Plan Throttle Settings Args - 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.
- 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.
- 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 Args] - The associated API stages of a usage plan.
- description str
- The description of a usage plan.
- quota
Usage
Plan Quota Settings Args - The target maximum number of permitted requests per a given unit time interval.
- Sequence[Tag
Args] - The collection of tags. Each tag element is associated with a given resource.
- throttle
Usage
Plan Throttle Settings Args - 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsagePlan resource produces the following output properties:
Supporting Types
Tag, TagArgs
UsagePlanApiStage, UsagePlanApiStageArgs
- 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, UsagePlanQuotaSettingsArgs
UsagePlanThrottleSettings, UsagePlanThrottleSettingsArgs
- 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.