io.burkard.cdk.services.lambda.Permission.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 Permission {
def apply(
principal: software.amazon.awscdk.services.iam.IPrincipal,
eventSourceToken: Option[String] = None,
scope: Option[software.constructs.Construct] = None,
functionUrlAuthType: Option[software.amazon.awscdk.services.lambda.FunctionUrlAuthType] = None,
sourceArn: Option[String] = None,
sourceAccount: Option[String] = None,
organizationId: Option[String] = None,
action: Option[String] = None
): software.amazon.awscdk.services.lambda.Permission =
(new software.amazon.awscdk.services.lambda.Permission.Builder)
.principal(principal)
.eventSourceToken(eventSourceToken.orNull)
.scope(scope.orNull)
.functionUrlAuthType(functionUrlAuthType.orNull)
.sourceArn(sourceArn.orNull)
.sourceAccount(sourceAccount.orNull)
.organizationId(organizationId.orNull)
.action(action.orNull)
.build()
}