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

cloudshift.awscdk.dsl.services.s3.deployment.DeploymentSourceContextDsl.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.s3.deployment

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.services.iam.IRole
import software.amazon.awscdk.services.s3.deployment.DeploymentSourceContext

/**
 * Bind context for ISources.
 *
 * 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.iam.*;
 * import software.amazon.awscdk.services.s3.deployment.*;
 * Role role;
 * DeploymentSourceContext deploymentSourceContext = DeploymentSourceContext.builder()
 * .handlerRole(role)
 * .build();
 * ```
 */
@CdkDslMarker
public class DeploymentSourceContextDsl {
  private val cdkBuilder: DeploymentSourceContext.Builder = DeploymentSourceContext.builder()

  /**
   * @param handlerRole The role for the handler. 
   */
  public fun handlerRole(handlerRole: IRole) {
    cdkBuilder.handlerRole(handlerRole)
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy