org.http4k.connect.amazon.systemsmanager.systemsmanagerExtensions.kt Maven / Gradle / Ivy
package org.http4k.connect.amazon.systemsmanager
import dev.forkhandles.result4k.Result
import kotlin.Boolean
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import org.http4k.connect.RemoteFailure
import org.http4k.connect.amazon.core.model.KMSKeyId
import org.http4k.connect.amazon.core.model.Tag
import org.http4k.connect.amazon.systemsmanager.action.DeleteParameter
import org.http4k.connect.amazon.systemsmanager.action.GetParameter
import org.http4k.connect.amazon.systemsmanager.action.ParameterValue
import org.http4k.connect.amazon.systemsmanager.action.PutParameter
import org.http4k.connect.amazon.systemsmanager.action.PutParameterResult
import org.http4k.connect.amazon.systemsmanager.model.ParameterType
import org.http4k.connect.amazon.systemsmanager.model.SSMParameterName
/**
* @see org.http4k.connect.amazon.systemsmanager.action.DeleteParameter
*/
public fun SystemsManager.deleteParameter(Name: SSMParameterName): Result =
invoke(DeleteParameter(Name))
/**
* @see org.http4k.connect.amazon.systemsmanager.action.GetParameter
*/
public fun SystemsManager.getParameter(Name: SSMParameterName, WithDecryption: Boolean? = null):
Result = invoke(GetParameter(Name, WithDecryption))
/**
* @see org.http4k.connect.amazon.systemsmanager.action.PutParameter
*/
public fun SystemsManager.putParameter(
Name: SSMParameterName,
Value: String,
Type: ParameterType,
KeyId: KMSKeyId? = null,
Overwrite: Boolean? = null,
AllowedPattern: String? = null,
DataType: String? = null,
Description: String? = null,
Policies: List? = null,
Tags: List? = null,
Tier: String? = null,
): Result = invoke(PutParameter(Name, Value, Type, KeyId,
Overwrite, AllowedPattern, DataType, Description, Policies, Tags, Tier))