- CognitoUserPools(userPoolArn) - Constructor for class ws.osiris.aws.AuthConfig.CognitoUserPools
-
Represents a Cognito user pool used for authentication.
- CognitoUserPoolsAuth - Class in ws.osiris.aws
-
Represents the AWS authorisation type "COGNITO_USER_POOLS"; the user must login to a Cognito user
pool and provide the token when calling the API.
- Companion - Static variable in class ws.osiris.core.Api
-
- Companion - Static variable in class ws.osiris.core.ApiBuilder
-
- Companion - Static variable in class ws.osiris.core.ContentType
-
- Companion - Static variable in class ws.osiris.core.Filter
-
- Companion - Static variable in class ws.osiris.core.Params
-
- Companion - Static variable in interface ws.osiris.core.RequestContextFactory
-
- Companion - Static variable in class ws.osiris.core.Response
-
- Companion - Static variable in class ws.osiris.core.Route
-
- Companion - Static variable in class ws.osiris.core.RouteNode
-
- Companion - Static variable in class ws.osiris.core.Segment
-
- component1() - Method in class ws.osiris.aws.ApplicationConfig
-
The name of the API in API Gateway and the stack in CloudFormation.
- component1() - Method in class ws.osiris.aws.AuthConfig.CognitoUserPools
-
The ARN of the Cognito user pool.
- component1() - Method in class ws.osiris.aws.AuthConfig.Custom
-
The ARN of the custom authentication lambda function.
- component1() - Method in class ws.osiris.aws.ProxyResponse
-
- component1() - Method in class ws.osiris.aws.Stage
-
The name of the stage.
- component1() - Method in class ws.osiris.core.Api
-
The routes defined by the API.
- component1() - Method in class ws.osiris.core.ContentType
-
The MIME type of the content.
- component1() - Method in class ws.osiris.core.ErrorInfo
-
- component1() - Method in class ws.osiris.core.FixedSegment
-
- component1() - Method in class ws.osiris.core.Headers
-
- component1() - Method in class ws.osiris.core.LambdaRoute
-
- component1() - Method in class ws.osiris.core.Request
-
- component1() - Method in class ws.osiris.core.Response
-
- component1() - Method in class ws.osiris.core.RouteMatch
-
- component1() - Method in class ws.osiris.core.StaticFiles
-
- component1() - Method in class ws.osiris.core.StaticRoute
-
- component1() - Method in class ws.osiris.core.VariableSegment
-
- component10() - Method in class ws.osiris.aws.ApplicationConfig
-
Prefix prepended to the names of the buckets created by Osiris. This can be used to make them unique
in the event of a name clash. Bucket names must be unique across all accounts in a region so two
Osiris applications with the same names would have the same bucket names if no prefix were used.
- component11() - Method in class ws.osiris.aws.ApplicationConfig
-
The MIME types that are treated by API Gateway as binary;
- component2() - Method in class ws.osiris.aws.ApplicationConfig
-
A description of the application.
- component2() - Method in class ws.osiris.aws.ProxyResponse
-
- component2() - Method in class ws.osiris.aws.Stage
-
Flag controlling whether the API is deployed to the stage every time it is updated.
- component2() - Method in class ws.osiris.core.Api
-
Filters applied to requests before they are passed to a handler.
- component2() - Method in class ws.osiris.core.ContentType
-
The charset of the content.
- component2() - Method in class ws.osiris.core.ErrorInfo
-
- component2() - Method in class ws.osiris.core.LambdaRoute
-
- component2() - Method in class ws.osiris.core.Request
-
- component2() - Method in class ws.osiris.core.Response
-
- component2() - Method in class ws.osiris.core.RouteMatch
-
- component2() - Method in class ws.osiris.core.StaticFiles
-
- component2() - Method in class ws.osiris.core.StaticRoute
-
- component3() - Method in class ws.osiris.aws.ApplicationConfig
-
The maximum memory available to the lambda containing the handler code.
- component3() - Method in class ws.osiris.aws.ProxyResponse
-
- component3() - Method in class ws.osiris.aws.Stage
-
The stage variables;
- component3() - Method in class ws.osiris.core.Api
-
The type of the object available to the code in the API definition that handles the HTTP requests.
- component3() - Method in class ws.osiris.core.LambdaRoute
-
- component3() - Method in class ws.osiris.core.Request
-
- component3() - Method in class ws.osiris.core.Response
-
- component3() - Method in class ws.osiris.core.StaticFiles
-
- component3() - Method in class ws.osiris.core.StaticRoute
-
- component4() - Method in class ws.osiris.aws.ApplicationConfig
-
The maximum time the handler code can run before being terminated by AWS.
- component4() - Method in class ws.osiris.aws.ProxyResponse
-
- component4() - Method in class ws.osiris.aws.Stage
-
A description of the stage.
- component4() - Method in class ws.osiris.core.Api
-
True if this API serves static files.
- component4() - Method in class ws.osiris.core.LambdaRoute
-
- component4() - Method in class ws.osiris.core.Request
-
- component5() - Method in class ws.osiris.aws.ApplicationConfig
-
The environment variables available to the lambda code;
- component5() - Method in class ws.osiris.core.Request
-
- component6() - Method in class ws.osiris.aws.ApplicationConfig
-
The stages to which the API is deployed,
- component6() - Method in class ws.osiris.core.Request
-
- component7() - Method in class ws.osiris.aws.ApplicationConfig
-
Configuration of any external authentication mechanism.
- component7() - Method in class ws.osiris.core.Request
-
- component8() - Method in class ws.osiris.aws.ApplicationConfig
-
The bucket from which static files are served;
- component8() - Method in class ws.osiris.core.Request
-
- component9() - Method in class ws.osiris.aws.ApplicationConfig
-
The bucket to which code artifacts are uploaded;
- ComponentsProvider - Interface in ws.osiris.core
-
Provides all the components used by the implementation of the API.
- CONTENT_LENGTH - Static variable in class ws.osiris.core.HttpHeaders
-
- CONTENT_TYPE - Static variable in class ws.osiris.core.HttpHeaders
-
- ContentType - Class in ws.osiris.core
-
Represents the data in a Content-Type header; includes the MIME type and an optional charset.
- ContentType(mimeType, charset) - Constructor for class ws.osiris.core.ContentType
-
Represents the data in a Content-Type header; includes the MIME type and an optional charset.
- ContentType(mimeType) - Constructor for class ws.osiris.core.ContentType
-
Creates an instance with the specified MIME type and not charset.
- ContentType.Companion - Class in ws.osiris.core
-
- copy(applicationName, applicationDescription, lambdaMemorySizeMb, lambdaTimeout, environmentVariables, stages, authConfig, staticFilesBucket, codeBucket, bucketPrefix, binaryMimeTypes) - Method in class ws.osiris.aws.ApplicationConfig
-
The configuration of a deployed application.
- copy(userPoolArn) - Method in class ws.osiris.aws.AuthConfig.CognitoUserPools
-
Represents a Cognito user pool used for authentication.
- copy(lambdaArn) - Method in class ws.osiris.aws.AuthConfig.Custom
-
Represents a custom authentication lambda function.
- copy(statusCode, headers, isIsBase64Encoded, body) - Method in class ws.osiris.aws.ProxyResponse
-
- copy(name, deployOnUpdate, variables, description) - Method in class ws.osiris.aws.Stage
-
Represents a single stage in API Gateway.
- copy(routes, filters, componentsClass, staticFiles) - Method in class ws.osiris.core.Api
-
A model describing an API; it contains the routes to the API endpoints and the code executed
when the API receives requests.
- copy(mimeType, charset) - Method in class ws.osiris.core.ContentType
-
Represents the data in a Content-Type header; includes the MIME type and an optional charset.
- copy(status, message) - Method in class ws.osiris.core.ErrorInfo
-
The information describing an error.
- copy(pathPart) - Method in class ws.osiris.core.FixedSegment
-
- copy(headerMap) - Method in class ws.osiris.core.Headers
-
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
- copy(method, path, handler, auth) - Method in class ws.osiris.core.LambdaRoute
-
Describes an endpoint in a REST API whose requests are handled by a lambda.
- copy(method, path, headers, queryParams, pathParams, context, body, attributes, defaultResponseHeaders) - Method in class ws.osiris.core.Request
-
Contains the details of an HTTP request received by the API.
- copy(status, headers, body) - Method in class ws.osiris.core.Response
-
The details of the HTTP response returned from the code handling a request.
- copy(handler, vars) - Method in class ws.osiris.core.RouteMatch
-
- copy(path, indexFile, auth) - Method in class ws.osiris.core.StaticFiles
-
- copy(path, indexFile, auth) - Method in class ws.osiris.core.StaticRoute
-
Describes an endpoint in a REST API that serves static files.
- copy(variableName) - Method in class ws.osiris.core.VariableSegment
-
- create(api) - Method in class ws.osiris.core.RouteNode.Companion
-
Creates a tree of RouteNode instances representing the routes in the API.
- create(pathPart) - Method in class ws.osiris.core.Segment.Companion
-
- create() - Method in class ws.osiris.core.StandardFilters
-
- createContext(httpMethod, path, headers, queryParams, pathParams, body) - Method in interface ws.osiris.core.RequestContextFactory
-
- Custom(lambdaArn) - Constructor for class ws.osiris.aws.AuthConfig.Custom
-
Represents a custom authentication lambda function.
- CustomAuth - Class in ws.osiris.aws
-
Represents the AWS authorisation type "CUSTOM"; the authorisation is carried out by custom logic in a lambda.
- get(path, handler) - Method in class ws.osiris.core.ApiBuilder
-
Defines an endpoint that handles GET requests to the path.
- get(header) - Method in class ws.osiris.core.Headers
-
Returns the value for the specified header; lookup is case-insensitive in accordance with the HTTP spec.
- get(name) - Method in class ws.osiris.core.Params
-
Returns the named parameter or throws IllegalArgumentException if there is no parameter with the name.
- getApi() - Method in interface ws.osiris.aws.ApiFactory
-
The API.
- getApplicationDescription() - Method in class ws.osiris.aws.ApplicationConfig
-
A description of the application.
- getApplicationName() - Method in class ws.osiris.aws.ApplicationConfig
-
The name of the API in API Gateway and the stack in CloudFormation.
- getAttributes() - Method in class ws.osiris.core.Request
-
- getAuth() - Method in class ws.osiris.core.LambdaRoute
-
- getAuth() - Method in class ws.osiris.core.Route
-
- getAuth() - Method in class ws.osiris.core.StaticFiles
-
- getAuth() - Method in class ws.osiris.core.StaticRoute
-
- getAuth() - Method in class ws.osiris.core.StaticRouteNode
-
- getAuthConfig() - Method in class ws.osiris.aws.ApplicationConfig
-
Configuration of any external authentication mechanism.
- getBinaryBody() - Method in class ws.osiris.aws.ProxyRequest
-
Returns a byte array containing the binary data in the body; returns null if the body is null or
not base 64 encoded.
- getBinaryMimeTypes() - Method in class ws.osiris.aws.ApplicationConfig
-
The MIME types that are treated by API Gateway as binary;
- getBody() - Method in class ws.osiris.aws.ProxyRequest
-
- getBody() - Method in class ws.osiris.aws.ProxyResponse
-
- getBody() - Method in class ws.osiris.core.Request
-
- getBody() - Method in class ws.osiris.core.Response
-
- getBucketPrefix() - Method in class ws.osiris.aws.ApplicationConfig
-
Prefix prepended to the names of the buckets created by Osiris. This can be used to make them unique
in the event of a name clash. Bucket names must be unique across all accounts in a region so two
Osiris applications with the same names would have the same bucket names if no prefix were used.
- getCharset() - Method in class ws.osiris.core.ContentType
-
The charset of the content.
- getCodeBucket() - Method in class ws.osiris.aws.ApplicationConfig
-
The bucket to which code artifacts are uploaded;
- getComponentsClass() - Method in class ws.osiris.core.Api
-
The type of the object available to the code in the API definition that handles the HTTP requests.
- getConfig() - Method in interface ws.osiris.aws.ApiFactory
-
The configuration of the application in AWS.
- getContext() - Method in class ws.osiris.core.Request
-
- getDeployOnUpdate() - Method in class ws.osiris.aws.Stage
-
Flag controlling whether the API is deployed to the stage every time it is updated.
- getDescription() - Method in class ws.osiris.aws.Stage
-
A description of the stage.
- getEnvironmentVariables() - Method in class ws.osiris.aws.ApplicationConfig
-
The environment variables available to the lambda code;
- getFilters() - Method in class ws.osiris.core.Api
-
Filters applied to requests before they are passed to a handler.
- getFixedChildren() - Method in class ws.osiris.core.RouteNode
-
The fixed node children of this node,
- getGlobalFilters() - Method in class ws.osiris.core.RootApiBuilder
-
- getHandler() - Method in class ws.osiris.core.Filter
-
- getHandler() - Method in class ws.osiris.core.LambdaRoute
-
- getHandler() - Method in class ws.osiris.core.RouteMatch
-
- getHandlers() - Method in class ws.osiris.core.RouteNode
-
Handlers
- getHeader() - Method in class ws.osiris.core.ContentType
-
The string representation of this content type used in a Content-Type header.
- getHeaderMap() - Method in class ws.osiris.core.Headers
-
- getHeaders() - Method in class ws.osiris.aws.ProxyRequest
-
- getHeaders() - Method in class ws.osiris.aws.ProxyResponse
-
- getHeaders() - Method in class ws.osiris.core.Request
-
- getHeaders() - Method in class ws.osiris.core.Response
-
- getHeaders() - Method in class ws.osiris.core.ResponseBuilder
-
- getHttpMethod() - Method in class ws.osiris.aws.ProxyRequest
-
- getHttpStatus() - Method in exception ws.osiris.core.HttpException
-
- getIndexFile() - Method in class ws.osiris.core.StaticFiles
-
- getIndexFile() - Method in class ws.osiris.core.StaticFilesBuilder
-
- getIndexFile() - Method in class ws.osiris.core.StaticRoute
-
- getIndexFile() - Method in class ws.osiris.core.StaticRouteNode
-
- getJSON_CONTENT_TYPE() - Static method in class ws.osiris.core.HttpKt
-
The default content type in API Gateway; everything is assumed to return JSON unless it states otherwise.
- getLambdaArn() - Method in class ws.osiris.aws.AuthConfig.Custom
-
The ARN of the custom authentication lambda function.
- getLambdaMemorySizeMb() - Method in class ws.osiris.aws.ApplicationConfig
-
The maximum memory available to the lambda containing the handler code.
- getLambdaTimeout() - Method in class ws.osiris.aws.ApplicationConfig
-
The maximum time the handler code can run before being terminated by AWS.
- getMessage() - Method in class ws.osiris.core.ErrorInfo
-
- getMethod() - Method in class ws.osiris.core.LambdaRoute
-
- getMethod() - Method in class ws.osiris.core.Request
-
- getMimeType() - Method in class ws.osiris.core.ContentType
-
The MIME type of the content.
- getName() - Method in class ws.osiris.aws.CognitoUserPoolsAuth
-
- getName() - Method in class ws.osiris.aws.CustomAuth
-
- getName() - Method in class ws.osiris.aws.IamAuth
-
- getName() - Method in class ws.osiris.aws.Stage
-
The name of the stage.
- getName() - Method in interface ws.osiris.core.Auth
-
The name of the authorisation strategy.
- getName() - Method in class ws.osiris.core.NoAuth
-
The name of the authorisation strategy.
- getName() - Method in class ws.osiris.core.RouteNode
-
The name of the node;
- getParams() - Method in class ws.osiris.core.Params
-
- getPath() - Method in class ws.osiris.aws.ProxyRequest
-
The path to the endpoint relative to the domain root;
- getPath() - Method in class ws.osiris.core.LambdaRoute
-
- getPath() - Method in class ws.osiris.core.Request
-
- getPath() - Method in class ws.osiris.core.Route
-
- getPath() - Method in class ws.osiris.core.StaticFiles
-
- getPath() - Method in class ws.osiris.core.StaticFilesBuilder
-
- getPath() - Method in class ws.osiris.core.StaticRoute
-
- getPathParameters() - Method in class ws.osiris.aws.ProxyRequest
-
- getPathParams() - Method in class ws.osiris.core.Request
-
- getPathPart() - Method in class ws.osiris.core.FixedSegment
-
- getQueryParams() - Method in class ws.osiris.core.Request
-
- getQueryStringParameters() - Method in class ws.osiris.aws.ProxyRequest
-
- getRequestContext() - Method in class ws.osiris.aws.ProxyRequest
-
- getResource() - Method in class ws.osiris.aws.ProxyRequest
-
The path to the endpoint relative to the root of the API.
- getRoutes() - Method in class ws.osiris.core.Api
-
The routes defined by the API.
- getStageName($receiver) - Static method in class ws.osiris.aws.RequestKt
-
The AWS stage name; this is an extension property to avoid putting AWS concepts into the core module.
- getStages() - Method in class ws.osiris.aws.ApplicationConfig
-
The stages to which the API is deployed,
- getStageVariables() - Method in class ws.osiris.aws.ProxyRequest
-
- getStageVariables($receiver) - Static method in class ws.osiris.aws.RequestKt
-
The AWS stage variables; this is an extension property to avoid putting AWS concepts into the core module.
- getStaticFiles() - Method in class ws.osiris.core.Api
-
True if this API serves static files.
- getStaticFilesBucket() - Method in class ws.osiris.aws.ApplicationConfig
-
The bucket from which static files are served;
- getStatus() - Method in class ws.osiris.core.ErrorInfo
-
- getStatus() - Method in class ws.osiris.core.Response
-
- getStatusCode() - Method in class ws.osiris.aws.ProxyResponse
-
- getUserPoolArn() - Method in class ws.osiris.aws.AuthConfig.CognitoUserPools
-
The ARN of the Cognito user pool.
- getVariableChild() - Method in class ws.osiris.core.RouteNode
-
The variable node that is a child of this node;
- getVariableName() - Method in class ws.osiris.core.VariableSegment
-
- getVariables() - Method in class ws.osiris.aws.Stage
-
The stage variables;
- getVars() - Method in class ws.osiris.core.RouteMatch
-
- Params - Class in ws.osiris.core
-
A set of HTTP parameters provided as part of request; can represent headers, path parameters or
query string parameters.
- Params(params) - Constructor for class ws.osiris.core.Params
-
A set of HTTP parameters provided as part of request; can represent headers, path parameters or
query string parameters.
- Params() - Constructor for class ws.osiris.core.Params
-
- Params.Companion - Class in ws.osiris.core
-
- parse(header) - Method in class ws.osiris.core.ContentType.Companion
-
- patch(path, handler) - Method in class ws.osiris.core.ApiBuilder
-
Defines an endpoint that handles PATCH requests to the path.
- path(path, body) - Method in class ws.osiris.core.ApiBuilder
-
- plus(headerValue) - Method in class ws.osiris.core.Headers
-
Returns a copy of these headers with a new header added.
- plus(other) - Method in class ws.osiris.core.Headers
-
Returns a copy of these headers with new headers added.
- plus(other) - Method in class ws.osiris.core.Headers
-
Returns a copy of these headers with new headers added.
- plus(nameValue) - Method in class ws.osiris.core.Params
-
Returns copy of these parameters with the value added.
- post(path, handler) - Method in class ws.osiris.core.ApiBuilder
-
Defines an endpoint that handles POST requests to the path.
- prettyPrint($receiver) - Static method in class ws.osiris.core.ModelKt
-
Returns a pretty-printed string showing the node and its children in a tree structure.
- ProxyLambda<T extends ComponentsProvider> - Class in ws.osiris.aws
-
- ProxyLambda(api, components) - Constructor for class ws.osiris.aws.ProxyLambda
-
- ProxyRequest - Class in ws.osiris.aws
-
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
- ProxyRequest(resource, path, httpMethod, headers, queryStringParameters, pathParameters, isIsBase64Encoded, requestContext, stageVariables, body) - Constructor for class ws.osiris.aws.ProxyRequest
-
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
- ProxyRequest() - Constructor for class ws.osiris.aws.ProxyRequest
-
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
- ProxyResponse - Class in ws.osiris.aws
-
- ProxyResponse(statusCode, headers, isIsBase64Encoded, body) - Constructor for class ws.osiris.aws.ProxyResponse
-
- ProxyResponse() - Constructor for class ws.osiris.aws.ProxyResponse
-
- put(path, handler) - Method in class ws.osiris.core.ApiBuilder
-
Defines an endpoint that handles PUT requests to the path.