Struct aws_sdk_appsync::model::lambda_authorizer_config::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for LambdaAuthorizerConfig
Implementations
The number of seconds a response should be cached for. The default is 5 minutes (300
seconds). The Lambda function can override this by returning a ttlOverride
key
in its response. A value of 0 disables caching of responses.
The number of seconds a response should be cached for. The default is 5 minutes (300
seconds). The Lambda function can override this by returning a ttlOverride
key
in its response. A value of 0 disables caching of responses.
The ARN of the Lambda function to be called for authorization. This may be a standard
Lambda ARN, a version ARN (.../v3
) or alias ARN.
Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the Console, this is done for you. To do so with the Amazon Web Services CLI, run the following:
aws lambda add-permission --function-name
"arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
--principal appsync.amazonaws.com --action lambda:InvokeFunction
The ARN of the Lambda function to be called for authorization. This may be a standard
Lambda ARN, a version ARN (.../v3
) or alias ARN.
Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the Console, this is done for you. To do so with the Amazon Web Services CLI, run the following:
aws lambda add-permission --function-name
"arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
--principal appsync.amazonaws.com --action lambda:InvokeFunction
A regular expression for validation of tokens before the Lambda function is called.
A regular expression for validation of tokens before the Lambda function is called.
Consumes the builder and constructs a LambdaAuthorizerConfig
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more