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

cloudshift.awscdk.dsl.services.ecs.HostDsl.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.ecs

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.ecs.Host

/**
 * The details on a container instance bind mount host volume.
 *
 * 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.ecs.*;
 * Host host = Host.builder()
 * .sourcePath("sourcePath")
 * .build();
 * ```
 */
@CdkDslMarker
public class HostDsl {
  private val cdkBuilder: Host.Builder = Host.builder()

  /**
   * @param sourcePath Specifies the path on the host container instance that is presented to the
   * container.
   * If the sourcePath value does not exist on the host container instance, the Docker daemon
   * creates it.
   * If the location does exist, the contents of the source path folder are exported.
   *
   * This property is not supported for tasks that use the Fargate launch type.
   */
  public fun sourcePath(sourcePath: String) {
    cdkBuilder.sourcePath(sourcePath)
  }

  public fun build(): Host = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy