[−][src]Struct rusoto_apigatewayv2::CreateAuthorizerRequest
Creates a new Authorizer resource to represent an authorizer.
Fields
api_id: String
The API identifier.
Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null. Supported only for REQUEST authorizers.
Authorizer caching is not currently supported. Don't specify this value for authorizers.
The authorizer type. For WebSocket APIs, specify REQUEST for a Lambda function using incoming request parameters. For HTTP APIs, specify JWT to use JSON Web Tokens.
The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:
identity_source: Vec<String>
The identity source for which authorization is requested.
For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. Currently, the identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name. These parameters will be used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function.
For JWT, a single entry that specifies where to extract the JSON Web Token (JWT )from inbound requests. Currently only header-based and query parameter-based selections are supported, for example "$request.header.Authorization".
identity_validation_expression: Option<String>
This parameter is not used.
jwt_configuration: Option<JWTConfiguration>
Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.
name: String
The name of the authorizer.
Trait Implementations
impl Clone for CreateAuthorizerRequest
[src]
fn clone(&self) -> CreateAuthorizerRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CreateAuthorizerRequest
[src]
impl Default for CreateAuthorizerRequest
[src]
fn default() -> CreateAuthorizerRequest
[src]
impl PartialEq<CreateAuthorizerRequest> for CreateAuthorizerRequest
[src]
fn eq(&self, other: &CreateAuthorizerRequest) -> bool
[src]
fn ne(&self, other: &CreateAuthorizerRequest) -> bool
[src]
impl Serialize for CreateAuthorizerRequest
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CreateAuthorizerRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for CreateAuthorizerRequest
impl Send for CreateAuthorizerRequest
impl Sync for CreateAuthorizerRequest
impl Unpin for CreateAuthorizerRequest
impl UnwindSafe for CreateAuthorizerRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,