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

io.burkard.cdk.services.lambda.CfnPermissionProps.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 CfnPermissionProps {

  def apply(
    functionName: String,
    principal: String,
    action: String,
    eventSourceToken: Option[String] = None,
    functionUrlAuthType: Option[String] = None,
    principalOrgId: Option[String] = None,
    sourceArn: Option[String] = None,
    sourceAccount: Option[String] = None
  ): software.amazon.awscdk.services.lambda.CfnPermissionProps =
    (new software.amazon.awscdk.services.lambda.CfnPermissionProps.Builder)
      .functionName(functionName)
      .principal(principal)
      .action(action)
      .eventSourceToken(eventSourceToken.orNull)
      .functionUrlAuthType(functionUrlAuthType.orNull)
      .principalOrgId(principalOrgId.orNull)
      .sourceArn(sourceArn.orNull)
      .sourceAccount(sourceAccount.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy