All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.amazon.systemsmanager.systemsmanagerExtensions.kt Maven / Gradle / Ivy

There is a newer version: 5.35.2.0
Show newest version
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))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy