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:
- ApiStages 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.
- UsagePlan stringName 
- The name of a usage plan.
- ApiStages []UsagePlan Api Stage Args 
- The associated API stages of a usage plan.
- Description string
- The description of a usage plan.
- Quota
UsagePlan Quota Settings Args 
- The target maximum number of permitted requests per a given unit time interval.
- 
TagArgs 
- The collection of tags. Each tag element is associated with a given resource.
- Throttle
UsagePlan Throttle Settings Args 
- 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.
- 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.
- 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 Args] 
- The associated API stages of a usage plan.
- description str
- The description of a usage plan.
- quota
UsagePlan Quota Settings Args 
- The target maximum number of permitted requests per a given unit time interval.
- 
Sequence[TagArgs] 
- The collection of tags. Each tag element is associated with a given resource.
- throttle
UsagePlan 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.
- apiStages 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.
- usagePlan 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        
- 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, UsagePlanQuotaSettingsArgs        
UsagePlanThrottleSettings, UsagePlanThrottleSettingsArgs        
- 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.