x-apigateway-authorizer
Meaning: Custom authorizer.
Scope of effect: Security Scheme Object
Example:
x-apigateway-authorizer:auth_downgrade_enabled: falseauthorizer_alias_uri: ''authorizer_type: FUNCauthorizer_uri: >-urn:fss:region:73d69ae0cfcf460190522d**********:function:default:DSFAauthorizer_version: latestidentities:- location: HEADERname: testvalidation: ''need_body: falsenetwork_type: V2retry_attempts: 0timeout: 5000ttl: 0type: FRONTEND
Parameter | Mandatory | Type | Description |
---|---|---|---|
authorizer_type | Yes | String | Value: FUNC |
authorizer_uri | Yes | String | Function URN. |
auth_downgrade_enabled | No | Boolean | Whether to enable the relaxed mode. The default value is false. |
authorizer_alias_uri | No | String | Function alias address. If both the alias and version are specified, the version will be ignored and only the alias will be used. |
authorizer_version | No | String | Function version. If both the alias and version are specified, the version will be ignored and only the alias will be used. Maximum length: 64 characters. |
need_body | No | Boolean | Indicates whether to send the body. |
identities | No | Array of Identity objects | Identity source. |
network_type | No | String | Function network architecture:
Default value: V1. |
retry_attempts | No | Number | Number of retries. |
timeout | No | Number | Timeout. |
ttl | No | Number | Cache TTL. |
type | Yes | String | Custom authorizer type.
|
Parameter | Mandatory | Type | Description |
---|---|---|---|
name | Yes | String | Parameter name. |
location | Yes | String | Parameter location. |
validation | No | String | Parameter verification expression. The default value is null, indicating that no verification is performed. |