removePermission
Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.
Samples
fun main() {
//sampleStart
// The following example removes a permissions statement named xaccount from the PROD alias of a
// function named my function.
lambdaClient.removePermission {
functionName = "my-function"
statementId = "xaccount"
qualifier = "PROD"
}
//sampleEnd
}