RemoveLambdaByArn removes all lambda configurations that match the exact specified ARN
(arn Arn)
| 411 | |
| 412 | // RemoveLambdaByArn removes all lambda configurations that match the exact specified ARN |
| 413 | func (b *Configuration) RemoveLambdaByArn(arn Arn) { |
| 414 | var lambdas []LambdaConfig |
| 415 | for _, lambda := range b.LambdaConfigs { |
| 416 | if lambda.Lambda != arn.String() { |
| 417 | lambdas = append(lambdas, lambda) |
| 418 | } |
| 419 | } |
| 420 | b.LambdaConfigs = lambdas |
| 421 | } |
| 422 | |
| 423 | // RemoveLambdaByArnEventsPrefixSuffix removes a topic configuration that match the exact specified ARN, events, prefix and suffix |
| 424 | func (b *Configuration) RemoveLambdaByArnEventsPrefixSuffix(arn Arn, events []EventType, prefix, suffix string) error { |