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

io.burkard.cdk.services.lambda.CfnEventInvokeConfig.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.lambda

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnEventInvokeConfig {

  def apply(
    internalResourceId: String,
    qualifier: String,
    functionName: String,
    maximumEventAgeInSeconds: Option[Number] = None,
    destinationConfig: Option[software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.DestinationConfigProperty] = None,
    maximumRetryAttempts: Option[Number] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lambda.CfnEventInvokeConfig =
    software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.Builder
      .create(stackCtx, internalResourceId)
      .qualifier(qualifier)
      .functionName(functionName)
      .maximumEventAgeInSeconds(maximumEventAgeInSeconds.orNull)
      .destinationConfig(destinationConfig.orNull)
      .maximumRetryAttempts(maximumRetryAttempts.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy