io.burkard.cdk.services.iam.CfnInstanceProfile.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.iam
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInstanceProfile {
def apply(
internalResourceId: String,
roles: List[String],
path: Option[String] = None,
instanceProfileName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.iam.CfnInstanceProfile =
software.amazon.awscdk.services.iam.CfnInstanceProfile.Builder
.create(stackCtx, internalResourceId)
.roles(roles.asJava)
.path(path.orNull)
.instanceProfileName(instanceProfileName.orNull)
.build()
}