Package-level declarations

Types

Link copied to clipboard
abstract class AwsJsonAction<R : Any>(service: AwsService, clazz: KClass<R>, autoMarshalling: AutoMarshalling, contentType: ContentType = ContentType("application/x-amz-json-1.1")) : Action<Result<R, RemoteFailure>>
Link copied to clipboard
class AwsJsonFake(val autoMarshalling: AutoMarshalling, val awsService: AwsService)
Link copied to clipboard
abstract class AwsQueryAction<Rsp : Any>(base: Request, clazz: KClass<Rsp>, autoMarshalling: AutoMarshallingJson<MoshiNode>, actionName: String, version: String, wrapper: String?) : Action<Result4k<Rsp, RemoteFailure>>
Link copied to clipboard
abstract class AwsRestJsonAction<R : Any>(base: Request, clazz: KClass<R>, autoMarshalling: AutoMarshalling) : Action<Result4k<R, RemoteFailure>>
Link copied to clipboard
class AwsRestJsonFake(val autoMarshalling: AutoMarshalling, val awsService: AwsService, val region: Region, val accountId: AwsAccount)
Link copied to clipboard
open class AwsServiceCompanion(awsServiceName: String)

Shared infra for all AWS services.

Link copied to clipboard
@JsonSerializable
data class CliCachedCredentials(val AccessKeyId: AccessKeyId, val SecretAccessKey: SecretAccessKey, val SessionToken: SessionToken, val Expiration: Expiration)
Link copied to clipboard
@JsonSerializable
data class CliCachedCredentialsFile(val Credentials: CliCachedCredentials, val ProviderType: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JsonSerializable
data class JsonError(val __type: String, val Message: String)
Link copied to clipboard
fun interface RegionProvider : Function0<Region?>
Link copied to clipboard
data class RestfulError(val status: Status, val message: String, val resourceId: ARN?, val resourceType: String?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

For directly injecting the WebIdentityToken into the environment.

Link copied to clipboard

Use when WebIdentityToken is to be stored in file on disk (eg. in K8S)

Functions

Link copied to clipboard
fun AwsReverseProxy(vararg awsServices: Pair<AwsServiceCompanion, HttpHandler>): (request: Request) -> Response

Simple ReverseProxy for AWS services. Allows for simple traffic splitting based on the Host header.

Link copied to clipboard
Link copied to clipboard
fun CredentialsChain.Companion.Profile(profileName: ProfileName, credentialsPath: Path, configPath: Path = credentialsPath.resolveSibling("config")): CredentialsChain
fun RegionProvider.Companion.Profile(profileName: ProfileName, credentialsPath: Path, configPath: Path = credentialsPath.resolveSibling("config")): RegionProvider
fun CredentialsChain.Companion.Profile(env: Environment = Environment.ENV, profileName: ProfileName = AWS_PROFILE(env), credentialsPath: Path = AWS_CREDENTIAL_PROFILES_FILE(env), configPath: Path = AWS_CONFIG_FILE(env)): CredentialsChain
fun CredentialsProvider.Companion.Profile(env: Environment = Environment.ENV, profileName: ProfileName = AWS_PROFILE(env), credentialsPath: Path = AWS_CREDENTIAL_PROFILES_FILE(env), configPath: Path = AWS_CONFIG_FILE(env)): CredentialsProvider