@Stability(value=Stable) @Internal public static final class CfnAuthorizerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnAuthorizerProps
CfnAuthorizerPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnAuthorizerProps.Builder, CfnAuthorizerProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnAuthorizerProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnAuthorizerProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAuthorizerCredentials()
The credentials that are required for the authorizer.
|
Number |
getAuthorizerResultTtlInSeconds()
The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches authorizer results.
|
String |
getAuthorizerUri()
The authorizer's Uniform Resource Identifier (URI).
|
String |
getAuthType()
An optional customer-defined field that's used in OpenApi imports and exports without functional impact.
|
String |
getIdentitySource()
The source of the identity in an incoming request.
|
String |
getIdentityValidationExpression()
A validation expression for the incoming identity.
|
String |
getName()
The name of the authorizer.
|
List<String> |
getProviderArns()
A list of the Amazon Cognito user pool Amazon Resource Names (ARNs) to associate with this authorizer.
|
String |
getRestApiId()
The ID of the `RestApi` resource that API Gateway creates the authorizer in.
|
String |
getType()
The type of authorizer.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnAuthorizerProps.Builder builder)
CfnAuthorizerProps.Builder.public final String getName()
CfnAuthorizerPropsgetName in interface CfnAuthorizerPropspublic final String getRestApiId()
CfnAuthorizerPropsgetRestApiId in interface CfnAuthorizerPropspublic final String getType()
CfnAuthorizerProps
TOKEN : A custom authorizer that uses a Lambda function.COGNITO_USER_POOLS : An authorizer that uses Amazon Cognito user pools.REQUEST : An authorizer that uses a Lambda function using incoming request parameters.getType in interface CfnAuthorizerPropspublic final String getAuthorizerCredentials()
CfnAuthorizerPropsTo specify an IAM role that API Gateway assumes, specify the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.
getAuthorizerCredentials in interface CfnAuthorizerPropspublic final Number getAuthorizerResultTtlInSeconds()
CfnAuthorizerPropsIf you specify a value greater than 0, API Gateway caches the authorizer responses. By default, API Gateway sets this property to 300. The maximum value is 3600, or 1 hour.
getAuthorizerResultTtlInSeconds in interface CfnAuthorizerPropspublic final String getAuthorizerUri()
CfnAuthorizerProps
If you specify TOKEN for the authorizer's Type property, specify a Lambda function URI that has the form arn:aws:apigateway: *region* :lambda:path/ *path* . The path usually has the form /2015-03-31/functions/ LambdaFunctionARN /invocations.
getAuthorizerUri in interface CfnAuthorizerPropspublic final String getAuthType()
CfnAuthorizerPropsgetAuthType in interface CfnAuthorizerPropspublic final String getIdentitySource()
CfnAuthorizerProps
If you specify TOKEN or COGNITO_USER_POOLS for the Type property, this property is required. Specify a header mapping expression using the form method.request.header. *name* , where name is the name of a custom authorization header that clients submit as part of their requests.
If you specify REQUEST for the Type property, this property is required when authorization caching is enabled. Specify a comma-separated string of one or more mapping expressions of the specified request parameter using the form method.request.parameter. *name* . For supported parameter types, see Configure Lambda Authorizer Using the API Gateway Console in the API Gateway Developer Guide .
getIdentitySource in interface CfnAuthorizerPropspublic final String getIdentityValidationExpression()
CfnAuthorizerProps
If you specify TOKEN for the authorizer's Type property, specify a regular expression. API Gateway uses the expression to attempt to match the incoming client token, and proceeds if the token matches. If the token doesn't match, API Gateway responds with a 401 (unauthorized request) error code.
getIdentityValidationExpression in interface CfnAuthorizerPropspublic final List<String> getProviderArns()
CfnAuthorizerProps
Required if you specify COGNITO_USER_POOLS as the authorizer Type . For more information, see Use Amazon Cognito User Pools in the API Gateway Developer Guide .
getProviderArns in interface CfnAuthorizerProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.