putDeploymentParameter
inline suspend fun MarketplaceDeploymentClient.putDeploymentParameter(crossinline block: PutDeploymentParameterRequest.Builder.() -> Unit): PutDeploymentParameterResponse
Creates or updates a deployment parameter and is targeted by catalog
and agreementId
.
Samples
import aws.sdk.kotlin.services.marketplacedeployment.model.DeploymentParameterInput
fun main() {
//sampleStart
// The following example demonstrates creating or updating a deployment parameter named
// "ExampleDeploymentParameterName". The secret will be saved in the Buyer account associated with the passed agreementId with the value
// set to the provided secretString Note that the deployment parameter secretString can be passed in JSON
// string format, allowing json key specific CloudFormation dynamic references
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html) from a single deployment parameter.
val resp = marketplaceDeploymentClient.putDeploymentParameter {
agreementId = "agmt-1234"
catalog = "AWSMarketplace"
productId = "product-1234"
deploymentParameter = DeploymentParameterInput {
name = "ExampleDeploymentParameterName"
secretString = "{\"apiKey\": \"helloWorldApiKey\", \"entityId\": \"fooBarEntityId\"}"
}
clientToken = "some-unique-uuid-between-32-and-64-characters"
}
//sampleEnd
}
import aws.sdk.kotlin.services.marketplacedeployment.model.DeploymentParameterInput
fun main() {
//sampleStart
// The following example demonstrates creating a simple deployment parameter named
// "ExampleSimpleDeploymentParameterName". If multiple secrets are not required, the secretString may be provided in String format. The
// provided tags are only applied on resource creation and will be ignored if the operation results in an
// update. The API response includes the tags present on the resource after completion of the operation.
val resp = marketplaceDeploymentClient.putDeploymentParameter {
agreementId = "agmt-1234"
catalog = "AWSMarketplace"
productId = "product-1234"
deploymentParameter = DeploymentParameterInput {
name = "ExampleSimpleDeploymentParameterName"
secretString = "MySimpleValue"
}
clientToken = "some-unique-uuid-between-32-and-64-characters"
expirationDate = "2099-11-18T08:52:46.397Z"
tags = mapOf<String, String>(
"FooKey" to "BarValue",
"HelloKey" to "WorldValue"
)
}
//sampleEnd
}