Class AuthorizerDefinition

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AuthorizerDefinition.Builder builder()
      Creates a builder for an Authorizer.
      boolean equals​(java.lang.Object o)  
      java.util.Optional<java.lang.String> getAuthorizerPayloadFormatVersion()
      Gets the format of the payload returned by the authorizer.
      java.util.Optional<java.lang.String> getCredentials()
      Gets the Credentials required for invoking the authorizer, if any, in the form of an ARN of an IAM execution role.
      java.util.Optional<java.lang.String> getCustomAuthType()
      Gets the customAuthType of the authorizer.
      java.util.Optional<java.lang.Boolean> getEnableSimpleResponses()
      Gets whether the authorizer returns simple responses.
      java.util.Optional<java.lang.String> getIdentitySource()
      Gets the comma-separated list of mapping expressions of the request parameters as the identity source.
      java.util.Optional<java.lang.String> getIdentityValidationExpression()
      Gets the regular expression for validating the token as the incoming identity.
      java.util.Optional<java.lang.Integer> getResultTtlInSeconds()
      Gets the number of seconds during which the resulting IAM policy is cached.
      ShapeId getScheme()
      Gets the Smithy scheme used as the client authentication type.
      java.util.Optional<java.lang.String> getType()
      Gets the type of the authorizer.
      java.util.Optional<java.lang.String> getUri()
      Gets the Uniform Resource Identifier (URI) of the authorizer Lambda function.
      int hashCode()  
      AuthorizerDefinition.Builder toBuilder()
      Take this object and create a builder that contains all of the current property values of this object.
      Node toNode()
      Converts a value to a Node.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScheme

        public ShapeId getScheme()
        Gets the Smithy scheme used as the client authentication type.
        Returns:
        Returns the defined client authentication type.
      • getType

        public java.util.Optional<java.lang.String> getType()
        Gets the type of the authorizer.

        If specifying information beyond the scheme, this value is required. The value must be "token", for an authorizer with the caller identity embedded in an authorization token, or "request", for an authorizer with the caller identity contained in request parameters.

        Returns:
        Returns the optional authorizer type.
      • getUri

        public java.util.Optional<java.lang.String> getUri()
        Gets the Uniform Resource Identifier (URI) of the authorizer Lambda function.
        Returns:
        Returns the optional Lambda URI.
      • getCustomAuthType

        public java.util.Optional<java.lang.String> getCustomAuthType()
        Gets the customAuthType of the authorizer.

        This value is not used directly by APIGateway but will be used for OpenAPI exports. This will default to "awsSigV4" if your scheme is aws.auth#sigv4.

        Returns:
        Returns the customAuthType.
      • getCredentials

        public java.util.Optional<java.lang.String> getCredentials()
        Gets the Credentials required for invoking the authorizer, if any, in the form of an ARN of an IAM execution role.

        For example, "arn:aws:iam::account-id:IAM_role".

        Returns:
        Returns the optional credential ARN.
      • getIdentitySource

        public java.util.Optional<java.lang.String> getIdentitySource()
        Gets the comma-separated list of mapping expressions of the request parameters as the identity source.

        This property is only applicable for the authorizer of the "request" type only.

        Returns:
        Returns the optional identity source string.
      • getIdentityValidationExpression

        public java.util.Optional<java.lang.String> getIdentityValidationExpression()
        Gets the regular expression for validating the token as the incoming identity. For example, "^x-[a-z]+".
        Returns:
        Returns the identity regular expression.
      • getResultTtlInSeconds

        public java.util.Optional<java.lang.Integer> getResultTtlInSeconds()
        Gets the number of seconds during which the resulting IAM policy is cached.
        Returns:
        Returns the cache amount in seconds.
      • getAuthorizerPayloadFormatVersion

        public java.util.Optional<java.lang.String> getAuthorizerPayloadFormatVersion()
        Gets the format of the payload returned by the authorizer.
        Returns:
        Returns payload type.
      • getEnableSimpleResponses

        public java.util.Optional<java.lang.Boolean> getEnableSimpleResponses()
        Gets whether the authorizer returns simple responses.
        Returns:
        Returns true if authorizer returns a boolean, false if it returns an IAM policy.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object