io.burkard.cdk.services.cloudfront.PublicKey.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudfront
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object PublicKey {
def apply(
internalResourceId: String,
encodedKey: String,
comment: Option[String] = None,
publicKeyName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.cloudfront.PublicKey =
software.amazon.awscdk.services.cloudfront.PublicKey.Builder
.create(stackCtx, internalResourceId)
.encodedKey(encodedKey)
.comment(comment.orNull)
.publicKeyName(publicKeyName.orNull)
.build()
}