updateTemplate
inline suspend fun NetworkSecurityManagerClient.updateTemplate(crossinline block: UpdateTemplateRequest.Builder.() -> Unit): UpdateTemplateResponse
Updates the specified template. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the template as a draft.
Samples
// Updates the template s description and rule associations and publishes the change. The updateToken
// from the most recent read is required for optimistic locking.
val resp = networkSecurityManagerClient.updateTemplate {
templateIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
updateToken = "d2e3f4a5-5b6c-4d7e-8f9a-9b0c1d2e3f4a"
templateDescription = "Standard WAF template with baseline rule groups - updated"
associatedRuleList = listOf<RuleReference>(
RuleReference {
ruleIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
}
)
isPublished = true
}Content copied to clipboard