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

cloudshift.awscdk.dsl.services.codepipeline.ActionConfigDsl.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.codepipeline

import cloudshift.awscdk.common.CdkDslMarker
import cloudshift.awscdk.common.MapBuilder
import kotlin.Any
import kotlin.Unit
import software.amazon.awscdk.services.codepipeline.ActionConfig

/**
 * 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.codepipeline.*;
 * Object configuration;
 * ActionConfig actionConfig = ActionConfig.builder()
 * .configuration(configuration)
 * .build();
 * ```
 */
@CdkDslMarker
public class ActionConfigDsl {
  private val cdkBuilder: ActionConfig.Builder = ActionConfig.builder()

  /**
   * @param configuration the value to be set.
   */
  public fun configuration(configuration: MapBuilder.() -> Unit = {}) {
    val builder = MapBuilder()
    builder.apply(configuration)
    cdkBuilder.configuration(builder.map)
  }

  /**
   * @param configuration the value to be set.
   */
  public fun configuration(configuration: Any) {
    cdkBuilder.configuration(configuration)
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy