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