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

io.burkard.cdk.services.gamelift.CfnFleet.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    internalResourceId: String,
    locations: Option[List[_]] = None,
    name: Option[String] = None,
    instanceRoleArn: Option[String] = None,
    desiredEc2Instances: Option[Number] = None,
    description: Option[String] = None,
    ec2InboundPermissions: Option[List[_]] = None,
    ec2InstanceType: Option[String] = None,
    peerVpcAwsAccountId: Option[String] = None,
    scriptId: Option[String] = None,
    peerVpcId: Option[String] = None,
    metricGroups: Option[List[String]] = None,
    resourceCreationLimitPolicy: Option[software.amazon.awscdk.services.gamelift.CfnFleet.ResourceCreationLimitPolicyProperty] = None,
    runtimeConfiguration: Option[software.amazon.awscdk.services.gamelift.CfnFleet.RuntimeConfigurationProperty] = None,
    fleetType: Option[String] = None,
    newGameSessionProtectionPolicy: Option[String] = None,
    maxSize: Option[Number] = None,
    certificateConfiguration: Option[software.amazon.awscdk.services.gamelift.CfnFleet.CertificateConfigurationProperty] = None,
    minSize: Option[Number] = None,
    buildId: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.gamelift.CfnFleet =
    software.amazon.awscdk.services.gamelift.CfnFleet.Builder
      .create(stackCtx, internalResourceId)
      .locations(locations.map(_.asJava).orNull)
      .name(name.orNull)
      .instanceRoleArn(instanceRoleArn.orNull)
      .desiredEc2Instances(desiredEc2Instances.orNull)
      .description(description.orNull)
      .ec2InboundPermissions(ec2InboundPermissions.map(_.asJava).orNull)
      .ec2InstanceType(ec2InstanceType.orNull)
      .peerVpcAwsAccountId(peerVpcAwsAccountId.orNull)
      .scriptId(scriptId.orNull)
      .peerVpcId(peerVpcId.orNull)
      .metricGroups(metricGroups.map(_.asJava).orNull)
      .resourceCreationLimitPolicy(resourceCreationLimitPolicy.orNull)
      .runtimeConfiguration(runtimeConfiguration.orNull)
      .fleetType(fleetType.orNull)
      .newGameSessionProtectionPolicy(newGameSessionProtectionPolicy.orNull)
      .maxSize(maxSize.orNull)
      .certificateConfiguration(certificateConfiguration.orNull)
      .minSize(minSize.orNull)
      .buildId(buildId.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy