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

cloudshift.awscdk.dsl.services.ec2.CfnSpotFleetLoadBalancersConfigPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.ec2

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.ec2.CfnSpotFleet

/**
 * Specifies the Classic Load Balancers and target groups to attach to a Spot Fleet request.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.ec2.*;
 * LoadBalancersConfigProperty loadBalancersConfigProperty = LoadBalancersConfigProperty.builder()
 * .classicLoadBalancersConfig(ClassicLoadBalancersConfigProperty.builder()
 * .classicLoadBalancers(List.of(ClassicLoadBalancerProperty.builder()
 * .name("name")
 * .build()))
 * .build())
 * .targetGroupsConfig(TargetGroupsConfigProperty.builder()
 * .targetGroups(List.of(TargetGroupProperty.builder()
 * .arn("arn")
 * .build()))
 * .build())
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html)
 */
@CdkDslMarker
public class CfnSpotFleetLoadBalancersConfigPropertyDsl {
  private val cdkBuilder: CfnSpotFleet.LoadBalancersConfigProperty.Builder =
      CfnSpotFleet.LoadBalancersConfigProperty.builder()

  /**
   * @param classicLoadBalancersConfig The Classic Load Balancers.
   */
  public fun classicLoadBalancersConfig(classicLoadBalancersConfig: IResolvable) {
    cdkBuilder.classicLoadBalancersConfig(classicLoadBalancersConfig)
  }

  /**
   * @param classicLoadBalancersConfig The Classic Load Balancers.
   */
  public
      fun classicLoadBalancersConfig(classicLoadBalancersConfig: CfnSpotFleet.ClassicLoadBalancersConfigProperty) {
    cdkBuilder.classicLoadBalancersConfig(classicLoadBalancersConfig)
  }

  /**
   * @param targetGroupsConfig The target groups.
   */
  public fun targetGroupsConfig(targetGroupsConfig: IResolvable) {
    cdkBuilder.targetGroupsConfig(targetGroupsConfig)
  }

  /**
   * @param targetGroupsConfig The target groups.
   */
  public fun targetGroupsConfig(targetGroupsConfig: CfnSpotFleet.TargetGroupsConfigProperty) {
    cdkBuilder.targetGroupsConfig(targetGroupsConfig)
  }

  public fun build(): CfnSpotFleet.LoadBalancersConfigProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy