- 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.aws.KeepAliveLambda
-
- 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
-
The name of the lambda function containing the handler code;
- component11() - 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.
- component12() - Method in class ws.osiris.aws.ApplicationConfig
-
The MIME types that are treated by API Gateway as binary;
- component13() - Method in class ws.osiris.aws.ApplicationConfig
-
The number of lambda instances that should be kept alive.
- component14() - Method in class ws.osiris.aws.ApplicationConfig
-
The time between each set of keep-alive messages.
- component15() - Method in class ws.osiris.aws.ApplicationConfig
-
The time each lambda instance should sleep after receiving a keep-alive request.
- 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, lambdaName, bucketPrefix, binaryMimeTypes, keepAliveCount, keepAliveInterval, keepAliveSleep) - 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.
- 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.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,
- getFunctionArn() - Method in class ws.osiris.aws.KeepAliveTrigger
-
- 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.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
-
- 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
-
- getInstanceCount() - Method in class ws.osiris.aws.KeepAliveTrigger
-
- 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.
- getKeepAliveCount() - Method in class ws.osiris.aws.ApplicationConfig
-
The number of lambda instances that should be kept alive.
- getKeepAliveInterval() - Method in class ws.osiris.aws.ApplicationConfig
-
The time between each set of keep-alive messages.
- getKeepAliveSleep() - Method in class ws.osiris.aws.ApplicationConfig
-
The time each lambda instance should sleep after receiving a keep-alive request.
- 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.
- getLambdaName() - Method in class ws.osiris.aws.ApplicationConfig
-
The name of the lambda function 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.
- getLog() - Static method in class ws.osiris.core.FiltersKt
-
- 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.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
-
- getPathParams() - Method in class ws.osiris.core.Request
-
- getPathPart() - Method in class ws.osiris.core.FixedSegment
-
- getQueryParams() - Method in class ws.osiris.core.Request
-
- getRoutes() - Method in class ws.osiris.core.Api
-
The routes defined by the API.
- getSleepTimeMs() - Method in class ws.osiris.aws.KeepAliveTrigger
-
- 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($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
-