io.burkard.cdk.services.s3.cfnAccessPoint.PublicAccessBlockConfigurationProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.s3.cfnAccessPoint
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object PublicAccessBlockConfigurationProperty {
def apply(
blockPublicAcls: Option[Boolean] = None,
blockPublicPolicy: Option[Boolean] = None,
ignorePublicAcls: Option[Boolean] = None,
restrictPublicBuckets: Option[Boolean] = None
): software.amazon.awscdk.services.s3.CfnAccessPoint.PublicAccessBlockConfigurationProperty =
(new software.amazon.awscdk.services.s3.CfnAccessPoint.PublicAccessBlockConfigurationProperty.Builder)
.blockPublicAcls(blockPublicAcls.map(Boolean.box).orNull)
.blockPublicPolicy(blockPublicPolicy.map(Boolean.box).orNull)
.ignorePublicAcls(ignorePublicAcls.map(Boolean.box).orNull)
.restrictPublicBuckets(restrictPublicBuckets.map(Boolean.box).orNull)
.build()
}