flexibleengine.ApigThrottlingPolicy
Explore with Pulumi AI
Manages an APIG (API) throttling policy resource within FlexibleEngine.
Example Usage
Create a basic throttling policy
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const policyName = config.requireObject("policyName");
const description = config.requireObject("description");
const test = new flexibleengine.ApigThrottlingPolicy("test", {
instanceId: instanceId,
description: description,
type: "API-based",
period: 10,
periodUnit: "MINUTE",
maxApiRequests: 70,
maxUserRequests: 45,
maxAppRequests: 45,
maxIpRequests: 45,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
instance_id = config.require_object("instanceId")
policy_name = config.require_object("policyName")
description = config.require_object("description")
test = flexibleengine.ApigThrottlingPolicy("test",
instance_id=instance_id,
description=description,
type="API-based",
period=10,
period_unit="MINUTE",
max_api_requests=70,
max_user_requests=45,
max_app_requests=45,
max_ip_requests=45)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
policyName := cfg.RequireObject("policyName")
description := cfg.RequireObject("description")
_, err := flexibleengine.NewApigThrottlingPolicy(ctx, "test", &flexibleengine.ApigThrottlingPolicyArgs{
InstanceId: pulumi.Any(instanceId),
Description: pulumi.Any(description),
Type: pulumi.String("API-based"),
Period: pulumi.Float64(10),
PeriodUnit: pulumi.String("MINUTE"),
MaxApiRequests: pulumi.Float64(70),
MaxUserRequests: pulumi.Float64(45),
MaxAppRequests: pulumi.Float64(45),
MaxIpRequests: pulumi.Float64(45),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var policyName = config.RequireObject<dynamic>("policyName");
var description = config.RequireObject<dynamic>("description");
var test = new Flexibleengine.ApigThrottlingPolicy("test", new()
{
InstanceId = instanceId,
Description = description,
Type = "API-based",
Period = 10,
PeriodUnit = "MINUTE",
MaxApiRequests = 70,
MaxUserRequests = 45,
MaxAppRequests = 45,
MaxIpRequests = 45,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ApigThrottlingPolicy;
import com.pulumi.flexibleengine.ApigThrottlingPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var policyName = config.get("policyName");
final var description = config.get("description");
var test = new ApigThrottlingPolicy("test", ApigThrottlingPolicyArgs.builder()
.instanceId(instanceId)
.description(description)
.type("API-based")
.period(10)
.periodUnit("MINUTE")
.maxApiRequests(70)
.maxUserRequests(45)
.maxAppRequests(45)
.maxIpRequests(45)
.build());
}
}
configuration:
instanceId:
type: dynamic
policyName:
type: dynamic
description:
type: dynamic
resources:
test:
type: flexibleengine:ApigThrottlingPolicy
properties:
instanceId: ${instanceId}
description: ${description}
type: API-based
period: 10
periodUnit: MINUTE
maxApiRequests: 70
maxUserRequests: 45
maxAppRequests: 45
maxIpRequests: 45
Create a throttling policy with a special throttle
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const policyName = config.requireObject("policyName");
const description = config.requireObject("description");
const applicationId = config.requireObject("applicationId");
const test = new flexibleengine.ApigThrottlingPolicy("test", {
instanceId: instanceId,
description: description,
type: "API-based",
period: 10,
periodUnit: "MINUTE",
maxApiRequests: 70,
maxUserRequests: 45,
maxAppRequests: 45,
maxIpRequests: 45,
appThrottles: [{
maxApiRequests: 40,
throttlingObjectId: applicationId,
}],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
instance_id = config.require_object("instanceId")
policy_name = config.require_object("policyName")
description = config.require_object("description")
application_id = config.require_object("applicationId")
test = flexibleengine.ApigThrottlingPolicy("test",
instance_id=instance_id,
description=description,
type="API-based",
period=10,
period_unit="MINUTE",
max_api_requests=70,
max_user_requests=45,
max_app_requests=45,
max_ip_requests=45,
app_throttles=[{
"max_api_requests": 40,
"throttling_object_id": application_id,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
policyName := cfg.RequireObject("policyName")
description := cfg.RequireObject("description")
applicationId := cfg.RequireObject("applicationId")
_, err := flexibleengine.NewApigThrottlingPolicy(ctx, "test", &flexibleengine.ApigThrottlingPolicyArgs{
InstanceId: pulumi.Any(instanceId),
Description: pulumi.Any(description),
Type: pulumi.String("API-based"),
Period: pulumi.Float64(10),
PeriodUnit: pulumi.String("MINUTE"),
MaxApiRequests: pulumi.Float64(70),
MaxUserRequests: pulumi.Float64(45),
MaxAppRequests: pulumi.Float64(45),
MaxIpRequests: pulumi.Float64(45),
AppThrottles: flexibleengine.ApigThrottlingPolicyAppThrottleArray{
&flexibleengine.ApigThrottlingPolicyAppThrottleArgs{
MaxApiRequests: pulumi.Float64(40),
ThrottlingObjectId: pulumi.Any(applicationId),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var policyName = config.RequireObject<dynamic>("policyName");
var description = config.RequireObject<dynamic>("description");
var applicationId = config.RequireObject<dynamic>("applicationId");
var test = new Flexibleengine.ApigThrottlingPolicy("test", new()
{
InstanceId = instanceId,
Description = description,
Type = "API-based",
Period = 10,
PeriodUnit = "MINUTE",
MaxApiRequests = 70,
MaxUserRequests = 45,
MaxAppRequests = 45,
MaxIpRequests = 45,
AppThrottles = new[]
{
new Flexibleengine.Inputs.ApigThrottlingPolicyAppThrottleArgs
{
MaxApiRequests = 40,
ThrottlingObjectId = applicationId,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ApigThrottlingPolicy;
import com.pulumi.flexibleengine.ApigThrottlingPolicyArgs;
import com.pulumi.flexibleengine.inputs.ApigThrottlingPolicyAppThrottleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
final var policyName = config.get("policyName");
final var description = config.get("description");
final var applicationId = config.get("applicationId");
var test = new ApigThrottlingPolicy("test", ApigThrottlingPolicyArgs.builder()
.instanceId(instanceId)
.description(description)
.type("API-based")
.period(10)
.periodUnit("MINUTE")
.maxApiRequests(70)
.maxUserRequests(45)
.maxAppRequests(45)
.maxIpRequests(45)
.appThrottles(ApigThrottlingPolicyAppThrottleArgs.builder()
.maxApiRequests(40)
.throttlingObjectId(applicationId)
.build())
.build());
}
}
configuration:
instanceId:
type: dynamic
policyName:
type: dynamic
description:
type: dynamic
applicationId:
type: dynamic
resources:
test:
type: flexibleengine:ApigThrottlingPolicy
properties:
instanceId: ${instanceId}
description: ${description}
type: API-based
period: 10
periodUnit: MINUTE
maxApiRequests: 70
maxUserRequests: 45
maxAppRequests: 45
maxIpRequests: 45
appThrottles:
- maxApiRequests: 40
throttlingObjectId: ${applicationId}
Create ApigThrottlingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigThrottlingPolicy(name: string, args: ApigThrottlingPolicyArgs, opts?: CustomResourceOptions);
@overload
def ApigThrottlingPolicy(resource_name: str,
args: ApigThrottlingPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApigThrottlingPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
period: Optional[float] = None,
instance_id: Optional[str] = None,
max_api_requests: Optional[float] = None,
type: Optional[str] = None,
description: Optional[str] = None,
max_app_requests: Optional[float] = None,
name: Optional[str] = None,
max_ip_requests: Optional[float] = None,
app_throttles: Optional[Sequence[ApigThrottlingPolicyAppThrottleArgs]] = None,
apig_throttling_policy_id: Optional[str] = None,
period_unit: Optional[str] = None,
region: Optional[str] = None,
max_user_requests: Optional[float] = None,
user_throttles: Optional[Sequence[ApigThrottlingPolicyUserThrottleArgs]] = None)
func NewApigThrottlingPolicy(ctx *Context, name string, args ApigThrottlingPolicyArgs, opts ...ResourceOption) (*ApigThrottlingPolicy, error)
public ApigThrottlingPolicy(string name, ApigThrottlingPolicyArgs args, CustomResourceOptions? opts = null)
public ApigThrottlingPolicy(String name, ApigThrottlingPolicyArgs args)
public ApigThrottlingPolicy(String name, ApigThrottlingPolicyArgs args, CustomResourceOptions options)
type: flexibleengine:ApigThrottlingPolicy
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 ApigThrottlingPolicyArgs
- 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 ApigThrottlingPolicyArgs
- 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 ApigThrottlingPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigThrottlingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigThrottlingPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var apigThrottlingPolicyResource = new Flexibleengine.ApigThrottlingPolicy("apigThrottlingPolicyResource", new()
{
Period = 0,
InstanceId = "string",
MaxApiRequests = 0,
Type = "string",
Description = "string",
MaxAppRequests = 0,
Name = "string",
MaxIpRequests = 0,
AppThrottles = new[]
{
new Flexibleengine.Inputs.ApigThrottlingPolicyAppThrottleArgs
{
MaxApiRequests = 0,
ThrottlingObjectId = "string",
Id = "string",
ThrottlingObjectName = "string",
},
},
ApigThrottlingPolicyId = "string",
PeriodUnit = "string",
Region = "string",
MaxUserRequests = 0,
UserThrottles = new[]
{
new Flexibleengine.Inputs.ApigThrottlingPolicyUserThrottleArgs
{
MaxApiRequests = 0,
ThrottlingObjectId = "string",
Id = "string",
ThrottlingObjectName = "string",
},
},
});
example, err := flexibleengine.NewApigThrottlingPolicy(ctx, "apigThrottlingPolicyResource", &flexibleengine.ApigThrottlingPolicyArgs{
Period: pulumi.Float64(0),
InstanceId: pulumi.String("string"),
MaxApiRequests: pulumi.Float64(0),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
MaxAppRequests: pulumi.Float64(0),
Name: pulumi.String("string"),
MaxIpRequests: pulumi.Float64(0),
AppThrottles: flexibleengine.ApigThrottlingPolicyAppThrottleArray{
&flexibleengine.ApigThrottlingPolicyAppThrottleArgs{
MaxApiRequests: pulumi.Float64(0),
ThrottlingObjectId: pulumi.String("string"),
Id: pulumi.String("string"),
ThrottlingObjectName: pulumi.String("string"),
},
},
ApigThrottlingPolicyId: pulumi.String("string"),
PeriodUnit: pulumi.String("string"),
Region: pulumi.String("string"),
MaxUserRequests: pulumi.Float64(0),
UserThrottles: flexibleengine.ApigThrottlingPolicyUserThrottleArray{
&flexibleengine.ApigThrottlingPolicyUserThrottleArgs{
MaxApiRequests: pulumi.Float64(0),
ThrottlingObjectId: pulumi.String("string"),
Id: pulumi.String("string"),
ThrottlingObjectName: pulumi.String("string"),
},
},
})
var apigThrottlingPolicyResource = new ApigThrottlingPolicy("apigThrottlingPolicyResource", ApigThrottlingPolicyArgs.builder()
.period(0)
.instanceId("string")
.maxApiRequests(0)
.type("string")
.description("string")
.maxAppRequests(0)
.name("string")
.maxIpRequests(0)
.appThrottles(ApigThrottlingPolicyAppThrottleArgs.builder()
.maxApiRequests(0)
.throttlingObjectId("string")
.id("string")
.throttlingObjectName("string")
.build())
.apigThrottlingPolicyId("string")
.periodUnit("string")
.region("string")
.maxUserRequests(0)
.userThrottles(ApigThrottlingPolicyUserThrottleArgs.builder()
.maxApiRequests(0)
.throttlingObjectId("string")
.id("string")
.throttlingObjectName("string")
.build())
.build());
apig_throttling_policy_resource = flexibleengine.ApigThrottlingPolicy("apigThrottlingPolicyResource",
period=0,
instance_id="string",
max_api_requests=0,
type="string",
description="string",
max_app_requests=0,
name="string",
max_ip_requests=0,
app_throttles=[{
"max_api_requests": 0,
"throttling_object_id": "string",
"id": "string",
"throttling_object_name": "string",
}],
apig_throttling_policy_id="string",
period_unit="string",
region="string",
max_user_requests=0,
user_throttles=[{
"max_api_requests": 0,
"throttling_object_id": "string",
"id": "string",
"throttling_object_name": "string",
}])
const apigThrottlingPolicyResource = new flexibleengine.ApigThrottlingPolicy("apigThrottlingPolicyResource", {
period: 0,
instanceId: "string",
maxApiRequests: 0,
type: "string",
description: "string",
maxAppRequests: 0,
name: "string",
maxIpRequests: 0,
appThrottles: [{
maxApiRequests: 0,
throttlingObjectId: "string",
id: "string",
throttlingObjectName: "string",
}],
apigThrottlingPolicyId: "string",
periodUnit: "string",
region: "string",
maxUserRequests: 0,
userThrottles: [{
maxApiRequests: 0,
throttlingObjectId: "string",
id: "string",
throttlingObjectName: "string",
}],
});
type: flexibleengine:ApigThrottlingPolicy
properties:
apigThrottlingPolicyId: string
appThrottles:
- id: string
maxApiRequests: 0
throttlingObjectId: string
throttlingObjectName: string
description: string
instanceId: string
maxApiRequests: 0
maxAppRequests: 0
maxIpRequests: 0
maxUserRequests: 0
name: string
period: 0
periodUnit: string
region: string
type: string
userThrottles:
- id: string
maxApiRequests: 0
throttlingObjectId: string
throttlingObjectName: string
ApigThrottlingPolicy 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 ApigThrottlingPolicy resource accepts the following input properties:
- Instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- Max
Api doubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Period double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - Apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- App
Throttles List<ApigThrottling Policy App Throttle> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - Description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- Max
App doubleRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - Max
Ip doubleRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Max
User doubleRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- Period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- Region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- User
Throttles List<ApigThrottling Policy User Throttle> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- Instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- Max
Api float64Requests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Period float64
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - Apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- App
Throttles []ApigThrottling Policy App Throttle Args - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - Description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- Max
App float64Requests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - Max
Ip float64Requests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Max
User float64Requests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- Period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- Region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- User
Throttles []ApigThrottling Policy User Throttle Args - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- instance
Id String - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api DoubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- period Double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - apig
Throttling StringPolicy Id - ID of the special application throttling policy.
- app
Throttles List<ApigThrottling Policy App Throttle> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - description String
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- max
App DoubleRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip DoubleRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User DoubleRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name String
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period
Unit String - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region String
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles List<ApigThrottling Policy User Throttle> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api numberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- period number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- app
Throttles ApigThrottling Policy App Throttle[] - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- max
App numberRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip numberRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User numberRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles ApigThrottling Policy User Throttle[] - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- instance_
id str - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max_
api_ floatrequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- period float
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - apig_
throttling_ strpolicy_ id - ID of the special application throttling policy.
- app_
throttles Sequence[ApigThrottling Policy App Throttle Args] - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - description str
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- max_
app_ floatrequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max_
ip_ floatrequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max_
user_ floatrequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name str
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period_
unit str - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region str
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type str
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user_
throttles Sequence[ApigThrottling Policy User Throttle Args] - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- instance
Id String - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api NumberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- period Number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - apig
Throttling StringPolicy Id - ID of the special application throttling policy.
- app
Throttles List<Property Map> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - description String
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- max
App NumberRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip NumberRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User NumberRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name String
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period
Unit String - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region String
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles List<Property Map> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigThrottlingPolicy resource produces the following output properties:
- created_
at str - The creation time of the throttling policy.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ApigThrottlingPolicy Resource
Get an existing ApigThrottlingPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApigThrottlingPolicyState, opts?: CustomResourceOptions): ApigThrottlingPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apig_throttling_policy_id: Optional[str] = None,
app_throttles: Optional[Sequence[ApigThrottlingPolicyAppThrottleArgs]] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
max_api_requests: Optional[float] = None,
max_app_requests: Optional[float] = None,
max_ip_requests: Optional[float] = None,
max_user_requests: Optional[float] = None,
name: Optional[str] = None,
period: Optional[float] = None,
period_unit: Optional[str] = None,
region: Optional[str] = None,
type: Optional[str] = None,
user_throttles: Optional[Sequence[ApigThrottlingPolicyUserThrottleArgs]] = None) -> ApigThrottlingPolicy
func GetApigThrottlingPolicy(ctx *Context, name string, id IDInput, state *ApigThrottlingPolicyState, opts ...ResourceOption) (*ApigThrottlingPolicy, error)
public static ApigThrottlingPolicy Get(string name, Input<string> id, ApigThrottlingPolicyState? state, CustomResourceOptions? opts = null)
public static ApigThrottlingPolicy get(String name, Output<String> id, ApigThrottlingPolicyState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ApigThrottlingPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- App
Throttles List<ApigThrottling Policy App Throttle> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - Created
At string - The creation time of the throttling policy.
- Description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- Instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- Max
Api doubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Max
App doubleRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - Max
Ip doubleRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Max
User doubleRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- Period double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - Period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- Region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- User
Throttles List<ApigThrottling Policy User Throttle> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- Apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- App
Throttles []ApigThrottling Policy App Throttle Args - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - Created
At string - The creation time of the throttling policy.
- Description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- Instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- Max
Api float64Requests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Max
App float64Requests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - Max
Ip float64Requests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Max
User float64Requests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - Name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- Period float64
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - Period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- Region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- Type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- User
Throttles []ApigThrottling Policy User Throttle Args - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- apig
Throttling StringPolicy Id - ID of the special application throttling policy.
- app
Throttles List<ApigThrottling Policy App Throttle> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - created
At String - The creation time of the throttling policy.
- description String
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- instance
Id String - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api DoubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- max
App DoubleRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip DoubleRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User DoubleRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name String
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period Double
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - period
Unit String - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region String
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles List<ApigThrottling Policy User Throttle> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- apig
Throttling stringPolicy Id - ID of the special application throttling policy.
- app
Throttles ApigThrottling Policy App Throttle[] - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - created
At string - The creation time of the throttling policy.
- description string
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- instance
Id string - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api numberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- max
App numberRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip numberRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User numberRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name string
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - period
Unit string - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region string
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type string
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles ApigThrottling Policy User Throttle[] - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- apig_
throttling_ strpolicy_ id - ID of the special application throttling policy.
- app_
throttles Sequence[ApigThrottling Policy App Throttle Args] - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - created_
at str - The creation time of the throttling policy.
- description str
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- instance_
id str - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max_
api_ floatrequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- max_
app_ floatrequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max_
ip_ floatrequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max_
user_ floatrequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name str
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period float
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - period_
unit str - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region str
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type str
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user_
throttles Sequence[ApigThrottling Policy User Throttle Args] - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
- apig
Throttling StringPolicy Id - ID of the special application throttling policy.
- app
Throttles List<Property Map> - Specifies an array of one or more special throttling policies for APP limit.
The
throttle
object of theapp_throttles
structure is documented below. - created
At String - The creation time of the throttling policy.
- description String
- Specifies the description about the API throttling policy. The description contain a maximum of 255 characters and the angle brackets (< and >) are not allowed. Chinese characters must be in UTF-8 or Unicode format.
- instance
Id String - Specifies an ID of the APIG dedicated instance to which the API throttling policy belongs to. Changing this will create a new API throttling policy resource.
- max
Api NumberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- max
App NumberRequests - Specifies the maximum number of times the API can be accessed by an app within
the same period. The value of this parameter must be less than or equal to the value of
max_user_requests
. - max
Ip NumberRequests - Specifies the maximum number of times the API can be accessed by an IP address
within the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - max
User NumberRequests - Specifies the maximum number of times the API can be accessed by a user within
the same period. The value of this parameter must be less than or equal to the value of
max_api_requests
. - name String
- Specifies the name of the API throttling policy. The policy name consists of 3 to 64 characters, starting with a letter. Only letters, digits and underscores (_) are allowed.
- period Number
- Specifies the period of time for limiting the number of API calls.
This parameter applies with each of the API call limits:
max_api_requests
,max_app_requests
,max_ip_requests
andmax_user_requests
. - period
Unit String - Specifies the time unit for limiting the number of API calls. The valid values are SECOND, MINUTE, HOUR and DAY, default to MINUTE.
- region String
- Specifies the region in which to create the API throttling policy resource. If omitted, the provider-level region will be used. Changing this will create a new API throttling policy resource.
- type String
- Specifies the type of the request throttling policy.
The valid values are as follows:
- API-based: limiting the maximum number of times a single API bound to the policy can be called within the specified period.
- API-shared: limiting the maximum number of times all APIs bound to the policy can be called within the specified period.
- user
Throttles List<Property Map> - Specifies an array of one or more special throttling policies for IAM user limit.
The
throttle
object of theuser_throttles
structure is documented below.
Supporting Types
ApigThrottlingPolicyAppThrottle, ApigThrottlingPolicyAppThrottleArgs
- Max
Api doubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Throttling
Object stringId - The object ID which the special throttling policy belongs.
- Id string
- ID of the special application throttling policy.
- Throttling
Object stringName - The object name which the special application throttling policy belongs.
- Max
Api float64Requests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- Throttling
Object stringId - The object ID which the special throttling policy belongs.
- Id string
- ID of the special application throttling policy.
- Throttling
Object stringName - The object name which the special application throttling policy belongs.
- max
Api DoubleRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- throttling
Object StringId - The object ID which the special throttling policy belongs.
- id String
- ID of the special application throttling policy.
- throttling
Object StringName - The object name which the special application throttling policy belongs.
- max
Api numberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- throttling
Object stringId - The object ID which the special throttling policy belongs.
- id string
- ID of the special application throttling policy.
- throttling
Object stringName - The object name which the special application throttling policy belongs.
- max_
api_ floatrequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- throttling_
object_ strid - The object ID which the special throttling policy belongs.
- id str
- ID of the special application throttling policy.
- throttling_
object_ strname - The object name which the special application throttling policy belongs.
- max
Api NumberRequests - Specifies the maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS.
- throttling
Object StringId - The object ID which the special throttling policy belongs.
- id String
- ID of the special application throttling policy.
- throttling
Object StringName - The object name which the special application throttling policy belongs.
ApigThrottlingPolicyUserThrottle, ApigThrottlingPolicyUserThrottleArgs
- Max
Api doubleRequests - Specifies the maximum number of times an API can be accessed within a specified period.
- Throttling
Object stringId - Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special application throttling policy.
- Throttling
Object stringName - The object name which the special application throttling policy belongs.
- Max
Api float64Requests - Specifies the maximum number of times an API can be accessed within a specified period.
- Throttling
Object stringId - Specifies the object ID which the special throttling policy belongs.
- Id string
- ID of the special application throttling policy.
- Throttling
Object stringName - The object name which the special application throttling policy belongs.
- max
Api DoubleRequests - Specifies the maximum number of times an API can be accessed within a specified period.
- throttling
Object StringId - Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special application throttling policy.
- throttling
Object StringName - The object name which the special application throttling policy belongs.
- max
Api numberRequests - Specifies the maximum number of times an API can be accessed within a specified period.
- throttling
Object stringId - Specifies the object ID which the special throttling policy belongs.
- id string
- ID of the special application throttling policy.
- throttling
Object stringName - The object name which the special application throttling policy belongs.
- max_
api_ floatrequests - Specifies the maximum number of times an API can be accessed within a specified period.
- throttling_
object_ strid - Specifies the object ID which the special throttling policy belongs.
- id str
- ID of the special application throttling policy.
- throttling_
object_ strname - The object name which the special application throttling policy belongs.
- max
Api NumberRequests - Specifies the maximum number of times an API can be accessed within a specified period.
- throttling
Object StringId - Specifies the object ID which the special throttling policy belongs.
- id String
- ID of the special application throttling policy.
- throttling
Object StringName - The object name which the special application throttling policy belongs.
Import
API Throttling Policies of APIG can be imported using the ID of the APIG instances to which the
environment belongs and name
, separated by a slash, e.g.
$ pulumi import flexibleengine:index/apigThrottlingPolicy:ApigThrottlingPolicy test <instance_id>/<name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.