We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.UsagePlanKey
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGateway::UsagePlanKey
resource associates an API key with a usage plan. This association determines which users the usage plan is applied to.
Create UsagePlanKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsagePlanKey(name: string, args: UsagePlanKeyArgs, opts?: CustomResourceOptions);
@overload
def UsagePlanKey(resource_name: str,
args: UsagePlanKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UsagePlanKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
key_id: Optional[str] = None,
key_type: Optional[UsagePlanKeyKeyType] = None,
usage_plan_id: Optional[str] = None)
func NewUsagePlanKey(ctx *Context, name string, args UsagePlanKeyArgs, opts ...ResourceOption) (*UsagePlanKey, error)
public UsagePlanKey(string name, UsagePlanKeyArgs args, CustomResourceOptions? opts = null)
public UsagePlanKey(String name, UsagePlanKeyArgs args)
public UsagePlanKey(String name, UsagePlanKeyArgs args, CustomResourceOptions options)
type: aws-native:apigateway:UsagePlanKey
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 UsagePlanKeyArgs
- 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 UsagePlanKeyArgs
- 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 UsagePlanKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsagePlanKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsagePlanKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
UsagePlanKey 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 UsagePlanKey resource accepts the following input properties:
- Key
Id string - The Id of the UsagePlanKey resource.
- Key
Type Pulumi.Aws Native. Api Gateway. Usage Plan Key Key Type - The type of a UsagePlanKey resource for a plan customer.
- Usage
Plan stringId - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
- Key
Id string - The Id of the UsagePlanKey resource.
- Key
Type UsagePlan Key Key Type - The type of a UsagePlanKey resource for a plan customer.
- Usage
Plan stringId - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
- key
Id String - The Id of the UsagePlanKey resource.
- key
Type UsagePlan Key Key Type - The type of a UsagePlanKey resource for a plan customer.
- usage
Plan StringId - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
- key
Id string - The Id of the UsagePlanKey resource.
- key
Type UsagePlan Key Key Type - The type of a UsagePlanKey resource for a plan customer.
- usage
Plan stringId - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
- key_
id str - The Id of the UsagePlanKey resource.
- key_
type UsagePlan Key Key Type - The type of a UsagePlanKey resource for a plan customer.
- usage_
plan_ strid - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
- key
Id String - The Id of the UsagePlanKey resource.
- key
Type "API_KEY" - The type of a UsagePlanKey resource for a plan customer.
- usage
Plan StringId - The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsagePlanKey resource produces the following output properties:
Supporting Types
UsagePlanKeyKeyType, UsagePlanKeyKeyTypeArgs
- Api
Key - API_KEY
- Usage
Plan Key Key Type Api Key - API_KEY
- Api
Key - API_KEY
- Api
Key - API_KEY
- API_KEY
- API_KEY
- "API_KEY"
- API_KEY
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.