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

io.burkard.cdk.services.lightsail.CfnBucket.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnBucket {

  def apply(
    internalResourceId: String,
    bundleId: String,
    bucketName: String,
    objectVersioning: Option[Boolean] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    accessRules: Option[software.amazon.awscdk.services.lightsail.CfnBucket.AccessRulesProperty] = None,
    resourcesReceivingAccess: Option[List[String]] = None,
    readOnlyAccessAccounts: Option[List[String]] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lightsail.CfnBucket =
    software.amazon.awscdk.services.lightsail.CfnBucket.Builder
      .create(stackCtx, internalResourceId)
      .bundleId(bundleId)
      .bucketName(bucketName)
      .objectVersioning(objectVersioning.map(Boolean.box).orNull)
      .tags(tags.map(_.asJava).orNull)
      .accessRules(accessRules.orNull)
      .resourcesReceivingAccess(resourcesReceivingAccess.map(_.asJava).orNull)
      .readOnlyAccessAccounts(readOnlyAccessAccounts.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy