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

io.burkard.cdk.services.ec2.CfnClientVpnAuthorizationRule.scala Maven / Gradle / Ivy

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

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnClientVpnAuthorizationRule {

  def apply(
    internalResourceId: String,
    clientVpnEndpointId: String,
    targetNetworkCidr: String,
    authorizeAllGroups: Option[Boolean] = None,
    accessGroupId: Option[String] = None,
    description: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.CfnClientVpnAuthorizationRule =
    software.amazon.awscdk.services.ec2.CfnClientVpnAuthorizationRule.Builder
      .create(stackCtx, internalResourceId)
      .clientVpnEndpointId(clientVpnEndpointId)
      .targetNetworkCidr(targetNetworkCidr)
      .authorizeAllGroups(authorizeAllGroups.map(Boolean.box).orNull)
      .accessGroupId(accessGroupId.orNull)
      .description(description.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy