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

io.cloudshiftdev.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.codedeploy

import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
import kotlin.Unit

/**
 * Properties of a reference to a CodeDeploy Lambda Deployment Configuration.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import io.cloudshiftdev.awscdk.services.codedeploy.*;
 * LambdaDeploymentConfigImportProps lambdaDeploymentConfigImportProps =
 * LambdaDeploymentConfigImportProps.builder()
 * .deploymentConfigName("deploymentConfigName")
 * .build();
 * ```
 *
 * [Documentation](LambdaDeploymentConfig# import)
 */
public interface LambdaDeploymentConfigImportProps {
  /**
   * The physical, human-readable name of the custom CodeDeploy Lambda Deployment Configuration that
   * we are referencing.
   */
  public fun deploymentConfigName(): String

  /**
   * A builder for [LambdaDeploymentConfigImportProps]
   */
  @CdkDslMarker
  public interface Builder {
    /**
     * @param deploymentConfigName The physical, human-readable name of the custom CodeDeploy Lambda
     * Deployment Configuration that we are referencing. 
     */
    public fun deploymentConfigName(deploymentConfigName: String)
  }

  private class BuilderImpl : Builder {
    private val cdkBuilder:
        software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps.Builder =
        software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps.builder()

    /**
     * @param deploymentConfigName The physical, human-readable name of the custom CodeDeploy Lambda
     * Deployment Configuration that we are referencing. 
     */
    override fun deploymentConfigName(deploymentConfigName: String) {
      cdkBuilder.deploymentConfigName(deploymentConfigName)
    }

    public fun build(): software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps
        = cdkBuilder.build()
  }

  private class Wrapper(
    cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps,
  ) : CdkObject(cdkObject),
      LambdaDeploymentConfigImportProps {
    /**
     * The physical, human-readable name of the custom CodeDeploy Lambda Deployment Configuration
     * that we are referencing.
     */
    override fun deploymentConfigName(): String = unwrap(this).getDeploymentConfigName()
  }

  public companion object {
    public operator fun invoke(block: Builder.() -> Unit = {}): LambdaDeploymentConfigImportProps {
      val builderImpl = BuilderImpl()
      return Wrapper(builderImpl.apply(block).build())
    }

    internal
        fun wrap(cdkObject: software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps):
        LambdaDeploymentConfigImportProps = CdkObjectWrappers.wrap(cdkObject) as?
        LambdaDeploymentConfigImportProps ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: LambdaDeploymentConfigImportProps):
        software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps = (wrapped as
        CdkObject).cdkObject as
        software.amazon.awscdk.services.codedeploy.LambdaDeploymentConfigImportProps
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy